Click to See Complete Forum and Search --> : api in vc++
Cmdr0Sunburn
Dec 28th, 2001, 06:04 PM
how do i declare api functions in msvc++?
Microbasic
Dec 28th, 2001, 06:26 PM
Simply export it as a WINAPI:
__declspec(dllexport) int WINAPI Iamanfunction(int a, LPCTSTR str);
Megatron
Dec 28th, 2001, 06:43 PM
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.
Cmdr0Sunburn
Dec 28th, 2001, 09:00 PM
i want to create a lib of api declarations for my vb project
Microbasic
Dec 29th, 2001, 05:41 PM
If I understood you correctly, you wanted to make a library of custom API declarations?
extern "C" __declspec(dllexport) int _stdcall Iamanfunction(int a, LPCTSTR str);
You would have a much better luck asking this in the C++ forum. Parksie and the other C++ Experts usually hang out there.
Cmdr0Sunburn
Dec 29th, 2001, 05:45 PM
k i will ask there
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.