Click here to Skip to main content
15,850,299 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: read files size Pin
nlarson1115-Mar-07 12:17
nlarson1115-Mar-07 12:17 
QuestionEvalutating an If statement Pin
Eldon Zacek15-Mar-07 6:57
Eldon Zacek15-Mar-07 6:57 
AnswerRe: Evalutating an If statement Pin
Colin Angus Mackay15-Mar-07 7:01
Colin Angus Mackay15-Mar-07 7:01 
AnswerRe: Evalutating an If statement Pin
Marcus J. Smith15-Mar-07 7:14
professionalMarcus J. Smith15-Mar-07 7:14 
GeneralRe: Evalutating an If statement Pin
Eldon Zacek15-Mar-07 7:19
Eldon Zacek15-Mar-07 7:19 
GeneralRe: Evalutating an If statement Pin
Marcus J. Smith15-Mar-07 7:34
professionalMarcus J. Smith15-Mar-07 7:34 
GeneralRe: Evalutating an If statement Pin
nlarson1115-Mar-07 12:24
nlarson1115-Mar-07 12:24 
Questionhow to call add(int i,int j) function in a mfc dll from vb application. Pin
punit singh15-Mar-07 6:13
punit singh15-Mar-07 6:13 
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
AnswerRe: how to call add(int i,int j) function in a mfc dll from vb application. Pin
Marcus J. Smith15-Mar-07 6:48
professionalMarcus J. Smith15-Mar-07 6:48 
QuestionVB.6 or VB.net Pin
edgard haddad15-Mar-07 6:13
edgard haddad15-Mar-07 6:13 
AnswerRe: VB.6 or VB.net Pin
JUNEYT15-Mar-07 6:30
JUNEYT15-Mar-07 6:30 
AnswerRe: VB.6 or VB.net Pin
MatrixCoder15-Mar-07 8:05
MatrixCoder15-Mar-07 8:05 
Questionformat strings Pin
Marc Soleda15-Mar-07 5:46
Marc Soleda15-Mar-07 5:46 
AnswerRe: format strings Pin
JUNEYT15-Mar-07 6:23
JUNEYT15-Mar-07 6:23 
GeneralRe: format strings Pin
Marc Soleda15-Mar-07 6:49
Marc Soleda15-Mar-07 6:49 
GeneralRe: format strings Pin
Marcus J. Smith15-Mar-07 6:53
professionalMarcus J. Smith15-Mar-07 6:53 
AnswerRe: format strings Pin
Marcus J. Smith15-Mar-07 6:47
professionalMarcus J. Smith15-Mar-07 6:47 
GeneralRe: format strings Pin
Marc Soleda15-Mar-07 7:09
Marc Soleda15-Mar-07 7:09 
QuestionHow to make an XMLNode a serializable object Pin
ONeil Tomlinson15-Mar-07 5:17
ONeil Tomlinson15-Mar-07 5:17 
AnswerRe: How to make an XMLNode a serializable object Pin
Marcus J. Smith15-Mar-07 5:24
professionalMarcus J. Smith15-Mar-07 5:24 
GeneralRe: How to make an XMLNode a serializable object Pin
ONeil Tomlinson16-Mar-07 2:00
ONeil Tomlinson16-Mar-07 2:00 
QuestionWeb Explorer Pin
- Zero -15-Mar-07 4:36
- Zero -15-Mar-07 4:36 
AnswerRe: Web Explorer Pin
JUNEYT15-Mar-07 5:08
JUNEYT15-Mar-07 5:08 
AnswerRe: Web Explorer Pin
MatrixCoder15-Mar-07 5:09
MatrixCoder15-Mar-07 5:09 
GeneralRe: Web Explorer Pin
- Zero -15-Mar-07 8:38
- Zero -15-Mar-07 8:38 

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.