Answer Questions
Michael S. Kaplan Graphics* graph; doesn't work
I just opened a project in Visual Studio 2005 beta 2(c++) and I want to draw, but I cannot declerate Graphics and Pen. My code: #pragma once namespace TicTacToe { using namespace System; using namespace System::ComponentModel; using namespace System::Collections; using namespace System::Windows::Forms; using namespace System::Data; using namespace System::Drawing; public ref class Form1 : publ ...Show All
RyanL AMD 64 Optron and Manifest
When I add manifest to my application it does not work on AMD Optron 64 Biit platform. But the same application when built without Manifest works fine. I am a little puzzled wether Manifest has any special mechanism of deployment on AMD optron 64 bit machine. In this case I would advise you to make sure you have the dependencies setup as described in details at http://blogs.msdn.com/nikolad/archive/2005/03/18/398720.aspx since ...Show All
Matt Attaway Microsoft Visual C++ Runtime Library error question
I recieve this error when I launch Internet Explorer - version 6.0 OS Windows XP Home edition 2002 Service Pack 2. Error is as follows: Microsoft Visual C++ Runtime Library Runtime Error! Program C:\Program Files\Internet explorer\iexplore.exe This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. I am not certain where to post this questi ...Show All
d.th CFrameWnd::OnSetPreviewMode ASSERTs in VC 2005 but not VC 6.0
I have a VC++ 6.0 MDI project that uses a class derived from CPreviewView to provide some mildly enhanced Print Preview functions. The class is invoked according to the MSDN documentation by calling DoPrintPreview. In Visual Studio 2005 the program asserts in Debug mode at the last line of this fragment from winfrm.cpp: void CFrameWnd::OnSetPreviewMode(BOOL bPreview, CPrintPreviewState* pState) { ...etc... if (bPreview) { // Ente ...Show All
Albert_Khor Resources
I am looking for resources to learn about Visual C++. can anyone help me (Not the Webcasts). ...Show All
Dave Matsumoto How VS 2005 decides to build a project
I have a project that keeps building even if it completes successfully in VS 2005. Is there a way to determine what is causing this build to kick off instead of it saying up to date Sure, the project that keeps rebuilding is an unmanaged C++ DLL. Actually the behavior has changed since the weekend. Now it only relinks/embeds the manifest every time we build it. Many of our projects depend upon this one ho ...Show All
Zeeshan Hanif formview and dialog create fail after some time
My application is a MDI ,devloped by vc++6.0, It is behave good at beginning. after some time It fails to create formview that have activex control created by vb 6.0 .when trace into the mfc ,found the after CoCreateIntance and get the IPersistStreamInit interface ,call it's load method failed .after modify the control ,found that if have image the load from .ico file or have edit textbox control ,the ocx always fail.otherwise it succeed. and fo ...Show All
chrisexv6 edit & continue
Hello, I converted all my projects from VC7.0, but in VC8.0 edit & continue don't work anymore. Allways when I try to change code while debugging, independent of my changes, I get the following dialobgox Edit and Continue Edits were made which cannot be compiled Click Edit to fix the code Click Stop to stop debugging Click ignore to continue without applying the edits Any Ideas Greetings Markus ...Show All
wynfred Weird behaviour of "Textout" ...
Gentle people, This drives me nuts! Please consider the following pieces of code: InitInstance: szBkwMsg = "Message1"; <----- ShowWindow( hWnd, nCmdShow ); UpdateWindow( hWnd ); SendMessage( hWnd, WM_COMMAND, IDM_BKW , 0 ); WndProc: case IDM_BKW: while (szInDs == "") { if (DialogBox(hInst, .... <----- { } } szBkwMsg = "Message2"; <----- UpdateWindow( hWnd ); DialogBox(hInst, ... <----- case WM_PAI ...Show All
Dazzl mfc42.lib
I am compiling a simple project using the directx sdi and it wants mfc42.lib , now there is a 64bit mfc42.lib but no x86 version , i have googled like crazy only 55 hits for mfc42.lib i cannot seem to dowload it from anyplace for x86. bug dropped ball any advice greatfully recived [edit] Compiling on beta 2 [Additional] The link to mfc42.lib is in AFX.H from the latest PDSK mfc and it seems that the latest AFX has some real issues with 2005 beta ...Show All
GlynD_002 using ATL macro to change LPSTR to LPCWSTR
Hello, I'm making a 3D game and realized I would have to face many problems and maybe trying to "reinvent the wheel" on my own, if I wanted to implement SETTINGS -(for graphics mode) in my game. So I am going for DXUT framework or engine by Dx team or what it is called to simplify my life. But I am facing some problems, because it is using UNICODE and I need to change LPSTR to LPCWSTR so I use macro A2W(lpstr) and inc ...Show All
Poida Why doesn't the following compile under VC2003?
Why does the following code snippet not compile in Visual C++ 2003 It compiles under GCC, so why not in VC2003. What is wrong with it // Outter class: class Outter { public: // First inner class: template class Inner1 {}; // Second Inner class: class Inner2 { public: // Method definition: Outter* Inner1() {} }; }; Sure - well, I assumed that the site had stripped the tags. Why would you use the template keyword ...Show All
lpasquali Very simple webserver code
I am making a very simple webserver -it does not need to have any sort of cross-platform compliance, it simply needs to work with IE6. I have the following code which is simply supposed to read in a web page stored on the disk and serve it to the client. Code follows (I cannot figure out how to format the text.. it's ugly): void SendLogin ( int clientNum ){ ifstream file ( ".\\HTM\\login.htm" ); if ( file == NULL ) re ...Show All
GanitMandir Program closing right after opening
Hi all, I have tried to compile a program from the book C++: A Beginner's Guide by Herbert Schidt. The problem I encounter is when I try to run the program from the folder, that is the .exe file I believe located in: C:\Documents and Settings\Peter\My Documents\Visual Studio 2005\Projects\sample1\debug This simply closes after opening. Am I running it from the correct location I can't find an executable file anywhere else in the sample 1 f ...Show All
pelazem lnk2019 error for KERNEL32.LIB symbol
hello all, i am porting a vc6 project to vc8 and after rebuilding all my old libs i still get 2 lnk2019 errors for symbols that should be in KERNEL32.LIB : i checked linking with linker option "/verbose" and also checked my old program using vc6 where it finds the two symbols in KERNEL32.LIB, no problem these are my error messages: 1. hblib_d.lib(mutex.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) long __stdcall Interl ...Show All
