|
Newbie Member
|
|
| 29May2008,03:03 | #41 |
|
tanks man !
|
|
Light Poster
|
|
| 12Aug2008,20:29 | #42 |
|
I need source code in Visual basic 2005 or 2008
Please Help ME |
|
Newbie Member
|
|
| 20Aug2008,18:56 | #43 |
|
Quote:
Originally Posted by jefri_btc http://www.planet-source-code.com/vb...59973&lngWId=1 cheers!!! |
|
Newbie Member
|
|
| 29Sep2008,15:52 | #44 |
|
I saw programs that can show you the ICONS in an executable files and so I thought if we can see them then definitely we can edit them as well. If we can edit them then there is a way to give them a different ICON to be displayed in the explorer.
|
|
Newbie Member
|
|
| 27Jan2009,10:39 | #45 |
|
how are you doing extract icon from this code
PHP Code:
|
|
Light Poster
|
|
| 2May2009,01:25 | #46 |
|
Hi, I downloaded second attachement, tried it in two files but didn't work ??
|
|
Go4Expert Founder
|
![]() |
| 2May2009,09:24 | #47 |
|
Light Poster
|
|
| 4May2009,04:26 | #48 |
|
shabbir, I am having trouble with the API's. The second parameter of FindResource, msdn says it has to be the resource's name, so if I am extracting an icon from an exe how am I supposed to know it's name ?? what did u do with the '#' thing lol ?
Also the 3rd and 4th parameters of updateresource method, dunno much what to put there, especially the language thing!! Can you explain to me ? :$ |
|
Go4Expert Founder
|
![]() |
| 4May2009,08:37 | #49 |
|
Quote:
Originally Posted by jambo This Code should explain that Code:
// Locate the ICON resource in the .EXE file.
for(iLoop = 1;;iLoop++)
{
CString str;
str.Format("#%d",iLoop);
hRes = FindResource(hSrcExe, str, RT_ICON);
if (hRes == NULL)
continue ;
else if(iLoop == 10)
return;
else
break;
}
Look at the code in the article and its pretty much self explanatory as well as commented. |
|
Light Poster
|
|
| 5May2009,03:01 | #50 |
|
Of course I have read the code and the comments, however, UpdateResource in my code always returns false and l have some questions that are still left unanswered and I would be very happy if you could answer them.
Why did you need to Loop to find the icon ? Does this mean : a) a file has more than one icon ? b) FindResource checks resource one by one?? ..a string... an integer..or even a humain if it wants to, my problem is how to know what it is, I don't care it's type. I have no idea what to fill in this parameter and I don't understand what's the '#' for. What is MAKEINTID(1) ? some function I need to declare ?? And what's that thing with the language lol ? I mean, seriously, since when language is relevant to us ?? I want to cry
|


