Click here to Skip to main content
15,917,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to read only integers from a file with c Pin
reemamjd15-Jan-12 3:01
reemamjd15-Jan-12 3:01 
AnswerRe: how to read only integers from a file with c Pin
venomation15-Jan-12 3:25
venomation15-Jan-12 3:25 
GeneralRe: how to read only integers from a file with c Pin
Richard MacCutchan15-Jan-12 3:34
mveRichard MacCutchan15-Jan-12 3:34 
GeneralRe: how to read only integers from a file with c Pin
reemamjd15-Jan-12 4:11
reemamjd15-Jan-12 4:11 
GeneralRe: how to read only integers from a file with c Pin
Richard MacCutchan15-Jan-12 4:58
mveRichard MacCutchan15-Jan-12 4:58 
QuestionRe: how to read only integers from a file with c Pin
David Crow15-Jan-12 16:24
David Crow15-Jan-12 16:24 
GeneralRe: how to read only integers from a file with c Pin
reemamjd15-Jan-12 18:45
reemamjd15-Jan-12 18:45 
GeneralRe: how to read only integers from a file with c Pin
David Crow16-Jan-12 3:13
David Crow16-Jan-12 3:13 
Questionin win32api how can i make button shaded ? Pin
a1_shay14-Jan-12 11:51
a1_shay14-Jan-12 11:51 
AnswerRe: in win32api how can i make button shaded ? Pin
«_Superman_»14-Jan-12 15:58
professional«_Superman_»14-Jan-12 15:58 
Questionfunction pointers Pin
shiftwik14-Jan-12 10:08
shiftwik14-Jan-12 10:08 
AnswerRe: function pointers Pin
«_Superman_»14-Jan-12 16:23
professional«_Superman_»14-Jan-12 16:23 
GeneralRe: function pointers Pin
shiftwik14-Jan-12 18:42
shiftwik14-Jan-12 18:42 
QuestionDrawing Pin
columbos1492714-Jan-12 8:46
columbos1492714-Jan-12 8:46 
AnswerRe: Drawing Pin
«_Superman_»14-Jan-12 16:13
professional«_Superman_»14-Jan-12 16:13 
QuestionForm view is showing it's background on the screen. Pin
Amrit Agr13-Jan-12 23:33
Amrit Agr13-Jan-12 23:33 
AnswerRe: Form view is showing it's background on the screen. Pin
Richard MacCutchan14-Jan-12 3:27
mveRichard MacCutchan14-Jan-12 3:27 
Questionproblem with api messagebox Pin
a1_shay13-Jan-12 21:47
a1_shay13-Jan-12 21:47 
AnswerRe: problem with api messagebox Pin
Richard MacCutchan13-Jan-12 22:15
mveRichard MacCutchan13-Jan-12 22:15 
AnswerRe: problem with api messagebox Pin
Satheesh154614-Jan-12 5:07
Satheesh154614-Jan-12 5:07 
AnswerRe: problem with api messagebox Pin
«_Superman_»14-Jan-12 16:32
professional«_Superman_»14-Jan-12 16:32 
QuestionWhen click on item in tree control corresponding item in list control should get selected. Pin
VCProgrammer13-Jan-12 19:11
VCProgrammer13-Jan-12 19:11 
QuestionRe: When click on item in tree control corresponding item in list control should get selected. Pin
Richard MacCutchan13-Jan-12 22:12
mveRichard MacCutchan13-Jan-12 22:12 
AnswerRe: When click on item in tree control corresponding item in list control should get selected. Pin
«_Superman_»14-Jan-12 16:35
professional«_Superman_»14-Jan-12 16:35 
QuestionGlobal variable Pin
1.fcb191313-Jan-12 10:57
1.fcb191313-Jan-12 10:57 
I've created win32 API project for work with mysql. Each window form has *.cpp file. In window "main.cpp" I created connection to MySQL database via variable MYSQL * mysql5. Another window named "income" (income.cpp) must use variable "mysql5" to create a question.
How can I obtain the value "mysql5" in file income.cpp?

main.cpp:
#include "main.h"
mysql_real_connect(mysql5, HOST, USER, PASSWORD , DATABASE , PORT, UNIX, 0 );
main.h:
static MYSQL *mysql5;
income.cpp:
mysql_query( mysql5, "question" ); //now suddenly mysql5 is null

modified 13-Jan-12 17:24pm.

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.