On the project property's 'Configuration' tab, specify 'use MFC in a static library'. This will remove dependencies on the MFC dlls; you won't have to redistribute those with your .exe. Any third-party dlls you might use will still have to be distributed with the app. Place them in the same directory as the .exe when distributing.
If you want to get a little more professional, you can put together an installation package (.msi) that can create shortcuts to the user's Programs directory, creates any necessary registry entries, etc. VS05 supports this - it's pretty straightforward.
I am calling some methods from the Web service which i have added to my solution.
For Example please refer below code.
below code is perfectly running fine on XP,Vista but i have tested it on Windows 2000 prof.
line 1: CoInitialize(NULL);
line 2: xyzService::CxyzService test;
line 3: CComBSTR result;
line 4: test.Methodname(CComBSTR(L"0001"),CComBSTR (L"0001"),&result);
line 5: CoUninitialize();
if i run this code in Win 2000 it gives below error,
"the procedure entry point Getaddrinfo could not be located in the dynamic link library WS2_32.dll"
if i comment line no. 4 from above code,it runs properly.
This error is arriving due to call of any method in webservice.
Please help me to find some solution.
Your webservice may be calling the Unicode version of GetAddrInfo. And if you have a look at the MSDN for the GetAddrInfoW Function[^] it states that the minimum operating system is Windows XP with SP2.