Click here to Skip to main content
15,918,193 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
ALWAYS USE API s.............THEY ARE COOOOOOOOOOOOOL

EXAMPLE IS:

HKEY hkey;
DWORD dwSize;

char szInstalledapth[MAX_PATH*2]

if(RegOpenKeyEx(HKEY_LOCAL_MACHINE,"SOFTWARE\\Renjith\\",0,KEY_READ,&hkey)!=ERROR_SUCCESS)
{
MessageBox(HWND_DESKTOP,"Unable To oen registry","Registry Error",MB_ICONERROR);
return FALSE;
}


//Reading a String
dwSize=MAX_PATH;
if(RegQueryValueEx(hkey,"InstalledPath",0,NULL,(LPBYTE) szInstalledapth,&dwSize)!=ERROR_SUCCESS)
{
RegCloseKey(hkey);
return FALSE;

}


//////////READING A DWORD

DWORD dwLogLevel;

dwSize=sizeof(DWORD);
if(RegQueryValueEx(hkey,"LogLevel",0,NULL,(unsigned char*)&dwLogLevel,&dwSize)!=ERROR_SUCCESS)
{
RegCloseKey(hkey);
return FALSE;

}

//CLOSING THE REGISTRY


if(hkey)
RegCloseKey(hkey);



R_Renjith The True CP ian
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 
AnswerRe: Hi,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
mhamsa30-May-02 1:06
mhamsa30-May-02 1:06 
Generalthanks. but Polyline only paint points to dc, Pin
30-May-02 1:18
suss30-May-02 1:18 

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.