Is anyone up to a challenge?
I have some problems linking to a C++ DLL with a VB program.
The program has this error:
Run-time error '13' Type mismatch
It crashes at a line of code that is supposed to be calling a funciton in the C++ DLL.
The line of code is this:
ErrorStatus& = atxml_ValidateRequirements(XmlBuf, "PawsAllocation.xml", Response, 4096)
Now, let me tell you what everything is defined as:
Global ErrorStatus As Long
Global XmlBuf As String * 4096
Dim Response As String
Declare Function atxml_ValidateRequirements Lib "AtXmlApi_Dbg.dll" (ByVal resourceName$, ByVal IDQuery%, ByVal resetDevice%, instrumentHandle&) As Long
And in the C++ program:
extern "C" ATXML_FNC int atxml_ValidateRequirements(ATXML_ATML_Snippet* TestRequirements, ATXML_XML_Filename* Allocation, ATXML_XML_String* Availability, int BufferSize);