Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. parameter passing

parameter passing

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++helptutorial
10 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dalbhide bipin
    wrote on last edited by
    #1

    hi i m doing my proj in .net 2005. i m passing string to a fuction in c++ called funt() First the function is called from vb proj.. obj.funt(ByVal str As string). but i dont know how to accept it in c++ funt(). plz help me

    T D 2 Replies Last reply
    0
    • D dalbhide bipin

      hi i m doing my proj in .net 2005. i m passing string to a fuction in c++ called funt() First the function is called from vb proj.. obj.funt(ByVal str As string). but i dont know how to accept it in c++ funt(). plz help me

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      dalbhide bipin wrote:

      i m passing string to a fuction in c++ called funt()

      are you already doing it or is it what you want to do ? please show the code you've already tried if any


      [VisualCalc][Flags Beginner's Guide] | [Forums Guidelines][My Best Advice]

      D 1 Reply Last reply
      0
      • T toxcct

        dalbhide bipin wrote:

        i m passing string to a fuction in c++ called funt()

        are you already doing it or is it what you want to do ? please show the code you've already tried if any


        [VisualCalc][Flags Beginner's Guide] | [Forums Guidelines][My Best Advice]

        D Offline
        D Offline
        dalbhide bipin
        wrote on last edited by
        #3

        this is my form.vb file i calling function_1939 from vb obj.function_1939(ByVal str As string) this is my classlibrary.. function_1939 is my function... i want to accept the paramerters send thro VB void Parse_J1939:: J1939 :: function_1939() { }

        T 1 Reply Last reply
        0
        • D dalbhide bipin

          this is my form.vb file i calling function_1939 from vb obj.function_1939(ByVal str As string) this is my classlibrary.. function_1939 is my function... i want to accept the paramerters send thro VB void Parse_J1939:: J1939 :: function_1939() { }

          T Offline
          T Offline
          toxcct
          wrote on last edited by
          #4

          i understood that you already had some VB code. what i want you is to tell me what you have already done for the C++ part...


          [VisualCalc][Flags Beginner's Guide] | [Forums Guidelines][My Best Advice]

          D 1 Reply Last reply
          0
          • T toxcct

            i understood that you already had some VB code. what i want you is to tell me what you have already done for the C++ part...


            [VisualCalc][Flags Beginner's Guide] | [Forums Guidelines][My Best Advice]

            D Offline
            D Offline
            dalbhide bipin
            wrote on last edited by
            #5

            actually my library code is too big.. i cant paste it here this is my id.. dalbhidebipin@gmail.com we can chat with each other... if possible?

            T 1 Reply Last reply
            0
            • D dalbhide bipin

              actually my library code is too big.. i cant paste it here this is my id.. dalbhidebipin@gmail.com we can chat with each other... if possible?

              T Offline
              T Offline
              toxcct
              wrote on last edited by
              #6

              dalbhide bipin wrote:

              actually my library code is too big..

              thanksfully, i don't want it ALL, it want it RELEVANT ! and i don't want your email, we are on a forum, it is to sare knowledges and solutions. so i reiterate my question : will you please post a relevant piece of the C++ code that is about to get that parameter ? and PLEASE use <pre></pre> tags around your code sample ; don't paste it like that


              [VisualCalc][Flags Beginner's Guide] | [Forums Guidelines][My Best Advice]

              1 Reply Last reply
              0
              • D dalbhide bipin

                hi i m doing my proj in .net 2005. i m passing string to a fuction in c++ called funt() First the function is called from vb proj.. obj.funt(ByVal str As string). but i dont know how to accept it in c++ funt(). plz help me

                D Offline
                D Offline
                David Crow
                wrote on last edited by
                #7

                A little searching goes a long way... http://www.codeguru.com/forum/showthread.php?t=294616[^] http://www.flipcode.com/articles/article_vbdlls.shtml[^] http://www.dotnet247.com/247reference/msgs/14/73405.aspx[^] http://www.thescripts.com/forum/thread445333.html[^] http://www.codeproject.com/dll/XDllPt2.asp?df=100&forumid=34181&exp=0&select=1175197[^]


                "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

                "Judge not by the eye but by the heart." - Native American Proverb

                D 2 Replies Last reply
                0
                • D David Crow

                  A little searching goes a long way... http://www.codeguru.com/forum/showthread.php?t=294616[^] http://www.flipcode.com/articles/article_vbdlls.shtml[^] http://www.dotnet247.com/247reference/msgs/14/73405.aspx[^] http://www.thescripts.com/forum/thread445333.html[^] http://www.codeproject.com/dll/XDllPt2.asp?df=100&forumid=34181&exp=0&select=1175197[^]


                  "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

                  "Judge not by the eye but by the heart." - Native American Proverb

                  D Offline
                  D Offline
                  dalbhide bipin
                  wrote on last edited by
                  #8

                  hi i watching ur first link its perfect 1 i hve question should i add any header file for BSTR?

                  1 Reply Last reply
                  0
                  • D David Crow

                    A little searching goes a long way... http://www.codeguru.com/forum/showthread.php?t=294616[^] http://www.flipcode.com/articles/article_vbdlls.shtml[^] http://www.dotnet247.com/247reference/msgs/14/73405.aspx[^] http://www.thescripts.com/forum/thread445333.html[^] http://www.codeproject.com/dll/XDllPt2.asp?df=100&forumid=34181&exp=0&select=1175197[^]


                    "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

                    "Judge not by the eye but by the heart." - Native American Proverb

                    D Offline
                    D Offline
                    dalbhide bipin
                    wrote on last edited by
                    #9

                    hi i watching ur first link its perfect 1 i hve question should i add any header file for BSTR? thanks

                    D 1 Reply Last reply
                    0
                    • D dalbhide bipin

                      hi i watching ur first link its perfect 1 i hve question should i add any header file for BSTR? thanks

                      D Offline
                      D Offline
                      David Crow
                      wrote on last edited by
                      #10

                      dalbhide bipin wrote:

                      should i add any header file for BSTR?

                      Only if you want to be able to use a BSTR. Why would you unnecessarily add a header file?


                      "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

                      "Judge not by the eye but by the heart." - Native American Proverb

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups