|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Is anyone up to a challenge?
Is anyone up to a challenge?
I have some problems linking to a C++ DLL with a VB program. |
|
#2
|
||||
|
||||
|
What are you currently doing?
__________________
................... ASCII and ye shall receive .................. Knowledge is the only resource on earth that multiplies when shared Support the Shemzilla Project Powered by C# |
|
#3
|
|||
|
|||
|
The program has this error:
Code:
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: Code:
ErrorStatus& = atxml_ValidateRequirements(XmlBuf, "PawsAllocation.xml", Response, 4096) Now, let me tell you what everything is defined as: Code:
Global ErrorStatus As Long Code:
Global XmlBuf As String * 4096 Code:
Dim Response As String Code:
Declare Function atxml_ValidateRequirements Lib "AtXmlApi_Dbg.dll" (ByVal resourceName$, ByVal IDQuery%, ByVal resetDevice%, instrumentHandle&) As Long 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); |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Is anyone up to a challenge? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|