472,353 Members | 1,885 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

converting mc++ projetcs to mixed mode

This article

http://msdn.microsoft.com/library/de...omixedmode.asp

seems to be somewhat out of date. Not all of it seem to apply to vs 2005
(beta 2) and c++/CLI. I followed the instructions given there but
using vs 2005 beta 2 I get some warnings about depreciation:

warning CRT1001: _vcclrit.h is deprecated
warning C4996: '__lock_handle' was declared deprecated
warning C4996: '__terminated' was declared deprecated
warning C4996: '__initialized' was declared deprecated
warning C4996: '__initialized' was declared deprecated
warning C4996: '__lock_handle' was declared deprecated
warning C4996: '__lock_handle' was declared deprecated
warning C4996: '__initialized' was declared deprecated
warning C4996: '__terminated' was declared deprecated
warning C4996: '__terminated' was declared deprecated
warning C4996: '__lock_handle' was declared deprecated
warning C4996: '__crt_dll_initialize' was declared deprecated
warning C4996: '__crt_dll_terminate' was declared deprecated
warning C4793: 'found an intrinsic not supported in managed code' :
causes native code generation for function 'NtCurrentTeb'
d:\programme\microsoft visual studio 8\vc\platformsdk\include\winnt.h 9585
warning LNK4098: defaultlib 'msvcrtd.lib' conflicts with use of other
libs; use /NODEFAULTLIB:library WPFControls
Warning 16 warning LNK4248: unresolved typeref token (01000012) for
'_TEB'; image may not run WPFControls.obj
The cause of most of the above warnings are the two function that this
article suggest to add for initialisation and termination.

Can you comment on what parts of the above atricle still apply to vs
2005 and c++/CLI and what I need to do especially for c++/CLI. What
issues when creating mixed mode dlls still exist in c++/CLI and what
have been resolved ?

Nov 17 '05 #1
4 5436
bonk wrote:
Can you comment on what parts of the above atricle still apply to vs
2005 and c++/CLI and what I need to do especially for c++/CLI. What
issues when creating mixed mode dlls still exist in c++/CLI and what
have been resolved ?


I believe the answer is that nothing in that article is relevant to VC++
2005. The issues discussed in the article are all related to the mixed-mode
DLL loader lock issue which is fully addressed by the 2.0 CLR and the 2005
C++ compiler.

-cd
Nov 17 '05 #2
I think I found the answer to the _vcclrit.h problem:
http://msdn2.microsoft.com/en-us/lib...us,vs.80).aspx

I just do not need the init.cpp codesnipped anymore. Actaully it seems
that the whole article does not apply to c++/CLI. Looks like there are
no issues to watch out for in mixed mode dlls anymore when using vs 2005.

bonk schrieb:
This article

http://msdn.microsoft.com/library/de...omixedmode.asp
seems to be somewhat out of date. Not all of it seem to apply to vs 2005
(beta 2) and c++/CLI. I followed the instructions given there but using
vs 2005 beta 2 I get some warnings about depreciation:

warning CRT1001: _vcclrit.h is deprecated
warning C4996: '__lock_handle' was declared deprecated
warning C4996: '__terminated' was declared deprecated
warning C4996: '__initialized' was declared deprecated
warning C4996: '__initialized' was declared deprecated
warning C4996: '__lock_handle' was declared deprecated
warning C4996: '__lock_handle' was declared deprecated
warning C4996: '__initialized' was declared deprecated
warning C4996: '__terminated' was declared deprecated
warning C4996: '__terminated' was declared deprecated
warning C4996: '__lock_handle' was declared deprecated
warning C4996: '__crt_dll_initialize' was declared deprecated
warning C4996: '__crt_dll_terminate' was declared deprecated
warning C4793: 'found an intrinsic not supported in managed code' :
causes native code generation for function 'NtCurrentTeb'
d:\programme\microsoft visual studio 8\vc\platformsdk\include\winnt.h
9585
warning LNK4098: defaultlib 'msvcrtd.lib' conflicts with use of other
libs; use /NODEFAULTLIB:library WPFControls
Warning 16 warning LNK4248: unresolved typeref token (01000012)
for '_TEB'; image may not run WPFControls.obj
The cause of most of the above warnings are the two function that this
article suggest to add for initialisation and termination.

Can you comment on what parts of the above atricle still apply to vs
2005 and c++/CLI and what I need to do especially for c++/CLI. What
issues when creating mixed mode dlls still exist in c++/CLI and what
have been resolved ?

Nov 17 '05 #3
"bonk" <sc******************@gmx.de> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I just do not need the init.cpp codesnipped anymore. Actaully it seems
that the whole article does not apply to c++/CLI. Looks like there are no
issues to watch out for in mixed mode dlls anymore when using vs 2005.


Sorry about that.

I should have mentioned that the article I cited in an earlier post to you
described a shortcoming of VS.Net 2002/2003.

Regards,
Will
Nov 17 '05 #4
William DePalo [MVP VC++] schrieb:
"bonk" <sc******************@gmx.de> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I just do not need the init.cpp codesnipped anymore. Actaully it seems
that the whole article does not apply to c++/CLI. Looks like there are no
issues to watch out for in mixed mode dlls anymore when using vs 2005.

Sorry about that.

I should have mentioned that the article I cited in an earlier post to you
described a shortcoming of VS.Net 2002/2003.

Regards,
Will

There is one thing in thar article that still applies:

Link with /NOENTRY.

is that correct ?
Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mike Kamzyuk | last post by:
Hello all. Basically, I need to call a mixed-mode dll's function (which uses managed code) from a native or mixed-mode dll function (which does...
1
by: Alexander Arlievsky | last post by:
Hi, I have mixed mode dll, which contains files with managed objects written in MC++, and files with regular "C" functions. One of those functions...
1
by: Alexander Arlievsky | last post by:
Hi, I have MC++ mixed mode assembly, which also uses MFC. Everything works fine, but C# code, which uses this MC++ assembly sees all MFC symbols as...
8
by: Ted Miller | last post by:
Hi folks, I'm looking at moving a large base of C++ code to .Net under tight time constraints. The code runs in mission-critical environments,...
0
by: Edward Diener | last post by:
I have some questions about the instructions for creating a mixed mode DLL in the MSDN topic "Converting Managed Extensions for C++ Projects from...
9
by: Edward Diener | last post by:
I received no answers about this the first time I posted, so I will try again. My inability to decipher an MSDN topic may find others who have the...
8
by: Nadav | last post by:
Hi, I am writing a performence critical application, this require me to stick to unmanaged C++ as performance is much better using unmanaged C++ (...
7
by: Kevin Frey | last post by:
Using .NET 1.1. We have a mixed-mode assembly written in Managed C++ that we are using from an ASP.NET application that has been coded using C#....
0
by: emu | last post by:
Hi All, I have an unmanaged C++ application that references a mixed mode image DLL (mixed managed and unmanaged). Under .NET 1.1 we could trust...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...

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.