visual-studio-2010

How can I allocate all the availble memory in visual studio for my application?

纵饮孤独 提交于 2020-01-20 04:09:05
问题 I want to render 4 millions triangles in my windows based software which is written in Visual Studio C++ 2010 (Build in Release Mode). When I render 3.9 millions triangles, the total RAM memory consumed by the software is 400MB. But when I try to render 4 millions triangles (just 100K more), the system gives me an error. For Example: Point *P = new (std::nothrow) Point[nb_triangles]; //==> "(std::nothrow)" is for catching the run time memory allocation error. (Point is X, Y, Z floats) If(P ==

Advanced tasks using Web.Config transformation

邮差的信 提交于 2020-01-19 04:19:46
问题 Does anyone know if there is a way to "transform" specific sections of values instead of replacing the whole value or an attribute? For example, I've got several appSettings entries that specify the Urls for different webservices. These entries are slightly different in the dev environment than the production environment. Some are less trivial than others <!-- DEV ENTRY --> <appSettings> <add key="serviceName1_WebsService_Url" value="http://wsServiceName1.dev.domain.com/v1.2.3.4/entryPoint

Visual Studio does not let me drag drop items into it?

故事扮演 提交于 2020-01-18 16:00:47
问题 Using Visual studio 2010 I got problems when double-clicking, for example a config file (*.config). Visual Studio would open but give me a error message about parameters. If I simple try to drag and drop a file that Visual Studio usually can read in to it, the icon will give me the "not possible icon"? I have now installed Visual Studio 2012 and it has the same problem?! This makes my work a lot harder, it should be easy to just drag & drop files into Visual Studio, but it's not so? Now I

Visual Studio does not let me drag drop items into it?

风流意气都作罢 提交于 2020-01-18 16:00:26
问题 Using Visual studio 2010 I got problems when double-clicking, for example a config file (*.config). Visual Studio would open but give me a error message about parameters. If I simple try to drag and drop a file that Visual Studio usually can read in to it, the icon will give me the "not possible icon"? I have now installed Visual Studio 2012 and it has the same problem?! This makes my work a lot harder, it should be easy to just drag & drop files into Visual Studio, but it's not so? Now I

Redefinition different basic types => typedef

与世无争的帅哥 提交于 2020-01-17 15:40:15
问题 After to have been aware of the persons who had the same problem than mine, I still get this error : error C2371: 'ST_ELLIPSE' : redefinition; different basic types see declaration of 'ST_ELLIPSE' C2371: 'ST_VECTEURS' : redefinition; different basic types see declaration of 'ST_VECTEURS' 'ST_ROI' : redefinition; different basic types see declaration of 'ST_ROI' 'ST_CONVERSION' : redefinition; different basic types see declaration of 'ST_CONVERSION' 'ST_PARA_VISU' : redefinition; different

Which, if any, folders do I need to create before checking out a TFS project?

纵然是瞬间 提交于 2020-01-17 13:21:44
问题 The path to the project I need to check out is displayed in the TFS Source Control Explorer this way: Handheld Development Development HDP HDP Or, in the "Source location:"this way: $/Handheld/Development/Development/HDP/HDP The code that I need to check out and work on is in that last folder. So what do I need to do before right-clicking that second "HDP" folder and selecting "Get Latest Version"? IOW, do I need to create an empty folder or folders first for TFS to find, or will it create

Which, if any, folders do I need to create before checking out a TFS project?

倖福魔咒の 提交于 2020-01-17 13:21:12
问题 The path to the project I need to check out is displayed in the TFS Source Control Explorer this way: Handheld Development Development HDP HDP Or, in the "Source location:"this way: $/Handheld/Development/Development/HDP/HDP The code that I need to check out and work on is in that last folder. So what do I need to do before right-clicking that second "HDP" folder and selecting "Get Latest Version"? IOW, do I need to create an empty folder or folders first for TFS to find, or will it create

How to enable or disable an event hander in MFC?

梦想的初衷 提交于 2020-01-17 08:18:06
问题 I have searched the web a lot but couldn't find exactly what I want! suppose that I have a class derived from CWnd . In fact, it is the class COpenGLControl here in codeguru customized by me for my own purposes. the event handler for the WM_MOUSEMOVE button is written as follows: void COpenGLControl::OnMouseMove(UINT nFlags, CPoint point) { int diffX = (int)(point.x - m_fLastX); int diffY = (int)(point.y - m_fLastY); m_fLastX = (float)point.x; m_fLastY = (float)point.y; // Left mouse button

Problem with querying sql server from vb

守給你的承諾、 提交于 2020-01-17 07:42:10
问题 Whenever I have Dim catID as integer And I use this in a query like this: cmd.CommandText = "select * from categories where parentid='" + catID + "'" I get: Conversion from string select * from categories where p to type Double is not valid. Why is it so? The parentid datatype in sql is integer . 回答1: Try cmd.CommandText = string.Format("select * from categories where parentid='{0}'", catID) if parentid is a numeric field in your database then you'll need cmd.CommandText = string.Format(

VS2010 DSL samples

与世无争的帅哥 提交于 2020-01-17 07:36:30
问题 I want to create my own DSL but working with DSL Definition is confusing. Where can I find some samples? 回答1: This is a good jumping-off point for VS2010 DSL samples and related items. 来源: https://stackoverflow.com/questions/3676183/vs2010-dsl-samples