C++ and VB.net

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John

    #1

    C++ and VB.net

    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);


  • Scott M.

    #2
    Re: C++ and VB.net

    Sure, why wouldn't it be?


    "John" <someone@nowher e.netwrote in message
    news:wdBki.55$p 77.35@newsfe12. lga...
    >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);
    >

    Comment

    • =?Utf-8?B?TW9kZWxCdWlsZGVy?=

      #3
      RE: C++ and VB.net

      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.

      "John" wrote:
      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);
      >
      >
      >

      Comment

      • Cowboy \(Gregory A. Beamer\)

        #4
        Re: C++ and VB.net

        Do you mean something like:

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

        Dim number as Int = SomeRoutine(val 1, 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

        Co-author: Microsoft Expression Web Bible (upcoming)

        *************** *************** *************** ***
        Think outside the box!
        *************** *************** *************** ***
        "John" <someone@nowher e.netwrote in message
        news:wdBki.55$p 77.35@newsfe12. lga...
        >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);
        >

        Comment

        Working...