G
Guest
I'm using an Adobe COM object and most of the classes aren't exposed - just the interfaces. This has made development with C# a pain in the ass since I can't just use the new keyword- I have to initialize the variables (of the interface type) to the value of a corresponding object existing within the COM object. I don't like this and I'm sure it will cause problems down the road. Is there a way to make a complete copy of the memory used by the object in the COM? Here's some example code of what I am having to do now. Thanks in advance for suggestions
Josh Usovsk
private void defineDocPresets(ref InDesign.ApplicationClass theApp, ref id.DocumentPreset size8, ref id.DocumentPreset size9
//Initialize variable to an object already in existence, since there is no constructo
InDesign.DocumentPreset size8 = (InDesign.DocumentPreset)theApp.DocumentPresets.FirstItem()
..
}
Josh Usovsk
private void defineDocPresets(ref InDesign.ApplicationClass theApp, ref id.DocumentPreset size8, ref id.DocumentPreset size9
//Initialize variable to an object already in existence, since there is no constructo
InDesign.DocumentPreset size8 = (InDesign.DocumentPreset)theApp.DocumentPresets.FirstItem()
..
}