Is anyone up to a challenge?

Jan 9 2006 10:08 PM
Is anyone up to a challenge? I have some problems linking to a C++ DLL with a VB program. The program has this error: [CODE]Run-time error '13' Type mismatch[/CODE] 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: [CODE]ErrorStatus& = atxml_ValidateRequirements(XmlBuf, "PawsAllocation.xml", Response, 4096)[/CODE] Now, let me tell you what everything is defined as: [CODE]Global ErrorStatus As Long[/CODE] [CODE]Global XmlBuf As String * 4096[/CODE] [CODE]Dim Response As String[/CODE][CODE] Declare Function atxml_ValidateRequirements Lib "AtXmlApi_Dbg.dll" (ByVal resourceName$, ByVal IDQuery%, ByVal resetDevice%, instrumentHandle&) As Long[/CODE] And in the C++ program: [CODE]extern "C" ATXML_FNC int atxml_ValidateRequirements(ATXML_ATML_Snippet* TestRequirements, ATXML_XML_Filename* Allocation, ATXML_XML_String* Availability, int BufferSize);[/CODE]