Page 1 of 1

Linking C with C++ ??

Posted: Fri Jan 09, 2004 3:06 am
by Anonymous
Hello All,,,

I am working on a project using C++ and MFC programming.. and i am also working on another one using C Graphics.. the two projects are almost done,, but i am facing a problem, i need to cause the .exe file of the C project to open when a button in the MFC project is clicked..

The problem is that the C project needs some values from the MFC project to work correctly.. this is what i am not able to do.. How shall i change the C file so that it accepts parameters from a C++ one, and how can i pass the parameters from the C++???

I really wish if anyone can help me on this..
Thanks in advance..
Carol

Archived topic from Iceteks, old topic ID:1889, old post ID:15520

Linking C with C++ ??

Posted: Fri Jan 09, 2004 9:29 pm
by Red Squirrel
Is this two different applications? If yes, just make it so the mfc program executes the other exe file. I forget what the function for that is. I think it's WinExec().

Archived topic from Iceteks, old topic ID:1889, old post ID:15528