visual-studio-2008

How can I enable the intellisense on my c++/cli project?

左心房为你撑大大i 提交于 2019-12-11 07:38:01
问题 I am using visual studio 2008 and I have a native c++ project that loads a managed c++ dll, but on the last one, the intellisense doesn't work anymore only for the managed code. This project (dll) has a mixed code (native and managed) and if I write only "::" on a clean line, the intellisense gives me the methods inherits from the base class, like regular, not for the managed code, for example array <String^>^ ContactListToChat; I need help, otherwise I´ll have to fly blind. 回答1: Taken from

Debugging a Multithreaded C# - C++/CLI - C++ Solution in Visual Studio 2008: What are these threads?

旧街凉风 提交于 2019-12-11 07:37:26
问题 I've inherited a project consisting of three levels of code. The lowest layer is native C++ that interacts with hardware. This is mature, stable and well-tested. The intermediate level code is C++/CLI, which interacts with top-level C# code that contains the UI elements and some additional functionality. This C# code is incomplete and was rushed in development: it crashes frequently and is not fit for purpose. My task is debug it and complete it. I'm using VS 2008 to step through the

StackoverflowException in IIS7 but not in Cassini

…衆ロ難τιáo~ 提交于 2019-12-11 07:34:07
问题 I have some C# code that is giving a StackOverflowException when running under IIS7 but when it is run under Cassini in VS2008 then the code runs fine. Is this a known issue whereby Cassini handles these kinds of exceptions differently? 回答1: The IIS runtime uses a different stack size for threads. IIRC it is 256 KB as opposed to the standard 1 MB you get when running on the standard .NET runtime, which is the one VS uses. In other words, you may have code that runs fine under the regular .NET

How to change MFC application UI

十年热恋 提交于 2019-12-11 07:32:20
问题 I have implemented an windows application using Visual studio 2008 and for front end I used MFC Controls. I need to change look and feel of application. Here is Ui sample image of old and new look. Can anybody suggest me how it can be done in visual studio or should I use some other tool. Any help would be appreciated. Thanks 回答1: I can think of 3 ways: Implement it yourself Use an external library like Codejock Adding a manifest file to your project Using a manifest file will give you the

conditional breakpoints with c++ in Visual Studio

落爺英雄遲暮 提交于 2019-12-11 07:30:05
问题 Is it possible to have conditional breakpoints (without changing anything about the sourcecode) in Vistual Studio 2008 with C++ language? thanks! 回答1: Yes, you can specify a condition on a breakpoint in any language. Note that this can slow execution down quite a bit, depending on the condition and how often the check has to be made. 来源: https://stackoverflow.com/questions/4068114/conditional-breakpoints-with-c-in-visual-studio

PL/SQL AVG Function with VS2008 causing “Arithmetic operation resulted in an overflow”

跟風遠走 提交于 2019-12-11 07:19:22
问题 I'm sure I'm overlooking something simple here, but anyway - I'm trying to build a PL/SQL procedure which implements AVG via a decode function, see below. I keep getting an arithmetic overflow error but can't figure out what needs changing to hold the right size for the type (or even if that's what's required!) If I change the AVG to Count, Sum or Max, all is fine, so I know the decode is working correctly, I'm just not sure why AVG isn't. Any pointers greatly appreciated. Rgds BBz PROCEDURE

select query between two dates

和自甴很熟 提交于 2019-12-11 07:18:57
问题 I am trying tomake a select join between two specific dates in the database This I feelis on the right path but is incorrect How can I get this to work SELECT --RTRIM(C.CustomerFirstName) + ' ' + LTRIM(C.CustomerLastName) as CustomerFullName, ROW_NUMBER() OVER(ORDER BY CP.ActionDate) AS RowNumber, C.CustomerFirstName, C.CustomerLastName, C.CustomerCompany, C.CustomerPosition, C.CustomerCountry, C.CustomerProvince, C.CustomerContact, CP.ActionDate, CP.ProductCode, CP.CustomerEmail FROM

Syntax Errors in standard Microsoft files “iosfwd” & “atlconv.h” while compiling a VS2008 soln?

被刻印的时光 ゝ 提交于 2019-12-11 07:00:07
问题 Hi I am getting so many syntax errors in the standard microsoft file "iosfwd" & atlconv.h". (I have pasted some errors below):: Really dont understand the reason behind such errors in standard file iosfwd & atlconv.h . Any help is greatly appreciated. ERRORS in IOSFWD \program files (x86)\microsoft visual studio 9.0\vc\include\iosfwd(350) : error C2065: '_Size_in_words' : undeclared identifier 3>c:\program files (x86)\microsoft visual studio 9.0\vc\include\iosfwd(350) : error C2065: '_First2'

Sealed classes and Object Browser

雨燕双飞 提交于 2019-12-11 06:59:14
问题 While inspecting the the .net object model in the Object Browser window, I came across the lack of information on sealed classes. If for instance, one navigates to the mscorlib container -> System namespace -> String class, the details pane displays the following: public class String Member of System Summary: Represents text as a series of Unicode characters. Attributes: [System.Runtime.InteropServices.ComVisibleAttribute(true), System.Reflection.DefaultMemberAttribute("Chars")] It seems I

Save/Load inputs on C# windows form?

醉酒当歌 提交于 2019-12-11 06:58:25
问题 I have developed a C# form based application. It consists of a number of text boxes and a few radio buttons. If i want to create my own unique file type for this application (e.g - *.ct) how would i go about doing that? What I want to achieve is for the user to be able to go to file save - it will then save a *.ct file which will be the info they have entered into the text boxes and the radio buttons they have chosen. I would then like to have an option when they run the application - File ->