Wrox Programmer Forums
|
BOOK: Beginning Visual C++ 6
This is the forum to discuss the Wrox book Beginning Visual C++ 6 by Ivor Horton; ISBN: 9780764543883
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual C++ 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 1st, 2004, 04:53 PM
Registered User
 
Join Date: Mar 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to astolpho
Default Windows the hard way

I attempted to enter the program in chapter 7. I was able to compile and link the code but receive a :

First-chance exception in OFWIN.exe (USER32.DLL): 0xC0000005: Access Violation.
The program 'C:\Program Files\Microsoft Visual Studio\MyProjects\OFWIN\Debug\OFWIN.exe' has exited with code 0 (0x0).

when the program tries to execute the:

RegisterClass(&WindowClass);

line. Does anyone know how I can fix this?
 
Old March 1st, 2004, 05:32 PM
Registered User
 
Join Date: Mar 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to astolpho
Default

Never mind I found my problem was that I left out the line defining the

menu:WindowClass.lpszMenuName = 0; //menu name... no menu

adding this line corrected the problem








Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard coded paths pauliehaha Classic ASP Professional 8 February 6th, 2007 06:48 PM
Hard coded examples etrump BOOK: Professional Ajax ISBN: 978-0-471-77778-6 1 March 1st, 2006 02:10 PM
Selecting a table name ... quite hard !!! SKE Classic ASP Databases 0 May 16th, 2005 06:23 AM
Hard frames problem johnjohn Classic ASP Databases 0 November 30th, 2004 10:38 AM
Doesn't recognize hard drive linuxboy Linux 0 October 31st, 2003 02:39 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.