![]() |
Delphi-Version: 2010
How to delete resource? - code don't working
I have this:
Delphi-Quellcode:
File updated, but resource still inside :( I tried also with RT_RCDATA, but don't working too :(
var
hResource: THandle; lpData: array [0..255] of Char; B: Boolean; begin lpData := ''; hResource := BeginUpdateResource(PChar(Edit1.Text), False); B := UpdateResource(hResource, 'RCDATA', 'DVCLAL', 0, @lpData[1], Length(lpData)); EndUpdateResource(hResource, False); lpData := ''; hResource := BeginUpdateResource(PChar(Edit1.Text), False); UpdateResource(hResource, 'RCDATA', 'PACKAGEINFO', MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), @lpData[1], Length(lpData)); EndUpdateResource(hResource,False); end; |
Alle Zeitangaben in WEZ +1. Es ist jetzt 02:03 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz