473,386 Members | 1,795 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,386 software developers and data experts.

VC++6 to VC++7 porting issues

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
Nov 17 '05 #1
5 1493
> 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.


Nov 17 '05 #2

"Pardeep Singh" <ps*******@hotmail.com> wrote in message
news:e5**************@TK2MSFTNGP14.phx.gbl...
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

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.
Nov 17 '05 #3
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
"Peter van der Goes" <p_**********@toadstool.u> wrote in message
news:uZ****************@TK2MSFTNGP14.phx.gbl...

"Pardeep Singh" <ps*******@hotmail.com> wrote in message
news:e5**************@TK2MSFTNGP14.phx.gbl...
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

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.

Nov 17 '05 #4
> 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.
Nov 17 '05 #5
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


"Pardeep Singh" <ps*******@hotmail.com> wrote in message
news:e5**************@TK2MSFTNGP14.phx.gbl...
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

Nov 17 '05 #6

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

Similar topics

1
by: Robin Charisse | last post by:
Hi, I have a VC++6 project that uses msxml to parse XML documents. I have been asked to port this to a .NET project but from the research I've done so far it looks as though the only way to do...
0
by: P Reddy | last post by:
Hi All, Greetings!!! I have a question. Please respond.... I am trying to write a C# component that need to inherit some of the the interfaces from unmanged code(VC). I think one way to...
0
by: kaypohsingaporean | last post by:
Hi all, I am porting VC++6 code to VC++8/2005. Here's the original code: (I have replaced the greater than sign with &gt; because this forum's parser doesn't like it) template < class CharT,...
8
by: lallous | last post by:
Hello I never compiled my code using any other compiler than MS's VC++ I know that if the code written is purely ISO C++ compatible, then it should compile fine. How, how to allow unicode...
1
by: siva.isukapalli | last post by:
Hi, We are involved in a porting project (from VC++ 6.0 to .Net VC++ 7.1). ** NOT C# or VB..NET. We have a custom app wizard written in 6.0. This basically creates a project with a set of...
5
by: tissyrose | last post by:
Hi All, I am porting a very large application from VC++ 6.0 to VS 2005. There are many issues I am facing. One of them is I am getting an error "cannot access private typedef declared in...
5
by: shobhah | last post by:
Hi, We have a complete succsssfully working product on 32bit sparc solaris machine for which compiler used is CC 5.8 Now we are migarting our product from 32 bit to 64bit sparc solaris machine....
0
by: JohnIdol | last post by:
VC++6 to VC++2003 - linking troubles -------------------------------------------------------------------------------- Hi All, I successfully ported an application from VC++6 to VS2003. Solved...
3
by: =?Utf-8?B?RGlwZXNoX1NoYXJtYQ==?= | last post by:
Hi all, I am porting my code in VC++ to VC.net i.e managed. I have seen somewhere that i need to convert my char* to String*, but String * doesnt perform pointer arithmetic like String* p; *p++='...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.