Results 1 to 3 of 3

Thread: [RESOLVED] .C file to C++

  1. #1

    Thread Starter
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Resolved [RESOLVED] .C file to C++

    I've been asking some C-related questions on this forum. Though I do appreciate the replies and responses from you all, I hate being dependent upon others for what I consider basic knowledge.

    If I download either mingw or Visual C++ Express (still free I think).

    1) Would I be able to load and execute a .C file that uses only stdxxx headers?
    2) Would I be able to compile the file to a standard dll?

    If either of the above answers are "yes", then I'm off to do some downloading tonite.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  2. #2
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: .C file to C++

    Perhaps.
    If you are unlucky, the code might include something that is not portable and might not compile well with a compiler different than the one it was originally written for.

    And as far as compiling the code to a DLL, there are some extra bits involved to export functions and what not, but once you get the code to compile its no big thing.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  3. #3

    Thread Starter
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: .C file to C++

    Great. I've got VS2005 installed (from awhile ago). Have a question on how to get it running in debug build.

    When I run it in release mode, I can hit break points, but not all symbols are created/found. Therefore I can't see the value of key variables or add those items to a watch list.

    But when I run in debug mode, it requires me to attach to a process. Ok? It then runs and exits immediately without hitting a set break point.

    I'm close, but am kinda stuck now. I really need to see the variable values so I can follow the logic. Hints please.

    Nevermind, found solution -- turn optimizations off. If all goes well, I can now answer all my C-related questions by stepping thru the code. Thanx all.
    Last edited by LaVolpe; Dec 20th, 2011 at 08:26 PM.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

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