469,266 Members | 1,909 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,266 developers. It's quick & easy.

Knowledge Base Article (814472) - Need clarification

In the article, the description for
"Modiy DLL That Contains Consumers That Use Managed Code and DLL Exports
or
Managed Entry Points"
suggests the creation of the class ManagedWrapper.

If I need to build multiple mixed mode dll's used by a consumer application,
do I have to implement multiple ManagedWrapper's (each embedded in
indiviudal DLL project) and call all of them in my consumer application?
Nov 16 '05 #1
8 1620
Hi Sai Kit,

Thanks for you posting in this group!

Based on my understanding to the KB paragraph "Modify DLL That Contains
Consumers That Use Managed Code and DLL Exports or Managed Entry Points",
it is talked about the consumer *in* the DLL, not the cunsumer *to* the
DLL. so I think you can call the Dll in the general way in your application
if it is not a consumer in the DLL.

If I have misunderstood your concerns, please feel free to reply this
message.
Best Regards!
Gary Chang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "AS IS" with no warranties,and confers no rights.
--------------------
| From: "Sai Kit Tong" <sk****@mmm.com>
| Subject: Knowledge Base Article (814472) - Need clarification
| Date: Thu, 30 Oct 2003 10:04:50 -0600
| Lines: 11
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <ul**************@TK2MSFTNGP09.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vc
| NNTP-Posting-Host: 130.99.229.109
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vc:29890
| X-Tomcat-NG: microsoft.public.dotnet.languages.vc
|
| In the article, the description for
| "Modiy DLL That Contains Consumers That Use Managed Code and DLL Exports
| or
| Managed Entry Points"
| suggests the creation of the class ManagedWrapper.
|
| If I need to build multiple mixed mode dll's used by a consumer
application,
| do I have to implement multiple ManagedWrapper's (each embedded in
| indiviudal DLL project) and call all of them in my consumer application?
|
|
|

Nov 16 '05 #2
Hi Gary,

I am not concerning about the invocation of the dll functions. Instead, I am
looking at the ManagerWrapper class which provides static functions to
initialize/terminate C runtime (CRT). Since I have multiple Mixed Mode
projects, do I have to create mulitple ManagerWrappers (probably with
different namespace) for all projects in order to initiate static variables
for each individual mixed mode DLL?

Thanks.

Sai Kit

"Gary Chang [MSFT]" <v-******@online.microsoft.com> wrote in message
news:cQ**************@cpmsftngxa06.phx.gbl...
Hi Sai Kit,

Thanks for you posting in this group!

Based on my understanding to the KB paragraph "Modify DLL That Contains
Consumers That Use Managed Code and DLL Exports or Managed Entry Points",
it is talked about the consumer *in* the DLL, not the cunsumer *to* the
DLL. so I think you can call the Dll in the general way in your application if it is not a consumer in the DLL.

If I have misunderstood your concerns, please feel free to reply this
message.
Best Regards!
Gary Chang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties,and confers no rights.
--------------------
| From: "Sai Kit Tong" <sk****@mmm.com>
| Subject: Knowledge Base Article (814472) - Need clarification
| Date: Thu, 30 Oct 2003 10:04:50 -0600
| Lines: 11
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <ul**************@TK2MSFTNGP09.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vc
| NNTP-Posting-Host: 130.99.229.109
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vc:29890
| X-Tomcat-NG: microsoft.public.dotnet.languages.vc
|
| In the article, the description for
| "Modiy DLL That Contains Consumers That Use Managed Code and DLL Exports | or
| Managed Entry Points"
| suggests the creation of the class ManagedWrapper.
|
| If I need to build multiple mixed mode dll's used by a consumer
application,
| do I have to implement multiple ManagedWrapper's (each embedded in
| indiviudal DLL project) and call all of them in my consumer application?
|
|
|

Nov 16 '05 #3
Hi Sai Kit,

Thanks for your quick response!

Based on the KB, if your mixed mode DLL is created as Managed Extensions
for C++ project, I think you should provided ManagerWrappers class for it.
Best regards!

Gary Chang
Microsoft Online Partner Support

Get Secure! www.microsoft.com/security
This posting is provided "AS IS" with no warranties,and confers no rights.
--------------------
| From: "Sai Kit Tong" <sk****@mmm.com>
| References: <ul**************@TK2MSFTNGP09.phx.gbl>
<cQ**************@cpmsftngxa06.phx.gbl>
| Subject: Re: Knowledge Base Article (814472) - Need clarification
| Date: Fri, 31 Oct 2003 08:30:26 -0600
| Lines: 68
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#5**************@TK2MSFTNGP12.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vc
| NNTP-Posting-Host: 169.10.179.110
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vc:29917
| X-Tomcat-NG: microsoft.public.dotnet.languages.vc
|
| Hi Gary,
|
| I am not concerning about the invocation of the dll functions. Instead, I
am
| looking at the ManagerWrapper class which provides static functions to
| initialize/terminate C runtime (CRT). Since I have multiple Mixed Mode
| projects, do I have to create mulitple ManagerWrappers (probably with
| different namespace) for all projects in order to initiate static
variables
| for each individual mixed mode DLL?
|
| Thanks.
|
| Sai Kit
|
| "Gary Chang [MSFT]" <v-******@online.microsoft.com> wrote in message
| news:cQ**************@cpmsftngxa06.phx.gbl...
| > Hi Sai Kit,
| >
| > Thanks for you posting in this group!
| >
| > Based on my understanding to the KB paragraph "Modify DLL That Contains
| > Consumers That Use Managed Code and DLL Exports or Managed Entry
Points",
| > it is talked about the consumer *in* the DLL, not the cunsumer *to* the
| > DLL. so I think you can call the Dll in the general way in your
| application
| > if it is not a consumer in the DLL.
| >
| > If I have misunderstood your concerns, please feel free to reply this
| > message.
| >
| >
| > Best Regards!
| > Gary Chang
| > Microsoft Online Partner Support
| > Get Secure! - www.microsoft.com/security
| > This posting is provided "AS IS" with no warranties,and confers no
rights.
| > --------------------
| > | From: "Sai Kit Tong" <sk****@mmm.com>
| > | Subject: Knowledge Base Article (814472) - Need clarification
| > | Date: Thu, 30 Oct 2003 10:04:50 -0600
| > | Lines: 11
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | Message-ID: <ul**************@TK2MSFTNGP09.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.languages.vc
| > | NNTP-Posting-Host: 130.99.229.109
| > | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
| > | Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vc:29890
| > | X-Tomcat-NG: microsoft.public.dotnet.languages.vc
| > |
| > | In the article, the description for
| > | "Modiy DLL That Contains Consumers That Use Managed Code and DLL
| Exports
| > | or
| > | Managed Entry Points"
| > | suggests the creation of the class ManagedWrapper.
| > |
| > | If I need to build multiple mixed mode dll's used by a consumer
| > application,
| > | do I have to implement multiple ManagedWrapper's (each embedded in
| > | indiviudal DLL project) and call all of them in my consumer
application?
| > |
| > |
| > |
| >
|
|
|

Nov 16 '05 #4
Dear Gary,

I believe that you still miss on what I am asking. I know that I need to
provide ManagerWrapper for a mixed DLL. My question was on the number of
ManagerWrappers that I needed to provide and call . For example, if I have10
separate mixed Dll projects, do I need to provide 10 ManagerWrappers
(different names or namespaces) and do my client application need to call
all of them during initialization and termination?


"Gary Chang [MSFT]" <v-******@online.microsoft.com> wrote in message
news:Jh**************@cpmsftngxa06.phx.gbl...
Hi Sai Kit,

Thanks for your quick response!

Based on the KB, if your mixed mode DLL is created as Managed Extensions
for C++ project, I think you should provided ManagerWrappers class for it.

Best regards!

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties,and confers no rights.
--------------------
| From: "Sai Kit Tong" <sk****@mmm.com>
| References: <ul**************@TK2MSFTNGP09.phx.gbl>
<cQ**************@cpmsftngxa06.phx.gbl>
| Subject: Re: Knowledge Base Article (814472) - Need clarification
| Date: Fri, 31 Oct 2003 08:30:26 -0600
| Lines: 68
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#5**************@TK2MSFTNGP12.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vc
| NNTP-Posting-Host: 169.10.179.110
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vc:29917
| X-Tomcat-NG: microsoft.public.dotnet.languages.vc
|
| Hi Gary,
|
| I am not concerning about the invocation of the dll functions. Instead, I am
| looking at the ManagerWrapper class which provides static functions to
| initialize/terminate C runtime (CRT). Since I have multiple Mixed Mode
| projects, do I have to create mulitple ManagerWrappers (probably with
| different namespace) for all projects in order to initiate static
variables
| for each individual mixed mode DLL?
|
| Thanks.
|
| Sai Kit
|
| "Gary Chang [MSFT]" <v-******@online.microsoft.com> wrote in message
| news:cQ**************@cpmsftngxa06.phx.gbl...
| > Hi Sai Kit,
| >
| > Thanks for you posting in this group!
| >
| > Based on my understanding to the KB paragraph "Modify DLL That Contains | > Consumers That Use Managed Code and DLL Exports or Managed Entry
Points",
| > it is talked about the consumer *in* the DLL, not the cunsumer *to* the | > DLL. so I think you can call the Dll in the general way in your
| application
| > if it is not a consumer in the DLL.
| >
| > If I have misunderstood your concerns, please feel free to reply this
| > message.
| >
| >
| > Best Regards!
| > Gary Chang
| > Microsoft Online Partner Support
| > Get Secure! - www.microsoft.com/security
| > This posting is provided "AS IS" with no warranties,and confers no
rights.
| > --------------------
| > | From: "Sai Kit Tong" <sk****@mmm.com>
| > | Subject: Knowledge Base Article (814472) - Need clarification
| > | Date: Thu, 30 Oct 2003 10:04:50 -0600
| > | Lines: 11
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | Message-ID: <ul**************@TK2MSFTNGP09.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.languages.vc
| > | NNTP-Posting-Host: 130.99.229.109
| > | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
| > | Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vc:29890 | > | X-Tomcat-NG: microsoft.public.dotnet.languages.vc
| > |
| > | In the article, the description for
| > | "Modiy DLL That Contains Consumers That Use Managed Code and DLL
| Exports
| > | or
| > | Managed Entry Points"
| > | suggests the creation of the class ManagedWrapper.
| > |
| > | If I need to build multiple mixed mode dll's used by a consumer
| > application,
| > | do I have to implement multiple ManagedWrapper's (each embedded in
| > | indiviudal DLL project) and call all of them in my consumer
application?
| > |
| > |
| > |
| >
|
|
|

Nov 16 '05 #5
Each dll needs it's own initialization of crt. So yes you have to expose
init/term methods for each dll.

"Sai Kit Tong" <sk****@mmm.com> wrote in message
news:uB**************@TK2MSFTNGP09.phx.gbl...
Dear Gary,

I believe that you still miss on what I am asking. I know that I need to
provide ManagerWrapper for a mixed DLL. My question was on the number of
ManagerWrappers that I needed to provide and call . For example, if I have10 separate mixed Dll projects, do I need to provide 10 ManagerWrappers
(different names or namespaces) and do my client application need to call
all of them during initialization and termination?


"Gary Chang [MSFT]" <v-******@online.microsoft.com> wrote in message
news:Jh**************@cpmsftngxa06.phx.gbl...
Hi Sai Kit,

Thanks for your quick response!

Based on the KB, if your mixed mode DLL is created as Managed Extensions
for C++ project, I think you should provided ManagerWrappers class for it.


Best regards!

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties,and confers no rights. --------------------
| From: "Sai Kit Tong" <sk****@mmm.com>
| References: <ul**************@TK2MSFTNGP09.phx.gbl>
<cQ**************@cpmsftngxa06.phx.gbl>
| Subject: Re: Knowledge Base Article (814472) - Need clarification
| Date: Fri, 31 Oct 2003 08:30:26 -0600
| Lines: 68
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#5**************@TK2MSFTNGP12.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vc
| NNTP-Posting-Host: 169.10.179.110
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vc:29917
| X-Tomcat-NG: microsoft.public.dotnet.languages.vc
|
| Hi Gary,
|
| I am not concerning about the invocation of the dll functions. Instead, I
am
| looking at the ManagerWrapper class which provides static functions to
| initialize/terminate C runtime (CRT). Since I have multiple Mixed Mode
| projects, do I have to create mulitple ManagerWrappers (probably with
| different namespace) for all projects in order to initiate static
variables
| for each individual mixed mode DLL?
|
| Thanks.
|
| Sai Kit
|
| "Gary Chang [MSFT]" <v-******@online.microsoft.com> wrote in message
| news:cQ**************@cpmsftngxa06.phx.gbl...
| > Hi Sai Kit,
| >
| > Thanks for you posting in this group!
| >
| > Based on my understanding to the KB paragraph "Modify DLL That

Contains
| > Consumers That Use Managed Code and DLL Exports or Managed Entry
Points",
| > it is talked about the consumer *in* the DLL, not the cunsumer *to*

the
| > DLL. so I think you can call the Dll in the general way in your
| application
| > if it is not a consumer in the DLL.
| >
| > If I have misunderstood your concerns, please feel free to reply

this | > message.
| >
| >
| > Best Regards!
| > Gary Chang
| > Microsoft Online Partner Support
| > Get Secure! - www.microsoft.com/security
| > This posting is provided "AS IS" with no warranties,and confers no
rights.
| > --------------------
| > | From: "Sai Kit Tong" <sk****@mmm.com>
| > | Subject: Knowledge Base Article (814472) - Need clarification
| > | Date: Thu, 30 Oct 2003 10:04:50 -0600
| > | Lines: 11
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | Message-ID: <ul**************@TK2MSFTNGP09.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.languages.vc
| > | NNTP-Posting-Host: 130.99.229.109
| > | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl | > | Xref: cpmsftngxa06.phx.gbl

microsoft.public.dotnet.languages.vc:29890
| > | X-Tomcat-NG: microsoft.public.dotnet.languages.vc
| > |
| > | In the article, the description for
| > | "Modiy DLL That Contains Consumers That Use Managed Code and DLL
| Exports
| > | or
| > | Managed Entry Points"
| > | suggests the creation of the class ManagedWrapper.
| > |
| > | If I need to build multiple mixed mode dll's used by a consumer
| > application,
| > | do I have to implement multiple ManagedWrapper's (each embedded in
| > | indiviudal DLL project) and call all of them in my consumer
application?
| > |
| > |
| > |
| >
|
|
|


Nov 16 '05 #6
Thanks.
"Pent" <pent> wrote in message news:OW**************@TK2MSFTNGP09.phx.gbl...
Each dll needs it's own initialization of crt. So yes you have to expose
init/term methods for each dll.

"Sai Kit Tong" <sk****@mmm.com> wrote in message
news:uB**************@TK2MSFTNGP09.phx.gbl...
Dear Gary,

I believe that you still miss on what I am asking. I know that I need to
provide ManagerWrapper for a mixed DLL. My question was on the number of
ManagerWrappers that I needed to provide and call . For example, if I

have10
separate mixed Dll projects, do I need to provide 10 ManagerWrappers
(different names or namespaces) and do my client application need to call
all of them during initialization and termination?


"Gary Chang [MSFT]" <v-******@online.microsoft.com> wrote in message
news:Jh**************@cpmsftngxa06.phx.gbl...
Hi Sai Kit,

Thanks for your quick response!

Based on the KB, if your mixed mode DLL is created as Managed Extensions for C++ project, I think you should provided ManagerWrappers class for

it.


Best regards!

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties,and confers no rights. --------------------
| From: "Sai Kit Tong" <sk****@mmm.com>
| References: <ul**************@TK2MSFTNGP09.phx.gbl>
<cQ**************@cpmsftngxa06.phx.gbl>
| Subject: Re: Knowledge Base Article (814472) - Need clarification
| Date: Fri, 31 Oct 2003 08:30:26 -0600
| Lines: 68
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#5**************@TK2MSFTNGP12.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vc
| NNTP-Posting-Host: 169.10.179.110
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vc:29917 | X-Tomcat-NG: microsoft.public.dotnet.languages.vc
|
| Hi Gary,
|
| I am not concerning about the invocation of the dll functions. Instead,
I
am
| looking at the ManagerWrapper class which provides static functions to | initialize/terminate C runtime (CRT). Since I have multiple Mixed Mode | projects, do I have to create mulitple ManagerWrappers (probably with | different namespace) for all projects in order to initiate static
variables
| for each individual mixed mode DLL?
|
| Thanks.
|
| Sai Kit
|
| "Gary Chang [MSFT]" <v-******@online.microsoft.com> wrote in message
| news:cQ**************@cpmsftngxa06.phx.gbl...
| > Hi Sai Kit,
| >
| > Thanks for you posting in this group!
| >
| > Based on my understanding to the KB paragraph "Modify DLL That

Contains
| > Consumers That Use Managed Code and DLL Exports or Managed Entry
Points",
| > it is talked about the consumer *in* the DLL, not the cunsumer *to* the
| > DLL. so I think you can call the Dll in the general way in your
| application
| > if it is not a consumer in the DLL.
| >
| > If I have misunderstood your concerns, please feel free to reply

this | > message.
| >
| >
| > Best Regards!
| > Gary Chang
| > Microsoft Online Partner Support
| > Get Secure! - www.microsoft.com/security
| > This posting is provided "AS IS" with no warranties,and confers no
rights.
| > --------------------
| > | From: "Sai Kit Tong" <sk****@mmm.com>
| > | Subject: Knowledge Base Article (814472) - Need clarification
| > | Date: Thu, 30 Oct 2003 10:04:50 -0600
| > | Lines: 11
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | Message-ID: <ul**************@TK2MSFTNGP09.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.languages.vc
| > | NNTP-Posting-Host: 130.99.229.109
| > | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl | > | Xref: cpmsftngxa06.phx.gbl

microsoft.public.dotnet.languages.vc:29890
| > | X-Tomcat-NG: microsoft.public.dotnet.languages.vc
| > |
| > | In the article, the description for
| > | "Modiy DLL That Contains Consumers That Use Managed Code and

DLL | Exports
| > | or
| > | Managed Entry Points"
| > | suggests the creation of the class ManagedWrapper.
| > |
| > | If I need to build multiple mixed mode dll's used by a consumer
| > application,
| > | do I have to implement multiple ManagedWrapper's (each embedded in | > | indiviudal DLL project) and call all of them in my consumer
application?
| > |
| > |
| > |
| >
|
|
|



Nov 16 '05 #7
Hi Sai Kit,

Thanks for your response,

With your example, I hope I can grasp your meaning this time:-)

The ManagerWrapper class(described in the KB) is only for initialization
and termination the CRT for the DLL use.

Hence to your situatuion, I think you can provide one ManagerWrapper class
to one of your mixed mode DLLs(if you implement these ManagerWrapper
classes in each DLL, I think you should put it in its individual
namespace), and call the ManagedWrapper::minitialize() firstly before you
use any of the Dll functions.
Best regards!

Gary Chang
Microsoft Online Partner Support

Get Secure! www.microsoft.com/security
This posting is provided "AS IS" with no warranties,and confers no rights.
--------------------
| From: "Sai Kit Tong" <sk****@mmm.com>
| References: <ul**************@TK2MSFTNGP09.phx.gbl>
<cQ**************@cpmsftngxa06.phx.gbl>
<#5**************@TK2MSFTNGP12.phx.gbl>
<Jh**************@cpmsftngxa06.phx.gbl>
| Subject: Re: Knowledge Base Article (814472) - Need clarification
| Date: Mon, 3 Nov 2003 08:21:55 -0600
| Lines: 129
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <uB**************@TK2MSFTNGP09.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vc
| NNTP-Posting-Host: 130.99.229.109
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vc:29965
| X-Tomcat-NG: microsoft.public.dotnet.languages.vc
|
| Dear Gary,
|
| I believe that you still miss on what I am asking. I know that I need to
| provide ManagerWrapper for a mixed DLL. My question was on the number of
| ManagerWrappers that I needed to provide and call . For example, if I
have10
| separate mixed Dll projects, do I need to provide 10 ManagerWrappers
| (different names or namespaces) and do my client application need to call
| all of them during initialization and termination?
|
|
|
|
| "Gary Chang [MSFT]" <v-******@online.microsoft.com> wrote in message
| news:Jh**************@cpmsftngxa06.phx.gbl...
| > Hi Sai Kit,
| >
| > Thanks for your quick response!
| >
| > Based on the KB, if your mixed mode DLL is created as Managed Extensions
| > for C++ project, I think you should provided ManagerWrappers class for
| it.
| >
| >
| > Best regards!
| >
| > Gary Chang
| > Microsoft Online Partner Support
| >
| > Get Secure! - www.microsoft.com/security
| > This posting is provided "AS IS" with no warranties,and confers no
rights.
| > --------------------
| > | From: "Sai Kit Tong" <sk****@mmm.com>
| > | References: <ul**************@TK2MSFTNGP09.phx.gbl>
| > <cQ**************@cpmsftngxa06.phx.gbl>
| > | Subject: Re: Knowledge Base Article (814472) - Need clarification
| > | Date: Fri, 31 Oct 2003 08:30:26 -0600
| > | Lines: 68
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | Message-ID: <#5**************@TK2MSFTNGP12.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.languages.vc
| > | NNTP-Posting-Host: 169.10.179.110
| > | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
| > | Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vc:29917
| > | X-Tomcat-NG: microsoft.public.dotnet.languages.vc
| > |
| > | Hi Gary,
| > |
| > | I am not concerning about the invocation of the dll functions.
Instead,
| I
| > am
| > | looking at the ManagerWrapper class which provides static functions to
| > | initialize/terminate C runtime (CRT). Since I have multiple Mixed Mode
| > | projects, do I have to create mulitple ManagerWrappers (probably with
| > | different namespace) for all projects in order to initiate static
| > variables
| > | for each individual mixed mode DLL?
| > |
| > | Thanks.
| > |
| > | Sai Kit
| > |
| > | "Gary Chang [MSFT]" <v-******@online.microsoft.com> wrote in message
| > | news:cQ**************@cpmsftngxa06.phx.gbl...
| > | > Hi Sai Kit,
| > | >
| > | > Thanks for you posting in this group!
| > | >
| > | > Based on my understanding to the KB paragraph "Modify DLL That
| Contains
| > | > Consumers That Use Managed Code and DLL Exports or Managed Entry
| > Points",
| > | > it is talked about the consumer *in* the DLL, not the cunsumer *to*
| the
| > | > DLL. so I think you can call the Dll in the general way in your
| > | application
| > | > if it is not a consumer in the DLL.
| > | >
| > | > If I have misunderstood your concerns, please feel free to reply
this
| > | > message.
| > | >
| > | >
| > | > Best Regards!
| > | > Gary Chang
| > | > Microsoft Online Partner Support
| > | > Get Secure! - www.microsoft.com/security
| > | > This posting is provided "AS IS" with no warranties,and confers no
| > rights.
| > | > --------------------
| > | > | From: "Sai Kit Tong" <sk****@mmm.com>
| > | > | Subject: Knowledge Base Article (814472) - Need clarification
| > | > | Date: Thu, 30 Oct 2003 10:04:50 -0600
| > | > | Lines: 11
| > | > | X-Priority: 3
| > | > | X-MSMail-Priority: Normal
| > | > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | > | Message-ID: <ul**************@TK2MSFTNGP09.phx.gbl>
| > | > | Newsgroups: microsoft.public.dotnet.languages.vc
| > | > | NNTP-Posting-Host: 130.99.229.109
| > | > | Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
| > | > | Xref: cpmsftngxa06.phx.gbl
| microsoft.public.dotnet.languages.vc:29890
| > | > | X-Tomcat-NG: microsoft.public.dotnet.languages.vc
| > | > |
| > | > | In the article, the description for
| > | > | "Modiy DLL That Contains Consumers That Use Managed Code and DLL
| > | Exports
| > | > | or
| > | > | Managed Entry Points"
| > | > | suggests the creation of the class ManagedWrapper.
| > | > |
| > | > | If I need to build multiple mixed mode dll's used by a consumer
| > | > application,
| > | > | do I have to implement multiple ManagedWrapper's (each embedded in
| > | > | indiviudal DLL project) and call all of them in my consumer
| > application?
| > | > |
| > | > |
| > | > |
| > | >
| > |
| > |
| > |
| >
|
|
|

Nov 16 '05 #8
"Sai Kit Tong" <sk****@mmm.com> wrote in message
news:ul****************@TK2MSFTNGP09.phx.gbl...
In the article, the description for
"Modiy DLL That Contains Consumers That Use Managed Code and DLL Exports
or
Managed Entry Points"
suggests the creation of the class ManagedWrapper.

If I need to build multiple mixed mode dll's used by a consumer application, do I have to implement multiple ManagedWrapper's (each embedded in
indiviudal DLL project) and call all of them in my consumer application?

Yes, if you use the CRT in the mixed mode DLL. You have to initialize the
CRT of your mixed mode DLL yourself! To do that you can call the
ManagedWrapper for it.

Normally a DLL with the CRT has a native entrypoint which initializes the
CRT automatically at DLL loadtime. The mixed mode DLL has a 'managed'
entrypoint, so CRT initialization is not done at DLL loadtime. So before you
can call any function in the mixed mode DLL which uses the CRT you have to
initialize the CRT!

Hope the helps in understanding your problem.

Ferdinand.
Nov 16 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Brian Hansen | last post: by
2 posts views Thread by EJS | last post: by
reply views Thread by Hasani \(remove nospam from address\) | last post: by
2 posts views Thread by Blue Streak | last post: by
3 posts views Thread by Kristof Nachtergaele | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.