• Welcome to Powerbasic Museum 2020-B.
 

News:

Forum in repository mode. No new members allowed.

Main Menu

struggling with VISTA 64-bit

Started by Patrice Terrier, January 05, 2009, 07:59:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Greg Lyon

QuoteWhich true compiler you know (except VISUAL STUDIO) that offers already such feature?

C Compilers
  Pelle's C
  GCC

Assemblers
  PoAsm (comes with Pelle's C)
  GoAsm

Patrice Terrier

Who has ever done pointer marshalling with Pb9?

I have no idea how to do this myself.

:(
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Petr Schreiber

Hi Patrice,

maybe wrong idea, but what about using QUADS (64bit opposing to 32bit DWORD) to store pointer?
I guess this alone would not be sufficient, but could be part of the right path?

Maybe using something like:

%TARGET_BITS = 32

#IF %TARGET_BITS = 32
  MACRO wHANDLE = DWORD
  MACRO NAKEDPOINTER = DWORD
#ELSE
  MACRO wHANDLE = QUAD
  MACRO NAKEDPOINTER = QUAD
#ENDIF


... could be good practise? Don't know...


Petr
AMD Sempron 3400+ | 1GB RAM @ 533MHz | GeForce 6200 / GeForce 9500GT | 32bit Windows XP SP3

psch.thinbasic.com

Patrice Terrier

Petr,

Unfortunatly this couldn't be as simple as this.

I have checked several 64-bit application(s) with 32-bit DLL(s) and i always get an error message telling me that this couldn't be done.

...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

José Roca

 
The macros are useful when you have to compile the same source with a 32 bit or 64 bit compiler, but a 32 bit application can't use 64 bits DLLs and 64 bit applications can't use 32 bit DLLs.

32 bit applications can use 64 bit COM out of process servers and 64 bit applications can use 32 bit out of process servers, but with in-process servers you will have the same problem that with standard DLLs.

Patrice Terrier

Yes "le serpent se mord la queue" (snake is biting his tail), i wouldn't have to wait too long before PB-64 is coming out, or i'll have no other choice than moving all my code to C, fortunatly i wrote it in pure SDK.

:'(
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Patrice Terrier

Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Patrice Terrier

#22
I did further test on VISTA 64-bit, and i encountered a strange problem with the old GDI StretchBlt API that sometimes failed without any error with 32-bit bitmap (looks like an Alpha channel problem), while using the Alphablend API (in the same situation) always works fine.

...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Theo Gottwald

@Patrice,
I guess you are on the wrong road.

In Vista 64 or not, applications can only sent messages to Applications when they have the same rights.

Just start your application "as Admin" and see what happens.
I the same way you may have trouble to read colour-values from windows, which are from higher-righted processes.

This is part of the new UAC-Safety-System

Patrice Terrier

#24
Theo,

Quote
Topic Summary
Posted on: Today at 06:58:38 PMPosted by: Theo Gottwald 
Insert Quote
I guess you are on the wrong road.

In Vista 64 or not, applications can only sent messages to Applications when they have the same rights.

Just start your application "as Admin" and see what happens.
I the same way you may have trouble to read colour-values from windows, which are from higher-righted processes.

This is part of the new UAC-Safety-System


Well, i think I am (already) aware of this  ;)

Added:
I have used the VISTA 32-bit since almost two years in administrator mode, and with the UAC being turned off.

Read the whole thread about the issues between 32-bit and 64-bit. Search also on Google for mixing X64 with 32-bit applications.

...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Theo Gottwald

ok, was just a guess. I think i should try next time first :-).

Patrice Terrier

Other VISTA 64 issue(s), i have encountered:

1 - I am unable to remove the small arrow overlay from the desktop shorcuts.
2 - I am unable to print (with my wi-fi HP Photosmart C 6180) from IE7, while it does just fine with FireFox.

Note: I didn't had these problems with VISTA 32-bit

...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Theo Gottwald


Patrice Terrier

#28
Theo,

YES, we need a 64-bit compiler to work with those Windows OS runing in X64 mode(XP, 2005, VISTA and now Windows 7).

Added:
So far, i do not need "bells and whistles", if this could help to produce it faster ;)
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Patrice Terrier

I just downloaded and installed the C# VS2008 Express Edition, to try it with my PowerBASIC GDImage.dll.

Unfortunatly it doesn't work with it, because i am on VISTA x64 and the VS2008 generates x64 code instead of x32, and so far i didn't find how to configure the Express Edition to generate a 32x target solution.

If you know how to setup the VS2008 Express Edition to target the x32 platform, i would be glad to learn about it.

...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com