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++ / October 2005

Tip: Looking for answers? Try searching our database.

VC++6 to VC++7 porting issues

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pardeep Singh - 18 Oct 2005 07:38 GMT
Hi all,

I am migrating modules from VC++6 to VC++7. All the dll and exe modules are
compiled successfully, but the applications crashes at startup.

Please guide me what are the proper steps to migrate VC++6 code to VC++7.

Thanks & Regards,
Pardeep Singh Sangha
Olaf Baeyens - 18 Oct 2005 11:10 GMT
> I am migrating modules from VC++6 to VC++7. All the dll and exe modules are
> compiled successfully, but the applications crashes at startup.
>
> Please guide me what are the proper steps to migrate VC++6 code to VC++7.

Normally just open with VC++ 2003 and it will ask to convert the project and
compile.
That is all it takes, just fix the warnings and errors it gives you. It
should work without problems.

WIth the amount of detail you provide us, we cannot determin wat the cause
is. The biggest chance is that you either had a bug that never showed up in
VC++ 6 or that in the conversion, you somehow incorrectly changed something
to reduce warnings/errors.
Peter van der Goes - 18 Oct 2005 15:15 GMT
> Hi all,
>
[quoted text clipped - 6 lines]
> Thanks & Regards,
> Pardeep Singh Sangha

What Olaf said!
Hopefully, you kept a copy of the original VC++6 project so you can repeat
the process. The next time through, document each change you make to update
obsolete headers, change noncompliant code, etc. That way, you can identify
the change causing the crash.
Pardeep Singh - 19 Oct 2005 12:11 GMT
Hi All,

Is there any different approach to use XML in VC+7. In our VC+6 code the xml
classes are created from msxml.dll.

May be this causing problem.

Thanks & Regards,
Pardeep Singh Sangha

> > Hi all,
> >
[quoted text clipped - 12 lines]
> obsolete headers, change noncompliant code, etc. That way, you can identify
> the change causing the crash.
Olaf Baeyens - 20 Oct 2005 09:36 GMT
> Is there any different approach to use XML in VC+7. In our VC+6 code the xml
> classes are created from msxml.dll.
>
> May be this causing problem.

Are you using managed code to do this? I mean the .NET libraries.
Or the old style unmanaged C++? I guess the latter.

One other probable cause could be that somehow you are compiling with the
managed code switch on and you have a partly .NET program that has not
enough administrative rights to run the program.
This can happen when run from a network driv and you have not told the
program that it is allowed to run from there.
Pardeep Singh - 20 Oct 2005 11:44 GMT
Found the root cause crash of ported exe application. While debuging I found
the AfxOleInit( ) returns false and causes application to crashes and puts
the debug pointer to OleInit.cpp's

Note : The AfxOleInit( ) returns successfully in InitInstance of CMyApp
class.
but it fails in another thread. If I comment the later the application
starts-up correctly.

What is the reason behind the AfxOleInit() returning false?

Thanks,
Pardeep Singh Sangha

> Hi all,
>
[quoted text clipped - 5 lines]
> Thanks & Regards,
> Pardeep Singh Sangha

Rate this thread:







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.