Theos PowerBasic Museum 2017

Archive => Discussion - Legacy Software (PBWIN 9.0+/PBCC 5.0+) => Topic started by: Alexey Voronov on October 16, 2009, 07:28:58 PM

Title: Re: FreeImageCtx: Image Control
Post by: Alexey Voronov on October 16, 2009, 07:28:58 PM
José, at compilation of an example the error stands out:

Error 460 in D:\PB_MYPROG\FREEIMAGE\FREEIMAGECTX.INC(50:047):  Undefined equate
Line 50:    wcex.hInstance     = GetModuleHandle(BYVAL %NULL)
Title: Re: FreeImageCtx: Image Control
Post by: José Roca on October 16, 2009, 08:17:05 PM
 
You must not be using the latest FreeImage.inc. Anyway, add #INCLUDE "win32api.inc" at the beginning of your program.
Title: Re: FreeImageCtx: Image Control
Post by: Alexey Voronov on October 16, 2009, 08:26:46 PM
Thanks. I thought of this. But in this case there are double announcements.
For example:
Error 468 in C:\PROGRA~1\POWERB~1.0\POWERB~1.0\WINAPI\WINNT.INC(195:046):  Duplicate equate
Line 195: %ERROR_SEVERITY_WARNING       = &H80000000???

Title: Re: FreeImageCtx: Image Control
Post by: José Roca on October 16, 2009, 08:37:43 PM
 
My examples for PBWIN 9.x use my include files, available at: http://www.jose.it-berater.org/smfforum/index.php?topic=3189.0

You can't mix them with the ones provided with the compiler:

Quote
Unzip the attached file to a folder of your choice and replace the PB Include path in the PB Ide or the editor that you are using to that folder instead of C:\PBWin90\WinApi.
Title: Re: FreeImageCtx: Image Control
Post by: Alexey Voronov on October 16, 2009, 08:46:32 PM
The problem is solved, thanks.