Solved

C++ Builder Question..

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

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…
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…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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.

733 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