473,708 Members | 2,377 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 1835
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
1333
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 but when I try this I can only see the code no actual logon page - nothing but code. My system is...
8
1622
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
2229
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
1564
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
1120
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 this assembly, which could then only be resolved by restarting the WWW service. Researching the...
2
1632
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 names in the Development or Debugging phase. Revert to the old names when you are ready to deploy...
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) 1.1. " I also read, http://zerotrilogy.gotdns.com/jaysonblog/archive/2004/03/24/243.aspx and he...
2
1565
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 formatting. So far, I have used a client-side JavaScript block to perform this task along with an HTML...
3
1987
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 completed succesfully. The printer is correctly connected, if I print from notepad or so, it works, and...
0
8697
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9289
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9158
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9060
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9001
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6615
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4454
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2508
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2096
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.