C# and VB?

  • Thread starter Thread starter perspolis
  • Start date Start date
P

perspolis

hi all
I used OLE programming in VB and in VB there are two methods name GetObject
and CreateObject to create OLE object from their libraries.
In C# are there method like in VB?specially GetObject??
 
Didn't Type.GetTypeFromCLSID together with Activator.CreatInstance do
the job? You already have a thread going about this subject.

Regards,
Joakim
 
Persopolis,

When the namespace from a method in VBNet does not start with Microsoft, you
can use it in C# and VBNet. Altough you can use the Microsoft.VisualBasic
namespace also in C# when you set a reference to that. C# can do as much as
VBNet.

I hope this helps?

Cor
 
CL> When the namespace from a method in VBNet does not start with
CL> Microsoft, you can use it in C# and VBNet. Altough you can use the
CL> Microsoft.VisualBasic namespace also in C# when you set a reference
CL> to that. C# can do as much as VBNet.

Even late binding?
 

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