News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

After build and run result doesnt seem to work properly.

Started by CodeBloksPro, January 25, 2015, 12:25:25 AM

Previous topic - Next topic

CodeBloksPro

After Running build and run, I see the following screens appear



I believe a msg box should appear with the corressponding code...

Do you know what the problem can be here?

Regards

CodeBloksPro

It seems to work fine for the following basic main() exe


stahta01

Read and follow FAQ and you might find the problem.
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

If you do NOT see the problem, post the full build log and maybe someone else will see the problem.

Edit: You do realize you are NOT likely running the code in the screen post because you never added to the project?

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

CodeBloksPro

Quote from: stahta01 on January 25, 2015, 01:40:20 AM
Read and follow FAQ and you might find the problem.
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

If you do NOT see the problem, post the full build log and maybe someone else will see the problem.

Edit: You do realize you are NOT likely running the code in the screen post because you never added to the project?
Tim S.

As the results in both my screenshots are different, doesnt this not show that each time I ran the code the current project on the screen was activated?

If not, the result cmd prompt shud be the same, which it isnt.?

oBFusCATed

I think the problem is in the code, but I have no prior win32 api experience.
Try to copy paste some tutorial that is known to be working correctly.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

stahta01

Quote from: CodeBloksPro on January 25, 2015, 02:29:16 AM
Quote from: stahta01 on January 25, 2015, 01:40:20 AM
Read and follow FAQ and you might find the problem.
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

If you do NOT see the problem, post the full build log and maybe someone else will see the problem.

Edit: You do realize you are NOT likely running the code in the screen post because you never added to the project?
Tim S.

As the results in both my screenshots are different, doesnt this not show that each time I ran the code the current project on the screen was activated?

If not, the result cmd prompt shud be the same, which it isnt.?

No, because the two main.cpp are different files therefore the code can be different in each.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

CodeBloksPro

Quote from: stahta01 on January 25, 2015, 02:36:23 AM
Quote from: CodeBloksPro on January 25, 2015, 02:29:16 AM
Quote from: stahta01 on January 25, 2015, 01:40:20 AM
Read and follow FAQ and you might find the problem.
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

If you do NOT see the problem, post the full build log and maybe someone else will see the problem.

Edit: You do realize you are NOT likely running the code in the screen post because you never added to the project?
Tim S.

As the results in both my screenshots are different, doesnt this not show that each time I ran the code the current project on the screen was activated?

If not, the result cmd prompt shud be the same, which it isnt.?

No, because the two main.cpp are different files therefore the code can be different in each.

Tim S.

Ok, I deleted all projects in my folder, reopened codeblocks, Now with only 1 new project seems to work fine.

I still do not fully understand why it was doing this before and fully what you mean, I guess in future with more use of codeblocks il see.

Thanks

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]