Results 1 to 5 of 5

Thread: [RESOLVED] [convert C++ to VB] - how convert these line to VB?

  1. #1

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,961

    Resolved [RESOLVED] [convert C++ to VB] - how convert these line to VB?

    how can i convert these line to VB?
    Code:
    system("gcc -o c:\\path\\myfile.cpp myfile");
    VB6 2D Sprite control

    To live is difficult, but we do it.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [convert C++ to VB] - how convert these line to VB?

    VB6 or VB.NET?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    Re: [convert C++ to VB] - how convert these line to VB?

    That looks an instruction to shell execute the gcc compiler. If that's so then you can use Shell in VB6 or Process.Start in VB.Net.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  4. #4

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,961

    Re: [convert C++ to VB] - how convert these line to VB?

    Quote Originally Posted by Niya View Post
    That looks an instruction to shell execute the gcc compiler. If that's so then you can use Shell in VB6 or Process.Start in VB.Net.
    thanks
    VB6 2D Sprite control

    To live is difficult, but we do it.

  5. #5

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,961

    Re: [convert C++ to VB] - how convert these line to VB?

    (VB6 code)
    if the Dev C++ command line is:
    Code:
    gcc myfile.cpp -o myfile
    and for command line we use shell():
    Code:
    Shell App.Path & "\MinGW32\bin\gcc.exe -o " & App.Path & "\test.cpp " & App.Path & "\test.exe"
    (i have sure that test.cpp is correct, because i have tested)
    then why the exe isn't created?
    VB6 2D Sprite control

    To live is difficult, but we do it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width