Jump to content

Problem with function GUICtrlCreatePic and 64Bit


Pino
 Share

Recommended Posts

Hi to all,

Here my problem with the function GUICtrlCreatePic:

-----------------------------------------------------------

32Bit program:

I compile a 32Bit program with the parameter

#AutoIt3Wrapper_UseX64=N

all pictures are visible, everthing is ok

when I start the program on a Windows 7 32Bit system

no pictures are visible

when I start the program on a Windows 7 64Bit system

-----------------------------------------------------------

64Bit program:

I compile a 64Bit program with the parameter

#AutoIt3Wrapper_UseX64=Y

no pictures are visible

when I start the program on a Windows 7 64Bit system

Here my example of a test code for testing:

#include-once
#include <WindowsConstants.au3>
#region
#AutoIt3Wrapper_UseX64=N
#endregion
$Form1 = GUICreate("", 800, 600, 0, 0, BitOR($WS_POPUP, $WS_BORDER))
GUISetState(@SW_SHOW)
$j = 1
For $j = 1 to 16
  For $i = 1 to 22
    GUICtrlCreatePic("rot.bmp", (32*$i)-32+($i*3), (32*$j)-32+($j*3), 32, 32)
  Next
Next
MsgBox(0,"","Wait for close")

I'm using AutoIT version 3.3.0.0.

What I'm doing wrong?

If you could find a solution for me I would be very grateful.

Many thanks

Pino

Link to comment
Share on other sites

Use a full path to the image file instead of only the file name. E.g.

GUICtrlCreatePic(@ScriptDir & "rot.bmp", (32*$i)-32+($i*3), (32*$j)-32+($j*3), 32, 32)

Further when running in x64 mode, system folders may have different redirections.

Br,

UEZ

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...