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 .
Related
Using VS 2017 and SFML 2.5.1 I followed the instructions for installation and used the code given in the tutorial here. I get a window with "SFML Works!" but instead of drawing a green circle I only get a white box like this:
The output after I close the application is as follows:
test
'SFMLTutorial.exe' (Win32): Loaded 'C:\Users\userName\source\repos\SFMLTutorial\Debug\SFMLTutorial.exe'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Users\userName\source\repos\SFMLTutorial\Debug\sfml-system-d-2.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp140d.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\vcruntime140d.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmm.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Users\userName\source\repos\SFMLTutorial\Debug\sfml-window-d-2.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32full.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbased.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmmbase.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp_win.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbase.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\user32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\win32u.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbase.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ucrtbase.dll'
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Users\userName\source\repos\SFMLTutorial\Debug\sfml-graphics-d-2.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\opengl32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\glu32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\opengl32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\opengl32.dll'
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcryptprimitives.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbased.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ucrtbased.dll'
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\imm32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\combase.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Program Files (x86)\Avecto\Privilege Guard Client\PGHook.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptsp.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rsaenh.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcrypt.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\psapi.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Program Files\Cylance\Desktop\CyMemDef.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Program Files\Cylance\Desktop\CyKNPHDOJQHQZ.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Program Files\Cylance\Desktop\CyNTFMIHYBLXA.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\uxtheme.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msctf.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleaut32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Program Files (x86)\Common Files\microsoft shared\ink\tiptsf.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\igdlh64.inf_amd64_8c587880ddec6926\ig9icd32.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Unloaded 'C:\Windows\System32\DriverStore\FileRepository\igdlh64.inf_amd64_8c587880ddec6926\ig9icd32.dll'
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\igdlh64.inf_amd64_8c587880ddec6926\ig9icd32.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shell32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\SHCore.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\windows.storage.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shlwapi.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel.appcore.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\powrprof.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\profapi.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\wtsapi32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dwmapi.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\version.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\version.dll'
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\igdlh64.inf_amd64_8c587880ddec6926\igc32.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Unloaded 'C:\Windows\System32\DriverStore\FileRepository\igdlh64.inf_amd64_8c587880ddec6926\igc32.dll'
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\igdlh64.inf_amd64_8c587880ddec6926\igc32.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dinput8.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\InputHost.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\CoreMessaging.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\CoreUIComponents.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntmarta.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\WinTypes.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\hid.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\setupapi.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\devobj.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\wintrust.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msasn1.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\crypt32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\TextInputFramework.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\clbcatq.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\UIAutomationCore.dll'. Symbols loaded.
onecore\com\combase\inc\comcataloghelpers.hpp(67)\combase.dll!753F0530: (caller: 753F02C0) ReturnHr(1) tid(3efc) 80004002 No such interface supported
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sxs.dll'. Symbols loaded.
mincore\com\oleaut32\dispatch\ups.cpp(2125)\OLEAUT32.dll!75CD239F: (caller: 75CD1F41) ReturnHr(1) tid(3cf4) 8002801D Library not registered.
mincore\com\oleaut32\dispatch\ups.cpp(2125)\OLEAUT32.dll!75CD239F: (caller: 75CD1F41) ReturnHr(2) tid(3cf4) 8002801D Library not registered.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleacc.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\twinapi.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\twinapi.appcore.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rmclient.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dxgi.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\d3d11.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ResourcePolicyClient.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ResourcePolicyClient.dll'
The thread 0x3efc has exited with code -1073741510 (0xc000013a).
The thread 0x1ff8 has exited with code -1073741510 (0xc000013a).
The thread 0x3cf4 has exited with code -1073741510 (0xc000013a).
The thread 0x3c1c has exited with code -1073741510 (0xc000013a).
The thread 0x1e50 has exited with code -1073741510 (0xc000013a).
The thread 0x3c9c has exited with code -1073741510 (0xc000013a).
The thread 0x3e98 has exited with code -1073741510 (0xc000013a).
The thread 0x3f68 has exited with code -1073741510 (0xc000013a).
The thread 0x3ebc has exited with code -1073741510 (0xc000013a).
The thread 0x3ea4 has exited with code -1073741510 (0xc000013a).
The thread 0x3f58 has exited with code -1073741510 (0xc000013a).
The thread 0x360c has exited with code -1073741510 (0xc000013a).
The thread 0x3dd4 has exited with code -1073741510 (0xc000013a).
The thread 0x3b1c has exited with code -1073741510 (0xc000013a).
The thread 0x392c has exited with code -1073741510 (0xc000013a).
The program '[15600] SFMLTutorial.exe' has exited with code -1073741510 (0xc000013a).
The source code (copy / paste) is here:
#include <SFML\Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::Green);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.draw(shape);
window.display();
}
return 0;
}
I should be getting a green circle. Any thoughts on what I might be doing wrong?
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
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.
{**#include <opencv\cv.h>
#include <opencv\highgui.h>sing namespace cv;
int main()
{
// Create matrix to store.
Mat image;
// initializing capture
VideoCapture cap;
cap.open(0);
//create window to show image
namedWindow("window",1);
// copy webcam stream to image
cap>>image;
//print image to screen
imshow("window",image);
// delay 33ms
waitKey(33);
}**
and the errors are
**'And, its errors are ''OpenCV.exe' (Win32): Loaded 'C:\Users\Uzzal
Das\Documents\Visual Studio 2012\Projects\OpenCV\Debug\OpenCV.exe'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Opencv243\build\x86\vc10\bin\opencv_core243d.dll'. Cannot find
or open the PDB file. 'OpenCV.exe' (Win32): Loaded
'C:\Opencv243\build\x86\vc10\bin\opencv_highgui243d.dll'. Cannot
find or open the PDB file. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\msvcp110d.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\msvcr110d.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Users\Uzzal Das\Documents\Visual
Studio 2012\Projects\OpenCV\Debug\msvcp100d.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Users\Uzzal Das\Documents\Visual
Studio 2012\Projects\OpenCV\Debug\msvcr100d.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\user32.dll'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\gdi32.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleaut32.dll'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\advapi32.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\comctl32.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\avifil32.dll'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\msvfw32.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\avicap32.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\combase.dll'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\msvcrt.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\winmm.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\msacm32.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shell32.dll'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\version.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmmbase.dll'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\shlwapi.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\devobj.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\bcryptprimitives.dll'. Symbols
loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\imm32.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\msctf.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded
'C:\PROGRA~2\SupTab\SearchProtect32.dll'. Cannot find or open the
PDB file. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\kernel.appcore.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\uxtheme.dll'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\clbcatq.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\devenum.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\setupapi.dll'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\ntmarta.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\wintrust.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\crypt32.dll'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\msasn1.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\msdmo.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\qcap.dll'. Symbols
loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\quartz.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\dwmapi.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ksproxy.ax'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\ksuser.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\d3d9.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\vidcap.ax'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\Kswdmcap.ax'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\mfc42.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\odbc32.dll'.
Symbols loaded. The thread 0x17a0 has exited with code 0 (0x0).
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\qedit.dll'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\comdlg32.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded
'C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.9600.17056_none_dadc5d1c5bc8ab48\GdiPlus.dll'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\SHCore.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\ddraw.dll'. Symbols loaded.
'OpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dciman32.dll'.
Symbols loaded. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\igdumdim32.dll'. Cannot find or open the PDB
file. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\igdusc32.dll'. Cannot find or open the PDB
file. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\d3dim700.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Unloaded 'C:\Windows\SysWOW64\igdusc32.dll' 'OpenCV.exe'
(Win32): Unloaded 'C:\Windows\SysWOW64\igdumdim32.dll' 'OpenCV.exe'
(Win32): Loaded 'C:\Windows\SysWOW64\igdumdim32.dll'. Cannot find or
open the PDB file. 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\igdusc32.dll'. Cannot find or open the PDB
file. 'OpenCV.exe' (Win32): Unloaded
'C:\Windows\SysWOW64\igdusc32.dll' 'OpenCV.exe' (Win32): Unloaded
'C:\Windows\SysWOW64\igdumdim32.dll' 'OpenCV.exe' (Win32): Loaded
'C:\Windows\SysWOW64\msyuv.dll'. Symbols loaded. 'OpenCV.exe'
(Win32): Unloaded 'C:\PROGRA~2\SupTab\SearchProtect32.dll' The
thread 0x15ec has exited with code 0 (0x0). The thread 0x4c0 has
exited with code 0 (0x0). 'OpenCV.exe' (Win32): Unloaded
'C:\Windows\SysWOW64\msyuv.dll' The thread 0x14d4 has exited with
code 0 (0x0). The thread 0x9f8 has exited with code 0 (0x0). The
thread 0x15f4 has exited with code 0 (0x0). The program '[6988]
OpenCV.exe' has exited with code 0 (0x0).'
----------
'**
The can not load pbd files problem for opencv is caused by using dlls compiled with a different compiler than you are using. In this case you are using Visual Studio 2010 dlls in your Visual Studio 2012 application. In general is not safe to mix compilers by using dlls compiled with a different version of Visual Studio or mixing debug and release in the same application. The main reason is when you do this you will have more than 1 independent heap. You can not safely allocate memory in 1 heap and free it in a second heap. This will cause heap corruption which can cause a random looking crash because the corruption may not crash on the first allocation / deallocation after the heap becomes corrupt.
To fix this make sure you setup your project to use the correct opencv dlls for your compiler. For Visual Studio 2012 the correct dlls will be in the vc11 folder.
Hi i have a problem running the OpenCV application using Visual Studio 2013 and Windows 8.1 x64.
I followed this guide: http://www.youtube.com/watch?v=cgo0UitHfp8
I did everything as said in the guide except the changes:
x64 instead of x86 and vs11 instead of vs10 in file paths.
Im trying to run it on OpenCV 2.4.6 (where file names are like 'opencv_core246.lib' and not 'opencv_core231.lib' like in the error.
Can you help me?
Make sure that you are including and linking the correct directories. This can be done in Visual Studio solution properties (right click on the solution and select Properties). For example (this is in Visual Studio 2010, but it should be similar in Visual Studio 2013)..
Set include path
Set library path
Set library dependencies
The problem was solved partially. Linking x86 libraries instead of x64 worked but no OpenCV applications can be ran.
Couple of different errors appear:
'myOpenCV.exe' (Win32): Loaded 'C:\Users\LK\Documents\Visual Studio 2013\Projects\myOpenCV\Debug\myOpenCV.exe'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\opencv246\build\x86\vc11\bin\opencv_core246d.dll'. Cannot find or open the PDB file.
'myOpenCV.exe' (Win32): Loaded 'C:\opencv246\build\x86\vc11\bin\opencv_highgui246d.dll'. Cannot find or open the PDB file.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp120d.dll'. Cannot find or open the PDB file.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr120d.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\guard32.dll'. Cannot find or open the PDB file.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\user32.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\version.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcryptprimitives.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\imm32.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msctf.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\fltLib.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntmarta.dll'. Symbols loaded.
The program '[4284] myOpenCV.exe' has exited with code -1073741515 (0xc0000135) 'A dependent dll was not found'.
Also a window appears saying the program cannot be executed because MSVCP110D.dll is missing. Should I install something? Or maybe just change the project settings?