|
-
January 8th, 2009, 06:13 PM
#7
Re: library, qsort, class, static, member access question
Two things.....
1) You can just use C code "as-is" in a C++ program without modification. Just wrap the function declarations in "extern "C" {}" and you'll be able to link in the compiled C files just fine. I would suggest this over attempting to C++-ize the code if it's supremely messy, which it sounds to be.
2) Multi-threading is going to be very dicey for any code involving global variables. You typically need to use mutexes to excess in those situations. Just a warning.
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
|