Click here to Skip to main content
15,895,538 members
Home / Discussions / C#
   

C#

 
GeneralRe: COM/C# datatype mismatch Pin
KingTermite3-Feb-04 3:24
KingTermite3-Feb-04 3:24 
GeneralRe: COM/C# datatype mismatch Pin
Heath Stewart3-Feb-04 3:44
protectorHeath Stewart3-Feb-04 3:44 
GeneralRe: COM/C# datatype mismatch Pin
KingTermite3-Feb-04 4:04
KingTermite3-Feb-04 4:04 
GeneralRe: COM/C# datatype mismatch Pin
Heath Stewart3-Feb-04 4:26
protectorHeath Stewart3-Feb-04 4:26 
GeneralRe: COM/C# datatype mismatch Pin
KingTermite3-Feb-04 4:40
KingTermite3-Feb-04 4:40 
GeneralRe: COM/C# datatype mismatch Pin
KingTermite4-Feb-04 7:28
KingTermite4-Feb-04 7:28 
GeneralCalling a .NET Component from a COM Component Pin
Shahin772-Feb-04 9:11
Shahin772-Feb-04 9:11 
GeneralRe: Calling a .NET Component from a COM Component Pin
Heath Stewart2-Feb-04 9:57
protectorHeath Stewart2-Feb-04 9:57 
Make sure you have registered it correctly with regasm.exe /codebase, or set the project option in VS.NET to do so automatically. Also make sure that you DO NOT use AutoDispatch or AutoDual for your ClassInterfaceAttribute - ALWAYS declare your own class interface (implement as first interface) despite what Microsoft says in their docs. In fact, if you read more information about CCWs in other Microsoft documentation, they state as much, warning about using auto-generated interfaces. Always use a GuidAttribute as well, otherwise your VB project won't reference the right typelib next time you build your C# project.

Finally, I have noticed problems before when trying to add controls to VB6 with other work and articles I've done. First trying loading your control in the ActiveX Control Test Container (tstcon32.exe), which should be available from your VS.NET Tools menu if you installed the Platform SDK tools (installed by default). If it doesn't work in there, then you've done something wrong. Re-read the articles you linked or read Nick's at http://www.codeproject.com/dotnet/nettocom.asp[^]. Reply here if you're having problems.

If it does work, make sure you customize VB6's toolbox and add the .NET Control as an ActiveX control, not just a project reference.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Calling a .NET Component from a COM Component Pin
Shahin772-Feb-04 11:12
Shahin772-Feb-04 11:12 
GeneralRe: Calling a .NET Component from a COM Component Pin
Heath Stewart2-Feb-04 11:45
protectorHeath Stewart2-Feb-04 11:45 
GeneralUrgent help (Calling a .NET Component from a COM Component) Pin
Shahin773-Feb-04 4:16
Shahin773-Feb-04 4:16 
GeneralRe: Urgent help (Calling a .NET Component from a COM Component) Pin
Heath Stewart3-Feb-04 6:30
protectorHeath Stewart3-Feb-04 6:30 
GeneralRe: Urgent help (Calling a .NET Component from a COM Component) Pin
Shahin774-Feb-04 6:48
Shahin774-Feb-04 6:48 
GeneralRe: Urgent help (Calling a .NET Component from a COM Component) Pin
Heath Stewart4-Feb-04 7:04
protectorHeath Stewart4-Feb-04 7:04 
GeneralRe: Urgent help (Calling a .NET Component from a COM Component) Pin
Shahin774-Feb-04 7:42
Shahin774-Feb-04 7:42 
GeneralRe: Urgent help (Calling a .NET Component from a COM Component) Pin
Heath Stewart4-Feb-04 8:41
protectorHeath Stewart4-Feb-04 8:41 
GeneralRe: Calling a .NET Component from a COM Component Pin
KingTermite2-Feb-04 10:14
KingTermite2-Feb-04 10:14 
GeneralRe: Calling a .NET Component from a COM Component Pin
Heath Stewart3-Feb-04 5:56
protectorHeath Stewart3-Feb-04 5:56 
GeneralIDocHostUIHandler, FilterDataObject Pin
s.keller2-Feb-04 9:05
s.keller2-Feb-04 9:05 
GeneralRe: IDocHostUIHandler, FilterDataObject Pin
Nick Parker2-Feb-04 9:15
protectorNick Parker2-Feb-04 9:15 
GeneralRe: IDocHostUIHandler, FilterDataObject Pin
s.keller2-Feb-04 9:21
s.keller2-Feb-04 9:21 
GeneralRe: IDocHostUIHandler, FilterDataObject Pin
Heath Stewart2-Feb-04 9:49
protectorHeath Stewart2-Feb-04 9:49 
GeneralRe: IDocHostUIHandler, FilterDataObject Pin
s.keller2-Feb-04 9:55
s.keller2-Feb-04 9:55 
GeneralRe: IDocHostUIHandler, FilterDataObject Pin
Heath Stewart2-Feb-04 9:58
protectorHeath Stewart2-Feb-04 9:58 
GeneralRe: IDocHostUIHandler, FilterDataObject Pin
s.keller2-Feb-04 10:45
s.keller2-Feb-04 10:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.