Click here to Skip to main content
15,907,326 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: keydown Pin
Dave Kreskowiak19-Apr-07 3:39
mveDave Kreskowiak19-Apr-07 3:39 
GeneralRe: keydown Pin
eagertolearn19-Apr-07 4:28
eagertolearn19-Apr-07 4:28 
GeneralRe: keydown Pin
Dave Kreskowiak19-Apr-07 4:32
mveDave Kreskowiak19-Apr-07 4:32 
GeneralRe: keydown Pin
eagertolearn19-Apr-07 5:26
eagertolearn19-Apr-07 5:26 
QuestionCalling Dll C++ functions from Visual Basic 6 Pin
Kiske19-Apr-07 3:00
Kiske19-Apr-07 3:00 
AnswerRe: Calling Dll C++ functions from Visual Basic 6 Pin
Dave Kreskowiak19-Apr-07 3:37
mveDave Kreskowiak19-Apr-07 3:37 
GeneralRe: Calling Dll C++ functions from Visual Basic 6 Pin
Kiske19-Apr-07 3:54
Kiske19-Apr-07 3:54 
GeneralRe: Calling Dll C++ functions from Visual Basic 6 Pin
Dave Kreskowiak19-Apr-07 4:41
mveDave Kreskowiak19-Apr-07 4:41 
Try changing the ByRef in your Declare back to ByVal.

I didn't notice this before, but I think the calling convention in the C++ header is wrong for use with VB6:
__declspec( dllexport )int Initialize(char * in_szStatusLoc);

I seem to remember something about VB6 expecting the _stdcall convention, not __declspec. If you have control over the source code for this .DLL, you'll have to change the call to _stdcall. If you can't change that .DLL, you'll have to write a wrapper around it in C++, that exposes _stdcall decorated functions and calls the __declspec version of the .DLL for VB.


Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


QuestionGraphics in VB Pin
Kumaran21cen19-Apr-07 2:46
Kumaran21cen19-Apr-07 2:46 
AnswerRe: Graphics in VB Pin
Dave Kreskowiak19-Apr-07 4:43
mveDave Kreskowiak19-Apr-07 4:43 
Questionstill cant do it(add to database) Pin
peteyshrew19-Apr-07 2:22
peteyshrew19-Apr-07 2:22 
AnswerRe: still cant do it(add to database) Pin
peteyshrew19-Apr-07 2:32
peteyshrew19-Apr-07 2:32 
GeneralRe: still cant do it(add to database) Pin
Dave Kreskowiak19-Apr-07 3:31
mveDave Kreskowiak19-Apr-07 3:31 
GeneralRe: still cant do it(add to database) Pin
Psycho-*Coder*-Extreme22-Apr-07 8:36
Psycho-*Coder*-Extreme22-Apr-07 8:36 
AnswerRe: still cant do it(add to database) Pin
klaydze19-Apr-07 3:19
klaydze19-Apr-07 3:19 
QuestionASP.NET Connection with sql server 2005. Pin
Sujit Mandal19-Apr-07 2:02
Sujit Mandal19-Apr-07 2:02 
AnswerRe: ASP.NET Connection with sql server 2005. Pin
kubben19-Apr-07 2:05
kubben19-Apr-07 2:05 
GeneralRe: ASP.NET Connection with sql server 2005. Pin
Sujit Mandal19-Apr-07 2:16
Sujit Mandal19-Apr-07 2:16 
GeneralRe: ASP.NET Connection with sql server 2005. Pin
kubben19-Apr-07 2:18
kubben19-Apr-07 2:18 
GeneralRe: ASP.NET Connection with sql server 2005. Pin
Sujit Mandal19-Apr-07 2:24
Sujit Mandal19-Apr-07 2:24 
GeneralRe: ASP.NET Connection with sql server 2005. Pin
kubben19-Apr-07 2:31
kubben19-Apr-07 2:31 
GeneralRe: ASP.NET Connection with sql server 2005. Pin
Sujit Mandal19-Apr-07 2:42
Sujit Mandal19-Apr-07 2:42 
GeneralRe: ASP.NET Connection with sql server 2005. Pin
Sujit Mandal19-Apr-07 2:54
Sujit Mandal19-Apr-07 2:54 
Questionhow to get infiniti symbol by using ASCII code? what is the number? Pin
merlynml18-Apr-07 22:37
merlynml18-Apr-07 22:37 
AnswerRe: how to get infiniti symbol by using ASCII code? what is the number? Pin
Steven J Jowett19-Apr-07 0:20
Steven J Jowett19-Apr-07 0:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.