FAQ Database Discussion Community


using tuple with visual studio 2008

c++,visual-studio-2008
I have an older code which uses: #include <tuple> This project is visual studio 2008 project. According to Microsoft, it is possible to to use Tuple with 2008 see here . However, I cannot compile and I am getting this error: Error 34 fatal error C1083: Cannot open include file:...

VS2008 stopped processing “find all” [duplicate]

visual-studio-2008
This question already has an answer here: Visual Studio “Find” results in “No files were found to look in. Find stopped progress.” 9 answers Suddenly, VS2008 doesn't execute "find all" (CTRL+ALT+F) for the solution correctly. This happened two days ago in the office and now on the computer at...

Where is wxThreadEvent defined?

c++,multithreading,visual-studio-2008,wxwidgets
I have downloaded wxWidgets 2.8.1 for Windows (MSW). The example in the reference for wxThread, shows the symbol wxThreadEvent. My compiler, Visual Studio 2008, says that the symbol is undefined. The sample for threading doesn't use wxThreadEvent. I searched the wxWidgets-2.8.1, in a Cygwin terminal, using: find /cygdrive/c/wxWidgets-2.8.1 -iname "*.h"...

Visual Studio 2008 doesn't appear X64 option for win 7 64 bit

c++,visual-studio-2008,sdk,64bit
I install visual studio 2008 express on win 7 64 bit and I also install Windows Software Development Kit (SDK). I try to transform a DLL(c++ source code) from 32 to 64 bit but the X64 option doesn't appear in visual studio 2008. I use command "vcvarsall amd64" in "Visual...

Unexpected result doing 64-bit negative integer arithmetic

c,visual-studio-2008
The best way to illustrate my question is through this snippet from my actual code: ULONG uiDelaySec = 5; ULONGLONG iiDaysOver = 0; LONGLONG ii = -10000000LL * (LONGLONG)uiDelaySec / (2 + iiDaysOver); //Why do I get 'ii' equal to 9223372036829775808? PS. I'm running this code in Visual Studio 2008....

DateAdd Unrecognized Identifier

sql,visual-studio-2008,reporting-services
So while trying to set a parameter to a date, I get this unrecognized parameter value. I'm not sure what is causing this, I've tried many different variants ('d', "d", d, DateInterval.Day, etc.), but it is always in error. Why is dateadd not recognizing DateInterval values?...

WriteFile throws Access Violation when 4th (optional) parameter is NULL

c++,winapi,visual-studio-2008,access-violation,writefile
Thought that it may be helpful to someone because it was a kind of surprise for me. WriteFile function tries to write into its 4th (optional) parameter, and if it is NULL it causes Access Violation exception... But not on Windows 8(.1). This is the function definition from msdn: BOOL...

Visual Studio 2013: Error MSB4014: The build was aborted because of an internal failure

c++,visual-studio-2008,visual-studio-2013,compiler-errors
After using VS08 without any problem for several months, I've decided to install VS2013. Unfortunately, VS won't stop crashing after Building/Rebuilding/Cleaning a simple project. I have just created an empty project with a main.cpp file outputing "Test", but it keep posting this error. I have seen some posts about it...

Why is the unit code failing when results are the same?

c#,.net,xml,unit-testing,visual-studio-2008
I have to compare 2 xmls for unit testing and if they match I have to pass the test. I used the XMLDiff patch technique and stored the result into a boolean "bIdentical". After that did the following: string result=""; if(bIdentical) result="true"; else result="false"; object expectedFinal = "true"; object actualFinal...

I need to dynamically set the date in a where statement to only pull results from a table to occur in County's fiscal year

sql,sql-server-2008,date,datetime,visual-studio-2008
Here is my current code: SELECT nature, inci_id, calltime, agency, gp FROM inmain AS inmain WHERE (calltime >= CONVERT(DATETIME, '2013-07-01 00:00:00', 102)) AND (calltime <= CONVERT(DATETIME, '2014-06-30 23:59:59', 102)) ORDER BY nature, calltime I need this to pull data at the end of every fiscal year without going in and...

Strange behaviour of visual studio 2008 with escape sequence

c,visual-studio-2008,trigraphs
Regarding C programming language, the descriptions of escape sequence does not resolve the output of following line in visual studio 2008. char * str = "??/abc"; printf( "%s", str ); it prints only "bc". Checking the memory pointed by str, we can find that "??/a" is working as "\a" Searching...

VS 2008 Run Custom Tool Menu

visual-studio-2008
What does it do? Can someone explain what is it for please? Thanks ...

VS2008 Build C++ Project on Network Drive

c++,networking,visual-studio-2008,compiler-errors,virtual-machine
The short of it is, I have VMs for building different scenarios of software. I do not wish to snapshot the code as it is backup elsewhere so I am storing all my code on the host PC and only building/testing in VMs to save space. Unfortunately I am receiving...

“?” in regular expression not working with Visual Studio 2008 find utility

regex,visual-studio,visual-studio-2008,find
I have two functions getpeer and getpeerwin my source code. I wanted to search both so, I use regular expression getpeerw? with VS find utility in Visual Studio 2008, but it does not find any of the mentioned function.

Do I need to be Administrator to set TFS 2010 alert

visual-studio-2008,tfs2010
Someone in my team try to subscribe to TFS alert when an items is assigned to her or remove from her. When she open the "Project Alert" panel, she can check all alert, except the first one, which is the only one she want! The only thing I found is...

How to count no. of days between 2 dates from calendar in string format vb

vb.net,visual-studio-2008
I have 2 aspx calendar(AbsenceStartDateCal & AbsenceEndDateCal) which will pass the date value to textbox with .cs codes as follow: Protected Sub AbsenceEndDateCal_SelectionChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles AbsenceEndDateCal.SelectionChanged Dim date2 As DateTime = New System.DateTime date2 = AbsenceEndDateCal.SelectedDate tbAbsenceEndDate.Text = date2.ToString("dd/MM/yyyy") End Sub In my pageload,...

Debugger not started in the VS2008

asp.net,visual-studio-2008,iis-7.5,visual-studio-debugging
I have developed web application in .NET framework 3.5 in VS 2008, hosted in IIS under application pool ASP.NET 4.0 Integrated pipeline mode. When I start debugging by hitting F5 button, it throws the error and debugger is not started. But, If I open the same application in VS2010 and...

AddItem in CMFCToolBarComboBoxButton - new value is not shown

c++,visual-studio-2008,mfc,future,pack
I am using Visual Studio 2008. I have a problem with AddItem in CMFCToolBarComboBoxButton. I added CMFCToolBarComboBoxButton to tool bar (I used this solutions: click here). The problem is call AddItem() method in run time. I checked in Quick Watch object which calls this method. In this object, the new...

Syntax error in update statement with Arabic column names

.net,vb.net,visual-studio-2008
I have an Access 2007 database with Arabic column names. What I'm trying to do is an update with images using an integer as a primary key, but I get an error saying there's an error in the UPDATE statement syntax. Here's the relevant code Private Sub InsertImage(ByRef barcode As...

What order are destructors called and member variables destroyed in C++ using inhertitance?

c++,inheritance,visual-studio-2008,destructor
Very similar question as these, except not exactly: What is the order in which the destructors and the constructors are called in C++ Order of member constructor and destructor calls I want to know: are the member variables of the derived class destroyed before or after the destructor of the...

ReadTimeout exception with MemoryStream

c#,visual-studio-2008
The following method throws this exception System.IO.Stream)(ms)).ReadTimeout threw an exception of type System.InvalidOperationException' This is the method: private static byte[] ImageToByteArraybyMemoryStream(Bitmap bmp) { using (MemoryStream ms = new MemoryStream()) { bmp.Save(ms, bmp.RawFormat); return ms.ToArray(); } } however, this error doesn't occur all the time. I'll try to explain in short...

Temp table in PDW disappears after 1st execution

sql-server,visual-studio-2008,temp-tables
I am connecting to a PDW (Parallel Data Warehouse) 2012 database using a Visual Studio 2008 Server Explorer Data Connection and related Query Designer (not an ideal combo I know). If I run all three statements below at once, I get results: create table #diagnosis_condition (dx_code varchar(4), condition_code char(3)) WITH...

Visual basic 2008 - Do…While until infinite loop when shuffling 52 card deck

vb.net,visual-studio-2008,boolean,infinite-loop,do-while
I'm starting to make a Hearts game in VB2008. Currently I'm stuck with the dealing: For q = 0 To 51 Do Randomize() dealrand = Int(Rnd() * 51) cards(q).Image = pics(dealrand) Loop Until dealused(dealrand) = False dealused(dealrand) = True Next What I'm trying to do is check if the card...

Are there any tools for using SASS in Visual Studio 2008?

visual-studio-2008,sass
I know with Visual Studio 2010 and up there's a few different options, specifically what I'm familiar with is Web Workbench. But are there any options in Visual Studio 2008, or is SASS just not supported?

VS 2008 designer failure: HRESULT E_FAIL has been returned from a call to a COM component

.net,winforms,visual-studio-2008,c++-cli,windows-forms-designer
I am using VS 2008 SP1 with some updates, doing SW development in C++/CLI and Winforms. I have one winforms probject, where the designer shows a failure upon opening: HRESULT E_FAIL has been returned from a call to a COM component bei EnvDTE.CodeFunction.get_FunctionKind() bei Microsoft.VisualC.CppCodeParser.OnTypePopulateMembers(Object sender, EventArgs e) bei System.CodeDom.CodeTypeDeclaration.get_Members()...

In MFC, do inactive windows receive PreTranslateMessage events?

visual-studio-2008,mfc
I have noticed a behaviour and want to confirm that there's no simple way around it. Let's say I have a main CFrameWnd which contains several CViews, often nested several levels deep. Let's say each of them overrides PreTranslateMessage(MSG* pMsg) (don't shoot me, I inherited this code :P ). The...

Does C allow casting a struct type to itself?

c,visual-c++,visual-studio-2008,struct
So we have a struct type like this: typedef struct { U64 low; U64 high; } U128; Then somewhere in the code as a result of macro expansion there is an assignment like this: *ptr = (U128)value; Where ptr is of U128*. And this causes the following error: error C2440:...

VS 2012 workspace can't be loaded in VS 2008

visual-studio-2012,visual-studio-2008,tfs2012
I have a default workspace already created when setting up solution in VS 2012. Part of the folder structure contains SSRS reports which needs to be opened in VS 2008. Folder structure: D:\TFS\Products\ - current workspace mapping D:\TFS\Products\Portal\Portal.sln - this is the solution I open in VS 2012 D:\TFS\Products\Reports\Reports.sln -...