hyyly / csexwb2

Automatically exported from code.google.com/p/csexwb2
0 stars 0 forks source link

Reg-Free ComUtilities COM Interop #58

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What version of the product are you using?
2.0.0.2

Hi...

I have some issues on "Registeration-free ComUtilities COM interop" too...
and I'd be more than happy if somebody would help me on this.

First... when I followed general instructions for "RegFreeDemo" app...
everything went fine (I tested on another PC with no COM registration from
an USB stick - all files in a same folder). 

But then... when I did the same for my project ("MyApp" instead of
"RegFreeDemo")... this wouldn't work. I recreated also "MyApp.exe.manifest"
file changing its content for compliance too (I renamed everywhere
"RegFreeDemo" into "MyApp"). 

Am I missing something?

Regards, Cristi. 

Original issue reported on code.google.com by xcrys...@gmail.com on 22 Sep 2008 at 9:06

GoogleCodeExporter commented 9 years ago
I meant that I get "InvalidCastException" when I recreate "MyApp" project. I 
feel
that could be something wrong with my manifest file (?)

Original comment by xcrys...@gmail.com on 22 Sep 2008 at 9:14

GoogleCodeExporter commented 9 years ago
I saw that I should not have code in "FrmMain.OnLoad" that calls "Navigate()" 
methods.
Otherwise will raise "InvalidCastException"... 

So, for the moment let's say the problem it's solved... but maybe somebody 
could do
something regarding this... in order to allow navigating inside "OnLoad" of the 
main
form.

Thank you.

Original comment by xcrys...@gmail.com on 22 Sep 2008 at 11:00

GoogleCodeExporter commented 9 years ago
FrmMain.OnLoad is before controls are fully created and functional.  You should 
be able 
to call that navigate from .Activate as at this step, the controls should be 
done 
initializing and be fully created.

Original comment by aparsons...@gmail.com on 20 May 2010 at 5:59