COM Interoperability

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can a C# class expossed for COM interoperability,
(it means be usable from a COM environment like visual basic 6)
use an application configuration file (app.config) ?

i tried but can not work !!


Thanks
 
Ricardo,

I believe it can, as long as the assembly it is in is the entry point
for the managed code. It will look for an application configuration file
that corresponds to the entry point from unmanaged code.

Hope this helps.
 
your comment gave me an idea.

i renamed the app.config to ProgramName.exe.config
where ProgramName is the name of the COM Program
that use the C# class marked for interoperability

when i did it, it worked well

many thanks Nicholas




Nicholas Paldino said:
Ricardo,

I believe it can, as long as the assembly it is in is the entry point
for the managed code. It will look for an application configuration file
that corresponds to the entry point from unmanaged code.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Ricardo Quintanilla said:
Can a C# class expossed for COM interoperability,
(it means be usable from a COM environment like visual basic 6)
use an application configuration file (app.config) ?

i tried but can not work !!


Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top