473,581 Members | 3,046 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1824
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.publi c.dotnet.langua ges.vc
| NNTP-Posting-Host: 130.99.229.109
| Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP09.phx.g bl
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.vc:29890
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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.m icrosoft.com> wrote in message
news:cQ******** ******@cpmsftng xa06.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.publi c.dotnet.langua ges.vc
| NNTP-Posting-Host: 130.99.229.109
| Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP09.phx.g bl
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.vc:29890
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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.publi c.dotnet.langua ges.vc
| NNTP-Posting-Host: 169.10.179.110
| Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP12.phx.g bl
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.vc:29917
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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.m icrosoft.com> wrote in message
| news:cQ******** ******@cpmsftng xa06.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.publi c.dotnet.langua ges.vc
| > | NNTP-Posting-Host: 130.99.229.109
| > | Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP09.phx.g bl
| > | Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.vc:29890
| > | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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.m icrosoft.com> wrote in message
news:Jh******** ******@cpmsftng xa06.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.publi c.dotnet.langua ges.vc
| NNTP-Posting-Host: 169.10.179.110
| Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP12.phx.g bl
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.vc:29917
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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.m icrosoft.com> wrote in message
| news:cQ******** ******@cpmsftng xa06.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.publi c.dotnet.langua ges.vc
| > | NNTP-Posting-Host: 130.99.229.109
| > | Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP09.phx.g bl
| > | Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.vc:29890 | > | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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******** ******@TK2MSFTN GP09.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.m icrosoft.com> wrote in message
news:Jh******** ******@cpmsftng xa06.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.publi c.dotnet.langua ges.vc
| NNTP-Posting-Host: 169.10.179.110
| Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP12.phx.g bl
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.vc:29917
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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.m icrosoft.com> wrote in message
| news:cQ******** ******@cpmsftng xa06.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.publi c.dotnet.langua ges.vc
| > | NNTP-Posting-Host: 130.99.229.109
| > | Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP09.phx.g bl | > | Xref: cpmsftngxa06.ph x.gbl

microsoft.publi c.dotnet.langua ges.vc:29890
| > | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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******** ******@TK2MSFTN GP09.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******** ******@TK2MSFTN GP09.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.m icrosoft.com> wrote in message
news:Jh******** ******@cpmsftng xa06.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.publi c.dotnet.langua ges.vc
| NNTP-Posting-Host: 169.10.179.110
| Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP12.phx.g bl
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.vc:29917 | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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.m icrosoft.com> wrote in message
| news:cQ******** ******@cpmsftng xa06.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.publi c.dotnet.langua ges.vc
| > | NNTP-Posting-Host: 130.99.229.109
| > | Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP09.phx.g bl | > | Xref: cpmsftngxa06.ph x.gbl

microsoft.publi c.dotnet.langua ges.vc:29890
| > | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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.publi c.dotnet.langua ges.vc
| NNTP-Posting-Host: 130.99.229.109
| Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP09.phx.g bl
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.vc:29965
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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.m icrosoft.com> wrote in message
| news:Jh******** ******@cpmsftng xa06.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.publi c.dotnet.langua ges.vc
| > | NNTP-Posting-Host: 169.10.179.110
| > | Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP12.phx.g bl
| > | Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.vc:29917
| > | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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.m icrosoft.com> wrote in message
| > | news:cQ******** ******@cpmsftng xa06.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.publi c.dotnet.langua ges.vc
| > | > | NNTP-Posting-Host: 130.99.229.109
| > | > | Path:
cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP09.phx.g bl
| > | > | Xref: cpmsftngxa06.ph x.gbl
| microsoft.publi c.dotnet.langua ges.vc:29890
| > | > | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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******** ********@TK2MSF TNGP09.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1329
by: Joe | last post by:
Hello, Joe here, wanted to get the 411 on this article. I posted in the FrontPage forum but there is never an answer. So I have come here, where all my IIS problems have been solved (Thank YOU!!) I want to create a small utility web site with a logon page and a form connected to an Access database. The article below explains exactly how...
8
1615
by: Andreas Lagemann | last post by:
Hi, after browsing FAQ and archive for a while I decided that the following is a legal question. Consider this: Class Base { public: Base() {}
2
2226
by: Brian Hansen | last post by:
Hi there, I'ld like to know how to do the article HOWTO: Programmatically Query and Set Proxy Settings Under Internet Explorer (Knowledge Base-artikel - 226473). I'm using C#, framework 1.1, Windows 2000 Pro and I do have an understanding with dll imports, if that's is going to be one of the solutions. Kindest regards,
0
1548
by: Sushil Srivastava | last post by:
Hi Guys, I have developed a utility that provide a smart MSDN knowledge base search both off-line and on-line. I have describe more in detail below why I decided to write this utility (one reason is just for fun). Please let me know if you need this utility. Thanks Sushil
0
1119
by: MPadovani | last post by:
Thanks in advance for anyone reading this. I have a body of MFC C++ code that I put a managed C++ wrapper around (using VS 2003) to expose as a .NET assembly (as a set of public classes) for a .NET web application. It mostly worked fine; however, periodically the ASPX pages would return an error trying to instantiate one of the classes in...
2
1631
by: EJS | last post by:
This is pathetic... BUG: Debugger Does Not Stop at the Set Breakpoints in a .NET-Connected Web Application When More Than One File Has the Same File Name RESOLUTION To work around this problem, use one of the following options: a.. Use unique file names for all files in your ASP.NET Web Application. -or- b.. Temporarily change the file...
0
940
by: Hasani \(remove nospam from address\) | last post by:
I read "BUG: Session Data Is Not Saved in Out-of-Process Session State" -> http://support.microsoft.com/default.aspx?scid=kb;en-us;312112 It states at the end "Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This bug was fixed in ASP.NET (included with the .NET Framework)...
2
1559
by: Blue Streak | last post by:
Hello, I am trying to develop an interface to view an internal knowledge base. One feature I would like to add is a "Generate E-Mail" button which would automatically open an e-mail message a populate it with the title and the article from the knowledge base. Each KBase item contains a title and article where the article contains HTML...
3
1976
by: Kristof Nachtergaele | last post by:
Hi, I'm trying to implement Knowledge Base Article - 322090 into my code to be able to send data directly to a pos printer. This works fine under win XP, but when I try the same printer under W98 it fails to print. The openprinter function fails, but when I try to get the error with getlasterror it just states that the last command...
0
7809
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8312
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7920
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6569
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5685
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5366
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3809
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2312
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1147
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.