Andreik Posted June 28, 2008 Posted June 28, 2008 (edited) Hi all, I want to create a DLL file that contain icons. expandcollapse popup#include "resource.h" #define APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// #undef APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // English (U.S.) resources ///////////////////////////////////////////////////////////////////////////// // // Icon // // Icon placed first or with lowest ID value becomes application icon LANGUAGE 9, 1 #pragma code_page(1252) 1 ICON "icon1.ico" 2 ICON "icon2.ico" 3 ICON "icon3.ico" 4 ICON "icon4.ico" 5 ICON "icon5.ico" 6 ICON "icon6.ico" 7 ICON "icon7.ico" 8 ICON "icon8.ico" 9 ICON "icon9.ico" 10 ICON "icon10.ico" 11 ICON "icon11.ico" 12 ICON "icon12.ico" 13 ICON "icon13.ico" 14 ICON "icon14.ico" 15 ICON "icon15.ico" 16 ICON "icon16.ico" 17 ICON "icon17.ico" 18 ICON "icon18.ico" 19 ICON "icon19.ico" 20 ICON "icon20.ico" #ifdef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // TEXTINCLUDE // 1 TEXTINCLUDE BEGIN "resource.h\0" "\0" END 2 TEXTINCLUDE BEGIN "#include ""afxres.h""\r\n" "\0" END 3 TEXTINCLUDE BEGIN "\0" END #endif // APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// #ifndef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 3 resource. // ///////////////////////////////////////////////////////////////////////////// #endif // not APSTUDIO_INVOKED and than I want to view icons from DLL with autoit using enumicons.au3 from autoit examples. The problem is that only 6 icons appear in my DLL, but I put 20 icons in my DLL. Why? Can somebody help me? Thanks in advance! Edited June 28, 2008 by Andreik
H5O20H Posted June 28, 2008 Posted June 28, 2008 How do you compile the dll,how do you use it? Valik, The Legendary programmer!Will be using that signature for 2 months due to my loss on a bet ):
Andreik Posted June 28, 2008 Author Posted June 28, 2008 How do you compile the dll,how do you use it?I use Visual C++ Express Edition and the code from above is app.rc, application resources.
ProgAndy Posted June 28, 2008 Posted June 28, 2008 (edited) You could also use this empty DLL and add the resources with resHacker (empty GCC-Project -> smaller and without dependencies as in VC++, you could create it yourself, too )http://uploaded.to/?id=nn75pe Edited June 28, 2008 by ProgAndy *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes
Andreik Posted June 28, 2008 Author Posted June 28, 2008 You could also use this empty DLL and add the resources with resHacker (empty GCC-Project )Thanks ProgAndy! I will try this.
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