Click here to Skip to main content
15,911,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Running with 8-byte characters Pin
cmk19-Dec-07 13:14
cmk19-Dec-07 13:14 
GeneralRemote Debugging Pin
Rage19-Dec-07 4:10
professionalRage19-Dec-07 4:10 
GeneralSDI Windows Style Pin
CrocodileBuck19-Dec-07 3:40
CrocodileBuck19-Dec-07 3:40 
GeneralRe: SDI Windows Style Pin
led mike19-Dec-07 4:01
led mike19-Dec-07 4:01 
GeneralRe: SDI Windows Style Pin
CrocodileBuck19-Dec-07 4:11
CrocodileBuck19-Dec-07 4:11 
GeneralRe: SDI Windows Style Pin
led mike19-Dec-07 5:48
led mike19-Dec-07 5:48 
GeneralRe: SDI Windows Style Pin
Mark Salsbery19-Dec-07 6:41
Mark Salsbery19-Dec-07 6:41 
GeneralRe: SDI Windows Style Pin
led mike19-Dec-07 7:16
led mike19-Dec-07 7:16 
GeneralRe: SDI Windows Style Pin
Mark Salsbery19-Dec-07 7:21
Mark Salsbery19-Dec-07 7:21 
GeneralHotkey for menu Item Pin
paresh_joe19-Dec-07 3:19
paresh_joe19-Dec-07 3:19 
GeneralRe: Hotkey for menu Item [modified] Pin
DoomedOne19-Dec-07 4:40
DoomedOne19-Dec-07 4:40 
GeneralRegarding Memory leak Pin
adiveppanavar19-Dec-07 0:55
adiveppanavar19-Dec-07 0:55 
QuestionRe: Regarding Memory leak Pin
CPallini19-Dec-07 1:01
mveCPallini19-Dec-07 1:01 
GeneralRe: Regarding Memory leak Pin
Hamid_RT19-Dec-07 1:25
Hamid_RT19-Dec-07 1:25 
GeneralRe: Regarding Memory leak Pin
Don Box19-Dec-07 1:44
Don Box19-Dec-07 1:44 
QuestionRe: Regarding Memory leak Pin
David Crow19-Dec-07 2:35
David Crow19-Dec-07 2:35 
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 

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.