Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++ 2005
|
Visual C++ 2005 For discussion of Visual C++ 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ 2005 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 June 11th, 2008, 07:47 AM
Registered User
 
Join Date: Jun 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Ivor Hortons Beginning Visual C++ 2005

I am encountering the following errors when trying to compile the code give as part of Ex11_01. Could some kind soul kindly offer some advice ....Thank You

----- Build started: Project: EX11_01, Configuration: Debug Win32 ------
Compiling...
ex11_01.cpp
c:\documents and settings\dave ledgett\my documents\visual studio 2005\projects\ex11_01\ex11_01\ex11_01.cpp(14) : error C2440: 'static_cast' : cannot convert from 'const char [6]' to 'long'
        There is no context in which this conversion is possible
c:\documents and settings\dave ledgett\my documents\visual studio 2005\projects\ex11_01\ex11_01\ex11_01.cpp(61) : error C2664: 'CreateWindowExA' : cannot convert parameter 3 from 'const wchar_t [28]' to 'LPCSTR'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\documents and settings\dave ledgett\my documents\visual studio 2005\projects\ex11_01\ex11_01\ex11_01.cpp(103) : error C2664: 'DrawTextA' : cannot convert parameter 2 from 'const wchar_t [52]' to 'LPCSTR'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Build log was saved at "file://c:\Documents and Settings\Dave Ledgett\My Documents\Visual Studio 2005\Projects\EX11_01\EX11_01\Debug\BuildLog.htm"
EX11_01 - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========
 
Old June 11th, 2008, 08:45 AM
Registered User
 
Join Date: May 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Perhaps the "show function" is error.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Page 40 missing Ivor Horton's Beginning Visual C++ margoskafu Visual C++ 2005 0 December 12th, 2007 11:38 PM
Beginning Visual c# 2005 - Chapter 15 help Lucy_H85 C# 2005 6 October 12th, 2007 09:05 AM
Source Code re Ivor Hortons Visual C++ 6.0 gavin_murray Visual C++ 5 September 27th, 2007 09:05 PM
Beginning Visual C++ 2005 pendragon Visual C++ 2005 1 June 3rd, 2007 04:27 PM
Beginning Visual C# or Beginning Visual C# 2005? FTemplar C# 2005 2 May 2nd, 2006 02:34 PM





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