Ok I have this problem,
Basically I need to get icons out of exes or dlls (winnt/xp) using c++ IconExtractEx() method and then DrawIcon() to create an actual bmp file, however whilst I can read about it and understand the basic principle I can't write c++ code for shit.
I think since the functions are essentially built in functions the code would be tiny, but I can't get my head around it.
The reason for doing this is that I need to create an activex control that is accessible with JScript or VBScript. Basically the arguments that the JScript would pass would be:
icon location (path to file),
icon location (icon index within file),
location to save generated bmp,
bitmap name
So it really is a simple script/piece of code - it is just the writing it I can't do
And I am still unsure about how it gets made into an activex control, if anyone has any ideas on this let me know please since documentaion is either primitive or complex.
--------------------------------
The binary reference in the thread title is because I have potentially another way (completely diffferent and seperate from the last one) to retrieve the icon, but it involves parsing a binary string (of the exe or dll) and extracting the section of binary code that represents the icon, plus tweaking the header of it so that the binary can then be saved back with a .bmp extension as a workable bitmap image. It is possible, but I don't get binary or how to read it or what to look for lol. I am so not a natural born programmer.
Thanks guys for any input, advice, or assistance you can lend.
P.S. I know there are apps that retrieve icons easily, but I need a specific code based method. Whilst the c++ might have limited use it remains a useful bit of code for other projects too and as an activex it can be embedded in loads of different windows based apps as a simple icon retrieval system so it does have a benefit.
<A HREF="http://www.cryokinesis.co.uk" TARGET=_blank>visit