I have a wxWidgets project that when I run it in the VS2017 IDE everything builds and compiles but output box shows nothing when run and no window pops up. Strangely If I go to the exe folder and run it by clicking the exe everything works properly.. I have no idea why it this is happening since there are no error messages. Anyone know why this might be happening?
Output:
1>------ Rebuild All started: Project: wxgltest_vs, Configuration: Release Win32 ------
1>GL_set.cc
1>..\GL_set.cc(62): warning C4305: 'argument': truncation from 'double' to 'GLclampf'
1>Init.cc
1>M_canvas.cc
1>M_frame.cc
1>objLoader.cc
1>Generating code
1>All 906 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
1>Finished generating code
1>wxgltest_vs.vcxproj -> C:\d\wx_VISUAL_STUDIO_TESTING\wxgltest_vs\Release\wxgltest_vs.exe
1>Done building project "wxgltest_vs.vcxproj".
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
here is a screenshot of the display:
VS2017 project does not show window when run from IDE Topic is solved
Re: VS2017 project does not show window when run from IDE
Is there any condition inside your program that could cause this? E.g. you're trying to load an external file and if it's not there, you just exit?
Use the source, Luke!
Re: VS2017 project does not show window when run from IDE
It could happen if it did not find the wavefront obj file, or the shader files, but those are included in the project. Don't know why it would fail within the IDE but work if I clicked the output EXE though..doublemax wrote:Is there any condition inside your program that could cause this? E.g. you're trying to load an external file and if it's not there, you just exit?
Re: VS2017 project does not show window when run from IDE
I asked because the working directory is different in both cases. If you're using relative paths to load these files, it's possible they are not found. Display a message box if a file is not found, then you see what's going on.
Use the source, Luke!
Re: VS2017 project does not show window when run from IDE
Hi,
In addition to doublemax' reply, check that you do have a Manifest.
Thank you.
In addition to doublemax' reply, check that you do have a Manifest.
Thank you.
Re: VS2017 project does not show window when run from IDE
ONEEYEMAN wrote:Hi,
In addition to doublemax' reply, check that you do have a Manifest.
Thank you.
I'm not familiar with that. Where would the manifest file be generated?
Re: VS2017 project does not show window when run from IDE
You were right. Apparently the working directory is the place where the vcxproj file is, I put the shaders and model object in there at it worked. Thanks.doublemax wrote:I asked because the working directory is different in both cases. If you're using relative paths to load these files, it's possible they are not found. Display a message box if a file is not found, then you see what's going on.