Starting to learn c++ as an alternative to VB

This is a discussion on Starting to learn c++ as an alternative to VB within the C# Programming forums, part of the General Programming Boards category; Hey all, I've just developed an application in VB . One part of it distributes another little program to other ...

  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    5

    Starting to learn c++ as an alternative to VB

    Hey all,

    I've just developed an application in VB. One part of it distributes another little program to other people (by cd etc). Problem I face is that I don't want them to have to install .net just to use this little side program.

    So, I thought I would look for alternatives. Seems everyone uses c++ so thought I would head in that direction. I downloaded the new borland turbo C++ and got it all working.

    Problem I now face is that I don't know where to start with getting tutorials etc. I did the tutes on c++ programming for console stuff (Beginner tutorials on this site) and I'm ok with the code etc. but am needing to do advanced stuff like shellexecute and reading xml files. I can't get any working due to my lack of knowledge of the C++ language in that direction (does any of that make sense?)

    Cheers,

    Shags

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by shags_j View Post
    I downloaded the new borland turbo C++ and got it all working.
    New and Borland Turbo C++ doesn't seem to go together. As far as I know, the Turbo C++ was discontinued before year 2000.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    The easiest switch from VB would be to move to C# since it grabs some of its ideas from VB, C++, and Java. I'm not discouraging you from learning C++ but if you are learning C++ just for GUI you are looking at the language through the wrong lens. C++ is far more than GUI. C# is geared heavily towards easy GUI creation (although it can do more) and it's learning curve is far less than MFC. MFC is not hard but if you don't know C++ MFC will be extremely hard and confusing to pick up.

    Console C++ isn't going to get you anything in the way of GUI like VB. For GUI C++ you will either need to utilize a third party library, MFC, or C++/CLI.

    Sorry but I wouldn't be offering good advice if I did not recommend C# to you based on the content of your post.
    Last edited by VirtualAce; 07-22-2008 at 03:13 PM.

  4. #4
    Registered User
    Join Date
    Jul 2008
    Posts
    5
    Thanks heaps for the advice. I will look into C#. The reason I chose C++ is because I couldn'treally think of what language to use and I did a small amount of c++ in my degree years ago.

    Is there a package for using c# better than the new turbo c#?

    EDIT: I need to make sure that the final .exe does not require the .net framework.

    Cheers,

    Shags
    Last edited by shags_j; 07-22-2008 at 04:35 PM.

  5. #5
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    MSVS Express Edition available at Microsoft's site. It's free.

  6. #6
    Registered User
    Join Date
    Jul 2008
    Posts
    5
    but won't the final package require the .net framework?

  7. #7
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    It will install that for you. .NET framework is maintained by Microsoft whereas the C# standard and versions are maintained by ECMA. The CLR is Microsoft's version of the CLI and it will install along with Visual Studio Express.

  8. #8
    Registered User
    Join Date
    Jul 2008
    Posts
    5
    Sorry I meant won't my client need to install the .net framework to run the final package.

  9. #9
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    Re-read my post. When you install MSVS it will install .NET for you. When you want to run your C# code on another system your setup and deployment project will auto-detect the .NET dependency. When the setup is ran on another computer, it will install .NET. I believe setup and deployment requires .NET to even function so it has to be installed.

    Moving this to C# board since it is going in that direction.

  10. #10
    Registered User
    Join Date
    Jul 2008
    Posts
    5
    The secondary package however I didn't want to install. The idea is it is meant to run an .exe directly from a cd on a clients computer.

    After looking through everthing myself I think I will take this course:

    Write a console application in c++ to check registry for existence of the correct version of .net for my application. If it exists, run the application and if not, direct the user to the .net setup @ microsoft (or even include the redist on the cd).

    Cheers for your help Bubba. And for future packages I think I will definitely look at c# as an option.

    Cheers,

    Shags

  11. #11
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    Quote Originally Posted by shags_j View Post
    I can't get any working due to my lack of knowledge of the C++ language in that direction
    It would help if you could post some code you tried.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. VB Calling Convention?!
    By minime6696 in forum Windows Programming
    Replies: 6
    Last Post: 03-27-2002, 03:39 PM
  2. Help a vb Programmer with some directshow code?
    By CliffRichard in forum C++ Programming
    Replies: 4
    Last Post: 12-05-2001, 06:34 PM
  3. Starting to program games in visual c++
    By Leeman_s in forum Game Programming
    Replies: 14
    Last Post: 11-05-2001, 04:37 PM
  4. CE and VB... oh the horror..
    By ober in forum Windows Programming
    Replies: 2
    Last Post: 08-30-2001, 07:20 PM
  5. Sending a string to C++ from VB 6.
    By VirtualAce in forum C++ Programming
    Replies: 4
    Last Post: 08-21-2001, 02:28 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21