problems with using XPEPM.dll,.lib and .h in visual studio 6.0

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I want to make an application to dismounting the volume D: and after
hibernate, restart...
The library files XPEPM.dll, .lib and .h from XPE SP1 CD1 makes problems in
visual studio 6.0, the linker says

error LNK2001: unresolved external symbol "unsigned long __stdcall
XPE_Hibernate(int)" (?XPE_Hibernate@@YGKH@Z)

The application is a win32 console application with __cdecl.
The xpepm.dll version is 2.0.807.0.

What is the problem and what is to do?
 
Frank,

Try with extern "C" switch. and make sure that lib file is included.

Regards,
Slobodan
 
Frank,

As Slobodan already mentioned, make sure to use extern "C" notation.
For simplicity, in your source code just have something like the following:
extern "C" {
#include "XPEPM.H"
}
 
Hi Slobodan,
hi KM,

I loading the library with LoadLibrary() and everything is in order.

Thank you.
 
Back
Top