
09.02.2009, 11:30
|
|
Познающий
Регистрация: 22.12.2008
Сообщений: 82
С нами:
9149599
Репутация:
6
|
|
Сообщение от St0nX
я же в коментах написал что типа HMODULE
lib = GetModuleHandle(TEXT("kernel32.dll"));//lib типа HMODULE
Все зделал , но не хочет компилица =(
Код:
1>main.obj : error LNK2019: unresolved external symbol _send@16 referenced in function "int __stdcall SendDataToServer(void *,unsigned long,unsigned short,char *)" (?SendDataToServer@@YGHPAXKGPAD@Z)
1>main.obj : error LNK2019: unresolved external symbol _closesocket@4 referenced in function "int __stdcall SendDataToServer(void *,unsigned long,unsigned short,char *)" (?SendDataToServer@@YGHPAXKGPAD@Z)
1>main.obj : error LNK2019: unresolved external symbol _connect@12 referenced in function "int __stdcall SendDataToServer(void *,unsigned long,unsigned short,char *)" (?SendDataToServer@@YGHPAXKGPAD@Z)
1>main.obj : error LNK2019: unresolved external symbol _inet_addr@4 referenced in function "int __stdcall SendDataToServer(void *,unsigned long,unsigned short,char *)" (?SendDataToServer@@YGHPAXKGPAD@Z)
1>main.obj : error LNK2019: unresolved external symbol _htons@4 referenced in function "int __stdcall SendDataToServer(void *,unsigned long,unsigned short,char *)" (?SendDataToServer@@YGHPAXKGPAD@Z)
1>main.obj : error LNK2019: unresolved external symbol _socket@12 referenced in function "int __stdcall SendDataToServer(void *,unsigned long,unsigned short,char *)" (?SendDataToServer@@YGHPAXKGPAD@Z)
1>main.obj : error LNK2019: unresolved external symbol _inet_ntoa@4 referenced in function "int __stdcall GetIpByHostName(char *,char *,unsigned long)" (?GetIpByHostName@@YGHPAD0K@Z)
1>main.obj : error LNK2019: unresolved external symbol _gethostbyname@4 referenced in function "int __stdcall GetIpByHostName(char *,char *,unsigned long)" (?GetIpByHostName@@YGHPAD0K@Z)
1>main.obj : error LNK2019: unresolved external symbol _WSAStartup@8 referenced in function "int __cdecl send_psw(void)" (?send_psw@@YAHXZ)
1>main.obj : error LNK2019: unresolved external symbol _RasEnumConnectionsA@12 referenced in function "bool __cdecl IsInternetConnected(void)" (?IsInternetConnected@@YA_NXZ)
1>RASreader.obj : error LNK2019: unresolved external symbol _RasEnumEntriesA@20 referenced in function "protected: unsigned long __fastcall TRASReader::GetRasEntryCount(void)" (?GetRasEntryCount@TRASReader@@IAIKXZ)
1>RASreader.obj : error LNK2019: unresolved external symbol _RasGetEntryPropertiesA@24 referenced in function "public: char * __fastcall TRASReader::GetRasEntries(void (__fastcall*)(char *,char *,char *,char *,char *),bool *)" (?GetRasEntries@TRASReader@@QAIPADP6IXPAD0000@ZPA_N@Z)
1>RASreader.obj : error LNK2019: unresolved external symbol _RasGetEntryDialParamsA@12 referenced in function "public: char * __fastcall TRASReader::GetRasEntries(void (__fastcall*)(char *,char *,char *,char *,char *),bool *)" (?GetRasEntries@TRASReader@@QAIPADP6IXPAD0000@ZPA_N@Z)
1>Release\usb.exe : fatal error LNK1120: 13 unresolved externals
|
|
|