Click here to Skip to main content
15,898,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralConnect to MySQL from MFC Dlg Pin
QuickDeveloper18-Dec-07 23:58
QuickDeveloper18-Dec-07 23:58 
GeneralRe: Connect to MySQL from MFC Dlg Pin
Kiran Pinjala19-Dec-07 0:27
Kiran Pinjala19-Dec-07 0:27 
GeneralRe: Connect to MySQL from MFC Dlg Pin
Kiran Pinjala19-Dec-07 0:43
Kiran Pinjala19-Dec-07 0:43 
GeneralRe: Connect to MySQL from MFC Dlg Pin
Hamid_RT19-Dec-07 1:21
Hamid_RT19-Dec-07 1:21 
QuestionRe: Connect to MySQL from MFC Dlg Pin
David Crow19-Dec-07 2:39
David Crow19-Dec-07 2:39 
GeneralRe: Connect to MySQL from MFC Dlg Pin
QuickDeveloper19-Dec-07 19:07
QuickDeveloper19-Dec-07 19:07 
GeneralRe: Connect to MySQL from MFC Dlg Pin
David Crow20-Dec-07 2:23
David Crow20-Dec-07 2:23 
Generalread/write functions with dots as the last parameter Pin
Anthony Appleyard18-Dec-07 23:49
Anthony Appleyard18-Dec-07 23:49 
This type of construction so that a function with an indefinitely long parameter list can pass those parameterson to another function:

/*-----*/
void diprintf(HWND db,short c,char*fmt,...){char C[256];
vsprintf(C,fmt,(&fmt)+1);
SetDlgItemText(db,c,C);};
/*-----*/
short discanf(HWND db,short c,char*fmt,...){char C[256];
GetDlgItemText(db,c,C,256);
C[255]=0; return vsscanf(C,fmt,(&fmt)+1);}
/*-----*/

worked fine for me under Gnu C++ and Borland 4.5 C++, but my (free version) Visual C++ 2008 refused it with these error messages:

1>c:\2d\ppp_vc\ppp_vc\ppp.cpp(274) : error C2664: 'vsprintf' : cannot convert parameter 3 from 'char **' to 'va_list'
1>c:\2d\ppp_vc\ppp_vc\ppp.cpp(277) : error C3861: 'vsscanf': identifier not found

(plus the expected complaints about having char* instead of WCHAR* .)

I cannot find the info that I need in the online help.

Please what should these two funtions be corrected to for my Visual C++ 2008?
GeneralRe: read/write functions with dots as the last parameter Pin
CPallini19-Dec-07 0:09
mveCPallini19-Dec-07 0:09 
QuestionRe: read/write functions with dots as the last parameter Pin
David Crow19-Dec-07 2:43
David Crow19-Dec-07 2:43 
QuestionHow to get the choosed menu's caputer? Pin
vernchen18-Dec-07 23:09
vernchen18-Dec-07 23:09 
GeneralRe: How to get the choosed menu's caputer? Pin
David Crow19-Dec-07 2:53
David Crow19-Dec-07 2:53 
GeneralReturn more than one parameter from a single function Pin
CodingLover18-Dec-07 22:48
CodingLover18-Dec-07 22:48 
GeneralRe: Return more than one parameter from a single function Pin
jhwurmbach18-Dec-07 23:18
jhwurmbach18-Dec-07 23:18 
QuestionRe: Return more than one parameter from a single function Pin
CodingLover18-Dec-07 23:26
CodingLover18-Dec-07 23:26 
GeneralRe: Return more than one parameter from a single function Pin
jhwurmbach18-Dec-07 23:30
jhwurmbach18-Dec-07 23:30 
GeneralRe: Return more than one parameter from a single function Pin
Nelek18-Dec-07 23:31
protectorNelek18-Dec-07 23:31 
GeneralRe: Return more than one parameter from a single function Pin
CPallini18-Dec-07 23:56
mveCPallini18-Dec-07 23:56 
GeneralRe: Return more than one parameter from a single function Pin
CodingLover19-Dec-07 0:16
CodingLover19-Dec-07 0:16 
GeneralRe: Return more than one parameter from a single function Pin
Nelek18-Dec-07 23:28
protectorNelek18-Dec-07 23:28 
GeneralRe: Return more than one parameter from a single function Pin
CodingLover18-Dec-07 23:43
CodingLover18-Dec-07 23:43 
GeneralRe: Return more than one parameter from a single function Pin
Nelek19-Dec-07 0:24
protectorNelek19-Dec-07 0:24 
QuestionRe: Return more than one parameter from a single function Pin
Hamid_RT19-Dec-07 1:33
Hamid_RT19-Dec-07 1:33 
GeneralRe: Return more than one parameter from a single function Pin
CPallini19-Dec-07 2:17
mveCPallini19-Dec-07 2:17 
GeneralRe: Return more than one parameter from a single function Pin
David Crow19-Dec-07 3:00
David Crow19-Dec-07 3:00 

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.