Answer Questions
dmestel vector<bool>::iterator problem
I have a function which starts with the following: bool CPrng::Seed() { // Used for recording succeses vector< bool > BoolVector; vector< bool >::iterator it; ... The code works fine under gcc and VC6 + VC.NET 2003 but in Whidbey Beta2 it gives: C:\Program Files (x86)\Microsoft Visual Studio 8\VC\INCLUDE\vector(1358) : error C2664: 'std::_Vector_const_iterator<_Ty,_Alloc>::_Vector_const_iterator(const s td::_Vect ...Show All
howardt ostream::seekp not working.
After I converted the following from VC 6.0 to VS 2005, the seekp() call stopped working. Can anyone confirm that this is a bug, or have I configured something incorrectly std::osftream myStream; myStream.open( " myFile ", std::ios_base::out | std::ios_base::app ); myStream << < xml version=\"1.0\" >\n<LogFile>\n"; myStream << "</LogFile>"; . . . ...Show All
DNA Dashboards is it x64 (?)
Hi, I have a AMD opteron machine on which i have installed Windows 2003 server. The systems information displays it to be a X86 Based PC!. Also programs compiled on visual studio 2005 Beta2 for x64 fail to run on the same machine. Message from one of my test programs.. "C:\MntFSWin64\Hex_dump2\Hex_dump2\x64\Debug>.\Hex_dump2.exe The image file C:\work\imk\MntFSWin64\Hex_dump2\Hex_dump2\x64\Debug\Hex_dump2.exe is valid, ...Show All
Calumm Unhandled C++ exceptions and Doc Watson
Here is my problem. I have an unmanaged C++ application that occasionally has an unhandled C++ exception. Following good debugging practices I have the PDBs installed on the target machines that demonstrate the problem. Under normal circumstances when an exception occurs Doc Watson will log the information I need (like call stack) to duplicate the problem. Doc Watson is properly configured and works for general exceptions like Win32 exceptions. ...Show All
thomasn Problem with accessing a vs2003 DLL from a vs2005 application
I have a major problem. I have only the header files, the lib and DLL from a vs2003 project. I am calling a function exported from the DLL from a vs2005 application. And C++ templates are used everywhere. From the following thread, I found out the data of the template functions are not compatible: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=136960&SiteID=1 I wonder if anybody has some help for me. The source for the vs2003 p ...Show All
intech Unable to manipulate the ListControl present in Open dialog box of Notepad application.
Hi, I am trying to select an item of the ListControl programatically present in an Open dialogbox of Notepad application. But my application exits as soon as i post the message to select it. My code is .. LVITEM lvItem; ZeroMemory( &lvItem , sizeof(LVITEM) ); lvItem.mask = LVIF_STATE; lvItem.item = 0; lvItem.subItem = 0; lvItem.state = LVIS_SELECTED; lvItem.stateMask = LVIS_SELECTED; ::SendMessage( hwnd /*Handl ...Show All
Paramjyot Need help
Hi, I'm completely new to C++ and I bought the book Sams Teach Yourself Visual C++ 6 in 21 days and it says to open a new project and click on MFC AppWizard (exe) but it's not there :( I got Microsoft Visual Studio 2005 by the way. Does anyone know how to solve this problem Cheers, Henry VC++ 6 has many differences from what is in current release. MFC has always given me a headache, I neve ...Show All
DanLi msvcirt.lib and iostreams.h
I am compiling a set of libraries with nmake from Visual C++ Express 2005, and the linking process for two of the libraries requires both msvcirt.lib and iostreams.h. These files previously shipped with, I think, Visual Studio 2002, and may now be deprecated (I'm not sure). Is there a source or download site for these two files for use with nmake/ Visual C++ Express 2005 /Ross These file ...Show All
SyedHassan Visual C++ 1.52
I need a copy of Visual C++ 1.52 for an application. Any Idea where to find one The 16-bit Visual C++ 1.52 compiler is available on MSDN Subscriber downloads ( http://msdn.microsoft.com/subscriptions ). I'm not aware of anywhere else that you can get it. Cheers, Kenny Kerr http://weblogs.asp.net/kennykerr/ ...Show All
CmanFsu problem with afximpl.h in VC2005
I'm working on a library that has to continue to compile in VC6, but also support up to VC2005. We have this block of code all over the place: #ifndef __OXMFCIMPL_H__ #if _MFC_VER < 0x0700 #include <..\src\afximpl.h> #else #include <..\src\mfc\afximpl.h> #endif And src\MFC\afximpl.h continues to exist in VC2005, but I get these errors: Error 1 error C2143: syntax error : missing ';' before '<' ...Show All
WDK_Kernel how can i use the type struct in VISUAL C++??... i'm new in visual c++
hi! i have a program in c++ and i want to do it in visual c++, but i found a problem, in the code program made in c++ i use a type struct : struct ind { char *c; int f; } but i think that in visual c++ doesn’t exist the type struct , i'm not sure..... can i use the type struct in VISUAL C++ or what other kind of struct may i use i think that is the main question.... WH ...Show All
Shiku forward reference to class template - template param not in scope
I'm seeing what look like buggy results from the compiler where it chokes on the use of a T<X>& to a declared but undefined class template T (a forward reference), iff the fwd reference is to a dependent type name (e.g. X is a template parameter). Looks rather like a 2-phase name lookup bug of some kind - an area where the compiler has had conformance issues with the C++ Standard. Here is a file I wrote that reproduces the problem as ...Show All
Jeffrey van Gogh how to save html file in VC++
hi, i want to save a html file from my browser. i have created my own browser and want to save the html file.. i have used ACTIVE X controls to make my own web browser(same as IE).. it should be like that of SAVE AS option of IE.. plzzhelp.. As i saw there is no directly way. You need to go throgh the elements of the webpages and put them into a stringlist and then save it. Thats one way. Look into your projec ...Show All
Joe Kelly How to read a binary file?
Hi! I'm just a beginner in C++, though i had tried to learn and do some examples from books,i find it was hard to manage my project. I was trying to open a binary file but i failed. As i had mentioned, i searched through a few books but all i got was just a line of command. I'm not sure how it is supposed to work...... like after i open the binary file, should i represent the binary value with something if not, how to process the values then ...Show All
Stonaltar Need help
Hi, I'm completely new to C++ and I bought the book Sams Teach Yourself Visual C++ 6 in 21 days and it says to open a new project and click on MFC AppWizard (exe) but it's not there :( I got Microsoft Visual Studio 2005 by the way. Does anyone know how to solve this problem Cheers, Henry What edition of visual studio do you have BTW, you might face some difficulty in applying some of th ...Show All
