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 / Visual Studio.NET / General / November 2004

Tip: Looking for answers? Try searching our database.

Curious Question about Compiler

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Daniel Moree - 27 Nov 2004 20:44 GMT
Ok, just to get things straight, I'm not new, just new to this newsgroup. So
don't give me that NEWBIE stuff.

Now that the disclaimer is out of the way, here's my question.

I'm using Visual Studio 6. I'm working on some software and on the startup
of my program it pulls some information for a .DAT file. No real importance
just that it holds some user settings in it. The program compiles and builds
fine. My question is that if I click Build->Execute, it executes to program
and pulls information from the .Dat file, but it's not the right
information. The information should be a 1, in the program this represents
16. I've added a messagebox to print what the variable is and when Executed
through Visual Studio I get 8 instead of 0, 16 instead of 1, 24 instead of
2, and 32 instead of 3. If I run it from windows explorer it runs great!

Any idea on why it does that? Maybe a bug with the execute command or
something. This doesn't bother me at all, just really make me wonder.

Daniel
David Lowndes - 27 Nov 2004 22:43 GMT
>Ok, just to get things straight, I'm not new, just new to this newsgroup. So
>don't give me that NEWBIE stuff.

Daniel,

What soft of stuff would you prefer not to be told?

>...
>My question is that if I click Build->Execute, it executes to program
[quoted text clipped - 5 lines]
>
>Any idea on why it does that?

Your current working directory will be different in the 2 situations -
have you got 2 different dat files in these locations?

What does it do if you debug the program - that will help you pin the
problem down.

Dave
Signature

MVP VC++ FAQ: http://www.mvps.org/vcfaq


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.