Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

How could I call a function from a DLL compiled by VC++?

Intel_C_Intel
Employee
278 Views
I have a .dll file compiled by VC++.
If I want to call it from VC++, I can define the head as:
Code:
#ifdef __cplusplus
extern "C" {
#endif
 
BOOL WINAPI GetId(LPTSTR lpOutBuffer, int Mode);

#ifdef __cplusplus
}
#endif
I call it as follow:
Code:
char Id[50];
memset(Id, '�', 50);

BOOL result = GetId(Id, 0); 
if(result)
{
    CString IdStr;
    IdStr = Id;  
    MessageBox(IdStr);
}
Do you know how could I do the corresponding calling in Intel C++?
0 Kudos
1 Reply
JenniferJ
Moderator
278 Views
The Intel C++ Compiler is source and binary compatible with VC*++. So you don't need to do any code change in order to use the IntelC++.
Jennifer
0 Kudos
Reply