News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Issue with .IF conditionals

Started by Vortex, April 06, 2025, 01:07:48 PM

Previous topic - Next topic

Vortex

Hello,

Some .IF conditionals are reporting the following error message :

E:\PellesC\sample\a5>\PellesC\bin\poasm /AAMD64 GdipCreateBmpFromFile.asm
E:\PellesC\sample\a5\GdipCreateBmpFromFile.asm(93): error: Wrong type for condition operand 1.
E:\PellesC\sample\a5\GdipCreateBmpFromFile.asm(114): error: Wrong type for condition operand 1.
E:\PellesC\sample\a5\GdipCreateBmpFromFile.asm(131): error: Wrong type for condition operand 1.

The .IF statements :

   .if uMsg == WM_CREATE
 .
 .

    .elseif uMsg == WM_PAINT

    .elseif uMsg == WM_DESTROY

Error reported by Poasm V13.00.1
Code it... That's all...

Vortex

Hello,

32-bit code is not affected by the issue. Attached zip file contains a project ( 32-bit ) built with Poasm V13.00.1
Code it... That's all...