Bakiki Posted March 7, 2015 Share Posted March 7, 2015 Hi I want to learn the use DLLCALL and I feel the best way is to use DllCall($__g_hGDIPDll for graphics manlipulation as I am somewhat familiar with GDIPLUS.au3. Can anyone provide or direct me to any simple examples illustrating the use of DllCall($__g_hGDIPDll. I have looked at the help file but doesn't enlighten me to it's use in a graphics context. Thanks Link to comment Share on other sites More sharing options...
markyrocks Posted March 7, 2015 Share Posted March 7, 2015 What Dll are you trying to manipulate? Not really sure what your asking but I have been playing around with this lately and I could be wrong but the gdiplus.au3 basically is a wrapper that uses the gdi32.dll functions.. Spoiler "I Believe array math to be potentially fatal, I may be dying from array math poisoning" Link to comment Share on other sites More sharing options...
UEZ Posted March 7, 2015 Share Posted March 7, 2015 Hi I want to learn the use DLLCALL and I feel the best way is to use DllCall($__g_hGDIPDll for graphics manlipulation as I am somewhat familiar with GDIPLUS.au3. Can anyone provide or direct me to any simple examples illustrating the use of DllCall($__g_hGDIPDll. I have looked at the help file but doesn't enlighten me to it's use in a graphics context. Thanks I assume to want to do some graphical coding. Check out the help file by looking for _GDIPlus_* (gdiplus.dll) or graphical examples using the GDI dll (gdi32.dll -> WinAPIGdi.au3). Additionally, there are plenty of examples here in this forum! 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...
Bakiki Posted March 7, 2015 Author Share Posted March 7, 2015 Sorry for the naivety of the post. Yes, you are both right I want to learn how to start manipulating the gdiplus.dll. The help file has lots of examples gdiplus but I don't seen any using the DLLCALL. It has also occurred to me that many of these examples that use DLLCALL are quite old and therefore could it be that the gdiplus.au3 makes DLLCALL method redundant. Is that possible. Thanks Link to comment Share on other sites More sharing options...
markyrocks Posted March 8, 2015 Share Posted March 8, 2015 (edited) That's the gist of it yea. For the winapi and the gdi32.dll anyways. Edited March 8, 2015 by markyrocks Spoiler "I Believe array math to be potentially fatal, I may be dying from array math poisoning" Link to comment Share on other sites More sharing options...
LarsJ Posted March 8, 2015 Share Posted March 8, 2015 Bakiki, Open the GDIPlus UDFs (IncludeGDIPlus.au3 and IncludeWinAPIGdi.au3 in your AutoIt installation folder) directly in your editor. These UDFs shows how all the GDIPlus functions are implemented with DllCalls.Because you have to be very precise and accurate when using DllCall, there is not much room for changes. The functions in GDIPlus UDFs shows how these DllCalls should be implemented. Neither more nor less.You can also be fairly sure that the implementation of a function in the UDFs is the proper implementation. E.g. that all parameters are implemented correct, and that the function is working on both a 32 and a 64 bit system.You can easily find examples in the forums (especially old examples), which are not working on a 64 bit system.The best sources to learn how these DllCalls are coded are the GDIPlus UDFs. E.g. to draw a line directly with a DllCall see _GDIPlus_GraphicsDrawLine in IncludeGDIPlus.au3.You can find a general tutorial for the DllCall function in Dealing_with_Dll.pdf. Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions Link to comment Share on other sites More sharing options...
Bakiki Posted March 8, 2015 Author Share Posted March 8, 2015 Thank you all for the clarification. 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