Answer Questions
mfroster LNK2001 _DebugHeapTag_t -- Missing Something...
Hello, I've read over quite a few other posts and found many that are similar, but none that are identical, and none of their solutions solve my problem. Any thoughts would be greatly appreciated. Here's what I get while linking: buildsummaryform.obj : error LNK2001: unresolved external symbol "void * __cdecl operator new[](unsigned int,struct std::_DebugHeapTag_t const &,char *,int)" ( _U@YAPAXIABU_DebugHeapTag_t@std@@PADH@Z) buildsummaryform.obj : error LNK2001: unresolved external symbol "struct std::_DebugHeapTag_t const & __cdecl std::_DebugHeapTag_func(void)" ( _DebugHeapTag_func@std@@YAABU_DebugHeapTag_t@1@XZ) There are two of these errors for every file in my project. I think I'm missing a library, but I don't know which. I ...Show All
WolvenGarde How do I build binary with debug information?
How do I build binary with debug information So that I can debug the program using the debugger I am having the same trouble. I started to think it was a limitation of the express edition. I can set breakpoints, but the code does not stop. Even if it did, there's no debug information. Thanks. It works fine for me on C++ VS2005. Linker -> Debugging -> Generate Debug Info / Generate Program Database File) = Yes I already have it on Debug and not on release. But that does not seems to help. Anything else I have to set to build the binary to get debug information Thank you. ...Show All
tronix ATL syntax errors in VC++ 2005 Professional Ed.?
Hey guys, I am trying to compile some base code I was given provided which uses the atlimage.h header file. I'm not familiar with using ATL, and I'm definitally not familiar with using ATL in VS 2005, but I have been unable to find any good documentation outlining any settings I might need to change. When I attempt to compile the project currently, I get the following errors: Texture.cpp d:\program files\microsoft visual studio 8\vc\atlmfc\include\atldef.h(413) : error C2059: syntax error : 'do' d:\program files\microsoft visual studio 8\vc\atlmfc\include\atldef.h(413) : error C2143: syntax error : missing ';' before '{' d:\program files\microsoft visual studio 8\vc\atlmfc\include\atldef.h(413) : error C2447: '{' : missing function header ...Show All
cloud strife Linking an app in debug mode against libraries built with /MD
Here's the situation: I have some third party DLLs, built with Visual Studio 2005, and which were compiled with the /MD switch (multithreaded DLL CRT libraries). I want to build my application in debug mode, using the debug CRT (/MDd switch), linked against the libraries above. In VS 2003 .NET I could get this to work, but not with VS 2005. I continually see the message "MSVCR80.DLL not found" when I try to run the app. The third party DLLs were built using nmake and so have external .manifest files that are in the same directory as the DLLs. The directory containing these DLLs in on the PATH. My app is built using the VS 2005 IDE and so has an embedded manifest. If I use the "depends" tool that comes with ...Show All
elittle27 Reading from a dynamically updating text file
I am writing an application in VC++, a part of which requires me to read data from a file and dump it to a text box. Now this file gets updated in real time so I have to read strings as and when they get to the file. How do I wait on the file update Thanks, that helped. I'm able to raise events based on file changes. Quick question - you mentioned dump of text on change, how do I get that done Did you take a look at the FileSystemWatcher You could dump the text on each change. Hmm - I can't think of a specific, but try System::IO. You're bound to find something in there. ...Show All
vicarious Question on Visual Studio C ++ 6.0
I was compiling a source code of Visual C++ in Visual Studio 6.0 environment. The code contains German and Italian characters in the comments. When the complier reaches that point it outputs as "fatal error C1071: unexpected end of file found in comment". Since this occurs in many places could you help me how could I resolve the problem I need to leave those comments untouched but on the other hand need to compile the source codes and run the executable. Is there any way exactly how this could be done in Visual Studio C++ 6.0. I am in Canada, using English as my first language. If you're running on XP you can try using Microsoft Applocale utility to launch MSDEV.EXE using a different default system codepage. Th ...Show All
Bravo2007 Running a very simple Win32 app on a comp without VC++ 2005 Express
Hi! I have installed VC++ 2005 Express and the Platform SDK according to the instructions on MSDN: http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/default.aspx Compiling and running the following program on the dev computer works like a charm: http://www.winprog.org/tutorial/simple_window.html I then changed to release-mode, turned off debugging in the project properties and copied the .exe to another computer without VC++ 2005 Express on. I pretty much expected problems, so I wasn't very surprised when I got the error message saying that there was something wrong with the program configuration, like the one here: http://forums.microsoft.com/msdn/showpost.aspx postid=23371&siteid=1 I have since then combed this forum and ...Show All
danni123 Prevent same string in ofstream
Hi all. Is there a way to prevent ofstream from writing the same line if it already exisits If so please let me know because i wrote a function that loops the time/date but it keeps on showing the same time/date. Thanx in advance! Before anyone asks. My code below. #include #include #include using namespace std; int main (){ while(1){ Sleep(300); char date [9]; char time [9]; _strdate(date); _strtime(time); ofstream file1; file1.open("time.txt",ios::app); file1 << "[Date]: " << date << endl; file1 << "[Time]: " << time << endl; file1.close(); } return 0; } Note: the idea is to update when the time changes, not to write the same time over and over until it ...Show All
Chris D Jones "archive member will be inaccessible".. but it is accessible!
Hi All! I have a header managedobject.h containing among others this class template: template< class tManagedObject > class DeletedAtShutDown { typedef ManagedPointerAdapter<tManagedObject> mt_Adapter; public: DeletedAtShutDown(); protected: virtual ~DeletedAtShutDown(); private: mt_Adapter* m_pAdapter; }; #include "managedobject.cpp" this is part of managedobject.cpp with the implementation: template< class tManagedObject > DeletedAtShutDown<tManagedObject>::DeletedAtShutDown() { //... } template< class tManagedObject > DeletedAtShutDown<tManagedObject>::~DeletedAtShutDown() { //... } This gets compiled into a static library, resulting in this warning: warning L ...Show All
OswaldFig error C2144: syntax error : 'int' should be preceded by ')'
Sorry to bother with simple error, but i really can't find "int" in the code -_- below is part of the code and the line that's giving all the syntax errors is highlighted in red. Hope someone can help me, thx! I've already changed the compiler option to use /clr::oldsyntax too. template < class _Container> class string_append_iterator { protected : _Container* container; public : typedef _Container container_type; typedef void value_type; typedef void difference_type; typedef void pointer; typedef void reference; explicit string_append_iterator(_Container& __x) : container(&__x) {} string_append_iterator<_Container>& operator =( const ty ...Show All
Blipwort Marshalling
I have a native byte* buffer which I'm going to pass to a MarshalByRef object on a remote server (using .Net Remoting). I know that if I implement the MarshalByRef object in a way that it accepts a byte* too, it will complain that I cannot pass pointers to the server (which is absolutely right). So what would be the best replacement I myself used a cli::array<Byte>^ and used Mrshal::Copy() like this: int MyClient::Write(Byte* buffer, int size, unsigned long * writeNo) { array < unsigned char >^ aBuffer = gcnew array < unsigned char >(size); IntPtr^ ptrBuffer = gcnew IntPtr(buffer); Marshal::Copy( static_cast <IntPtr>(ptrBuffer), aBuffer, 0, size); ... m_W ...Show All
incognito79 VS 2005 Hangs...
Is anyone else experiencing an issue with USB drives and Visual C++ 2005. We are running VS Studio 2005 in a classroom setting. Students have absolutly no problem using USB storage with VB. However, C++ will not access these drives correctly without hanging or extreme performance degradation. We did not have this problem with VS Studio 2003... Even with the most simple "hello world" app, the system will hang if we create the app on the usb drive. We can create the same app on the desktop without incident. However, as soon as the location to create the app is changed to the USB drive and the compile process is started, the system will hang. Windows XP with VS 2005. This occurs on every machine... ...Show All
Lightness1024 Print Preview Crash
Hi, I have shifted my code from VS 6.0 to VS 2005. I am working on a MDI application which has a workbook model. I have prin preview option which in VS 6.0 would occupy my entire Minaframe and when closed only the print preview will close. But in 2005 i see tat it is not occupying the entire screen and appearing as a child window. I dont know why but because of this when i close my mainframe window with the print preview open the application is crashing. Wat is the change that has taken place in 2005 which is leding to this kind of a crash. Please help me in this..its really bothering me. Thanks & Regards, Millions of things have happened between VC6 and VS2005 and it's very likely that your bug is not directly related to print ...Show All
Hiral C++/CLI ICE while passing a member function pointer to template argument
The original code that caused ICE was different, but I narrowed it down to: #include "stdafx.h" using namespace System; struct Dummy { void bar() {} }; template < void (Dummy::*pmem)()> void foo() { void (Dummy::*memfunc)() = pmem; } int main(array<System::String ^> ^args) { foo<&Dummy::bar>(); return 0 ; } _Winnie C++ Colorizer The ICE occurs at line 14. If I remove line 19, everything's ok. Note, that this code causes no problems in native C++ compiler and is C++ ISO conformant (well, except for System::String^ and array<>^ part ;)) The only thing I can suggest ...Show All
ron2464 Strange 'new' behavior
Consider the following code: int** a = (int**)new int[][2]; // compiles ok int** b = (int**)new int[]; // compiles ok int** c = (int**)new int[2][]; // generates C2087 If I'm interpreting CPP2003 correctly, none of these are valid, as the expression inside the []'s is supposed to be a constant integral expression, which I doubt the empty expression is. In any case, why do the first 2 compile but not the 3rd They've marked the bug as "Won't Fix". Ah..., I missed that. Interesting, it looks like a bug indeed. Comeau and GCC both produce errors on all three lines. I would open a bug report here: http://connect.mic ...Show All
