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

Program works in design mode but not after compilation, Any ideas?

VB6 windows XP home

I run a small app that has no forms in it, only a few BAS modules.

It's function is to open a text file and load a few pieces of data
into memory and then periodically update that same text file. When the
data in the text file reaches certain parameters it is to close the
modem connection.

This program works perfectly while in design mode in the VB6
environment but when I compile it to an EXE file and run it it does
nothing. I check the text file and it never gets updated.

Any Ideas?

Danny
Jul 17 '05 #1
3 2198
A quick thing to try would be to add a form and make the Visibile property
to FALSE and then compile and run.... see what that does for you.

Tom

"Danny" <xa*******@aol.com> wrote in message
news:3a*************************@posting.google.co m...
VB6 windows XP home

I run a small app that has no forms in it, only a few BAS modules.

It's function is to open a text file and load a few pieces of data
into memory and then periodically update that same text file. When the
data in the text file reaches certain parameters it is to close the
modem connection.

This program works perfectly while in design mode in the VB6
environment but when I compile it to an EXE file and run it it does
nothing. I check the text file and it never gets updated.

Any Ideas?

Danny

Jul 17 '05 #2

"Danny" <xa*******@aol.com> wrote in message
news:3a*************************@posting.google.co m...
VB6 windows XP home

I run a small app that has no forms in it, only a few BAS modules.

It's function is to open a text file and load a few pieces of data
into memory and then periodically update that same text file. When the
data in the text file reaches certain parameters it is to close the
modem connection.

This program works perfectly while in design mode in the VB6
environment but when I compile it to an EXE file and run it it does
nothing. I check the text file and it never gets updated.

Any Ideas?

Danny


Danny,

Are you running the .exe from the VB folder? If not, you may have a path
problem.
Also, always set your project up to compile in PCode, not native. I've seen
problems such as you describe when compiling in native code.

John
Jul 17 '05 #3
On 28 Jan 2004 05:40:44 -0800, xa*******@aol.com (Danny) wrote:
VB6 windows XP home

I run a small app that has no forms in it, only a few BAS modules.

It's function is to open a text file and load a few pieces of data
into memory and then periodically update that same text file. When the
data in the text file reaches certain parameters it is to close the
modem connection.

This program works perfectly while in design mode in the VB6
environment but when I compile it to an EXE file and run it it does
nothing. I check the text file and it never gets updated.


In the IDE the default directory is not necessarily App.Path

The trick is to do : ChDir App.Path
as the first thing in the program

You also need to check that files exist ...
Jul 17 '05 #4

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

Similar topics

33
by: Nick Evans | last post by:
Hello there, I have been on and off learning to code (with python being the second language I have worked on after a bit of BASIC). What I really want to know is, if you are going to actually...
6
by: Ariel | last post by:
I have an application that works correctly in debug mode but it does not work in release. I am not using anything of the class system.diagnostics. I tried to disable the optimization code, but...
3
by: Matthew Louden | last post by:
My ASP.NET application is running without error in my local machine (IIS PWS). However, once I upload all the ASPX files to the remote IIS machine with Windows Server 2003 OS, it no longer works. ...
3
by: kuiyuli | last post by:
I'm using VC++ .Net to do a simlple program. I tried to use <vector> <list> in the program, and I simply put the folowing lines " #include <list> #include <vector> #include <string> using...
7
by: news.microsoft.com | last post by:
I have an asp.net 2.0 project that when I change the build configuration to release I get the following error: Command line error BC2014: the value 'None' is invalid for option 'debug'. If I...
4
by: ARC | last post by:
Hello all, I'm trying to help a customer of mine recover data from an access 2000 program that appears to have corruption. Opening the file will open the default / startup form, however, you...
2
by: Mufasa | last post by:
I have a .Net 1.1 program that works fine that plays flash files. I am converting it to .Net 2.0 and am getting all kinds of compilation errors about not finding files or assemblies. Here's the...
3
by: Tahir | last post by:
Hi, i am delevoping an ASP.NET website which worked well on my old web host and now working on localhost but now it doesnt works on my new host. i have new registered and ftp the files that...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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...

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.