PDA

Click to See Complete Forum and Search --> : UpdateResource API


Razzle
May 6th, 2000, 03:37 AM
Does anyone know how to replace an icon with the UpdateResource API??

Razzle

Razzle
May 7th, 2000, 11:56 PM
yes, that's why the API wants to know the size of the NEW resource!!!
The UpdateResource Api IS implemented, i've even looked it up with dependency walker

Stevie-O
May 8th, 2000, 12:47 AM
Only in NT is it implemented.

If you look using 'Dependency Walker' (or EXEInfo32, which is my own program I mentioned earlier), you can only see that the function is there. It's something akin to an interface class:


' Class IMyInterface
Option Explicit

Function MyIntFunc(x As Integer) As Long
End Sub

Function MyStrFunc(y As String) As Long
End Sub


The function names are there...but they don't DO anything, they just return 0. Just like all but about ten of the Unicode functions in user32.dll. They point to dummy functions that do nothing but return 0.

Razzle
May 8th, 2000, 08:10 PM
oooooookay.. damn, that's not good... thanks for you answer anyway :)