473,387 Members | 3,820 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 1803
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
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...
8
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
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,...
0
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...
0
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...
2
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,...
0
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...
2
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...
3
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...

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.