C++ and VB.net

  • Thread starter Thread starter John
  • Start date Start date
J

John

I wrote a C++ function which has 2 integer parameters and returns an
integer. Is it possible to implement this function in vb.net?

int number = (int, int);
 
You asked basically the same question on 6/29, 7/4 and today. If you clarify
your question, like showing the c++ code, you'll probably get better help.
 
Do you mean something like:

Dim val1 as Int = 1
Dim val2 as Int = 2

Dim number as Int = SomeRoutine(val1, val2)
....

Private Function SomeRoutine (ByVal val1 As Integer, ByVal val2 as Integer)
_
As Integer

Return val1 + val2

End Function


--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
Co-author: Microsoft Expression Web Bible (upcoming)

************************************************
Think outside the box!
************************************************
 
Back
Top