Answer Questions
Mark Eliason Getting Visual Studio 2005 to create missing directories
I just upgraded to Visual Studio 2005 and want to know how to set the development environment to create missing build directories. For example. If I have my intermediate directory path under /test/debug/intermediate/ I do not want to have to go and manually create that directory before doing the build. Can anyone tell me where the switch is Thanks for the comments. I had been using an environment var ...Show All
Michael Wayne CDialog::DoModal asserting in CWnd::DestroyWindow
To Brian and Martin, who were involved in helping me out with this , please don't shout at me... This thread does follow on from that post - and I'm now investigating refactoring a static library which contains a few MFC classes into a shared DLL - using __declspec(dllexport) to export functions and classes that will be needed across all facets of the solution that need the shared functionality. I've looked all over the place for an ans ...Show All
Peter Brouwer Compile time error for size parameter in templates
Hi, The following code doesnt seem to compile template <typename Type, int size> Type min(Type (&arr)[size]) { } The error says error C2265: '<Unknown>' : reference to a zero-sized array is illegal Any suggestions Thanks. KarthikR Forget VC6 and templates. It has horrible problems use the 2003 or 2005 compilers. The code you are asking for works on both. rKarthik wrote: Hi ...Show All
TomL Problem solved
I am using Visual Studio 2005. I get error messages when I build a native Win32 app in Visual C++ .Net 2005 The first error is d:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(222) : error C2146: syntax error : missing ';' before identifier 'PVOID64' This is the line: typedef void * POINTER_64 PVOID64; How can there be an ...Show All
DBNull Owner drawn list box(Problem in comparison)
Hi, I have a problem. I have an owner drawn list box which displays a random list of filled in rectangles. It works fine as long as it is not given the LBS_SORT style. If given the above style it displays all the rectangles in the same color. Can somebody help me This is the code. int CExtremeListBox::CompareItem(LPCOMPAREITEMSTRUCT lpCompareItemStruct){ //the items in the list box is COLORREF type COLORREF cl ...Show All
BlackadderX Dll components fail to initialize
Ours is a multi-threaded application programmed in VC++ calling VB dll's. On a Windows 2000 server (Dual Processor & 1GB RAM), about 40 instances of this application run without any problem. But the moment a few more are created (when the task manager is pulled up, the number of processes are about 120 - 40 by this application and reaching around 1250 threads in all), all the applications start throwing errors when creating dll components. ...Show All
Pham Thanh Tuan Why do I get these C2065 and C2057 errors?
This is a brand new MFC program I created thru VS and C++ version 6. When I added a new dialog which only has a progress bar and named it IDD_COMPUTER_SPEED I get the following errors "error C2065: 'IDD_GET_COMPUTER_SPEED' : undeclared identifier" and "error C2057: expected constant expression" both pointing to the .h file that was created automatically. I don't know why I'm getting these error beca ...Show All
donno20 cannot open file 'comdlg.lib'
I've just installed MS VC++ 8.0, followed the instruction to install SDK update and tried to to build my Win32 console app project. Building output gave me an error message: LINK : fatal error LNK1104: cannot open file 'comdlg.lib' I checked directories and file locations. Everything corresponds with instructions to install PSDK. But when I try to find comdlg.lib, I find nothing. Maybe the problem is in project settings but I need help wit ...Show All
Henrik Uffe Jensen Is C++ a version of VB... Im so confused.
Ive been told that VB6 is just a simpled version of C++. Or is it a seperate language. Does it have any connection to VB6 Thank you very much. :) No, C++ is another programming langauge, Visual Stuido 2005 supports, Visual Basic.Net (or VB8), C# and C++.Net, for Visual Studio 6, it supports Visual Basic 6 and C++ ...Show All
hanayoub Visual C++/CLI
Hi all.Is it fine if i use visual C# .net tutorials and resources for creating windows forms apps and incorparate the code into C++/CLI .net I mean, C++/CLI uses the .NET Framework also to create windows forms apps right So the only thing to change is the syntax(the "." to "::" or "->", variable declarations, conditional statements, classes etc etc) if i am correct here. Meaning whatever ever code in C# has been ...Show All
Owen3 "Waiting for an internal operation... please contact Microsoft"
I am using Visual Studio 2005, C++. When I'm debugging, very often VS hangs and sometimes it pops up with the balloon text saying that it is "waiting for an internal operation to finish". If it occours regularily, I should contact Microsoft. Who should I contact And with what informations I can't say what is causing the delay. I am very tired of waiting for VS to finish its internal operations. Kind regards, Chau ...Show All
ShahidShah gcroot with incomplete type crashes compiler in B2 (regression)
This crashes B2 compiler but not B1: #include <vcclr.h> ref class Blah; void foo(Blah^ blah) { gcroot<Blah^> b; b = blah; // crashes on this line } Compiler error: fatal error C1001: An internal error has occurred in the compiler. (compiler file 'msc1.cpp', line 1384) This, however, doesn't crash it: #include <vcclr.h> ref class Blah {}; void foo(Blah^ blah) { gc ...Show All
Alex Luetjen Why is strdup() deprecated in VS 2005?
< hyslopc@discussions.microsoft.com > wrote in message news:9a93850c-505b-48c3-bd60-44625db8bbc6_WBRev2_@discussions..microsoft.com ... This post has been edited either by the author or a moderator in the Microsoft Forums: http://forums.microsoft.com You may not care about it, but I do. I don't want to disable the warning because I think the concerns with most of the deprecated functi ...Show All
msJen Web Browser C++ Samples?
Are there any Visual C++ Web Browser Samples Matt Hi Matt, On MSDN there is a tutorial on how to host a Web Browser Control in an MFC application . Additional samples may be available online . Also, you can find reference documentation about the Web Browser Control on MSDN . -- Marian Luparu Visual C++ IDE ...Show All
roberto_sonnino Creating an application for both 32-bit and 64-bit target platform
Hi, I am a newbie in 64-bit development. What I want to do first is to create an application that can be run only on a 64-bit platform. In the linker option of VS 2005 I can define as target platform MachineX64 (/MACHINE:X64) for example. What else do I need to add to my application code to ensure that it is a native 64-bit application Second question: I want to build an application that can be run on both win32 and win64 platforms. The ...Show All
