visual-studio-2010

MFC app Assert fail at CRecentFileList::Add on Command line FileOpen

老子叫甜甜 提交于 2020-02-25 01:04:47
问题 I'm using VS2010 and Windows 7, and my app is SDI shared DLL, upgraded from VC6. After installing my application, if the user double-clicks the registered file type, the application crashes at the MFC function: void CRecentFileList::Add(LPCTSTR lpszPathName, LPCTSTR lpszAppID) { // ... #if (WINVER >= 0x0601) // ... #ifdef UNICODE // ... #endif ENSURE(SUCCEEDED(hr)); // Crash here: "hr = 0x800401f0 CoInitialize has not been called." This is called from the InitInstance() function: // Parse

OpenCV crop live feed from camera

[亡魂溺海] 提交于 2020-02-24 12:10:12
问题 How can I get properly one resolution feed from camera in OpenCV (640x320) but cut it into half and display only one half of the frame (320x240). So not to scale down, but to actually crop . I am using OpenCV 2.4.5, VS2010 and C++ This quite standard code gets 640x480 input resolution and I made some changes to crop resolution to 320x240. Should I use Mat instead of IplImage, and if so what would be the best way? #include "stdafx.h" #include <iostream> #include "opencv2/core/core.hpp"

OpenCV crop live feed from camera

和自甴很熟 提交于 2020-02-24 12:10:05
问题 How can I get properly one resolution feed from camera in OpenCV (640x320) but cut it into half and display only one half of the frame (320x240). So not to scale down, but to actually crop . I am using OpenCV 2.4.5, VS2010 and C++ This quite standard code gets 640x480 input resolution and I made some changes to crop resolution to 320x240. Should I use Mat instead of IplImage, and if so what would be the best way? #include "stdafx.h" #include <iostream> #include "opencv2/core/core.hpp"

Errors that occur when I start the kernel function in CUDA 5.5

这一生的挚爱 提交于 2020-02-23 08:07:13
问题 I installed CUDA5.5. Development environment is using Visual Studio 2010 Professional. And I tried to run the source code like the following. However, the red line was drawn to the part of "<<<" for some reason on Visual Studio. It is displayed Error "expression. Required" and. If anyone the same phenomenon is happening, please tell me how to solve. Development environment-------------------------------------------------------------------------- OS:Windows7 64bit Visual Studio 2010

tabcontrol changing when user clicks on treeview node

眉间皱痕 提交于 2020-02-23 04:33:42
问题 Here is an overview of my application: It is basically a cook book. The user can create a cookbook and then create recipes within that cookbook. I have a class CookBook and a class Recipe. CookBook keeps track of what recipes are associated with the cook book and Recipe keeps track of the contents of the recipe. For the UI, i have a treeview where it will display the recipes that are in the CookBook. I have a TabControl that will display the tabs associated with each recipe. The tabs are

SCIP and Visual Studio: error LNK2001

两盒软妹~` 提交于 2020-02-23 03:57:46
问题 I am trying to make the SCIP work with C++ in Windows 10. I want to solve the VRP problem using SCIP (version 3.2.1) in Visual Studio 2010. I have downloaded Source files and then precompiled dlls from the http://scip.zib.de and included the .hpp and cpp files in my VS project. there was a .dll, a .exe and a .lib file in the archive. In the project properties I did the following: C/C++ -> General -> Additional Include Directories: C:\scipoptsuite-3.2.1\scip-3.2.1\src\ C/C++ -> Linker -> Input

Can't Add LINQ to SQL classes to projects in VS2010

大憨熊 提交于 2020-02-21 13:16:25
问题 I just ran into something in Visual Studio 2010 RC that wasn't previously happening (like, yesterday). No software changes here, but I did run into some muck yesterday when compiling that required a reboot. I am unable to add LINQ to SQL classes to any project through the add dialog. I have created ASP.NET web sites, ASP.NET MVC projects - both of these as 'templated' and as 'empty' - and there appear to be no templates installed or available. alt text http://bandofgeeks.net/blogimages/code

Automatic indentation of arguments list on multiple lines in Visual Studio

徘徊边缘 提交于 2020-02-21 10:40:27
问题 When the list of arguments to a method grows to the point where they do not fit comfortably on one line, I like to format code such that each argument is on a separate line (following StyleCop suggestion), like this: public void MyMethod( int someArgument, double someOtherArgument, int someMoreArguments) The problem I run into is that this formatting is "fragile" and does not get automatically re-formatted when using Ctrl+K+D. For instance, if I happen to insert some spaces in front of one of

Automatic indentation of arguments list on multiple lines in Visual Studio

孤街醉人 提交于 2020-02-21 10:40:26
问题 When the list of arguments to a method grows to the point where they do not fit comfortably on one line, I like to format code such that each argument is on a separate line (following StyleCop suggestion), like this: public void MyMethod( int someArgument, double someOtherArgument, int someMoreArguments) The problem I run into is that this formatting is "fragile" and does not get automatically re-formatted when using Ctrl+K+D. For instance, if I happen to insert some spaces in front of one of

Visual Studio 2010 built-in fake/test data generator for SQL Server

冷暖自知 提交于 2020-02-21 04:49:06
问题 I few months back I attended a Microsoft EnergizeIT seminar where they were showing some of the capabilities of their latest development products. One of the things they had shown that really caught my eye was a built in mock data generator tool to generate mass amounts of fake data from a few seed lists. I don't remember the name of the tool they used and was hoping to try it out. I recall it being part of VS Team Foundation; if anyone knows what I'm talking about and has some links to it