Visual 2015 C++ Program Not Running, Deubugging Symbols issue? - c++

Just started programming in C++ and I installed Visual 2015. I've been trying to run a simple "Hello World" program but I get the following:
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Users\(user)\Documents\Visual Studio 2015\Projects\ConsoleApplication1\Debug\ConsoleApplication1.exe'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded
'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded
'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded
'C:\Windows\SysWOW64\vcruntime140d.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded
'C:\Windows\SysWOW64\msvcp140d.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded
'C:\Windows\SysWOW64\ucrtbased.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded
'C:\Windows\SysWOW64\advapi32.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded
'C:\Windows\SysWOW64\cryptbase.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded
'C:\Windows\SysWOW64\bcryptprimitives.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded
'C:\Windows\SysWOW64\kernel.appcore.dll'. Symbols loaded.
The thread 0x2714 has exited with code 0 (0x0).
The thread 0x748 has exited with code 0 (0x0).
The thread 0xc24 has exited with code 0 (0x0).
The program '[3496] ConsoleApplication1.exe' has exited with code 0 (0x0).
I NO CLUE what this is for. The console shows my output for a bit, then it closes and shows that whole message. I've searched the internet but I am not getting solid answers on this.

It seems like your program has been running fine:
The thread 0x2714 has exited with code 0 (0x0). The thread 0x748
has exited with code 0 (0x0). The thread 0xc24 has exited with
code 0 (0x0). The program '[3496] ConsoleApplication1.exe' has
exited with code 0 (0x0).
The first part is about starting your program and loading of all the necessary dll's. The last part means the threads and your program exited with a code of 0x0, which means no errors.
You probably need to put a breakpoint F9 somewhere, to pause the program, or in a console application a getch(); (which needs: #include <conio.h>).
The console shows this output when the program is started in debug mode (with F5), to start it without debugging output, use Ctrl-F5 (Menu Debug / Start Without Debugging).

Related

code exited -1073741515 (0xc0000135) 'A dependent dll was not found'

I am trying to write a simple program. Vs 2019, Windows 10 64bits
Debug->x64
Followed [Configure Visual C++ Projects to Target 64-Bit Platforms][1]
#include <windows.h>
#include "res/resource.h"
#include <iostream>
#include <core_api/lsproject.h>
#include <core_api/lslocalworkspace.h>
#include <plugin_api/lsscenecontext.h>
using namespace SCENE_API;
using namespace std;
#include <Commdlg.h>
int main()
{
LSString filePath;
std::cout << "Hello World!\n";
}
Where [LSString][2] can be found here.
I am getting an error:
The program '[11460] FAPPS.exe' has exited with code -1073741515 (0xc0000135) 'A dependent dll was not found'.
-------------------EDITED--------------------------------------------------
After running the executable in debug mode in visual studio, I am getting
'myfirstapp1.exe' (Win32): Loaded 'E:\VS_Programm\FARO_SCENE\myfirstapp1\x64\Debug\myfirstapp1.exe'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\comdlg32.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'E:\VS_Programm\FARO_SCENE\myfirstapp1\x64\Debug\Core_API.dll'.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\windows.storage.dll'.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\profapi.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\powrprof.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\umpdc.dll'.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\cryptsp.dll'. Symbols loaded.
The thread 0x64c0 has exited with code -1073741515 (0xc0000135).
The thread 0x6604 has exited with code -1073741515 (0xc0000135).
The thread 0x644 has exited with code -1073741515 (0xc0000135).
The program '[25976] myfirstapp1.exe' has exited with code -1073741515 (0xc0000135) 'A dependent dll was not found'.
Before going to complex try repairing your visual studio installation from the vs installer. It worked form. Then try to install the latest SDKs for your platform (x64 for example, be careful) from the official Microsoft website. I apologize for my terrible english. Greetings from Italy. 😉😁
Try to Run your executable in debug mode in visual studio. It prints the library its trying to load .

Having problems with Visual Studio 2019

So I am trying to get started with SFML and game making in C++ but I can't even start the basic "Hello World" program. When I press F5 it prints out "ops.Press any key to close this window . . .". Here is the only information that I get from the debug window bellow.
'SFML.exe' (Win32): Loaded 'C:\VisualStudio\Projects\SFML\Debug\SFML.exe'. Symbols loaded.
'SFML.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'.
'SFML.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'.
'SFML.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'.
'SFML.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp140d.dll'.
'SFML.exe' (Win32): Loaded 'C:\Windows\SysWOW64\vcruntime140d.dll'.
'SFML.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbased.dll'.
The thread 0xbe8 has exited with code 0 (0x0).
'SFML.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel.appcore.dll'.
'SFML.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'.
'SFML.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'.
'SFML.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'.
'SFML.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'.
'SFML.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcryptprimitives.dll'.
'SFML.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'.
The thread 0x2194 has exited with code 0 (0x0).
The thread 0x28d4 has exited with code 0 (0x0).
The thread 0x179c has exited with code 0 (0x0).
The program '[13688] SFML.exe' has exited with code 0 (0x0).
Also I don't know why are those .dll files loading since i used them in a previous project that I deleted.
Any help will be appreciated.

Visual Studio Unable to activate Windows Store app

I have a problem with UWP and Visual Studio 2015 Pro. I created a Visual C++ UWP app and I just wanna to send requests to a server. This code compiles good, but when Studio starts the application, I get this error:
Unable to activate Windows Store app 'Package Name'. The App5.exe
process started, but the activation request failed with error 'The app
didn't start'.
I found this problem on Microsoft's forum and on Stackoverflow too, but this solutions doesn't help me! I tried restore developer mode and license, tried reinstalling Visual Studio (VS 2017 Community has the problem too), tried reinstalling app, and create new project too. Same results.
But Console Application works good!
How I can fix this problem? Thanks!
UPD:
In Debug/Output i have:
'App1.exe' (Win32): Loaded 'C:\Users\Alex\Documents\Visual Studio 2015\Projects\App1\Debug\App1\AppX\App1.exe'. Symbols loaded.
'App1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded.
'App1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
'App1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded.
'App1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\combase.dll'. Symbols loaded.
'App1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbase.dll'. Symbols loaded.
'App1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Symbols loaded.
'App1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Symbols loaded.
'App1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Symbols loaded.
'App1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcryptprimitives.dll'. Symbols loaded.
'App1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Symbols loaded.
'App1.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.24210.0_x86__8wekyb3d8bbwe\vccorlib140d_app.dll'. Symbols loaded.
'App1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleaut32.dll'. Symbols loaded.
'App1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp_win.dll'. Symbols loaded.
'App1.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.24210.0_x86__8wekyb3d8bbwe\msvcp140d_app.dll'. Symbols loaded.
The thread 0x25bc has exited with code -1073741515 (0xc0000135).
The thread 0x20b8 has exited with code -1073741515 (0xc0000135).
The program '[8128] App1.exe' has exited with code -1073741515 (0xc0000135) 'A dependent dll was not found'.
Dependency walker show this errors: https://pp.userapi.com/c824601/v824601273/444bf/awP70BN-phs.jpg

Visual Studio 2015 Community with CPLEX 12.7 samples do not run

When I try to open one of the sample models inside samples folder(C:\Program Files\IBM\ILOG\CPLEX_Studio127\cplex\examples\x64_windows_vs2015\stat_mdas) and try to build it says build is successful but when I want to debug it setting a breakpoint to a line I got the following lines:
'admipex1.exe' (Win32): Loaded 'C:\Windows\System32\apphelp.dll'. Symbols loaded.
'admipex1.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Symbols loaded.
'admipex1.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140.dll'. Symbols loaded.
'admipex1.exe' (Win32): Loaded 'C:\Program Files\IBM\ILOG\CPLEX_Studio127\opl\bin\x64_win64\cplex1270.dll'. Module was built without symbols.
'admipex1.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Symbols loaded.
'admipex1.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Symbols loaded.
'admipex1.exe' (Win32): Loaded 'C:\Windows\System32\wsock32.dll'. Symbols loaded.
'admipex1.exe' (Win32): Loaded 'C:\Windows\System32\ws2_32.dll'. Symbols loaded.
'admipex1.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Symbols loaded.
'admipex1.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Symbols loaded.
'admipex1.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. Symbols loaded.
The thread 0x62c8 has exited with code 0 (0x0).
The thread 0x3414 has exited with code 0 (0x0).
The thread 0x3ea4 has exited with code 0 (0x0).
The program '[12884] admipex1.exe' has exited with code 0 (0x0).
It seems like Visual Studio 2015 is not supported by any CPLEX version yet.
Try using other Visual Studio versions like 2013 or earlier.
Follow this guide here:
http://www.leandro-coelho.com/how-to-configure-ms-visual-studio-to-use-ibm-cplex-concert/

visual studio - gives blank screen as output

it shows.....
'2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ig7icd32.dll'. Cannot find or open the PDB file.
'2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\version.dll'. Symbols loaded.
'2.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\version.dll'
'2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Symbols loaded.
'2.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ole32.dll'
'2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Symbols loaded.
'2.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ole32.dll'
The program '[7212] 2.exe' has exited with code 0 (0x0).
how to solve this!!!!!
Did you try simply reinstalling the program and restarting your computer? Worth giving a shot.