(IUIX_Combo) FindItemByParam x86 vs x64  SOLVED

PDF-XChange Editor SDK for Developers

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
zarkogajic
User
Posts: 1520
Joined: Thu Sep 05, 2019 12:35 pm

(IUIX_Combo) FindItemByParam x86 vs x64

Post by zarkogajic »

Hi Support,

I'm using FindItemByParam to locate the "Browse For Folder" item in the "cb.where" combo inside the IPXV_SearchView.

Here's what I'm doing:

Code: Select all

//pseudo code

IUIX_Combo combo;

comboBFFItem = combo.FindItemByParam($FFFFFC17);//PARAM_T(-1001)

combo.SetItemStyle(comboBFFItem, UIX_ComboItemStyle_Disabled, UIX_ComboItemStyle_Disabled)
When compiling for x86 this works as expected, the comboBFFItem value is 3 and it gets disabled.

When compiling for x64, same code, the comboBFFItem is -1.

Any idea?

p.s.
When using combo.GetItemParam(3), 3 is where the "browse for folder" is, both in x86 and x64, the returned value is "4294966295" / "FFFFFC17" / "-1001"


-žarko
zarkogajic
User
Posts: 1520
Joined: Thu Sep 05, 2019 12:35 pm

Re: (IUIX_Combo) FindItemByParam x86 vs x64  SOLVED

Post by zarkogajic »

Hi Support,

Sorry, my bad. One should not multitask on a Friday :)

I was using the x86 import file instead of x64.

Case solved, closed.

Sasha - PDF-XChange
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am

(IUIX_Combo) FindItemByParam x86 vs x64

Post by Sasha - PDF-XChange »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ