Click here to Skip to main content
15,886,873 members
Home / Discussions / Visual Basic
   

Visual Basic

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