|
-
Dec 28th, 2001, 07:04 PM
#1
Thread Starter
Hyperactive Member
api in vc++
how do i declare api functions in msvc++?
I know a lot oF Vb, expert in C++, and i think in assembly.
MSVC++6.NET
vb6
masm
Windowz Xp
I find my self using this a lot in C++
__asm {
}
-
Dec 28th, 2001, 07:26 PM
#2
Frenzied Member
Simply export it as a WINAPI:
Code:
__declspec(dllexport) int WINAPI Iamanfunction(int a, LPCTSTR str);
MicroBasic
Dragon Shadow Trainer
There is no good or evil in the world...only programmers and fools .
-
Dec 28th, 2001, 07:43 PM
#3
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.
-
Dec 28th, 2001, 10:00 PM
#4
Thread Starter
Hyperactive Member
i want to create a lib of api declarations for my vb project
I know a lot oF Vb, expert in C++, and i think in assembly.
MSVC++6.NET
vb6
masm
Windowz Xp
I find my self using this a lot in C++
__asm {
}
-
Dec 29th, 2001, 06:41 PM
#5
Frenzied Member
If I understood you correctly, you wanted to make a library of custom API declarations?
Code:
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.
MicroBasic
Dragon Shadow Trainer
There is no good or evil in the world...only programmers and fools .
-
Dec 29th, 2001, 06:45 PM
#6
Thread Starter
Hyperactive Member
I know a lot oF Vb, expert in C++, and i think in assembly.
MSVC++6.NET
vb6
masm
Windowz Xp
I find my self using this a lot in C++
__asm {
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|