Home > Software engineering >  Vb6 compiling standard DLL, vc6 caller can not run under 64 bit Windows 7, consult @ the horse
Vb6 compiling standard DLL, vc6 caller can not run under 64 bit Windows 7, consult @ the horse

Time:10-06

Such as: according to all kinds of methods of compiling standard DLL out, vb and vc under xp system calls are successful,
But kao program to a 64 - bit Windows 7 is an error, under vc2010 call also tried, xp, normally under Windows 7 is an error,
Recognize and study the didn't? How to solve this problem? Sincerely ask

CodePudding user response:

Specifically, what error message?
VB is how you define the function (function)?

CodePudding user response:

No hint, say stop running the program

CodePudding user response:

Vb with the simplest
Public sub Test ()
Msgbox "fdsa"
End sub
This can't

CodePudding user response:

In a 64 - bit Windows:
64 exe and DLL in the directory c: \ Windows \ sys tem32 directory.
32 bit exe and DLL in the directory c: \ Windows \ sys wow64 directory.

Register or 32-bit ocx DLL to use:
C: \ Windows \ syswow64 \ regsvr32 c: \ Windows \ syswow64\32-bit ocx or DLL

CodePudding user response:

1) your DLL is with what tools?
(2) under the Windows 7, VB6, VC call will be wrong?
(3) under the Windows 7, to use VB6 compiled DLL using again, if still wrong?

CodePudding user response:

Vb to do standard DLL, I later gave it, switch to the pb

In accordance with the standards of vbgood way out above DLL, using vc in the thread calls, will hang up, study haven't solved

CodePudding user response:

  •  Tags:  
  • API
  • Related