Answer Questions
J. JIMENEZ Documentation about name mangling
Hi all, two questions: 1) Is there any (detailed) documentation about the name mangling rules applied by vc 6, vc 7.1 and vc 8 And/or is there any API available where I can stuff in mangled names and get unmangled names back (and possibly even vice versa) And/or how can I use link.exe like dumpbin does to investigate obj/coff files for mangeld and unmangled symbols 2) Out of curiosity: Why is the C++ protection scope (public, private etc.) en ...Show All
gs2006 Latest compiler creating XP-only compatible .exe files
[had no luck on the Visual Studio Express forum...] Has the compiler for this new release version of VC++express changed since the beta On a different forum, the following posts have been made: " I always use UPX to compress my binaries, and it seems that compressing the output of the new compiler produces something that doesn't run." "Is there any managed code in it UPX butchers that as I recall as it is not actual valid machin ...Show All
ANied Bufferoverflowu.lib for amd64 is missing in whidbey beta 2
Lets say you compile some code with the latest PSDK for AMD64 cpu. Then you compile your files into a library and expect users to use that library. However because of the security code there is a dependency for using bufferoverflowu.lib on the PSDK since it uses old CRT code. If you use #pragma comment(lib, "bufferoverflowu.lib") then the file must exist to be able to succesfully link. This is a problem if you compile your code with the PSDK an ...Show All
Shamrox debugging: where are the variables?
Let me start by saying that I am a beginning C++ programmer and am very new to Visual Studio 2005, so please forgive me if this is a silly question. When running the debugger on a simple program such as the one listed below, I find that it doesn't bother to display anything for most of the variables, and even for the variables it does display for, it seems to be garbage. #include <iostream> using namespace std; void main() { const int ar ...Show All
ippy04 New to VC++, can't really get started...
I'm a C programmer and I just installed VC++, created a new project called test1, and started typing in code. I decided to make a real simple program that has some input and output so I can see how VC++ works but after I create my project and type in my code, I do not know where to go from there. I decided to debug since that is the first thing I do with all my other compilers, then compile and build but it cannot find test1.exe ...Show All
Jim Cruis How to overload operator[]?
Hello, Anybody can give me an example how to overload the [] operator I searched the web, but could not find any example or info on the operator[] Any help is welcome. class CMyArrayLikeClass { ... // overloaded operator helpers const MYTYPE& operator [](INT_PTR nIndex) const ; MYTYPE& operator [](INT_PTR nIndex); ... }; const MYTYPE& CMyArray ...Show All
Mark Jerrom visualizing #include tree graph dependency
I put all those words in the title to facilitate people's future searches. My question is: does anyone know of a visualization tool that will show which files include which I found text-based ones (e.g. Includes by adonovan@lcs.mit.edu ), that parse one .cpp file at a time. Is there anything out there (free or commercial) that handles the whole project with its VS2005 setting so that it runs in the same environment as the ...Show All
Eusebiu Upcasting/Downcasting name jargon
Well I am a little confused with naming jargon of casting. My intended goal was: CBase* pBase = static_cast (derived); What is it called upcasting/downcasting I guess what we are doing is casting a pointer from Dervied Class to Base one so we are moving up in hierachy. Should It not be called upcasting . and There are many articles where it is called upcasting like for example: http://www.codeproject.com/managedcpp/castingbasics.asp ...Show All
JasonZ57666 _itoa "identifier not found" once ported to VS 2005
I have recently installed VS 2005 and loaded my VS 2003 project. I quickly realized that I needed/wanted to define "_CRT_SECURE_NO_DEPRECATE" bc I need to be up-and-running with a clean compile fairly soon. After adding the underscore to many of my string related calls, my only remaining problem is with four existing _itoa() function calls. I get the following compile errors: error C3861: '_itoa': identifier not found Sure, it ...Show All
Jenothan Need Hierarchy chart for VC++ 2005
Hi, Can anybody tell me where can I find Hierarchy chart for VC++ 2005 Thanx ManuLi Hi, Thank for your replies. I am trying to the hierarchy chart for MFC 8, I am aware of MFC 7, but since MFC 8 is available I am looking forward to MFC 8. I searched on the MSDN site, still no result. Thanks The documentation shipped with VS2005 only contains hierarchy chart for MFC70. The following page is the same as the corresponding ...Show All
FlatBread DB error : State:37000,Native:-3102,Origin:[Microsoft][ODBC Microsoft Access Driver]
Hi all, I am santosh . I faceing prb with VC++ 6.0 app. by DSN connection,I want to change database form MS SQL Server7.0 to MS Access 2003.so what should i change in VC++ source code by that i wont get the following error :- State:37000,Native:-3102,Origin:[Microsoft][ODBC Microsoft Access Driver] Regards S. Santosh Naidu Hi Santosh, Try posting in the new ...Show All
Waqas H. Mehr Found fix but WHY is it needed?
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
ingosen Binding Navagation Like buttons
I'm creating a program in Visual Studio 2005 Beta 2 (i dont have a subscription to msdn so i cant get thet CTP i'm just a student so the cost is a bit steep)using datasets and I want to allow the user to fill in text boxes and add fields without having to see the datagrids. In doing this I would like to add buttons to add (and save) a new item (row) to a dataset and also buttons to scroll through a data set (i tried this ->Binding ...Show All
ig3 use of __value as a variable name in unmanaged c++ code
Hi, I think I get a compiler error when defining a variable named __value, even in unmanaged code. For example: I create a new win32 console application project, and add a single file containing something like: void main () { int __value; } I get the errors: error C4980: '__value' : use of this keyword requires /clr:oldSyntax command line option error C2059: syntax error : '__value' My guess is that this is related to th ...Show All
Yogi Verite Visual C++ 6 Project with ASM module -> VS2003
I have a project myself and a friend worked on in Visual C++ 6 some time ago. I am now trying to port this project to Visual C++ v7.1 as part of my move to Visual Studio.Net 2003. One of the module in the file is a .ASM file which was assembled using MASM 6.11 as a custom build. On attempting to assemble this project I am getting the following message: Performing Custom Build Step Microsoft (R) Macro Assembler Version 7.10.3077 Co ...Show All
