ResHackerWrapperReplaceResource Method
Replaces a resource in the specified file.
Namespace: DevCase.ThirdParty.ResHackerAssembly: DevCase.net48.ThirdParty.ResHacker (in DevCase.net48.ThirdParty.ResHacker.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public int ReplaceResource(
string inputFilepath,
string outputFilepath,
string resourceFile,
ResourceType resourceType,
string resourceName,
int languageID = 0
)
Public Function ReplaceResource (
inputFilepath As String,
outputFilepath As String,
resourceFile As String,
resourceType As ResourceType,
resourceName As String,
Optional languageID As Integer = 0
) As Integer
Dim instance As ResHackerWrapper
Dim inputFilepath As String
Dim outputFilepath As String
Dim resourceFile As String
Dim resourceType As ResourceType
Dim resourceName As String
Dim languageID As Integer
Dim returnValue As Integer
returnValue = instance.ReplaceResource(inputFilepath,
outputFilepath, resourceFile, resourceType,
resourceName, languageID)
public:
int ReplaceResource(
String^ inputFilepath,
String^ outputFilepath,
String^ resourceFile,
ResourceType resourceType,
String^ resourceName,
int languageID = 0
)
member ReplaceResource :
inputFilepath : string *
outputFilepath : string *
resourceFile : string *
resourceType : ResourceType *
resourceName : string *
?languageID : int
(* Defaults:
let _languageID = defaultArg languageID 0
*)
-> int
No code example is currently available or this language may not be supported.
- inputFilepath String
-
The source file path.
- outputFilepath String
-
The target file path.
- resourceFile String
-
The source resource file path.
- resourceType ResourceType
-
The resource type.
- resourceName String
-
The resource name.
- languageID Int32 (Optional)
-
The resource language Id.
Int32
The process exit code.
This is a code example.
No code example is currently available or this language may not be supported.
Dim exitcode As Integer = ResHacker.ReplaceResource("C:\File.exe", "C:\New File.exe", "C:\Icon.ico", ResourceType.ICON, "MAINICON", 0)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.