Click here to Skip to main content
15,919,479 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCBitmapButton Pin
Marissa1825-Aug-03 21:24
Marissa1825-Aug-03 21:24 
GeneralRe: CBitmapButton Pin
Toni785-Aug-03 21:41
Toni785-Aug-03 21:41 
GeneralRe: CBitmapButton Pin
Marissa1825-Aug-03 21:43
Marissa1825-Aug-03 21:43 
GeneralRe: CBitmapButton Pin
Toni785-Aug-03 22:05
Toni785-Aug-03 22:05 
QuestionWhat is wrong in this piece of code... Pin
Exceter5-Aug-03 21:20
Exceter5-Aug-03 21:20 
AnswerRe: What is wrong in this piece of code... Pin
Toni785-Aug-03 21:51
Toni785-Aug-03 21:51 
GeneralRe: What is wrong in this piece of code... Pin
Exceter5-Aug-03 22:23
Exceter5-Aug-03 22:23 
GeneralRe: What is wrong in this piece of code... Pin
Toni785-Aug-03 22:44
Toni785-Aug-03 22:44 
reg.QueryStringValue(val,(Cname.GetBuffer(len)), &Cname_sz);
Comps[i].Create(_T(Cname),
                WS_CHILD|WS_VISIBLE|BS_AUTOCHECKBOX,
                tmpRect, this, 1210+i);
pt1.y += 30; pt2.y += 30;
Cname.Empty();


I do see something wrong with your code(but then again it is 3:43 am for me and I am very tired). Again I have never used VC7 so I could be wrong again, but a call to GetBuffer should be followed by a call to ReleaseBuffer (before you can use any other CString functions). Therefor, after QueryStringValue make a call to ReleaseBuffer.

Exceter wrote:
These functions exists in VC7, they do not make the error.

I didn't know that, that's why I refered VC6.Smile | :)

// Afterall, I realized that even my comment lines have bugs

When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
GeneralRe: What is wrong in this piece of code... Pin
Exceter5-Aug-03 23:15
Exceter5-Aug-03 23:15 
GeneralRe: What is wrong in this piece of code... Pin
Steve S5-Aug-03 23:25
Steve S5-Aug-03 23:25 
GeneralRe: What is wrong in this piece of code... Pin
Exceter5-Aug-03 23:43
Exceter5-Aug-03 23:43 
QuestionWhat is wrong in this piece of code... Pin
Exceter5-Aug-03 21:20
Exceter5-Aug-03 21:20 
AnswerRe: What is wrong in this piece of code... Pin
Alexander M.,6-Aug-03 0:01
Alexander M.,6-Aug-03 0:01 
Questionwhat is the message generated? Pin
BK Pradeep5-Aug-03 21:17
BK Pradeep5-Aug-03 21:17 
AnswerRe: what is the message generated? Pin
Fredrik Skog6-Aug-03 0:50
Fredrik Skog6-Aug-03 0:50 
GeneralTransparent gradient shading Pin
lob5-Aug-03 21:08
lob5-Aug-03 21:08 
GeneralRe: Transparent gradient shading Pin
PJ Arends5-Aug-03 22:56
professionalPJ Arends5-Aug-03 22:56 
GeneralRe: Transparent gradient shading Pin
lob5-Aug-03 23:04
lob5-Aug-03 23:04 
QuestionQuestion about new? Pin
pani685-Aug-03 19:49
pani685-Aug-03 19:49 
AnswerRe: Question about new? Pin
Anonymous5-Aug-03 21:16
Anonymous5-Aug-03 21:16 
AnswerRe: Question about new? Pin
Toni785-Aug-03 21:20
Toni785-Aug-03 21:20 
QuestionMake LIB file from a DLL or DEF file? Pin
JMPACS5-Aug-03 19:48
sussJMPACS5-Aug-03 19:48 
AnswerRe: Make LIB file from a DLL or DEF file? Pin
Garth J Lancaster5-Aug-03 20:50
professionalGarth J Lancaster5-Aug-03 20:50 
GeneralVisual C++ & passing array of structures from one dialog class to another Pin
Candleman5-Aug-03 19:23
Candleman5-Aug-03 19:23 
GeneralRe: Visual C++ & passing array of structures from one dialog class to another Pin
wb5-Aug-03 19:30
wb5-Aug-03 19:30 

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.