A
aditya satya prakash
Guest
Hi All,
When building the VC++ project, I am getting the below error:
Error LNK2019 unresolved external symbol __imp__CM_Locate_DevNode_ExA@16 referenced in function "public: int __thiscall APCDeviceManager::ReScan(void)" (?ReScan@APCDeviceManager@@QAEHXZ) NTUtil C:\Jenkins\ntutil\DeviceMgr.obj 1
"Rescan" function is defined in DeviceMgr.cxx like as shown below:
(C:\Jenkins\Common\Source\DeviceMgr.cxx)
INT APCDeviceManager::ReScan()
{
int failcode = EXIT_FAIL;
HMACHINE machineHandle = NULL;
DEVINST devRoot;
if(CM_Locate_DevNode_Ex(&devRoot,NULL,CM_LOCATE_DEVNODE_NORMAL,machineHandle) != CR_SUCCESS)
{
goto final;
}
if(CM_Reenumerate_DevNode_Ex(devRoot, 0, machineHandle) != CR_SUCCESS)
{
goto final;
}
failcode = EXIT_OK;
final:
if(machineHandle)
{
CM_Disconnect_Machine(machineHandle);
}
return failcode;
}
"Rescan" function is declared in DeviceMgr.h like as shown below:
(C:\Jenkins\Common\Includes\DeviceMgr.h)
class APCDeviceManager
{
public:
INT ReScan();
Settings I made in "ntutil" project like as shown below:
In configuration properties -> VC++ Directories -> Include Directories, set the below paths:
C:\Jenkins\Common\Source
C:\Jenkins\Common\Includes
In C++ -> General -> Additional Include Directories:
C:\Jenkins\Common\Source
C:\Jenkins\Common\Includes
Please help me how to resolve this error.
Y A S Prakash
Continue reading...
When building the VC++ project, I am getting the below error:
Error LNK2019 unresolved external symbol __imp__CM_Locate_DevNode_ExA@16 referenced in function "public: int __thiscall APCDeviceManager::ReScan(void)" (?ReScan@APCDeviceManager@@QAEHXZ) NTUtil C:\Jenkins\ntutil\DeviceMgr.obj 1
"Rescan" function is defined in DeviceMgr.cxx like as shown below:
(C:\Jenkins\Common\Source\DeviceMgr.cxx)
INT APCDeviceManager::ReScan()
{
int failcode = EXIT_FAIL;
HMACHINE machineHandle = NULL;
DEVINST devRoot;
if(CM_Locate_DevNode_Ex(&devRoot,NULL,CM_LOCATE_DEVNODE_NORMAL,machineHandle) != CR_SUCCESS)
{
goto final;
}
if(CM_Reenumerate_DevNode_Ex(devRoot, 0, machineHandle) != CR_SUCCESS)
{
goto final;
}
failcode = EXIT_OK;
final:
if(machineHandle)
{
CM_Disconnect_Machine(machineHandle);
}
return failcode;
}
"Rescan" function is declared in DeviceMgr.h like as shown below:
(C:\Jenkins\Common\Includes\DeviceMgr.h)
class APCDeviceManager
{
public:
INT ReScan();
Settings I made in "ntutil" project like as shown below:
In configuration properties -> VC++ Directories -> Include Directories, set the below paths:
C:\Jenkins\Common\Source
C:\Jenkins\Common\Includes
In C++ -> General -> Additional Include Directories:
C:\Jenkins\Common\Source
C:\Jenkins\Common\Includes
Please help me how to resolve this error.
Y A S Prakash
Continue reading...