SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Compile problem for 64 bit

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
ottigeda



Joined: 07 Feb 2010
Posts: 8

PostPosted: Mon Oct 24, 2011 10:30 am    Post subject: Compile problem for 64 bit Reply with quote

Hi

If I try to compile one of my projects for 64 bit with Delphi XE2, I get the following 2 errors in siDialog.pas:

[DCC Error] siDialog.pas(1678): E2089 Invalid typecast
[DCC Error] siDialog.pas(1684): E2089 Invalid typecast

This 2 lines are part of procedure TsiBrowseForFolder.DoShow;

The problem seems to be that 64bit long variables are casted to LongInt which is still 32 bit:

SendMessage(FHandle, WM_SETTEXT, 0, LongInt(FDialogCaption));
SendMessage(FHandle, BFFM_SETSELECTION, LongInt(True), LongInt(FSelectedDir));

Would it be better to cast it to NativeInt? Because that is 32bit long for 32bit executables, and 64 bit long for 64 bit executables.

Best Regards
Ottiger Daniel
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2096

PostPosted: Mon Oct 24, 2011 3:55 pm    Post subject: Reply with quote

Hello,

Do you use the latest version?
Yes, there should be used NativeInt. This is already done in the latest version.
Back to top
View user's profile Send private message
ottigeda



Joined: 07 Feb 2010
Posts: 8

PostPosted: Tue Oct 25, 2011 8:59 am    Post subject: Reply with quote

I use version 6.5.4.1, is this not the latest version ?

I download it again (i do not get the same binary for whatever reason).
I uninstalled it, installed it again, but the 2 lines in siDialog still have LongInt?

Am I doing something wrong?
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2096

PostPosted: Wed Oct 26, 2011 5:35 am    Post subject: Reply with quote

I'm sorry. It looks like the source file for siDialog unit was incorrect in the install package. Please re-download the setup from our web site. We've re-built the setup.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group