473,406 Members | 2,404 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,406 software developers and data experts.

problem when converting project from vc6 to vc7

hi.
i got a sample project written in vc6.
when i compile and build the exe (debug mode ) , the exe file size is 221KB,
and the program work ok.

if i open this project in vc7 , build the exe, the exe file is 156KB
and the program load, but not works well.

what im missing here.. ?
Nov 16 '05 #1
3 1711
Take care that there is a bug in Visual Studio 2002 with the functions
isspace, isalpha, ... These functions always display an assert when they
receive in parameter a character higher than 128. i.e: isspace('?'); does
not work!!! you must use isspace((unsigned) '?');

Take care that there is a bug with Visual Studio 2003 with the function
double pow(int, int) that always returns 0 if the exponent is negative =>
1^(-3) return 0 instead of 0.001 !!! You must use a prototype that takes in
parameter a floating point value for the exponent.

I don't remember well but if you use Custom build, Post Build Event, ... the
define $(TargetDir), ... have the path terminated by '/' but that was not
the case in VS 6 !

"Daylor" <Da****@012.net.il> wrote in message
news:3f********@news.012.net.il...
well , i didnt explain what is not working , cause i dont think ,it can help to explain the details.

the code is the same code.

my question was, what things i should take care when converting from vc6 to vc7.

about the specfic application :
this is sample of telephony application that using dll.
in vc7 , when u ring , the call isnt answer at all.

thanks and have a nice day.
"Mihajlo Cvetanovic" <ma*@RnEeMtOsVeEt.co.yu> wrote in message
news:3F**************@RnEeMtOsVeEt.co.yu...
Daylor wrote:
i got a sample project written in vc6.
when i compile and build the exe (debug mode ) , the exe file size is 221KB, and the program work ok.

if i open this project in vc7 , build the exe, the exe file is 156KB
and the program load, but not works well.

what im missing here.. ?


What's missing is a description of a "program not working well". The
difference in file sizes is not enough to start with. How does a
problem manifests itself?


Nov 16 '05 #2
Ok, the newsgroups does not accepts characters higher than 128 too! ;-)

Replace in "i.e: isspace('?'); does not work!!! you must use
isspace((unsigned) '?');" the character '?' by the symbole EURO (AltGr-E on
my computer) or another character higher than 128.

Lionel Schiepers

"Lionel Schiepers" <Li************************************@hotmail.co m>
wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl...
Take care that there is a bug in Visual Studio 2002 with the functions
isspace, isalpha, ... These functions always display an assert when they
receive in parameter a character higher than 128. i.e: isspace('?'); does
not work!!! you must use isspace((unsigned) '?');

Take care that there is a bug with Visual Studio 2003 with the function
double pow(int, int) that always returns 0 if the exponent is negative =>
1^(-3) return 0 instead of 0.001 !!! You must use a prototype that takes in parameter a floating point value for the exponent.

I don't remember well but if you use Custom build, Post Build Event, ... the define $(TargetDir), ... have the path terminated by '/' but that was not
the case in VS 6 !

"Daylor" <Da****@012.net.il> wrote in message
news:3f********@news.012.net.il...
well , i didnt explain what is not working , cause i dont think ,it can

help
to explain the details.

the code is the same code.

my question was, what things i should take care when converting from vc6

to
vc7.

about the specfic application :
this is sample of telephony application that using dll.
in vc7 , when u ring , the call isnt answer at all.

thanks and have a nice day.
"Mihajlo Cvetanovic" <ma*@RnEeMtOsVeEt.co.yu> wrote in message
news:3F**************@RnEeMtOsVeEt.co.yu...
Daylor wrote:
> i got a sample project written in vc6.
> when i compile and build the exe (debug mode ) , the exe file size
is 221KB,
> and the program work ok.
>
> if i open this project in vc7 , build the exe, the exe file is 156KB
> and the program load, but not works well.
>
> what im missing here.. ?

What's missing is a description of a "program not working well". The
difference in file sizes is not enough to start with. How does a
problem manifests itself?



Nov 16 '05 #3
Daylor wrote:
well , i didnt explain what is not working , cause i dont think ,it can help
to explain the details.

the code is the same code.

my question was, what things i should take care when converting from vc6 to
vc7.

about the specfic application :
this is sample of telephony application that using dll.
in vc7 , when u ring , the call isnt answer at all.


Do you have the latest service pack for VC7? Do you check for error
codes everywhere in your code? I haven't worked with TAPI (if that's
what it is), but all functions have some return code you must check.

Can you debug both version of the app (with appropriate debuggers) and
pinpoint the location where their behaviour differs? Are you
absolutely sure two versions have _identical_ code, without the
changes even in whitespace characters? Compare them with WinDiff (I
hope you kept the old project). Are both versions of the same
configuration (Debug)?

Try setting warning level for the whole project on the highest
possible (Level 4), and reset overridden settings for individual
source files. This'll give you the clues of what's safe in VC6 and not
in VC7. Also, search the code for #pragma directives which disable
warnings.

HTH

Nov 16 '05 #4

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

Similar topics

2
by: Nattydreadlock | last post by:
Hello, I tried to convert my ASP.NET 1.1 project to ASP.NET 2.0. Apart from some warnings most things went fine. There was one error though. When I try to run my project it keeps saying:...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
0
by: Rich | last post by:
(1) Is there a better place to pose the question below? (2) I am starting to convert my enterprise solution from VS 2003 (.NET v1.1.4322) to VS 2005 Professional (.NET v2.0.50727). The entire...
9
by: Symon | last post by:
I've got a web service project that was built under VS 2003 which has a SoapExtension in the project. The SoapExtension is registered in the <soapExtensionTypes> element of the web.config and has...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.