Click here to Skip to main content
15,901,122 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDebug Output Window Pin
RaviJoshi26-Apr-02 12:51
RaviJoshi26-Apr-02 12:51 
GeneralRe: Debug Output Window Pin
Michael P Butler27-Apr-02 10:46
Michael P Butler27-Apr-02 10:46 
QuestionDisplay a graph / Extend CListView? Pin
26-Apr-02 12:21
suss26-Apr-02 12:21 
QuestionHow to place and drive activex controls in CView Pin
HallerbachJ26-Apr-02 10:33
HallerbachJ26-Apr-02 10:33 
Generalstack corrupted Pin
Steve Severance26-Apr-02 8:26
Steve Severance26-Apr-02 8:26 
GeneralRe: stack corrupted Pin
Paul M Watt26-Apr-02 8:39
mentorPaul M Watt26-Apr-02 8:39 
GeneralRe: stack corrupted Pin
Steve Severance26-Apr-02 11:11
Steve Severance26-Apr-02 11:11 
GeneralRe: stack corrupted Pin
Paul M Watt26-Apr-02 15:46
mentorPaul M Watt26-Apr-02 15:46 
First, in order to get the cool blocks of code type this:
<pre>
place your code here
</pre>

You can embed HTML in these statements.

If you want to put the "o" at the beginning of the string, then you were doing it somewhat correctly. But here is what you need to do to make it work properly.
if (strlen(word) < 253)
{
  char szReturn[256];

  strcpy(szReturn, "0");
  strcat(szReturn, word);
  strcpy(word, szReturn);
}


The reason that I check the length of word is to prevent a memory overrun because we are only allocating 256 bytes for the string.

Good Luck


Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralRe: stack corrupted Pin
Steve Severance28-Apr-02 7:30
Steve Severance28-Apr-02 7:30 
QuestionPointer in a .txt file? Pin
26-Apr-02 7:56
suss26-Apr-02 7:56 
AnswerRe: Pointer in a .txt file? Pin
Albert Pascual26-Apr-02 8:55
sitebuilderAlbert Pascual26-Apr-02 8:55 
AnswerRe: Pointer in a .txt file? Pin
wangyiming26-Apr-02 22:15
wangyiming26-Apr-02 22:15 
QuestionAn memory management problem ? Pin
yarp26-Apr-02 7:13
yarp26-Apr-02 7:13 
AnswerRe: An memory management problem ? Pin
Paul M Watt26-Apr-02 7:42
mentorPaul M Watt26-Apr-02 7:42 
GeneralRe: An memory management problem ? Pin
yarp26-Apr-02 8:06
yarp26-Apr-02 8:06 
GeneralRe: An memory management problem ? Pin
Paul M Watt26-Apr-02 8:12
mentorPaul M Watt26-Apr-02 8:12 
GeneralRe: An memory management problem ? Pin
yarp26-Apr-02 8:18
yarp26-Apr-02 8:18 
GeneralRe: An memory management problem ? Pin
Paul M Watt26-Apr-02 8:32
mentorPaul M Watt26-Apr-02 8:32 
GeneralRe: An memory management problem ? Pin
Tim Smith26-Apr-02 9:04
Tim Smith26-Apr-02 9:04 
GeneralRe: An memory management problem ? Pin
yarp26-Apr-02 9:27
yarp26-Apr-02 9:27 
GeneralRe: An memory management problem ? Pin
Tim Smith26-Apr-02 10:00
Tim Smith26-Apr-02 10:00 
GeneralRe: An memory management problem ? Pin
yarp26-Apr-02 10:27
yarp26-Apr-02 10:27 
GeneralRe: An memory management problem ? Pin
yarp26-Apr-02 12:14
yarp26-Apr-02 12:14 
GeneralRe: An memory management problem ? Pin
Tim Smith26-Apr-02 14:27
Tim Smith26-Apr-02 14:27 
GeneralRe: An memory management problem ? Pin
yarp26-Apr-02 19:11
yarp26-Apr-02 19:11 

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.