Tam Sürümünü Görmek İçin : Visual C++ (Win32) da Delphi DLL'i nasıl kullanabilirim?
Arkadaşlar Visual C++(Win32)'da Delphide yazılmış bir DLL i nasıl kullanabilirim yada kullanabilirmiyim? Bununla alakalı yardımcı olursanız sevinirim.Şimdiden teşekkürler
Volkan Uzun
15/02/2005, 18:44
dll in ne dilde yazildigi cokta onemli degil aslinda
msdnden su ikisine bak
getprocaddress()
loadlibrary()
Ok. Ben bi bakayım hemen.
MSDN'e baktım orda DLL kullanımı için Header dosyasının ve .Lib dosyasının ve DLL in olması gerektiğini söylüyor. Bende sadece Delphide yazılmış bir DLL var o yüzden Header ve Lib dosyaları olmadan nasıl yapabilirim yada yapabilirmisim?
Volkan Uzun
15/02/2005, 20:14
simdi ayni msdn e ben bakiyim :
=====
LoadLibrary
This function maps the specified DLL file into the address space of the calling process.
HINSTANCE LoadLibrary(
LPCTSTR lpLibFileName
);
Parameters
lpLibFileName
[in] Pointer to a null-terminated string that names the DLL file.
The name specified is the file name of the module and is not related to the name stored in the library module itself, as specified by the LIBRARY keyword in the module-definition (.def) file.
If the string specifies a path but the file does not exist in the specified directory, the function fails.
When specifying a path, be sure to use backslashes (\), not forward slashes (/).
If the string does not specify a path, the function uses a standard search strategy to find the file. For more information, see the Remarks.
====================
GetProcAddress
This function returns the address of the specified exported DLL function.
FARPROC GetProcAddress(
HMODULE hModule,
LPCWSTR lpProcName
);
Parameters
hModule
[in] Handle to the DLL module that contains the function.
The LoadLibrary or GetModuleHandle function returns this handle.
lpProcName
[out] Pointer to a null-terminated string containing the function name, or specifies the function's ordinal value.
If this parameter is an ordinal value, it must be in the low-order word; the high-order word must be zero.
The lpProcName parameter must be in Unicode.
Return Values
==============
bunlarin hicbirisinde lib veya header isteniyor demiyor
Ben farklı yere baktım galiba.Bunları deneyeyim teşekkürler
Forum Yazılımı : vBulletin v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.