Click here to Skip to main content
16,010,650 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problems trying to "FINISH" a CPropertySheet Pin
Florin Ochiana12-Jan-03 11:46
Florin Ochiana12-Jan-03 11:46 
GeneralRe: Problems trying to "FINISH" a CPropertySheet Pin
Joaquín M López Muñoz12-Jan-03 11:48
Joaquín M López Muñoz12-Jan-03 11:48 
GeneralRe: Problems trying to "FINISH" a CPropertySheet Pin
Florin Ochiana12-Jan-03 12:06
Florin Ochiana12-Jan-03 12:06 
GeneralEdit Control Pin
sikrip12-Jan-03 10:50
sikrip12-Jan-03 10:50 
GeneralRe: Edit Control Pin
Joaquín M López Muñoz12-Jan-03 11:19
Joaquín M López Muñoz12-Jan-03 11:19 
QuestionInternetWriteFile sync/async? Pin
CaesarCZ12-Jan-03 10:39
CaesarCZ12-Jan-03 10:39 
GeneralOpening a CDatabase object Pin
Baatezu12-Jan-03 10:06
Baatezu12-Jan-03 10:06 
GeneralRe: Opening a CDatabase object Pin
Florin Ochiana12-Jan-03 11:31
Florin Ochiana12-Jan-03 11:31 
If there's only one database you can do this:

bd.Open(_T("Your-DSN"),FALSE, FALSE, _T("ODBC;UID=yourUserName;PWD=yourPass;Database=yourDb"));
if (bd.IsOpen())
// it's ok
else {
// error
}
If you want the user to select a database you can let him choose from a list (but not the one opened by ODBC). Then you try to open the connection with the database selected by the user with the code above. If there's any error you display an error message.


-----
We are what we repeatedly do. Excellence, then, is not an act, but a habit.

GeneralPlease Confirm: BUG in Windows XP shell Pin
NerdBoy8012-Jan-03 9:22
NerdBoy8012-Jan-03 9:22 
GeneralSetCursor() don't work!! Pin
Alex H 198312-Jan-03 8:44
Alex H 198312-Jan-03 8:44 
GeneralRe: SetCursor() don't work!! Pin
Dave Bryant12-Jan-03 9:16
Dave Bryant12-Jan-03 9:16 
GeneralRe: SetCursor() don't work!! Pin
includeh1013-Jan-03 0:27
includeh1013-Jan-03 0:27 
GeneralColors... Pin
JoeSox12-Jan-03 8:17
JoeSox12-Jan-03 8:17 
GeneralRe: Colors... Pin
Hesham Amin12-Jan-03 8:37
Hesham Amin12-Jan-03 8:37 
GeneralRe: Colors... Pin
JoeSox12-Jan-03 8:52
JoeSox12-Jan-03 8:52 
GeneralRe: Colors... Pin
Paul Silvernail12-Jan-03 8:47
Paul Silvernail12-Jan-03 8:47 
GeneralRe: Colors... Pin
JoeSox12-Jan-03 8:57
JoeSox12-Jan-03 8:57 
GeneralRe: Colors... Pin
PJ Arends12-Jan-03 9:48
professionalPJ Arends12-Jan-03 9:48 
GeneralJet Database without MFC Pin
Paul Silvernail12-Jan-03 6:49
Paul Silvernail12-Jan-03 6:49 
GeneralRe: Jet Database without MFC Pin
Stefan Pedersen12-Jan-03 7:51
Stefan Pedersen12-Jan-03 7:51 
General(no mfc) Listbox and icons Pin
int01h12-Jan-03 5:01
int01h12-Jan-03 5:01 
Generalcustom control help Pin
paully12-Jan-03 2:46
paully12-Jan-03 2:46 
GeneralPlay Wave File! Pin
Alex H 198312-Jan-03 2:03
Alex H 198312-Jan-03 2:03 
GeneralRe: Play Wave File! Pin
User 665812-Jan-03 2:14
User 665812-Jan-03 2:14 
GeneralRe: Play Wave File! Pin
Alex H 198312-Jan-03 2:26
Alex H 198312-Jan-03 2:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.