visual-studio-2008

Does static library avoids name mangling issues?

旧街凉风 提交于 2021-02-19 08:34:20
问题 I have a C++\MFC application written in Visual Studio 2003 SP1 links to an external static library "SomeExtStaticLib.lib". I also include the header files provided with "SomeExtStaticLib.lib" to create the objects in my application. SomeExtStaticLib.lib is a static library built with VC6. Now, I am migrating my application to Visual Studio 2008. I have very basic question. Should I also migrate the "SomeExtStaticLib.lib" to VS2008 compiled one? When I tried to use this VC6 compiled

How to remove multiple rows from QTable Widget?

混江龙づ霸主 提交于 2021-02-18 15:00:54
问题 I want to remove multiple rows which are selected in the QTableWidget . can anyone have any ideas ? 回答1: You can remove multiple items at once, The tips, is begin delete the rows from the bottom. i'm sorry im not a VS2008 developer, but this solution can be easy convert to VS2008 code. Here the Python code. Sorry for the late response :) # Delete the selected mytable lines deleteRows(self.mytable.selectionModel().selectedRows()) # DeleteRows function def deleteRows(self, rows): # Get all row

How to highlight selected row in WPF Listview control with alternating background

风流意气都作罢 提交于 2021-02-18 08:32:36
问题 I am using VS 2008 with 3.5 of the .NET framework. I have set up my code to alternate the background lines in a WPF ListView control. One color used is white. The other color used is a light shade of green. When a white line is clicked on, it highlights the line in light blue. When a green line is clicked on, there is no highlighting and the background color remains light green. I have tried specifying the HighlightBrushKey and the ControlBrushKey in XAML, but they had no effect. What do I

Find all variables that point to the same memory in Visual Studio

拈花ヽ惹草 提交于 2021-02-11 14:25:12
问题 In Visual Studio 2008, is there a way of finding all the variables that point to the same object as another variable? So in the example below I would want to find out that ref1 and ref2 both point to the same object as original . var original = new List<string>() { "Some Data" }; var ref1 = original; var ref2 = ref1; Essentially I want to be able to call ReferenceEquals() on all the variables in memory and then see all the ones that are equal. Except I want to be able to do this in the VS2008

How to force absolute paths for build errors output in Visual Studio

℡╲_俬逩灬. 提交于 2021-02-10 19:10:25
问题 When building in most Visual Studio (2008, but I doubt it matters) projects, if there is error, it lists the absolute path of the file with the error. Like this (ignore the specific errors--I added them intentionally): 1>dope_external.cpp 1>c:\users\me\dope_external.cpp(4) : error C2144: syntax error : 'void' should be preceded by ';' 1>c:\users\me\dope_external.cpp(4) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>Generating Code... However, the

How to force absolute paths for build errors output in Visual Studio

梦想与她 提交于 2021-02-10 19:10:07
问题 When building in most Visual Studio (2008, but I doubt it matters) projects, if there is error, it lists the absolute path of the file with the error. Like this (ignore the specific errors--I added them intentionally): 1>dope_external.cpp 1>c:\users\me\dope_external.cpp(4) : error C2144: syntax error : 'void' should be preceded by ';' 1>c:\users\me\dope_external.cpp(4) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>Generating Code... However, the

How to force absolute paths for build errors output in Visual Studio

别说谁变了你拦得住时间么 提交于 2021-02-10 19:08:29
问题 When building in most Visual Studio (2008, but I doubt it matters) projects, if there is error, it lists the absolute path of the file with the error. Like this (ignore the specific errors--I added them intentionally): 1>dope_external.cpp 1>c:\users\me\dope_external.cpp(4) : error C2144: syntax error : 'void' should be preceded by ';' 1>c:\users\me\dope_external.cpp(4) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>Generating Code... However, the

How to force absolute paths for build errors output in Visual Studio

戏子无情 提交于 2021-02-10 19:06:31
问题 When building in most Visual Studio (2008, but I doubt it matters) projects, if there is error, it lists the absolute path of the file with the error. Like this (ignore the specific errors--I added them intentionally): 1>dope_external.cpp 1>c:\users\me\dope_external.cpp(4) : error C2144: syntax error : 'void' should be preceded by ';' 1>c:\users\me\dope_external.cpp(4) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>Generating Code... However, the

How to solve “cannot open file 'LIBCD.lib' ” in visual studio 2008?

寵の児 提交于 2021-02-09 02:52:29
问题 trying to compile some code i downloaded, i get link error LNK1104: cannot open file 'LIBCD.lib'. i cant find this file anywhere on my computer. what is it, and can i download it from somewhere? is there another way to get the code to work? 回答1: The first hit on Google for libcd says: This file is the static library for the debug single threaded version of the C runtime. Visual Studio 2005 no longer supports this version of the C runtime: instead you need to use the multi-threaded version

How to solve “cannot open file 'LIBCD.lib' ” in visual studio 2008?

偶尔善良 提交于 2021-02-09 02:47:30
问题 trying to compile some code i downloaded, i get link error LNK1104: cannot open file 'LIBCD.lib'. i cant find this file anywhere on my computer. what is it, and can i download it from somewhere? is there another way to get the code to work? 回答1: The first hit on Google for libcd says: This file is the static library for the debug single threaded version of the C runtime. Visual Studio 2005 no longer supports this version of the C runtime: instead you need to use the multi-threaded version