TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
William Thompson
NA
9
0
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]
Reply
Answers (
0
)
C# Jobs
Sending the value of one variable from one form to another