• Welcome to Theos PowerBasic Museum 2017.

Re: FreeImageCtx: Image Control

Started by Alexey Voronov, October 16, 2009, 07:28:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Alexey Voronov

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)

José Roca

 
You must not be using the latest FreeImage.inc. Anyway, add #INCLUDE "win32api.inc" at the beginning of your program.

Alexey Voronov

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???


José Roca

 
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.

Alexey Voronov