C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 11th, 2006, 03:34 PM
Diod Diod is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 5 Diod User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 13 m 6 sec
Reputation Power: 0
Problem with DrawText (DirectX9)

Im trying to compile http://www.codeproject.com/directx/dx8template.asp?df=100&forumid=2651&exp=0&select=146195 with Microsoft Visual C++ 6

But its giving me

Quote:
--------------------Configuration: project - Win32 Debug--------------------
Compiling...
dx9_fonts.cpp
C:\Sander\dx9_fonts\dx9_fonts.cpp(201) : error C2660: 'D3DXCreateFont' : function does not take 12 parameters
C:\Sander\dx9_fonts\dx9_fonts.cpp(248) : error C2660: 'DrawTextA' : function does not take 6 parameters
C:\Sander\dx9_fonts\dx9_fonts.cpp(251) : error C2660: 'DrawTextA' : function does not take 6 parameters
C:\Sander\dx9_fonts\dx9_fonts.cpp(254) : error C2660: 'DrawTextA' : function does not take 6 parameters
Error executing cl.exe.

project.exe - 4 error(s), 0 warning(s)


Why? In MSDN D3DXCreateFont does have 12 params...

Is there an easy way to do something like DrawText but then in OpenGL?

Reply With Quote
  #2  
Old April 13th, 2006, 09:54 AM
Cirus Cirus is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 276 Cirus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 11 h 48 m 58 sec
Reputation Power: 4
Quote:
Originally Posted by Diod
Im trying to compile http://www.codeproject.com/directx/dx8template.asp?df=100&forumid=2651&exp=0&select=146195 with Microsoft Visual C++ 6

But its giving me



Why? In MSDN D3DXCreateFont does have 12 params...

Is there an easy way to do something like DrawText but then in OpenGL?

May be you are either supplying wrong number of argumments or are using differentversin of this funciton.

Just look at MSDN for this function's help.You will find its proper header and library file.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > Problem with DrawText (DirectX9)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT