Solved

C++ Builder Question..

Posted on 2000-04-19
2
202 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
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.

747 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

11 Experts available now in Live!

Get 1:1 Help Now