Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 20, 2013, 05:55:45 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Build in VS2005  (Read 6221 times)
snowvalley
JkDefrag Junior
**
Posts: 7


View Profile
« on: May 15, 2007, 06:22:11 am »

Hi, Show the Error   
1   error C2664: 'TextOutW' : cannot convert parameter 4 from 'char [512]' to 'LPCWSTR'   jkdefrag.cpp   407   
When I building in VS2005.

Because I am not familiar with VS2005.

Can you help me?

Thank you!
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #1 on: May 15, 2007, 08:17:06 am »

I am guessing you are not using the supplied Makefile, but have created a project and that the project is set to Unicode. The JkDefrag sources are not Unicode....
Logged
snowvalley
JkDefrag Junior
**
Posts: 7


View Profile
« Reply #2 on: May 15, 2007, 10:03:52 am »

Thanks for your message first.

Yes, I have create a project for jkdefrag ,Because I will debug it.

How can I change some Compiler parameters and let it go? :-)

Or others methods for debug it?

Thank you!
Logged
snowvalley
JkDefrag Junior
**
Posts: 7


View Profile
« Reply #3 on: May 15, 2007, 10:11:44 am »

Also, this is the code for line 407:
TextOut(GraphicsBuffer,2,0,Messages[0],(int)strlen(Messages[0]));
the Message[0] is the char[512] ,but the params need LPCWSTR, It show the TextOut auto trans to TextOutW. So I think how to call the TextOut?

Thank you!
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #4 on: May 15, 2007, 12:57:46 pm »

Quote from: "jeroen"
Quote from: "snowvalley"
How can I change some Compiler parameters

Read the manual. I think you can turn off Unicode in the "General" section in the project properties, the "Character Set" setting, by selecting "Use Multi-Byte Character Set".

Quote from: "snowvalley"
So I think how to call the TextOut?

I think it will work if you change "TextOut" to "TextOutA". But you will find this is just the first of many, many changes you will have to make. Better to find the Unicode setting in your compiler.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!