Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / September 2003

Tip: Looking for answers? Try searching our database.

/NOENTRY Link error in Managed c++ Web Service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Carl - 18 Sep 2003 21:29 GMT
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.
William DePalo [MVP VC++ ] - 19 Sep 2003 01:14 GMT
> I have a managed c++ web service that uses ATL.
> Everything worked fine with VC 7.0, but when I recompile
[quoted text clipped - 11 lines]
>
> 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/default.asp?url=/library/en-us/vcmex/html/vcco
nconvertingmanagedextensionsforcprojectsfrompureintermediatelanguagetomixedmode.
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.