Click here to Skip to main content
15,904,023 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
private:
CButton Comps[5];
CRegKey reg;

.......
(reg.Open(HKEY_LOCAL_MACHINE, "Software\\ShutDown") == ERROR_SUCCESS ) {
reg.QueryDWORDValue("NumOfComputers", num);

POINT pt1, pt2;
pt1.x = 20; pt1.y = 20;
pt2.x = 120; pt2.y = 50;

ULONG Cname_sz;
char buf[20];
CString cn, Cname;
for (int i=0; i< maxComps; i++) {
CRect tmpRect(pt1, pt2);
LPCTSTR val = (LPCTSTR) itoa(i, buf, 10);

int len = Cname.GetLength();
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();
}
.........
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++ &amp; passing array of structures from one dialog class to another Pin
Candleman5-Aug-03 19:23
Candleman5-Aug-03 19:23 
GeneralRe: Visual C++ &amp; passing array of structures from one dialog class to another Pin
wb5-Aug-03 19:30
wb5-Aug-03 19:30 
GeneralUrgent!! How to register datagrid control when I distribute a software Pin
chq125-Aug-03 19:18
chq125-Aug-03 19:18 
GeneralRe: Urgent!! How to register datagrid control when I distribute a software Pin
Toni785-Aug-03 21:28
Toni785-Aug-03 21:28 
Generaltape sample required Pin
umairt5-Aug-03 19:16
umairt5-Aug-03 19:16 
GeneralStatus bar Pin
Gagnon Claude5-Aug-03 17:22
Gagnon Claude5-Aug-03 17:22 

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.