From: Sergey Vlasov (groups_at_[hidden])
Date: 2007-12-23 09:06:38


Wednesday, December 19, 2007, Jason McGuidwin wrote:

JM> I am trying to compile a simple proragm with the thread headers
JM> included and the clr option in VS2005

JM> When i include the thread headers and set the to compile with the
JM> /clr option the app will not execute and give the error below:
JM> "The application failed to initialize properly (0xc000007b). Click
JM> on OK to terminate the application."

You probably encountered one of the VS2005 SP1 peculiarities.

Change
/entry:main
to
/entry:?mainCRTStartupStrArray@@$$FYMHP$01AP$AAVString_at_System@@@Z

See http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=99693
for more details.

-- 
www.svprogramming.net