Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

C++ Builder Question..

Posted on 2000-04-19
2
Medium Priority
?
244 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_
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 160 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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. …
  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 goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
Suggested Courses

610 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