This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- DotNetCoCreateObject and Type Heirarchy
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 07, 2009
05:18 PM
DotNetCoCreateObject and Type Heirarchy
I'm having an issue where an object I create with DotNetCoCreateObject is unable to reference properties that are defined in it's base type.
The .Net code looks like this:
In InstallScript I have:
Referecing MyOtherProp works while referencing MyProp does not work.
Any ideas?
The .Net code looks like this:
class b {
string myProp {get;set;}
}
class c : b {
string myOtherProp {get;set;}
}
In InstallScript I have:
set objectC = DotNetCoCreateObject(pathCompleteDll,
"MyNamespace.ObjectC", "");
Referecing MyOtherProp works while referencing MyProp does not work.
Any ideas?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 08, 2009
10:48 AM
There are a lot of details missing from your example snippet, such as ComVisible attributes, and public/private modifiers. Are these equivalent between the two properties?