Click here to Skip to main content
15,914,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC manipulating data Pin
David Crow18-Jan-05 6:12
David Crow18-Jan-05 6:12 
GeneralRe: MFC manipulating data Pin
hugPW18-Jan-05 6:32
hugPW18-Jan-05 6:32 
GeneralRe: MFC manipulating data Pin
David Crow18-Jan-05 7:04
David Crow18-Jan-05 7:04 
GeneralRe: MFC manipulating data Pin
hugPW18-Jan-05 7:39
hugPW18-Jan-05 7:39 
GeneralDisable/Enable OK button in a property sheet Pin
Rajesh_K_Sharma18-Jan-05 1:01
Rajesh_K_Sharma18-Jan-05 1:01 
GeneralRe: Disable/Enable OK button in a property sheet Pin
Selvam R18-Jan-05 2:15
professionalSelvam R18-Jan-05 2:15 
Generalusing CDHtmlDialog for 2 html files Pin
lirik17-Jan-05 23:52
lirik17-Jan-05 23:52 
GeneralI have a Serious Problem Pin
pubududilena17-Jan-05 22:57
pubududilena17-Jan-05 22:57 
hi all,
I am using SQLConfigDataSource(HWND hwndParent,UINT fRequest, LPCSTR lpszDriver, LPCSTR lpszAttributes) Method to configure the ODBC datasource..

The Problem is I have used the above Method Like this:-
SQLConfigDataSource(NULL,ODBC_ADD_DSN, "SQL Server\0","DSN=myfinger\0" "Server=SERVER\0" "Database=emp\0");
This working perfectly and create the DSN..
Now I want to give the DSN ,server ,Database Name as variables..

But when I create create Like this This is not working..
CString var4,v1,v2,v3;
v1="myfinger";
v2="SERVER";
v3="emp";

var4.Format(" \"DSN=%s\0\" \"Server=%s\0\" \"Database=%s\0\" ",v1,v2,v3);

SQLConfigDataSource(NULL,ODBC_ADD_DSN, "SQL Server\0",var4);

But No error When compilling the Program..But Not creating the DSN..

So please any know the correct way to show this please send me a reply...
Thanks in advance..
GeneralRe: I have a Serious Problem Pin
David Crow18-Jan-05 4:17
David Crow18-Jan-05 4:17 
GeneralRe: I have a Serious Problem Pin
Blake Miller18-Jan-05 4:41
Blake Miller18-Jan-05 4:41 
GeneralRe: I have a Serious Problem Pin
pubududilena18-Jan-05 15:14
pubududilena18-Jan-05 15:14 
GeneralRe: I have a Serious Problem Pin
Blake Miller19-Jan-05 4:13
Blake Miller19-Jan-05 4:13 
GeneralRe: I have a Serious Problem Pin
pubududilena19-Jan-05 21:06
pubududilena19-Jan-05 21:06 
GeneralAnother question to threads Pin
doneirik17-Jan-05 22:49
doneirik17-Jan-05 22:49 
GeneralRe: Another question to threads Pin
Antony M Kancidrowski18-Jan-05 2:34
Antony M Kancidrowski18-Jan-05 2:34 
GeneralRe: Another question to threads Pin
includeh1018-Jan-05 4:02
includeh1018-Jan-05 4:02 
QuestionHow change the backgound Color of Dialog Form Pin
phijophlip17-Jan-05 21:58
phijophlip17-Jan-05 21:58 
AnswerRe: How change the backgound Color of Dialog Form Pin
Aamir Butt17-Jan-05 23:08
Aamir Butt17-Jan-05 23:08 
AnswerIn Conjunction With Mr Bhatt Pin
ThatsAlok18-Jan-05 0:41
ThatsAlok18-Jan-05 0:41 
GeneralRe: In Conjunction With Mr Bhatt Pin
Aamir Butt18-Jan-05 1:07
Aamir Butt18-Jan-05 1:07 
GeneralRe: In Conjunction With Mr Bhatt Pin
ThatsAlok18-Jan-05 6:45
ThatsAlok18-Jan-05 6:45 
GeneralRe: In Conjunction With Mr Bhatt Pin
Aamir Butt18-Jan-05 19:19
Aamir Butt18-Jan-05 19:19 
AnswerRe: How change the backgound Color of Dialog Form Pin
Aamir Butt18-Jan-05 1:05
Aamir Butt18-Jan-05 1:05 
QuestionService description??? Pin
rdhamija17-Jan-05 21:32
rdhamija17-Jan-05 21:32 
AnswerRe: Service description??? Pin
22491717-Jan-05 23:15
22491717-Jan-05 23:15 

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.