Pino Posted June 27, 2012 Share Posted June 27, 2012 Hi to all,Here my problem with the function GUICtrlCreatePic:-----------------------------------------------------------32Bit program:I compile a 32Bit program with the parameter#AutoIt3Wrapper_UseX64=Nall pictures are visible, everthing is okwhen I start the program on a Windows 7 32Bit systemno pictures are visiblewhen I start the program on a Windows 7 64Bit system -----------------------------------------------------------64Bit program:I compile a 64Bit program with the parameter#AutoIt3Wrapper_UseX64=Yno pictures are visiblewhen I start the program on a Windows 7 64Bit systemHere 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 thanksPino Link to comment Share on other sites More sharing options...
UEZ Posted June 27, 2012 Share Posted June 27, 2012 (edited) 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 June 27, 2012 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 More sharing options...
Pino Posted June 27, 2012 Author Share Posted June 27, 2012 Hi UEZ, thanks its runnig. Pino Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now