PC Review


Reply
Thread Tools Rate Thread

Deployed Application occmgr.cpp Assert Failure

 
 
=?Utf-8?B?R3JhaGFt?=
Guest
Posts: n/a
 
      27th May 2004
I have developed a Simple MFC GUI to allow a user to display and control an activity
The program works fine on a PC with Visual Studio installed, but when I transfer the progra
to a Laptop computer I get an Assertion Failure line 410 of file occmgr.cpp

I built a Deployment & Install project to formally install the program, but still keep getting the same error. It works fine on a desktop PC without Visual Studio installed

Someone suggested to try ( from Microsoft).

BUG: "HRESULT - 0x80010106" Error When You Run a Managed C++ Applicatio

#define _WIN32_WINNT 0x50
#include <objbase.h
#include <stdio.h>

#using <mscorlib.dll
using namespace System

extern "C" void mainCRTStartup()

[System::STAThread
int mymain() //the new entry poin

//Initialize CO
HRESULT hr = CoInitialize(0)

//Initialize the CR
mainCRTStartup()
//unini
CoUninitialize()
return 0



int main(

/
Do the application work
that you would do in your main threa
*


Explicitly specify the entry point to the mymain function. To do this, follow these steps:
Click Project, and then click Properties
In the Property Pages dialog box, expand Linker under Configuration Properties, and then click to select Advanced
In the Entry Point text box, type mymain, and then click OK

But I get Linker error:

Test GUI1 error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartu

Help!?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with deployed application. teejayem@gmail.com Microsoft ASP .NET 0 2nd Oct 2007 02:04 PM
.NET CF 2.0 not deployed with my application =?Utf-8?B?RXZl?= Microsoft Dot NET Compact Framework 6 20th Jul 2007 10:56 AM
Application.Restart on ClickOnce Deployed Application =?Utf-8?B?TmVpbEc=?= Microsoft Dot NET Framework Forms 0 5th May 2006 01:10 PM
using MFC in a managed application, ASSERT in AfxGetResourceHandle =?Utf-8?B?QXJuZQ==?= Microsoft VC .NET 0 19th Aug 2004 10:11 AM
VC++7 application deployed to NT4 Cliff Cooley Microsoft VC .NET 1 23rd Jul 2003 07:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:32 PM.