.


:




:

































 

 

 

 


DLL




 

DLL : .

DLL , , . DLL. . , DLL. , DLL , . , DLL , , , - , .

, DLL (import library file). .lib , DLL, .

DLL , - . DLL . DLL , .

LoadLibrary API Windows. GetProcAddress . . FreeLibrary .

, mydll.dll, char* MyFunction(char*). DLL :

 

// DLL

HINSTANSE dllInstanse =LoadLibrary(mydll.dll);

 

:

 

//

typedef char* (__import FType(char*));

FType * MyFunc;

MyFunc = (FType*)GetProcAddress(dllInstanse, _MyFunction);

 

typedef (-) FType. MyFunc. API Windows GetProcAddress. DLL , . .

:

 

//

char* S = MyFunc(!);

 

DLL , :

 

// DLL

FreeLibrary(dllInstanse);

 

, .

 

 





:


: 2015-10-01; !; : 804 |


:

:

.
==> ...

1507 - | 1433 -


© 2015-2024 lektsii.org - -

: 0.007 .