The MASM Forum Archive 2004 to 2012

Specialised Projects => Compiler Based Assembler => Assembler With Microsoft Visual C => Topic started by: Farabi on March 30, 2005, 06:27:00 PM

Title: C programming?
Post by: Farabi on March 30, 2005, 06:27:00 PM
I made my own dll and I want to use it on C++ application. How to do it?
Title: Re: C programming?
Post by: Vortex on March 30, 2005, 06:35:34 PM
The most important is to declare correctly the external C functions:

#ifdef __cplusplus
extern "C" {
#endif

extern int yourfunction(int x,int y);
// other function declarations


#ifdef __cplusplus
}
#endif


Second, you must add your import library ( concerning your DLL ) to the project.