Click here to Skip to main content
15,892,072 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRemote Desktop with UDP socket [modified] Pin
lynchspawn7-Jun-06 9:52
lynchspawn7-Jun-06 9:52 
QuestionMDI Tab and more Pin
bingshen7-Jun-06 9:49
bingshen7-Jun-06 9:49 
QuestionOnTimer() Not Being Called after timer is set up (VS C++ 6.0) Pin
bfeero7-Jun-06 9:20
bfeero7-Jun-06 9:20 
AnswerRe: OnTimer() Not Being Called after timer is set up (VS C++ 6.0) Pin
bfeero7-Jun-06 9:28
bfeero7-Jun-06 9:28 
QuestionDocking window behaviour ? [modified] Pin
Maximilien7-Jun-06 8:41
Maximilien7-Jun-06 8:41 
Questionsome code to start to write a program to display waveforms in multiple channels Pin
mrby1237-Jun-06 7:56
mrby1237-Jun-06 7:56 
QuestionOnChange / SetModifiedFlag(TRUE) Pin
DanYELL7-Jun-06 6:58
DanYELL7-Jun-06 6:58 
QuestionRe: OnChange / SetModifiedFlag(TRUE) Pin
David Crow7-Jun-06 7:07
David Crow7-Jun-06 7:07 
AnswerRe: OnChange / SetModifiedFlag(TRUE) Pin
DanYELL7-Jun-06 9:27
DanYELL7-Jun-06 9:27 
GeneralRe: OnChange / SetModifiedFlag(TRUE) Pin
David Crow7-Jun-06 10:20
David Crow7-Jun-06 10:20 
AnswerRe: OnChange / SetModifiedFlag(TRUE) Pin
FarPointer7-Jun-06 7:11
FarPointer7-Jun-06 7:11 
AnswerRe: OnChange / SetModifiedFlag(TRUE) Pin
PJ Arends7-Jun-06 7:15
professionalPJ Arends7-Jun-06 7:15 
QuestionProblem with tree control and checkboxes Pin
Tnarol7-Jun-06 4:59
Tnarol7-Jun-06 4:59 
AnswerRe: Problem with tree control and checkboxes Pin
FarPointer7-Jun-06 5:25
FarPointer7-Jun-06 5:25 
QuestionDatabase operation in VC++ Pin
maharaja pandian7-Jun-06 4:55
maharaja pandian7-Jun-06 4:55 
QuestionRe: Database operation in VC++ Pin
David Crow7-Jun-06 7:03
David Crow7-Jun-06 7:03 
AnswerRe: Database operation in VC++ Pin
PJ Arends7-Jun-06 7:34
professionalPJ Arends7-Jun-06 7:34 
AnswerRe: Database operation in VC++ Pin
maharaja pandian7-Jun-06 18:35
maharaja pandian7-Jun-06 18:35 
QuestionRe: Database operation in VC++ Pin
David Crow8-Jun-06 2:53
David Crow8-Jun-06 2:53 
QuestionMDI: New document using wizard (Where are you Microsoft people) Pin
Tarek Jabri7-Jun-06 4:46
Tarek Jabri7-Jun-06 4:46 
AnswerRe: MDI: New document using wizard (Where are you Microsoft people) Pin
FarPointer7-Jun-06 5:36
FarPointer7-Jun-06 5:36 
GeneralRe: MDI: New document using wizard (Where are you Microsoft people) Pin
Tarek Jabri7-Jun-06 6:19
Tarek Jabri7-Jun-06 6:19 
GeneralRe: MDI: New document using wizard (Where are you Microsoft people) Pin
FarPointer7-Jun-06 6:43
FarPointer7-Jun-06 6:43 
QuestionHow to display graph in chart using Excel Pin
MikeRT7-Jun-06 4:46
MikeRT7-Jun-06 4:46 
QuestionI get a Windows error when I remove an else statement... Pin
Lord Kixdemp7-Jun-06 4:23
Lord Kixdemp7-Jun-06 4:23 
Hello everyone!
Look at this code:

for (x = strlen(fileName) - 1; x > 0; x--)<br />
    {<br />
        // 01234567890123<br />
        // screenshot.png<br />
        <br />
        /* If a period was found */<br />
        if (fileName[x] == '.')<br />
        {<br />
            /* Set it to the name without the extension */<br />
            newName = malloc(x-1);<br />
            strcat(newName, fileName);<br />
            return newName;<br />
        }<br />
        else<br />
            printf("%c", fileName[x]);<br />
    }


That code, seems like it'll work if I modify other parts a little bit, but that else statement is not needed anymore... But if I remove it, compile, and run the program, I get a Windows error:

Title: mythax.exe - Application Error<br />
<br />
The instruction at "0x7c93426d" referenced memory at "0x00000000".  The memory could not be "read".<br />
<br />
Click on OK to terminate the program<br />
Click on CANCEL to debug the program


Is this a bug in the compiler or something? I'm using MinGW 3.4.2... Thanks!

Lord Kixdemp
www.SulfurMidis.com
www.SulfurSoft.tk
[ftp://][http://][hotline://]tsfc.ath.cx

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.