Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I have created a Windows form with name form1.h
In this form, I have created a button. I have some abc.cpp file.
Now on Button click, i want to run the abc.cpp file.
I have added this abc.cpp to source files of my project.
How to do that?
Thank u in advance....
Posted

Strictly speaking you don't run .cpp files, you run applications, i.e. executable files (i.e. compiled source files).
I strongly suggest you reading a tutorial on writing Windows applications (either using MFC or Win32 API, depending on your preferences). You may also have a look on a simple application example (again either an MFC provided one or one shipped with the Windows Platform SDK).
:-)
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 5-Apr-11 16:11pm    
Hard to say what to advice in the case of such confusion. A good attempt, I think, my 5.
--SA
[no name] 6-Apr-11 3:32am    
If one has an cpp interpreter program, then one can run cpp files by clicking button.
CPallini 6-Apr-11 4:48am    
Technically, however, you're running the interpreter.
Can I suggest that you work your way through a few of the videos from this page[^]. You will find the answer to your question in them.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 5-Apr-11 16:10pm    
Maybe this is adequate to the OP's level. I feel big confusion. Can I suggest a vote of 5?
--SA
MartinTaylor 5-Apr-11 16:13pm    
No doubt im a beginner but whats OP level?
Henry Minute 5-Apr-11 16:14pm    
OP = Original Poster.
CPallini 5-Apr-11 16:13pm    
Good one, my 5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900