Solved

C++ Builder Question..

Posted on 2000-04-19
2
208 Views
Last Modified: 2010-04-02
Hi There,
I have a program, which is now working because of DrDelphi and AlexVirochovsky

I now have a problem.  would anyone know how to call run a function main of a program added into a C++ Builder Project.  I have Parse.cpp and I need to run that from Check syntax on my Main form.  Thanks for all the help so far and  any other help.

Elmo_
0
Comment
Question by:Elmo_
2 Comments
 
LVL 1

Expert Comment

by:jbodom
ID: 2732685
If you're talking about running an executable from your current program, then have a look at Winapi function ShellExecute:

// include SHLOBJ.H in your CPP file.
#include <shlobj.h>

ShellExecute(Handle, "open", "yourprogam.exe", 0, "C:\\yourdirectory", "parameters","defaultdirectory",SW_HIDE);
 
0
 
LVL 1

Accepted Solution

by:
Jmccp earned 40 total points
ID: 2732727
First of all you should go to Projects and add the Parse.cpp file to your project.  Next,add the #include "Parse.cpp" or "Parse.h" if it has a header file at the top of your main form with the other includes.  Then you should be able to call the function(s) in Parse.cpp

Jim
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now