how do i declare api functions in msvc++?
Printable View
how do i declare api functions in msvc++?
Simply export it as a WINAPI:
Code:__declspec(dllexport) int WINAPI Iamanfunction(int a, LPCTSTR str);
If you want to use the standard Win32 API functions, then include windows.h. Most of the common API's are already declared in there.
i want to create a lib of api declarations for my vb project
If I understood you correctly, you wanted to make a library of custom API declarations?
You would have a much better luck asking this in the C++ forum. Parksie and the other C++ Experts usually hang out there.Code:extern "C" __declspec(dllexport) int _stdcall Iamanfunction(int a, LPCTSTR str);
k i will ask there