Print Page | Close Window

Gui_WinZip Compile Error

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=17
Printed Date: 07 May 2024 at 2:16am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Gui_WinZip Compile Error
Posted By: jwhagen
Subject: Gui_WinZip Compile Error
Date Posted: 15 May 2003 at 2:57pm

When compiling the 3.00 library under the ALL Projects, I am receiving this error:

--------------------Configuration: GUI_WinZip - Win32 Unicode Debug--------------------
Compiling...
MainFrm.cpp
D:\Codejock Software\Xtreme Toolkit\Samples\GUI_WinZip\MainFrm.cpp(230) : error C2664: 'LoadBarState' : cannot convert parameter 1 from 'char [10]' to 'const unsigned short *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.

All Projects - 1 error(s), 0 warning(s)

The line at fault is:

LoadBarState("Bar State");

and changing it to

LoadBarState(_T("Bar State"));

Allows it to compile.




Replies:
Posted By: chaos user
Date Posted: 16 May 2003 at 1:20am

well you obviosly are compiling in uncode, where the characters are 2 bytes

Compile in Win32 Debug

Oh you might've installed the codejock XT only in unicode. Reistall it with normal ANSI support.



-------------
//forever loop
while(metal.rulez())
dostuff(); // :)


Posted By: jwhagen
Date Posted: 16 May 2003 at 6:24am

Yes, I am using UniCode (intentional) and have installed the full compliment of DLLs and Library files for the XTreme Toolkit. I need it to work in Unicode.

Thanks.



Posted By: chaos user
Date Posted: 16 May 2003 at 6:30am

well than you must link to the unicode libraries and write each string like this

L"Sample constant string"

without the L character it would be interpreted as char*, while  you need WCHAR*



-------------
//forever loop
while(metal.rulez())
dostuff(); // :)


Posted By: jwhagen
Date Posted: 16 May 2003 at 11:55am

Um... I was trying to let Codejock know of problems with their source code, not mine. Thanks anyway.



Posted By: kstowell
Date Posted: 21 May 2003 at 10:14am

Hello,

This problem has been corrected and a new version of the Xtreme Toolkit v3.1 has just been posted and is ready for download.

Cheers,
Codejock Support




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net