Click here to Skip to main content
16,005,552 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Can I delete the .ncb and .opt files? Pin
KarstenK30-May-02 3:28
mveKarstenK30-May-02 3:28 
AnswerRe: Can I delete the .ncb and .opt files? Pin
Renjith Ramachandran30-May-02 3:43
Renjith Ramachandran30-May-02 3:43 
GeneralResource Question Pin
Renjith Ramachandran30-May-02 3:13
Renjith Ramachandran30-May-02 3:13 
GeneralRe: Resource Question Pin
Paul M Watt30-May-02 5:32
mentorPaul M Watt30-May-02 5:32 
GeneralRe: Resource Question Pin
Renjith Ramachandran30-May-02 6:21
Renjith Ramachandran30-May-02 6:21 
GeneralRe: Resource Question Pin
Bill Wilson30-May-02 12:09
Bill Wilson30-May-02 12:09 
Generalproblem reading string from registry Pin
Lucky the code machine30-May-02 2:18
Lucky the code machine30-May-02 2:18 
GeneralRe: problem reading string from registry Pin
Claudius Mokler30-May-02 3:11
Claudius Mokler30-May-02 3:11 
To use the CRegKey::QueryValue(LPTSTR szValue, LPCTSTR lpszValueName, DWORD* pdwCount) overload,
you'll have to have an allocated (or static) buffer for szValue and the size of the buffer in a variable pointed to by pdwCount before calling QueryValue()

<br />
// here's the maximum length of our text buffer<br />
#define TEXTLENGTH 120<br />
<br />
// that's the text buffer itself<br />
char text[TEXTLENGTH]; <br />
<br />
// here's a variable used both to tell QueryValue about the<br />
// buffer's length and to get QueryValue's length answer<br />
DWORD textlength;<br />
<br />
// the registry key object<br />
CRegKey reg;<br />
<br />
// stuff omitted<br />
(... snip ...)<br />
<br />
// initialize with maximum length of text buffer<br />
textlength = TEXTLENGTH;<br />
<br />
// query the registry key<br />
reg.QueryValue(text, "ProductName", &textlength);<br />
<br />
// now textlength is changed, it contains the actual length<br />
// of the text retrieved from the registry.<br />

GeneralRe: problem reading string from registry Pin
Lucky the code machine30-May-02 3:31
Lucky the code machine30-May-02 3:31 
GeneralRe: problem reading string from registry Pin
Renjith Ramachandran30-May-02 3:30
Renjith Ramachandran30-May-02 3:30 
GeneralRe: problem reading string from registry Pin
Le centriste30-May-02 3:32
Le centriste30-May-02 3:32 
QuestionBlitting two different graphic bit depths? Pin
Alan Chambers30-May-02 1:59
Alan Chambers30-May-02 1:59 
AnswerRe: Blitting two different graphic bit depths? Pin
Paul M Watt30-May-02 5:35
mentorPaul M Watt30-May-02 5:35 
GeneralCD ROM Information Pin
30-May-02 1:30
suss30-May-02 1:30 
GeneralRe: CD ROM Information Pin
Ed Gadziemski30-May-02 11:13
professionalEd Gadziemski30-May-02 11:13 
GeneralRe: CD ROM Information Pin
30-May-02 19:42
suss30-May-02 19:42 
GeneralRe: CD ROM Information Pin
30-May-02 19:43
suss30-May-02 19:43 
GeneralSetTitle on CDoc class Pin
LittleYellowBird30-May-02 1:33
LittleYellowBird30-May-02 1:33 
GeneralRe: SetTitle on CDoc class Pin
Michael P Butler30-May-02 1:47
Michael P Butler30-May-02 1:47 
GeneralRe: SetTitle on CDoc class Pin
LittleYellowBird30-May-02 2:02
LittleYellowBird30-May-02 2:02 
GeneralRe: SetTitle on CDoc class Pin
Michael P Butler30-May-02 2:09
Michael P Butler30-May-02 2:09 
GeneralRe: SetTitle on CDoc class Pin
LittleYellowBird30-May-02 3:55
LittleYellowBird30-May-02 3:55 
GeneralPGPEncode fails for RSA keys Pin
Nish Nishant30-May-02 1:14
sitebuilderNish Nishant30-May-02 1:14 
GeneralRe: PGPEncode fails for RSA keys Pin
Renjith Ramachandran30-May-02 3:49
Renjith Ramachandran30-May-02 3:49 
QuestionHi,all, I want to paint a bias and never use LineTo(),Because I want get every point's coordinate in the bias.How can i do? Pin
30-May-02 0:43
suss30-May-02 0:43 

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.