Click here to Skip to main content
15,897,891 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VC6 compiler bug? Pin
Ravi Bhavnani5-Sep-05 5:45
professionalRavi Bhavnani5-Sep-05 5:45 
GeneralRe: VC6 compiler bug? Pin
Gary R. Wheeler5-Sep-05 5:49
Gary R. Wheeler5-Sep-05 5:49 
GeneralRe: VC6 compiler bug? Pin
Bob Stanneveld5-Sep-05 9:46
Bob Stanneveld5-Sep-05 9:46 
GeneralRe: VC6 compiler bug? Pin
Ravi Bhavnani5-Sep-05 9:53
professionalRavi Bhavnani5-Sep-05 9:53 
QuestionHelp on WebBrowser Pin
Cao Jianlin5-Sep-05 5:05
Cao Jianlin5-Sep-05 5:05 
QuestionRegistry Editing C++ Pin
u6ik5-Sep-05 5:03
u6ik5-Sep-05 5:03 
AnswerRe: Registry Editing C++ Pin
u6ik5-Sep-05 6:44
u6ik5-Sep-05 6:44 
QuestionAbout MS Access Database in vc++:==Plz Help Pin
parims5-Sep-05 3:13
parims5-Sep-05 3:13 
Confused | :confused: Hello.,
I developed an application which stores some data.
Next I create a setup file .
The SetUp file (If I installed in my Machine) works fine in my System, But It can not works fine in other machines.

=>Because I hard coded the DSN name as 'MyDSNName'
and Database Table as 'MyDataBase'
--
I wrote code like this.-=-->
-------------


CString sql,sDate;

CString sDriver = "MICROSOFT ACCESS DRIVER (*.mdb)";
CString sDsn;
CString sFile = "c:\\mydatabase.mdb";

CDatabase db;

sDsn.Format("ODBC;DRIVER={%s};DSN='MyDsnName';DBQ=%s",sDriver,sFile);

db.Open(NULL,false,false,sDsn);

CRecordset recset( &db);

------------
>>I want flexible code ,which works fine for all machines.,

Praveen Chowdam Kumar
AnswerRe: About MS Access Database in vc++:==Plz Help Pin
Marc Soleda5-Sep-05 3:39
Marc Soleda5-Sep-05 3:39 
QuestionRemove Device Pin
Peter Prescher5-Sep-05 2:56
Peter Prescher5-Sep-05 2:56 
QuestionChanging Color of Ctrl Pin
Identity Undisclosed5-Sep-05 2:40
Identity Undisclosed5-Sep-05 2:40 
AnswerRe: Changing Color of Ctrl Pin
toxcct5-Sep-05 2:48
toxcct5-Sep-05 2:48 
AnswerRe: Changing Color of Ctrl Pin
seq-5-Sep-05 11:11
seq-5-Sep-05 11:11 
QuestionCHttp Pin
Tcpip20055-Sep-05 2:15
Tcpip20055-Sep-05 2:15 
AnswerRe: CHttpFile Pin
Tcpip20055-Sep-05 2:19
Tcpip20055-Sep-05 2:19 
GeneralRe: CHttpFile Pin
Neagoe Gabriel5-Sep-05 2:42
Neagoe Gabriel5-Sep-05 2:42 
GeneralRe: CHttpFile Pin
Tcpip20055-Sep-05 2:52
Tcpip20055-Sep-05 2:52 
GeneralRe: CHttpFile Pin
Neagoe Gabriel5-Sep-05 4:23
Neagoe Gabriel5-Sep-05 4:23 
AnswerRe: CHttp Pin
MailtoGops5-Sep-05 3:12
MailtoGops5-Sep-05 3:12 
AnswerRe: CHttp Pin
Gary R. Wheeler5-Sep-05 4:04
Gary R. Wheeler5-Sep-05 4:04 
Questionhwnd Pin
Ali Tavakol5-Sep-05 1:53
Ali Tavakol5-Sep-05 1:53 
AnswerRe: hwnd Pin
Bob Stanneveld5-Sep-05 2:00
Bob Stanneveld5-Sep-05 2:00 
Answer[Message Deleted] Pin
Neagoe Gabriel5-Sep-05 2:00
Neagoe Gabriel5-Sep-05 2:00 
AnswerRe: hwnd Pin
Neagoe Gabriel5-Sep-05 2:03
Neagoe Gabriel5-Sep-05 2:03 
Questionproblem with templates please help Pin
Member 22477495-Sep-05 0:03
Member 22477495-Sep-05 0:03 

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.