Click here to Skip to main content
15,943,119 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: check file opened or not? Pin
Hamid_RT7-Apr-08 4:29
Hamid_RT7-Apr-08 4:29 
GeneralRe: check file opened or not? Pin
George_George7-Apr-08 4:38
George_George7-Apr-08 4:38 
GeneralRe: check file opened or not? Pin
Hamid_RT7-Apr-08 5:07
Hamid_RT7-Apr-08 5:07 
GeneralWrong DLL output Pin
parth.p2-Apr-08 3:15
parth.p2-Apr-08 3:15 
GeneralRe: Wrong DLL output Pin
Cedric Moonen2-Apr-08 3:18
Cedric Moonen2-Apr-08 3:18 
GeneralRe: Wrong DLL output Pin
parth.p2-Apr-08 3:22
parth.p2-Apr-08 3:22 
GeneralRe: Wrong DLL output Pin
Chris Losinger2-Apr-08 3:27
professionalChris Losinger2-Apr-08 3:27 
GeneralRe: Wrong DLL output Pin
Cedric Moonen2-Apr-08 3:29
Cedric Moonen2-Apr-08 3:29 
Quoted from this page[^]:
One important note is that all parameters must be passed with the ByVal keyword. This is because Visual Basic always passes parameters ByRef by default. Since C/C++ usually passes by value, this must be specified in the Visual Basic declaration. This is all that is necessary when standard C variable types (int, long, etc.) are used, however complex data types like strings and arrays require more overhead on both the client and DLL sides.

They also specify that a VB integer correspond to a short in C/C++. So, change the C function to accept a short and check if it works (and don't forget the ByVal).

Cédric Moonen
Software developer

Charting control [v1.3]

GeneralRe: Wrong DLL output Pin
parth.p2-Apr-08 3:42
parth.p2-Apr-08 3:42 
GeneralRe: Wrong DLL output Pin
David Crow2-Apr-08 3:33
David Crow2-Apr-08 3:33 
GeneralRe: Wrong DLL output Pin
Cedric Moonen2-Apr-08 3:37
Cedric Moonen2-Apr-08 3:37 
QuestionRe: Wrong DLL output Pin
David Crow2-Apr-08 3:23
David Crow2-Apr-08 3:23 
GeneralRe: Wrong DLL output Pin
parth.p2-Apr-08 3:30
parth.p2-Apr-08 3:30 
GeneralRe: Wrong DLL output Pin
parth.p2-Apr-08 4:18
parth.p2-Apr-08 4:18 
GeneralRe: Wrong DLL output Pin
Cedric Moonen2-Apr-08 4:23
Cedric Moonen2-Apr-08 4:23 
GeneralRe: Wrong DLL output Pin
parth.p2-Apr-08 4:39
parth.p2-Apr-08 4:39 
GeneralRe: Wrong DLL output Pin
CPallini2-Apr-08 4:43
mveCPallini2-Apr-08 4:43 
GeneralRe: Wrong DLL output Pin
David Crow2-Apr-08 4:48
David Crow2-Apr-08 4:48 
GeneralRe: Wrong DLL output Pin
Chris Losinger2-Apr-08 3:29
professionalChris Losinger2-Apr-08 3:29 
GeneralRe: Wrong DLL output Pin
parth.p2-Apr-08 3:43
parth.p2-Apr-08 3:43 
GeneralRe: Wrong DLL output Pin
CPallini2-Apr-08 4:36
mveCPallini2-Apr-08 4:36 
GeneralRe: Wrong DLL output Pin
pabloraul2-Apr-08 8:43
pabloraul2-Apr-08 8:43 
GeneralRe: Wrong DLL output Pin
parth.p2-Apr-08 9:11
parth.p2-Apr-08 9:11 
GeneralTime Comparision Pin
john56322-Apr-08 2:31
john56322-Apr-08 2:31 
GeneralRe: Time Comparision Pin
CPallini2-Apr-08 3:09
mveCPallini2-Apr-08 3:09 

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.