Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / May 2006

Tip: Looking for answers? Try searching our database.

ActiveX can't create object with C#

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve - 22 May 2006 20:42 GMT
Hi!, I have a rare problem. I developed a DLL in C# that i'm using in a vb6
proyect.
The problem is that if I instance a class using New works fine. But if I use
createobject, VB tell me "Active can't create object"'. And I need use this
dll in ASP, so, I must use createobject...

Set Action = new AlliedTProConnect.SearchAvailabilityAction 'Work OK

Set Action = CreateObject("AlliedTProConnect.SearchAvailabilityAction") 'Fail

Any ideas?

Thanks!!
gs - 23 May 2006 01:28 GMT
does activex require something like this as in COM component?
public void New() {
   myBase.new;
   ....
}

> Hi!, I have a rare problem. I developed a DLL in C# that i'm using in a
> vb6
[quoted text clipped - 13 lines]
>
> Thanks!!
Steve - 23 May 2006 15:53 GMT
I resolve the problem, it was very stupid. The problem was the name of
namespace in the C# class. I can't belive that I lost 3 hours because so
stupid problem...
But, thanks for the help.

> does activex require something like this as in COM component?
> public void New() {
[quoted text clipped - 19 lines]
> >
> > Thanks!!
gs - 25 May 2006 03:13 GMT
yep, it is easy to overlook that even though one find out quickly when
browsing the object with the visual studio.

I almost fell into the trap; the object browser saved me.

>I resolve the problem, it was very stupid. The problem was the name of
> namespace in the C# class. I can't belive that I lost 3 hours because so
[quoted text clipped - 25 lines]
>> >
>> > Thanks!!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.