Home > Software engineering >  VB6 call DLL
VB6 call DLL

Time:10-25

Hello, everyone:
I written in VB6 a DLL file, and then write an exe calls it, after the project referenced DLL, run shows methods or data member is not found,
Refer to the following:
Dim cc () as the variant
Cc=datalist. Module4. Getdata (text5 text6)
The text5 (string) and text6 (integer) as the incoming parameter
Running tips Module4 methods or data member is not found, there is no reference sense, just learning VB, and just use the DLL code was wrong? Please give advice or comments

CodePudding user response:

This only shows that you have a problem that the DLL code,

You: datalist. Module4
The Module4 seems to be a module name!
If you make a DLL file, certainly, it isn't used,

CodePudding user response:

Dim datalist as new your DLL library name. Your class module name
Cc=Getdata (text5. Text, text6. Text)

CodePudding user response:

refer to the second floor caozhy response:
dim datalist as new your DLL library name. Your class module name
Cc=Getdata (text5. Text, text6. Text)


This tone as if also not line, there is no object

CodePudding user response:

reference 1st floor Chen8013 response:
this only shows that you have a problem that the DLL code,

You: datalist. Module4
The Module4 seems to be a module name!
If you make a DLL file, certainly, it isn't used,




Right, for the first time to use the DLL, don't know how to get the inside of the DLL function!

CodePudding user response:

reference SDXXS reply: 3/f
Quote: refer to the second floor caozhy response:

Dim datalist as new your DLL library name. Your class module name
Cc=Getdata (text5. Text, text6. Text)


This tone as if also not line, is to display pass parameters, but if there is no problem

CodePudding user response:

How your. DLL?


Don't know how to write your source code, and how do you know that your "function" should be how to invoke the!!!!!!


Give you several solutions:
(1) the DLL's source code (best) the whole project, it can be said to be 100% can give you the answer,
If your code is not divulged to the specific implementation removed, leaving only "framework" for the whole project,
(but for complex problems, may not solve, so it cannot guarantee to solve the problem completely)

(2) I have just released a DLL tools, DLL, you can use this to do like this: http://bbs.csdn.net/topics/390609644
The general application, make your own code into a DLL to use, very convenient,
Only certain operations, may need some writing skills and experience, can only be executed correctly as a result,

(3) do you well to DLL, analyze your code, how to answer your "call,"
This method the success rate is lower, and for us, more trouble,
After all to a pile of assembly code to analyze your program is doing, what are the interfaces available and how to use, is not a simple thing to do,
Not necessary circumstances, the basic no one willing to charge the god,

CodePudding user response:

refer to the second floor caozhy response:
dim datalist as new your DLL library name. Your class module name
Cc=Getdata (text5. Text, text6. Text)


Thank you for your advice, integer data transfer success, but just don't know will array is wrong, try again tomorrow. Thank you!
  • Related