Spawning external applications
The Inprise newsgroups are a great
source of information for
C++Builder programmers. It seems
that barely a day goes by without someone asking the question, "How do I
execute an external application from my program?" This article will explain
how to spawn an external application from within your program using the
ShellExecute, WinExec, and CreateProcess Windows API functions. We'll
also show you how to make your application wait until a spawned external
program has terminated before continuing on.
Click here for more.
Using callbacks in DLLs
By far, the most common use of
DLLs is where the calling program
simply calls functions in the DLL.
Sometimes, however, the calling application needs periodic information from
the DLL while a process is taking place.
Callbacks allow you to do just that. This article will show
you how to implement a callback function in a DLL.
Click here for more.
|
Tracking down exporting problems
Functions and classes are made public by exporting them from the DLL. Once exported, other functions in the DLL, executable applications, and other DLLs can call functions and classes. However, problems can arise when exporting. If you have trouble exporting funtions or classes, run the TDUMP utility on the DLL. The TDUMP will provide information on symbols that are exported from the DLL. Examine this section of output from TDUMP to better understand where the problem occured. |
|