Hello,
A lot depends on the depth of integration that you desire. DB is designed to be a self contained game engine - though there are a lot of ways to get it to communicate with the outside world - and therefore it doesn't easily maintain communication with other independent apps.
Based on your question, I'll assume you know something about programming the windows API, you can pass information from a windows app in the form of a string and start a DBC app using the winapi command:
ShellExecute()
and in DBC, add the command:
cl$()
at the top of the code.
I've knocked together a quick example of this process. In the attached zip file, there are 2 programs.
start_dbc_app.exe
dbc_app.exe
Extract the files to the same directory. Launch start_dbc_app.exe and a dialog box will open up with a text box and an ok button. The text box is just to hint at the idea of entering a password. Whatever you type in this box will be part of what will be sent to DB.
Once you click on OK, what you typed will be stored in a string and then dbc_app.exe will be launched and that string will be passed to the command line variable in DBC called cl$().
It's from cl$() that you would parse out what ever information you want DB to use. In this case you mentioned currency.
The C code, excluding the window creation and control definitions, that does the actual launching looks like this:
// get text from edit box and check for zero length
if(!GetWindowText(hwndEdit,buffer,254)){
//error
MessageBox(hwnd,"Length of password must be at least 1 character","WARNING!",
MB_OK|MB_ICONWARNING);
}
else {
strcat(buffer," and any additional parameters \n attached to string");
MessageBox(hwnd,("%c",buffer),"Text sent to DB",
MB_OK|MB_ICONINFORMATION);
/* Start the db app by sending a shell execute command */
ShellExecute(hwnd,NULL,"dbc_app.EXE",buffer,NULL,SW_SHOWNORMAL);
/* Close the password window */
DestroyWindow(hwnd);
}
The full DBC code that gets launched looks like this:
received$=cl$()
set display mode 800,600,32
sync on
sync rate 0
autocam off
make object cube 1,25
position camera 0,0,-50
do
text 0,0,"The String received is :"
text 0,40,received$
turn object right 1,.2
sync
loop
Enjoy your day.