Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Urgent: Pass the database info to another CPP files.

Status
Not open for further replies.

MindCracker

Programmer
Aug 27, 2002
21
0
0
GB
Can anyone tell me what to pass a database to another file. For example, I have a dialog box to open a database using ODBC. I retrieve all the information I want from the database. However, I do have another source file (not CDialog class) which is used to do the data manipulation. It needs some of the information from the database that has been opened in the dialog. How to do that?

This is an example of my code.

If GetDatabase == NULL
return false

I always receive this false statement as the result of not being able to recognise the opened database in the dialog box.

Please help...

Many thanks!



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top