Click here to Skip to main content
15,920,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Log Window Pin
HPSI5-Aug-03 23:24
HPSI5-Aug-03 23:24 
GeneralRe: Log Window Pin
Chao Zuo5-Aug-03 23:56
Chao Zuo5-Aug-03 23:56 
GeneralADODB pointer Pin
_crs_5-Aug-03 22:34
_crs_5-Aug-03 22:34 
GeneralRe: ADODB pointer Pin
Chao Zuo5-Aug-03 22:46
Chao Zuo5-Aug-03 22:46 
GeneralRe: ADODB pointer Pin
Toni785-Aug-03 22:49
Toni785-Aug-03 22:49 
GeneralRe: ADODB pointer Pin
Chao Zuo5-Aug-03 23:12
Chao Zuo5-Aug-03 23:12 
GeneralRe: ADODB pointer Pin
_crs_5-Aug-03 23:07
_crs_5-Aug-03 23:07 
GeneralConverting hexadecimal to decimal in C++ Pin
Member 1609885-Aug-03 22:15
Member 1609885-Aug-03 22:15 
GeneralRe: Converting hexadecimal to decimal in C++ Pin
Chao Zuo5-Aug-03 22:35
Chao Zuo5-Aug-03 22:35 
GeneralRe: Converting hexadecimal to decimal in C++ Pin
RChin5-Aug-03 22:36
RChin5-Aug-03 22:36 
GeneralRe: Converting hexadecimal to decimal in C++ Pin
Toni785-Aug-03 22:47
Toni785-Aug-03 22:47 
Generala clipboard question Pin
Chao Zuo5-Aug-03 21:44
Chao Zuo5-Aug-03 21:44 
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 
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 

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.