|
-
Dec 20th, 2011, 03:44 PM
#1
[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.
-
Dec 20th, 2011, 04:11 PM
#2
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.
-
Dec 20th, 2011, 08:03 PM
#3
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|