Click here to Skip to main content
15,896,063 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: trace generation question Pin
redbones17-Mar-07 1:36
redbones17-Mar-07 1:36 
QuestionOn Vista GetUserObjectInformation return 0 for lpnLengthNeeded... Pin
deyadav15-Mar-07 6:23
deyadav15-Mar-07 6:23 
AnswerRe: On Vista GetUserObjectInformation return 0 for lpnLengthNeeded... Pin
Mark Salsbery15-Mar-07 7:45
Mark Salsbery15-Mar-07 7:45 
GeneralRe: On Vista GetUserObjectInformation return 0 for lpnLengthNeeded... Pin
deyadav15-Mar-07 9:32
deyadav15-Mar-07 9:32 
GeneralRe: On Vista GetUserObjectInformation return 0 for lpnLengthNeeded... Pin
Mark Salsbery15-Mar-07 9:36
Mark Salsbery15-Mar-07 9:36 
QuestionMDI Pin
ScotDolan15-Mar-07 6:23
ScotDolan15-Mar-07 6:23 
AnswerRe: MDI Pin
Mark Salsbery15-Mar-07 7:58
Mark Salsbery15-Mar-07 7:58 
Questionhow to call add(int i,int j) function in a mfc dll from vb application Pin
punit singh15-Mar-07 5:11
punit singh15-Mar-07 5:11 
how to call add(int i,int j) function in a mfc dll from vb application.

I have done all the steps to include c++ MFC dll to vb project.
It is working fine with function calls with no arguments like show();
But it returning garbage value when i call add(5,4) which passes arguments to the function.

my code in vb is like this:


Private Declare Function AddValues Lib "dllmfc.dll" (i,j) As Integer

Private Sub btnadd_Click()
Dim ans As Integer
a = AddValues(5, 4)
MsgBox (a)
End Sub

please tell me where i am wrong.

punit singh
QuestionRe: how to call add(int i,int j) function in a mfc dll from vb application Pin
David Crow15-Mar-07 5:24
David Crow15-Mar-07 5:24 
AnswerRe: how to call add(int i,int j) function in a mfc dll from vb application Pin
punit singh15-Mar-07 6:01
punit singh15-Mar-07 6:01 
GeneralRe: how to call add(int i,int j) function in a mfc dll from vb application Pin
David Crow15-Mar-07 6:07
David Crow15-Mar-07 6:07 
GeneralRe: how to call add(int i,int j) function in a mfc dll from vb application Pin
punit singh15-Mar-07 6:36
punit singh15-Mar-07 6:36 
AnswerRe: how to call add(int i,int j) function in a mfc dll from vb application Pin
Cedric Moonen15-Mar-07 5:24
Cedric Moonen15-Mar-07 5:24 
AnswerRe: how to call add(int i,int j) function in a mfc dll from vb application Pin
krmed15-Mar-07 5:37
krmed15-Mar-07 5:37 
GeneralRe: how to call add(int i,int j) function in a mfc dll from vb application Pin
punit singh15-Mar-07 5:57
punit singh15-Mar-07 5:57 
GeneralRe: how to call add(int i,int j) function in a mfc dll from vb application Pin
punit singh15-Mar-07 5:59
punit singh15-Mar-07 5:59 
GeneralRe: how to call add(int i,int j) function in a mfc dll from vb application Pin
David Crow15-Mar-07 6:11
David Crow15-Mar-07 6:11 
GeneralRe: how to call add(int i,int j) function in a mfc dll from vb application Pin
punit singh15-Mar-07 7:00
punit singh15-Mar-07 7:00 
GeneralRe: how to call add(int i,int j) function in a mfc dll from vb application Pin
David Crow15-Mar-07 7:06
David Crow15-Mar-07 7:06 
Questionbar style windows Pin
akqira15-Mar-07 5:08
akqira15-Mar-07 5:08 
QuestionRe: bar style windows Pin
Maximilien15-Mar-07 7:52
Maximilien15-Mar-07 7:52 
AnswerRe: bar style windows Pin
akqira16-Mar-07 5:40
akqira16-Mar-07 5:40 
QuestionADO OpenTable database ACCESS cause memory problem !! Pin
AkiraOne15-Mar-07 4:43
AkiraOne15-Mar-07 4:43 
QuestionDef bet MFC app wiz and Win32 Pin
vibindia15-Mar-07 4:36
vibindia15-Mar-07 4:36 
AnswerRe: Def bet MFC app wiz and Win32 Pin
David Crow15-Mar-07 5:06
David Crow15-Mar-07 5:06 

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.