visual-c++

How to build this project? (jpeg lib)

大城市里の小女人 提交于 2020-01-30 12:31:05
问题 Edit: im now using http://code.google.com/p/jpeg-compressor/ so i dont care about making this work anymore. I downloaded the http://ijg.org/ source code, i tried to build it as a DLL file. This is farthest i could build until i went into dead-end. I noticed there was some .c files which i had to delete, but i dont know if i deleted the correct ones, there was at least these files jmemmac.c and jmemdos.c which i figured i dont need. I had to delete jmemmac.c because i compile on windows, but

Trouble with OpenCV setup on Visual Studio

倖福魔咒の 提交于 2020-01-30 11:42:25
问题 I'm trying to setup a simple OpenCV project using Microsoft Visual Studio 2008 in a 64-bit Windows 7 system. I don't have admin rights to the system and as such, I can't go for a fresh installation of OpenCV here. However, I do have the bin, include and lib directories of OpenCV, compiled on a simillar platform. I have launched a 'Visual C++ -> General -> Empty Project' and created a .cpp file which reads: #include <opencv/cv.h> #include <opencv/highgui.h> void main() { cv::Mat frame = cv:

How to play and detect an object using captured video in background subtractor model?

↘锁芯ラ 提交于 2020-01-30 08:24:45
问题 everyone.! I am using opencv2.4.2. actually I am doing project on object detection. I tried using BackgroundSubtractorMOG model. But I am not able to load video file from my computer. While running on real time this below code for segmentation works fine. I have implemented using frame differencing method for object detection. Now I want to segment whole object from the background. I have static background. so can anybody help me in below code how to segment object from captured video. also

How to play and detect an object using captured video in background subtractor model?

拜拜、爱过 提交于 2020-01-30 08:24:10
问题 everyone.! I am using opencv2.4.2. actually I am doing project on object detection. I tried using BackgroundSubtractorMOG model. But I am not able to load video file from my computer. While running on real time this below code for segmentation works fine. I have implemented using frame differencing method for object detection. Now I want to segment whole object from the background. I have static background. so can anybody help me in below code how to segment object from captured video. also

Can C++ variables in cpp file defined as Special Symbols β

谁说我不能喝 提交于 2020-01-30 07:33:05
问题 Can we define the variable in c++/ c using special characters such as; double ε,µ,β,ϰ; If yes, how can this be achieved? 回答1: As per the working draft of CPP standard (N4713), 5.10 Identifiers [lex.name] ... An identifier is an arbitrarily long sequence of letters and digits. Each universal-character-name in an identifier shall designate a character whose encoding in ISO 10646 falls into one of the ranges specified in Table 2. The initial element shall not be a universal-character-name

Why the bad_alloc(const char*) was made private in Visual C++ 2012?

瘦欲@ 提交于 2020-01-30 04:33:59
问题 I am just trying to compile a bit bigger project using the Visual Studio 2012 Release Candidate, C++. The project was/is compiled using the VS2010 now. (I am just greedy to get the C++11 things, so I tried. :) Apart of things that I can explain by myself, the project uses the code like this: ostringstream ostr; ostr << "The " __FUNCTION__ "() failed to malloc(" << i << ")."; throw bad_alloc(ostr.str().c_str()); The compiler now complains error C2248: 'std::bad_alloc::bad_alloc' : cannot

How to use sys/time.h in window?

谁说我不能喝 提交于 2020-01-27 07:15:04
问题 I am using MSVS 2006 and trying to find time in microseconds in my program. I try to call sys/time.h in the header but this error is compiled. fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory Error executing cl.exe. and this is my code, #include<sys/time.h> #include<stdio.h> int main() { struc timeval stop,start; gettimeofday(&start,NULL); /*my function here*/ gettimeofday(&stop,NULL); printf("took %lu usec\n",stop.tv_usec-start.tv_usec); } 回答1:

Visual C++ CLR designer is always showing 0x8000000A error in the second run of the project and editing design

旧城冷巷雨未停 提交于 2020-01-26 03:39:05
问题 I'm trying to make a great GUI for my csgo cheat. I decided to use C++/CLR. Firstly I create empty project then, I change in a properties entrypoint and the subsystem and I add this code to the cpp file: #include "MyForm.h" using namespace System;` using namespace System::Windows::Forms;` [STAThreadAttribute] void Main(array<System::String ^> ^args) { Application::EnableVisualStyles(); Application::SetCompatibleTextRenderingDefault(false); SmallPackofCheats::MyForm mainForm; Application::Run(

What exactly is going on in this Win32 messaging loop?

风流意气都作罢 提交于 2020-01-25 23:39:44
问题 What exactly is going on inside this Win32 messaging loop? I understand that TranslateMessage is converting keycodes to UTF char codes and sending the WM_CHAR event, but what is the call to PeekMessage doing exactly? Is it filtering out a certain type of message and only translating those? // Application / Player message loop. MSG msg; ZeroMemory(&msg, sizeof(msg)); while(msg.message != WM_QUIT) { if (PeekMessage(&msg, NULL, 0U, 0U, PM_REMOVE)) { TranslateMessage(&msg); DispatchMessage(&msg);

OpenGLES Application (Android, iOS) on Visual Studio

泄露秘密 提交于 2020-01-25 20:04:58
问题 I created a cross platform OpenGLES application solution on Visual Studio. I paired Visual Studio with vcremote on my Mac. I can successfully compile the solution. When I switch to XCode and open the project which VS 2015 generated and build it I get the following error: Ld /Users/elodie/Library/Developer/Xcode/DerivedData/iOSAndroGame.iOS.Application-cgfyoibpjigxohbhicqhmkivhjhs/Build/Products/Debug-iphonesimulator/iOSAndroGame.app/iOSAndroGame normal x86_64 cd "/Users/elodie/vcremote/C