Below is the source file of test1.exe, which was built using LabWindow/CVI 7.1 environment, OS is Windows XP SP3
Due to some reason(install TestStand, or LabView, or ...), the Runtime Engine cvirte.dll, cvirt.dll (exists in c:\windows\system32\ )is 8.0.1
Executing this file, the GenericMessagePopup() will generate window's exception. But if executing GenericMessagePopup() before LoadLibrary(), it will be ok.
By the way, "cp3245mt.dll" is Borland's DLL. If load other DLL, everything is OK.
Is there any suggestion to solve the conflict between NI and Borland? Thanks!
// test1.c sourcefile
#include <windows.h>
#include <userint.h>
#include <stdio.h>
main()
{
// If execute the below line first. it will be ok.
// GenericMessagePopup("Info", "Test","Yes","No",0,0,0,0,
// VAL_GENERIC_POPUP_BTN1,VAL_GENERIC_POPUP_NO_CTRL,VAL_GENERIC_POPUP_BTN2);
LoadLibrary("cp3245mt.dll");
GenericMessagePopup("Info", "Test","Yes","No",0,0,0,0, VAL_GENERIC_POPUP_BTN1,VAL_GENERIC_POPUP_NO_CTRL,VAL_GENERIC_POPUP_BTN2);
}