Click here to Skip to main content
15,891,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Using VS2005 DLL with VC6 program Pin
Cedric Moonen26-Jul-06 1:00
Cedric Moonen26-Jul-06 1:00 
GeneralRe: Using VS2005 DLL with VC6 program Pin
hairy_hats26-Jul-06 2:40
hairy_hats26-Jul-06 2:40 
GeneralRe: Using VS2005 DLL with VC6 program Pin
Cedric Moonen26-Jul-06 2:55
Cedric Moonen26-Jul-06 2:55 
GeneralRe: Using VS2005 DLL with VC6 program Pin
Mike Dimmick26-Jul-06 3:33
Mike Dimmick26-Jul-06 3:33 
QuestionWhy it fails? Pin
Sarath C26-Jul-06 0:40
Sarath C26-Jul-06 0:40 
AnswerRe: Why it fails? Pin
Stephen Hewitt26-Jul-06 0:44
Stephen Hewitt26-Jul-06 0:44 
AnswerRe: Why it fails? Pin
David Crow26-Jul-06 3:04
David Crow26-Jul-06 3:04 
GeneralRe: Why it fails? Pin
Zac Howland26-Jul-06 4:21
Zac Howland26-Jul-06 4:21 
Just an FYI:

It is VERY bad to declare an array this way and then modify it. In this case, it won't hurt anything, but lets say you tried something like:

char p[] = "hello";<br />
p[5] = ',';<br />
p[6] = ' ';<br />
p[7] = 'W';<br />
p[8] = 'o';<br />
p[9] = 'r';<br />
p[10] = 'l';<br />
p[11] = 'd';


Now you have overwritten parts in memory that were not allocated for that string. With few exceptions, you should always specify a size for your arrays:

char p[30] = "hello, world!";

If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac

GeneralRe: Why it fails? Pin
Saravanan Sundaresan27-Jul-06 2:16
professionalSaravanan Sundaresan27-Jul-06 2:16 
GeneralRe: Why it fails? Pin
David Crow27-Jul-06 3:01
David Crow27-Jul-06 3:01 
GeneralRe: Why it fails? Pin
Zac Howland28-Jul-06 3:51
Zac Howland28-Jul-06 3:51 
QuestionUnmanaged C++, windows service Pin
yoti1126-Jul-06 0:34
yoti1126-Jul-06 0:34 
AnswerRe: Unmanaged C++, windows service Pin
led mike26-Jul-06 5:49
led mike26-Jul-06 5:49 
Questionoverloading an overrided function??? Pin
sawerr26-Jul-06 0:25
sawerr26-Jul-06 0:25 
AnswerRe: overloading an overrided function??? Pin
Mike Dimmick26-Jul-06 3:40
Mike Dimmick26-Jul-06 3:40 
AnswerRe: overloading an overrided function??? Pin
Zac Howland26-Jul-06 4:33
Zac Howland26-Jul-06 4:33 
QuestionHow to access function in different classes Pin
jadhav12326-Jul-06 0:22
jadhav12326-Jul-06 0:22 
AnswerRe: How to access function in different classes Pin
see me26-Jul-06 0:29
see me26-Jul-06 0:29 
GeneralRe: How to access function in different classes Pin
jadhav12326-Jul-06 1:09
jadhav12326-Jul-06 1:09 
AnswerRe: How to access function in different classes Pin
Hamid_RT26-Jul-06 1:25
Hamid_RT26-Jul-06 1:25 
GeneralRe: How to access function in different classes Pin
jadhav12326-Jul-06 1:58
jadhav12326-Jul-06 1:58 
GeneralRe: How to access function in different classes Pin
Hamid_RT26-Jul-06 2:30
Hamid_RT26-Jul-06 2:30 
QuestionHow can I add a button on title bar of a window which is create by other process Pin
Hemant kulkarni25-Jul-06 22:40
Hemant kulkarni25-Jul-06 22:40 
AnswerRe: How can I add a button on title bar of a window which is create by other process Pin
NiceNaidu25-Jul-06 23:16
NiceNaidu25-Jul-06 23:16 
AnswerRe: How can I add a button on title bar of a window which is create by other process [modified] Pin
see me25-Jul-06 23:24
see me25-Jul-06 23:24 

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.