Click here to Skip to main content
15,881,898 members
Home / Discussions / COM
   

COM

 
GeneralRe: Need some clarification Pin
Karl Hansson12-Mar-08 23:17
Karl Hansson12-Mar-08 23:17 
GeneralRe: Need some clarification Pin
Nathan Holt at EMOM13-Mar-08 8:50
Nathan Holt at EMOM13-Mar-08 8:50 
GeneralRe: Need some clarification Pin
Karl Hansson15-Mar-08 1:06
Karl Hansson15-Mar-08 1:06 
GeneralRe: Need some clarification Pin
CPallini13-Mar-08 10:47
mveCPallini13-Mar-08 10:47 
GeneralRe: Need some clarification Pin
Nathan Holt at EMOM13-Mar-08 11:03
Nathan Holt at EMOM13-Mar-08 11:03 
GeneralTrying to set "User cannot change password" option using ADSI Pin
Taruni11-Mar-08 22:50
Taruni11-Mar-08 22:50 
QuestionComponent Services->COM+->Add new component hangs, C++ Unmanaged COM DLL using C# Pin
scottdj10-Mar-08 13:08
scottdj10-Mar-08 13:08 
GeneralRe: Component Services->COM+->Add new component hangs, C++ Unmanaged COM DLL using C# Pin
Scott Dorman10-Mar-08 15:46
professionalScott Dorman10-Mar-08 15:46 
scottdj wrote:
A C# .NET 1.1 Class Library was written in VS .NET 2003.
I need to access the above from the Unmanaged C++ COM DLL.


You need to access the C# 1.1 dll from the unmanaged C++ COM dll? This doesn't really make sense.

scottdj wrote:
I wrote a C# .NET 2.0 Wrapper class that wraps the C# .NET 1.1 Class Library.


Why do this? It would be better to rewrite the code directly in the C# 2.0 class.

From what I see here you have the following situation:


  • Unmanaged C++ COM object
  • C# 1.1 library that is called from the unmanaged C++ COM object
  • C# 2.0 class that wraps the C# 1.1 class

I think part of the problem you are running in to is the fact that this is running under Component Services, so you don't really have any control over which version of the runtime will be loaded (it will always load the latest version of the runtime, regardless of what version the assembly was compiled against). Also, you can't have one process running different versions of the .NET runtime.

Scott.

—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai

[Forum Guidelines] [Articles] [Blog]

AnswerRe: Component Services->COM+->Add new component hangs, C++ Unmanaged COM DLL using C# Pin
scottdj10-Mar-08 17:22
scottdj10-Mar-08 17:22 
GeneralRe: Component Services->COM+->Add new component hangs, C++ Unmanaged COM DLL using C# Pin
Scott Dorman10-Mar-08 17:43
professionalScott Dorman10-Mar-08 17:43 
AnswerRe: Component Services->COM+->Add new component hangs, C++ Unmanaged COM DLL using C# Pin
scottdj10-Mar-08 18:06
scottdj10-Mar-08 18:06 
GeneralRe: Component Services->COM+->Add new component hangs, C++ Unmanaged COM DLL using C# Pin
Scott Dorman11-Mar-08 4:33
professionalScott Dorman11-Mar-08 4:33 
AnswerRe: Component Services->COM+->Add new component hangs, C++ Unmanaged COM DLL using C# Pin
scottdj10-Mar-08 17:48
scottdj10-Mar-08 17:48 
GeneralRe: Component Services->COM+->Add new component hangs, C++ Unmanaged COM DLL using C# Pin
Scott Dorman11-Mar-08 4:28
professionalScott Dorman11-Mar-08 4:28 
QuestionRe: Component Services->COM+->Add new component hangs, C++ Unmanaged COM DLL using C# Pin
scottdj11-Mar-08 15:25
scottdj11-Mar-08 15:25 
GeneralRe: Component Services->COM+->Add new component hangs, C++ Unmanaged COM DLL using C# Pin
Scott Dorman12-Mar-08 2:38
professionalScott Dorman12-Mar-08 2:38 
GeneralGet "Title" information from files Pin
souljumper10-Mar-08 4:10
souljumper10-Mar-08 4:10 
QuestionHandling Internet Explorer com server object in plain C++ Pin
jattila4010-Mar-08 2:13
jattila4010-Mar-08 2:13 
GeneralRe: Handling Internet Explorer com server object in plain C++ Pin
jattila4010-Mar-08 3:48
jattila4010-Mar-08 3:48 
GeneralLink File Path Pin
john56329-Mar-08 22:25
john56329-Mar-08 22:25 
QuestionCOM Interop C++ unmanaged through C# .NET 2.0 Class Library to C# .NET 1.1managed Class Library Pin
scottdj8-Mar-08 18:33
scottdj8-Mar-08 18:33 
QuestionRe: COM Interop C++ unmanaged through C# .NET 2.0 Class Library to C# .NET 1.1managed Class Library Pin
scottdj8-Mar-08 18:36
scottdj8-Mar-08 18:36 
GeneralRe: COM Interop C++ unmanaged through C# .NET 2.0 Class Library to C# .NET 1.1managed Class Library Pin
Scott Dorman10-Mar-08 15:49
professionalScott Dorman10-Mar-08 15:49 
Generalusing com without registration Pin
justintimberlake8-Mar-08 16:31
justintimberlake8-Mar-08 16:31 
GeneralRe: using com without registration Pin
User 2155979-Mar-08 3:14
User 2155979-Mar-08 3:14 

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.