Click here to Skip to main content
15,921,454 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: menu from resource redrawing? Pin
567890123431-Dec-01 4:37
567890123431-Dec-01 4:37 
AnswerRe: menu from resource redrawing? Pin
Michael Dunn31-Dec-01 7:09
sitebuilderMichael Dunn31-Dec-01 7:09 
GeneralHow do i add the handler? Pin
Kuniva1-Jan-02 3:37
Kuniva1-Jan-02 3:37 
GeneralTextWidth and GDI+ (Anders is learning GDI+ part 3) Pin
Anders Molin31-Dec-01 1:51
professionalAnders Molin31-Dec-01 1:51 
GeneralRe: TextWidth and GDI+ (Anders is learning GDI+ part 3) Pin
Andreas Hallberg31-Dec-01 3:51
Andreas Hallberg31-Dec-01 3:51 
GeneralRe: TextWidth and GDI+ (Anders is learning GDI+ part 3) Pin
Anders Molin1-Jan-02 3:35
professionalAnders Molin1-Jan-02 3:35 
GeneralOO concept query Pin
sysdeamon31-Dec-01 1:38
sysdeamon31-Dec-01 1:38 
GeneralRe: OO concept query Pin
Aaron Schaefer31-Dec-01 4:17
Aaron Schaefer31-Dec-01 4:17 
GeneralRe: OO concept query Pin
Alvaro Mendez31-Dec-01 5:56
Alvaro Mendez31-Dec-01 5:56 
GeneralRe: OO concept query Pin
Michael Dunn31-Dec-01 7:11
sitebuilderMichael Dunn31-Dec-01 7:11 
General,TAPI Application Pin
vin30-Dec-01 19:02
vin30-Dec-01 19:02 
GeneralVC++ 6 enhancement Pin
IGx8930-Dec-01 15:49
IGx8930-Dec-01 15:49 
GeneralRe: VC++ 6 enhancement Pin
Nnamdi Onyeyiri31-Dec-01 7:42
Nnamdi Onyeyiri31-Dec-01 7:42 
GeneralRe: VC++ 6 enhancement Pin
User 66581-Jan-02 3:48
User 66581-Jan-02 3:48 
GeneralSelection change notification message Pin
Yury Sulsky30-Dec-01 15:23
Yury Sulsky30-Dec-01 15:23 
GeneralLVN_ITEMCHANGED Pin
Yury Sulsky30-Dec-01 17:39
Yury Sulsky30-Dec-01 17:39 
GeneralRegistry problems. Pin
Jason Hooper30-Dec-01 15:17
Jason Hooper30-Dec-01 15:17 
GeneralRe: Registry problems. Pin
Michael Dunn30-Dec-01 19:16
sitebuilderMichael Dunn30-Dec-01 19:16 
GeneralRe: Registry problems. Pin
Jason Hooper31-Dec-01 14:17
Jason Hooper31-Dec-01 14:17 
Michael Dunn wrote:
What is the return value from Create()?

Seems to be 161.
// MessageId: ERROR_BAD_PATHNAME
//
// MessageText:
//
//  The specified path is invalid.
//
#define ERROR_BAD_PATHNAME               161L

Perhaps Software needs to be capitalized? Is the Windows XP Registry case sensitive?

BTW here is the code:
CRegKey autoRunKey;
long ret;

if ((ret = autoRunKey.Create(HKEY_CURRENT_USER, "\\Software\\Microsoft\\Windows\\CurrentVersion\\Run")) != ERROR_SUCCESS)
{
    CString f;
    f.Format("Couldn't open key.. return code is %ld", ret);

    AfxMessageBox(f);
}


-Jason
nirgle.bitdevil.com
GeneralRe: Registry problems. Pin
Michael Dunn31-Dec-01 14:33
sitebuilderMichael Dunn31-Dec-01 14:33 
GeneralRe: Registry problems. Pin
Jason Hooper31-Dec-01 14:39
Jason Hooper31-Dec-01 14:39 
GeneralRe: Registry problems. Pin
Roger Wright (new)31-Dec-01 14:25
Roger Wright (new)31-Dec-01 14:25 
QuestionSTL and member functions ??? Pin
Christian Graus30-Dec-01 15:17
protectorChristian Graus30-Dec-01 15:17 
AnswerRe: STL and member functions ??? Pin
Todd Smith30-Dec-01 20:39
Todd Smith30-Dec-01 20:39 
GeneralRe: STL and member functions ??? Pin
Christian Graus31-Dec-01 1:20
protectorChristian Graus31-Dec-01 1:20 

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.