Answer Questions
HalS C++ fails on linking on New XP installation
We got a new notebook with Windows XP SP2 and installed VC++ (lastest ver) but whenever we tried to compile and link a new simple program, VC++ hangs and the only way out is to do a ctrl+alt+del to terminate the application. Event viewer shows this: Source: Application hang Event ID 1002 Type: Error Description: Hanging application MSDEV.EXE, version 6.0.8168.1, hang module hungapp, version 0.0.0.0, hang address 0x00000000 ...Show All
JohnBurns007 Notification on Text change for Windows Control
Hello, I have a question in SDK windows programming. I have a window control, implemented as an editable control for user to enter text. User can add text in the window control either by typing through keypad or copy/paste using mouse. I call GetWindowText() to read text from the control. I want to display a message while user is entering text or copying a value, if the text exceeds a certain length. I am aware that I can trap keyboard a ...Show All
neoonwheels _set_security_error_handler no longer declared
No longer in the CRT header files There is still a reference to it in a comment in stdlib.h. Has it been removed What's it's replacement Steve Hills NCR Corporation Hi Steve, _set_security_error_handler has been removed due to known ways for going around /GS protection using user-defined /GS handler. It is unsafe to run any code after stack corruption is detected. In VS2005 number of ...Show All
JSkinner Cannot add class
I just downloaded the new Visual C++ Express Edition Beta 2 and created a new project, but I can't add any classes. It just says "Code model not available, cannot add class." Any one know what's going on and how to fix it This is a bug with VC++ Express Beta2. We fixed it in our current bits and you should see the bug fixed in the final release. Thanks, Tarek When can we expect to see the final release ...Show All
XZminX Resource Compiler Fatal Error in Visual Studio 2005 Beta
It's impossible to launch Resource Editor from IDE. Resource Compiler Fatal Error RC1107 is displayed. I use dial up, so I can't download Visual Studio. I have ordered it on web site and it was delivered via regular mail. My build is not VCExpress. I'm afraid it's a problem with particular PC and issue will appear with newer build too. It se ...Show All
Sabroni Tracking memory fragmentation
Hi there, We have a Windows RPC server that we've noticed has been having its private bytes creep up slowly over time. I've used several leak-tracking tools, and none reports a leak at all. One, however, seems to show the number of pages allocated to the heap growing considerably. So, my thought is that we have a fragmentation issue; the server allocates memory dynamically in some places (of varying sizes), and we're trying to remo ...Show All
Mike Price general question regarding arrays and functions
Writing another program for school and I've got something seriously screwed with this one. I may have to post code for this, but I have my main function that calls another function(switcher), I'm trying to pass two arrays to this function and have that function switch the lowest value in one array replace it with the lowest value in the second array and vice versa. The problem is when I compile the program, it builds with no errors or warnings, ...Show All
jph2667 Poor Program Design?
Hi Griffonbait! My experience with Borland C++ Builder is that BCB puts a declaration in the form's header file and opens up the coding window in the .cpp file ready for coding. My understanding of programming, and the way I have taught it, is that the header file is primarily for declarations not for a project's ("solution" as VC++ calls it) code. 1. Headers files are not needed for OOP-Design 2. The ...Show All
ToddKitta Cannot find WINAPPC.H and WINCSV.H
I am porting our application from VS6.0 to Visual Studio .Net 2003 in VC++. I do not find the following files in the installation on my machine in Visual Studio .Net 2003. "WINAPPC.H" and "WINCSV.H" Are those files not come with VS .Net 2003 If so, where can I find it Thank you very much. Hoppe wrote: Why does Micros ...Show All
Jean-Jean Set VC++ Directories in Options dialog (Visual C++ Express)
Details : The VC++ Directories page on the Options dialog does not have a list box for viewing and modifying the directories used during a build. Consequently, it is not possible to modify the build directories using the IDE UI. Workaround : C++ Directories can be added, removed or changed by modifying the VCProjectEngine.dll.express.config file located in the .\vc\vcpackages subdirectory of the Visual C++ Express Edition install locati ...Show All
Steve Nelson Evil Error Link 2005 problem on release configuration; Debug config works great!?!
Hey everyone, I have the following issue: I am not able to build a release version of my app, although building a debug one works great. So I looked up error 2005 and it said to put libcmt.lib & nafxcw.lib in the ignore directive... WHICH i DID (results of ignoring libcmt.lib & nafcw.lib, but still adding them to additioanl linker depdendcies) Here a choice selection of the more than 200 errors: LIBCMT.lib(invarg.obj) : error LNK2005: _ ...Show All
Tico Nameless namespaces in c++ 8.
I am recompiling a program with a nameless namespace using visual studio c++ 8. However, I get "error C2888: anonymous-namespace." Does anybody know if I have to set a switch on the compiler If so, which switch. If not, is this a bug If so, is there a fix for it Regards. PS - What I am trying to do is to declare internal linkage instead of external linkage. As per the standard: The new C++ Standard reads in "Section 7.3.1.1 Unname ...Show All
Poida Breaking Changes in C++
I'm trying to understand that changes that need to be made in order to port a VS6.0 project into .NET 2003. Here's an example from their "breaking changes documentation": --------------------------------------------------------------- The following sample compiles and runs in Visual Studio .NET but will fail at run time in Visual Studio .NET 2003: // bc_string_literals_have_proper_type_of_const_char.cpp // compile with: /c void f(char ...Show All
Dave Matsumoto Where is stl.net? Is it included in beta2? I can't seem to find it.
Hi hdp203! I downloaded and installed VS2005 beta2. I can't seem to find cliext/vector, map, etc. in the installed dir. Where is it if I try to # include <cliext/vector>, I get C1083. Is it included in beta2 Yes. At least for me without any problem... (but it was aclean install ontop of XP-SP2). -- Greetings Jochen My blog about Win32 and .NET http://blog.kalmbac ...Show All
rainboy First painful steps with VC++ Express 2005 Beta 2 and DirectX9
Hi! I am currently making my first experiences with .NET programming and the Beta 2. My first questsion is simple: Is there any way to rename the default "Form1" class/files (which are created when generating a new Forms project) in an easy way I solved the problem by searching for all occurences of "Form1" through the whole solution and replacing them by e.g. "MainWindow". This seems very complicated. My second question is more complex. I tr ...Show All
