visual-studio-2010

How to make CMake execute some script after it generates visual studio solution

孤者浪人 提交于 2020-01-03 07:23:19
问题 I am using CMake to build a project. I want to execute some script(say python script) after CMake is done generating the solution so that I won't have to execute it manually everytime. I am using Cmake 2.8. Does anybody know any userhook or something which Cmake provides for this purpose? 回答1: If you want to execute a command during CMake's build then use execute_process. 来源: https://stackoverflow.com/questions/11551779/how-to-make-cmake-execute-some-script-after-it-generates-visual-studio

How do I stop visual studio inserting a space between function definition and immediate call?

点点圈 提交于 2020-01-03 07:22:28
问题 I am using the visual studio JSLint plugin to keep my javascript in order, which seems to work really well apart from this one problem. If I type in x = (function () { }()) And then put the semicolon on the end, Visual studio corrects it to: x = (function () { } ()); And then JSLint complains JS Lint: Unexpected space between '}' and '('. Obviously this is fixable by removing the space, but visual studio is very persistent in putting the space back. Putting a semicolon anywhere inside the

.vcxproj in source control

随声附和 提交于 2020-01-03 07:00:10
问题 I have been reading lots of questions regarding whether vcxproj files should be added to source control or not. The consensus seems to be that they should, but when opening the files I noticed that there are a lot of user specific paths contained within. Seeing as this is a project that is being worked on by a number of people, should I still add it to source control? It seems like it would clash with other peoples' setups. 回答1: Of course they need to be added to source control, .vcxproj is

Why does F10 (step over) in Visual Studio 2010 not work?

佐手、 提交于 2020-01-03 06:48:10
问题 I also tried 2 solution. But It doesn't worked. Go to Tools > Options menu in Visual Studio. Go to Debugging > General menu item in left pane. In right view you will see and option Step over properties and operators (Managed only). Uncheck this option and then you are all set. and Go to Tools > Options menu in Visual Studio. Go to Debugging > General menu item in left pane. In right view you will see and option Enable Just My Code (Managed only). Uncheck this option and then you are all set.

Assigning datatable cells to a class

冷暖自知 提交于 2020-01-03 05:53:08
问题 This may seem an odd question. I have never used classes other than within simple tutorials etc. What I am trying to do is to take text data that is in a datatable and assign certain cells or groups of cells to be a data class. For example, say I had plumbing data I would have an overall class of part type that had things like part number, location, unit cost, manufacturer's name etc. as a top level class called, say, 'PART' and then a sub-class for specific parameters such as radius which

Adding Author Name in document Header using StyleCop

南笙酒味 提交于 2020-01-03 05:44:30
问题 I am using StyleCop with Visual Studio. Whenever i add a new file it adds few information like company name ,copyright details. I want to add author name and creation date also .Is it possible to update the StyleCop Setting somewhere to support this ? 回答1: http://blogs.msdn.com/b/sourceanalysis/archive/2008/05/25/sharing-source-analysis-settings-across-projects.aspx http://blogs.msdn.com/b/sourceanalysis/archive/2008/05/25/managing-source-analysis-project-settings.aspx Between them you are

SetTimer in VC++

醉酒当歌 提交于 2020-01-03 05:16:25
问题 I need to create Timer in my VC++ application , at where i need to set timer and on timeout of timer , i need to call one specific method... i have seen msdn forums for that and done below code to do that SetTimer(NULL,1,5*1000,TimerProc); and my TimerProc method is as below void CALLBACK TimerProc(HWND aHwnd, UINT aMessage, UINT_PTR aTimerId, DWORD aTime) { StopProceess(); } i assume after 5 seconds the SetTimer should call TimerProc method , but it is never called. no idea what i am doing

Unable to open the physical file failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share

巧了我就是萌 提交于 2020-01-03 04:58:08
问题 I have developed and website as for my assignment purpose and then my teacher asked me that he doesn't have SQL Server to run separately my database file so I must have to make built in database. I then added the .mdf file to the App_data folder and used this connection string: <add name="dbCanberraConnectionString1" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|latestcanberra.mdf;" providerName="System.Data.SqlClient" /> in web.config .

can not load a DLL file

杀马特。学长 韩版系。学妹 提交于 2020-01-03 04:49:09
问题 Every time I try to load DLL (COM) I get the following error: LDR: LdrpWalkImportDescriptor() failed to probe for its manifest, ntstatus 0xc0150002 I searched a lot but found nothing. Please I really believe in this site experts and I hope to get a solution to this problem. I know that the problem is from manifest file but I really don't know what is it and how to fix this I use VS2010 C++ and LoadLibrary 回答1: This is the description of the error code from ntstatus.h: // // MessageId: STATUS

error - Object reference not set to an instance of an object [duplicate]

六眼飞鱼酱① 提交于 2020-01-03 04:35:50
问题 This question already has answers here : What is a NullReferenceException, and how do I fix it? (28 answers) Closed 3 years ago . I am trying to create a ticket system, this part of the system will display all of the acts performing on each specific day. I am also trying to show how many tickets/seats are available. I have a database with all seat locations and a boolean value to show if they are taken or not. Public ds As New DataSet 'used to store the basic elements of the database Public