Click here to Skip to main content
15,908,843 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: ,ow to create Dyanamic DSN in Access database using vc++ Pin
David Crow6-Sep-05 5:01
David Crow6-Sep-05 5:01 
QuestionHow to develop a network printer monitor? Pin
wangdave5-Sep-05 20:25
wangdave5-Sep-05 20:25 
QuestionPlz Help : Urgent Pin
parims5-Sep-05 19:30
parims5-Sep-05 19:30 
AnswerRe: Plz Help : Urgent Pin
Vikrant for VC++5-Sep-05 20:06
Vikrant for VC++5-Sep-05 20:06 
AnswerRe: Plz Help : Urgent Pin
Marc Soleda5-Sep-05 20:27
Marc Soleda5-Sep-05 20:27 
GeneralRe: Plz Help : Urgent Pin
Marc Soleda5-Sep-05 20:47
Marc Soleda5-Sep-05 20:47 
AnswerRe: Plz Help : Urgent Pin
David Crow6-Sep-05 5:08
David Crow6-Sep-05 5:08 
QuestionAbout MS Access Database in vc++ Pin
parims5-Sep-05 19:28
parims5-Sep-05 19:28 
In my application .,
I am hard coded i.e., I created DSN,Database name and Table name as 'MyDSNName','MyDBName' and 'MyTable' respectively.

If I build a SetUp file for this appli., This application works only in my System .But it is not worked in other system.

So I want Flexible code ,which generates the default Databse and Table to the end user.,
(Then It will works in all Machines)

I hardcoded the code like this.,
--------------------->

CString sql,sDate;

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

CDatabase db;

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

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

CRecordset recset( &db);



Praveen Chowdam Kumar
AnswerRe: About MS Access Database in vc++ Pin
Vikrant for VC++5-Sep-05 20:07
Vikrant for VC++5-Sep-05 20:07 
Questionwhy runtime error? what is difference? Pin
G Haranadh5-Sep-05 19:01
G Haranadh5-Sep-05 19:01 
AnswerRe: why runtime error? what is difference? Pin
prasad_som5-Sep-05 19:27
prasad_som5-Sep-05 19:27 
AnswerRe: why runtime error? what is difference? Pin
Giannakakis Kostas5-Sep-05 20:06
professionalGiannakakis Kostas5-Sep-05 20:06 
GeneralRe: why runtime error? what is difference? Pin
G Haranadh5-Sep-05 21:04
G Haranadh5-Sep-05 21:04 
GeneralRe: why runtime error? what is difference? Pin
toxcct5-Sep-05 21:09
toxcct5-Sep-05 21:09 
QuestionClass wizard problem Pin
heavenode5-Sep-05 18:57
heavenode5-Sep-05 18:57 
AnswerRe: Class wizard problem Pin
MailtoGops5-Sep-05 22:01
MailtoGops5-Sep-05 22:01 
AnswerRe: Class wizard problem Pin
nguyenvhn5-Sep-05 22:18
nguyenvhn5-Sep-05 22:18 
AnswerRe: Class wizard problem Pin
heavenode5-Sep-05 22:24
heavenode5-Sep-05 22:24 
QuestionText data conversion into different file formats Pin
Member 3618575-Sep-05 18:49
Member 3618575-Sep-05 18:49 
QuestionHelp, error when deleting m_p in destructor. Pin
followait5-Sep-05 18:49
followait5-Sep-05 18:49 
AnswerRe: Help, error when deleting m_p in destructor. Pin
khan++5-Sep-05 19:03
khan++5-Sep-05 19:03 
GeneralIt's my careless, it should be delete[] p, but still have a error. Pin
followait5-Sep-05 19:33
followait5-Sep-05 19:33 
GeneralRe: It's my careless, it should be delete[] p, but still have a error. Pin
Jose Lamas Rios5-Sep-05 19:50
Jose Lamas Rios5-Sep-05 19:50 
AnswerRe: Help, error when deleting m_p in destructor. Pin
MailtoGops5-Sep-05 21:57
MailtoGops5-Sep-05 21:57 
AnswerThanks. Pin
followait5-Sep-05 22:56
followait5-Sep-05 22:56 

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.