arnold_preg
12 years agoNew Contributor
Casting VarDelegate to C# type
Hi,
Given I have this code snippet in C#:
int hwnd = Sys["Process"]("DubQuest")["Find"]("Name", "VCLObject(\"AdvPageControlBase\")", 100)["Handle"];
It generates runtime error because specified cast is not valid. How could I accomplish this type casting?
Given I have this code snippet in C#:
int hwnd = Sys["Process"]("DubQuest")["Find"]("Name", "VCLObject(\"AdvPageControlBase\")", 100)["Handle"];
It generates runtime error because specified cast is not valid. How could I accomplish this type casting?