Click here to Skip to main content
15,881,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: GetScreenResolution Pin
led mike28-Apr-09 4:31
led mike28-Apr-09 4:31 
Questionwhat's the average cpu tick counts for a CView's WM_PAINT handler? Pin
flyingxu28-Apr-09 4:17
flyingxu28-Apr-09 4:17 
AnswerRe: what's the average cpu tick counts for a CView's WM_PAINT handler? Pin
led mike28-Apr-09 4:28
led mike28-Apr-09 4:28 
QuestionHow to limit size of edit box Pin
amitovoip28-Apr-09 3:55
amitovoip28-Apr-09 3:55 
QuestionRe: How to limit size of edit box Pin
David Crow28-Apr-09 4:34
David Crow28-Apr-09 4:34 
QuestionSQL & c++ Pin
komofilms7728-Apr-09 2:57
komofilms7728-Apr-09 2:57 
QuestionRe: SQL & c++ Pin
David Crow28-Apr-09 3:06
David Crow28-Apr-09 3:06 
AnswerMaybe an example can help? Pin
gerens28-Apr-09 3:29
gerens28-Apr-09 3:29 
Hope, the example below can help


graph::addvalue(int nummer, CString typ, CString kstartrnummer,int zeile, int spalte, CString betrag, CString text, int r, int g, int b)
{
	CString abfrage;
	char strbetrag[100];
	CString cnummer, czeile, cspalte, cr, cg, cb;

	sprintf(strbetrag, "%i\0", nummer);
	cnummer = strbetrag;
	sprintf(strbetrag, "%i\0", zeile);
	czeile = strbetrag;
	sprintf(strbetrag, "%i\0", spalte);
	cspalte = strbetrag;
	sprintf(strbetrag, "%i\0", r);
	cr = strbetrag;
	sprintf(strbetrag, "%i\0", g);
	cg = strbetrag;
	sprintf(strbetrag, "%i\0", b);
	cb = strbetrag;
	text.Replace("'", "''");

	abfrage = "INSERT INTO Graph (Nummer, Typ, Kstartrnummer, Zeile, Spalte, Text, Betrag, r, g, b) VALUES (" ;
	abfrage = abfrage + cnummer + ", '" + typ + "', " + kstartrnummer + ", " +  czeile;
	abfrage = abfrage + ", " + cspalte + ", '" + text + "', ";
	abfrage = abfrage + betrag + ", " + cr + ", " + cg + ", " + cb +")";
	db.ExecuteSQL(abfrage);
}


Good luck, Gérard
GeneralRe: Maybe an example can help? Pin
komofilms7728-Apr-09 19:41
komofilms7728-Apr-09 19:41 
Questioncorrect way to copy bstr ? Pin
Mogaambo28-Apr-09 1:44
Mogaambo28-Apr-09 1:44 
AnswerRe: correct way to copy bstr ? Pin
_AnsHUMAN_ 28-Apr-09 1:55
_AnsHUMAN_ 28-Apr-09 1:55 
AnswerRe: correct way to copy bstr ? Pin
Garth J Lancaster28-Apr-09 1:58
professionalGarth J Lancaster28-Apr-09 1:58 
GeneralRe: correct way to copy bstr ? Pin
Mogaambo28-Apr-09 2:09
Mogaambo28-Apr-09 2:09 
GeneralRe: correct way to copy bstr ? Pin
tolw28-Apr-09 2:29
tolw28-Apr-09 2:29 
GeneralRe: correct way to copy bstr ? Pin
CPallini28-Apr-09 3:11
mveCPallini28-Apr-09 3:11 
GeneralRe: correct way to copy bstr ? Pin
Mogaambo28-Apr-09 3:51
Mogaambo28-Apr-09 3:51 
GeneralRe: correct way to copy bstr ? Pin
CPallini28-Apr-09 5:16
mveCPallini28-Apr-09 5:16 
QuestionNeed To create a plugin for adob photoshop. Pin
bankey101028-Apr-09 1:28
bankey101028-Apr-09 1:28 
AnswerRe: Need To create a plugin for adob photoshop. Pin
_AnsHUMAN_ 28-Apr-09 1:50
_AnsHUMAN_ 28-Apr-09 1:50 
Questionfiring a http url in c Pin
Kiran Pinjala28-Apr-09 0:35
Kiran Pinjala28-Apr-09 0:35 
AnswerRe: firing a http url in c Pin
Rajkumar R28-Apr-09 1:26
Rajkumar R28-Apr-09 1:26 
QuestionSetScrollInfo() not calling OnSize() of CDialog Pin
Member 438103628-Apr-09 0:32
Member 438103628-Apr-09 0:32 
AnswerRe: SetScrollInfo() not calling OnSize() of CDialog Pin
girishog28-Apr-09 1:04
girishog28-Apr-09 1:04 
QuestionScreeshot in wince Pin
ujjawal kumar28-Apr-09 0:15
ujjawal kumar28-Apr-09 0:15 
QuestionRe: Screeshot in wince Pin
David Crow28-Apr-09 3:09
David Crow28-Apr-09 3: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.