ihd4ff8wem
User
Dołączył: 03 Maj 2011
Posty: 101
Przeczytał: 0 tematów
Ostrzeżeń: 0/5 Skąd: England Płeć: Kobieta
|
Wysłany: Pią 11:12, 27 Maj 2011 Temat postu: hair straighteners vc call dll (only the dll, no l |
|
|
vc call dll (only dll,[link widoczny dla zalogowanych], lib and h file without)
2007-09-25 12:00
only dll, lib and h file without know dll in the output function has
HANDLE link_com (int port )
By law: code = link_com (int port)
Return Value: returns the device description is successful Fu,[link widoczny dla zalogowanych], (WINDOWS handle)> = 0.
For example: code = link_com (COM1);
How can I call this dll's function??? Please give examples
one,[link widoczny dla zalogowanych], typedef HANDLE (__stdcall Funproc) (int);
HINSTANCE h;
Funproc * f;
; h = LoadLibrary (; if (h,[link widoczny dla zalogowanych]! = NULL)
; f = (Funproc *) GetProcAddress (h,[link widoczny dla zalogowanych],> code = f (COM1);
Second, typedef; HANDLE (* LINK_COM) ( int port);
; HMOUDLE hDll = LoadLibrary (> LINK_COM link_com = (LINK_COM) GetProcAddress (hDll,; function of the
three ,.....
typedef HANDLE ( * F) (int);
HINSTANCE dllhnd = LoadLibrary (ASSERT (dllhnd);
F flink_com = (F) GetProcAddress (dllhnd,[link widoczny dla zalogowanych], ASSERT (flink_com);
int port = 4;
HANDLE code = flink_com (port);
ASSERT (code);
........
four, HINSTANCE h;
int * fun
h = LoadLibrary ( if (h! = NULL)
fun = (int *) GetProcAddress (h, code = fun (COM1);
Post został pochwalony 0 razy
|
|