473,320 Members | 2,117 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,320 software developers and data experts.

/NOENTRY Link error in Managed c++ Web Service


I have a managed c++ web service that uses ATL.
Everything worked fine with VC 7.0, but when I recompile
with VC 7.1 I get the following link warning:

LINK : warning LNK4243: DLL containing objects compiled with /clr is not
linked with /NOENTRY; image may not run correctly.

Having looked in various files, I'm told to
1) Add the /NOENTRY option,
2) Add __DllMainCRTStartup@ 12 to the Force Symbol Reference
3) Remove nochkclr.obj (which isn't there to remove).

When I do this, ATL CStrings, and some functions don't work.

How do I correct this for a managed web service?

TIA.

Nov 16 '05 #1
1 2766
"Carl" <an*******@nospam.com> wrote in message
news:OQ**************@TK2MSFTNGP12.phx.gbl...
I have a managed c++ web service that uses ATL.
Everything worked fine with VC 7.0, but when I recompile
with VC 7.1 I get the following link warning:

LINK : warning LNK4243: DLL containing objects compiled with /clr is not
linked with /NOENTRY; image may not run correctly.

Having looked in various files, I'm told to
1) Add the /NOENTRY option,
2) Add __DllMainCRTStartup@ 12 to the Force Symbol Reference
3) Remove nochkclr.obj (which isn't there to remove).

When I do this, ATL CStrings, and some functions don't work.

How do I correct this for a managed web service?


I am not sure if one the various files is the this one:

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

If not, it should explain the procedure for the various cases in some
detail. If I read it correctly, you will have to implement the usual
DllMain() procedure which is called by _DllMainCRTStartup() which, in turn,
is called by the call that _you_ must make to __crt_dll_initialize(). Be
sure that you don't try to use the CRT until it is initialized.

Just by the way, I don't know if my experience is typical, but when I needed
to do this, the debugger refused to examine static variables when stopped in
unmanaged code. It had no problem when stopped in managed code, however.

Regards,
Will
Nov 16 '05 #2

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

Similar topics

6
by: Rajesh.S | last post by:
some more info... >-----Original Message----- >I built a VC++.Net project as a dll and >included it as a reference in a c# project. >When I call a c++ function from the csharp >project I get...
10
by: Gary Hughes | last post by:
I'm getting the following error when attempting to link a managed C++ dll. I can't find any reference to these errors with google. Can anyone help? I've included the class definition causing the...
1
by: Boris | last post by:
When I compile my "mixed-mode" C++ dll in Release mode, I get these warnings - LINK : warning LNK4243: DLL containing objects compiled with /clr is not linked with /NOENTRY; image may not run...
2
by: Doug Bailey | last post by:
I have found a linker problem in .NET2003 when trying to build a web service. To replicate the problem, simply build a new web service project FILE->NEW->PRROJECT… command. In the "Hello...
7
by: Kristof Thys via .NET 247 | last post by:
Post a new message to microsoft.public.dotnet.languages.vc http://www.dotnet247.com/247reference/default.aspx Hello, I've been struggling for weeks with this problem, I hope I find some...
3
by: Andreas | last post by:
Hi! I'm currently developing a DLL that makes use of C++ and .net (mixed) using Visual Studio 2003. Now, as I wanted to move to the new Visual Studio 2005, I converted this project into the...
4
by: Jason Richmeier | last post by:
I keep encountering an error message while trying to build a solution that I cannot seem to get around. I cannot figure out what the error is trying to tell me as there does not appear to be much...
4
by: Jason Richmeier | last post by:
I am sure this has been asked at least once before but I could not find anything when searching. If I set the value of the ExitCode property to 1066 for a windows service, the text "A service...
6
by: Michael Tissington | last post by:
Using Visual Studio 2008 can someone point me to an example to create a cgi web service in C# ? Thanks.
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.