473,748 Members | 2,595 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Compiling a Program for Distribution

Hi All,

I have written a program in VB 6.0 that I would like to distribute to
many users (most likely via freeware / shareware). The program is a
relatively simple and does not call any external DLL's etc - it
compiles to a single EXE. The program runs fine on my computer under
Windows 2000 Professional and a few other machines that I have tried
including two running Windows XP.

Should the same code work on all versions of windows including
95/98/XP etc. Are there any issues that I should be aware of when
compiling the code for distribution of this type ? For instance are
there any particular compiler switches that I should use to ensure
trouble free operation on all machines.

The program draws some simple graphics in a picturebox – nothing
special – just line/circle methods. Are there likely to be any issues
with different graphics cards etc.

Any advice would be appreciated.

Thanks,

Steve
Jul 17 '05 #1
5 4678
On 27 Dec 2003 03:58:56 -0800, sm*********@yah oo.com (smjmitchell)
wrote:
Hi All,

I have written a program in VB 6.0 that I would like to distribute to
many users (most likely via freeware / shareware). The program is a
relatively simple and does not call any external DLL's etc - it
compiles to a single EXE. The program runs fine on my computer under
Windows 2000 Professional and a few other machines that I have tried
including two running Windows XP.

Should the same code work on all versions of windows including
95/98/XP etc. Are there any issues that I should be aware of when
compiling the code for distribution of this type ? For instance are
there any particular compiler switches that I should use to ensure
trouble free operation on all machines.
Best turn on all the Debug switches
- and leave them on
- code that works ... runs faster than stuff with mysterious errors

The program draws some simple graphics in a picturebox – nothing
special – just line/circle methods. Are there likely to be any issues
with different graphics cards etc.
Probably not, but make sure you work with Pixels rather than TWIPs
- I also I recommend using the APIs
- IME they are more precise

Any advice would be appreciated.


Open up your project's .VBP file and look at the dependancies
- if you do not use any OCXes then you should be able to simply
distribute your EXE and MSVBVM60.DLL
Jul 17 '05 #2
sm*********@yah oo.com (smjmitchell) wrote in message news:<de******* *************** ****@posting.go ogle.com>...
Hi All,

I have written a program in VB 6.0 that I would like to distribute to
many users (most likely via freeware / shareware). The program is a
relatively simple and does not call any external DLL's etc - it
compiles to a single EXE. The program runs fine on my computer under
Windows 2000 Professional and a few other machines that I have tried
including two running Windows XP.

Should the same code work on all versions of windows including
95/98/XP etc. Are there any issues that I should be aware of when
compiling the code for distribution of this type ? For instance are
there any particular compiler switches that I should use to ensure
trouble free operation on all machines.

The program draws some simple graphics in a picturebox ? nothing
special ? just line/circle methods. Are there likely to be any issues
with different graphics cards etc.

Any advice would be appreciated.

Thanks,

Steve

Use the latest packager from microsoft (its free), they dumped the
package and deployment wizard for the visual studio installer.

If you package with this, you should be fine, I noticed a few years
back, that the package and deployment wizzard would install a .dll or
..ocx if needed, but didn't restart the install if the computer was
restarted. wacky.

anyways, with vb6, and not using any .ocx that you downloaded tat have
weird installs, or calling any api's you should be fine. best to keep
an old win 98se box laying around for just such an occasion. :)

There was a program I write with vb6, i used a ton of api calls, and
it would wack out on 98, but worked find on anything later than that.

--Mike
Jul 17 '05 #3
On 28 Dec 2003 03:39:16 -0800, sc*****@hotmail .com (CountScubula)
wrote:

<snip>

Use the latest packager from microsoft (its free), they dumped the
package and deployment wizard for the visual studio installer.
Or maybe InnoSetup ?

If you package with this, you should be fine, I noticed a few years
back, that the package and deployment wizzard would install a .dll or
.ocx if needed, but didn't restart the install if the computer was
restarted. wacky.

anyways, with vb6, and not using any .ocx that you downloaded tat have
weird installs, or calling any api's you should be fine. best to keep
an old win 98se box laying around for just such an occasion. :)
You should be Ok with the APIs
- it is just necessary to make sure that they are not 'later' ones

There was a program I write with vb6, i used a ton of api calls, and
it would wack out on 98, but worked find on anything later than that.


You probably used Win NT or Win2000 APIs
- which is not a good idea

There are a few 'differences' in some of the rudimentary APIs
- NT/2000 firmed up on some parameters
- the OpenFile Dialog springs to mind

However, in general using APIs is far preferable to using OCXes

Less to go wrong ...
Jul 17 '05 #4
I think this type of program isn't going to give any problem at all if
you just compile it normally- just test it on a few machines, if it
works it'll probably be ok for all machines.
On 27 Dec 2003 03:58:56 -0800, sm*********@yah oo.com (smjmitchell)
wrote:
Hi All,

I have written a program in VB 6.0 that I would like to distribute to
many users (most likely via freeware / shareware). The program is a
relatively simple and does not call any external DLL's etc - it
compiles to a single EXE. The program runs fine on my computer under
Windows 2000 Professional and a few other machines that I have tried
including two running Windows XP.

Should the same code work on all versions of windows including
95/98/XP etc. Are there any issues that I should be aware of when
compiling the code for distribution of this type ? For instance are
there any particular compiler switches that I should use to ensure
trouble free operation on all machines.

The program draws some simple graphics in a picturebox – nothing
special – just line/circle methods. Are there likely to be any issues
with different graphics cards etc.

Any advice would be appreciated.

Thanks,

Steve


Jul 17 '05 #5
If you compile the program and test it on a few machines it will work
on all windows versions, normally; if it's so easy as your program. No
problems at all I expect.
On 27 Dec 2003 03:58:56 -0800, sm*********@yah oo.com (smjmitchell)
wrote:
Hi All,

I have written a program in VB 6.0 that I would like to distribute to
many users (most likely via freeware / shareware). The program is a
relatively simple and does not call any external DLL's etc - it
compiles to a single EXE. The program runs fine on my computer under
Windows 2000 Professional and a few other machines that I have tried
including two running Windows XP.

Should the same code work on all versions of windows including
95/98/XP etc. Are there any issues that I should be aware of when
compiling the code for distribution of this type ? For instance are
there any particular compiler switches that I should use to ensure
trouble free operation on all machines.

The program draws some simple graphics in a picturebox – nothing
special – just line/circle methods. Are there likely to be any issues
with different graphics cards etc.

Any advice would be appreciated.

Thanks,

Steve


Jul 17 '05 #6

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

Similar topics

4
3528
by: Mark P. | last post by:
I'm trying to get gd support so I've been trying to recomile php. The following are the flags I'm using, which configures fine, but dies in make. ../configure --with-gd=/var/www/gd-2.0.33 --with-zlib-dir=/usr/lib --enable-gd-native-ttf --enable-gd-imgstrttf --with-png-dir=/usr/local/lib --with-jpeg-dir=/usr/local/lib Here's the the death.
1
2862
by: mazu | last post by:
I get errors about QAssistantClient while compiling PyQt 3.7, on my debian woody with Qt 3.1.2. Here is compiler message: cd qt && /usr/bin/make -f Makefile make: Entering directory `/Downloads/KDE - libs/PyQt-x11-gpl-3.7/qt' g++ -c -pipe -w -O2 -D_REENTRANT -fPIC -DSIP_MAKE_MODULE_DLL -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I. -I/usr/include/python2.1 -I/usr/share/qt3/include -o qtcmodule.o...
3
5490
by: Al | last post by:
I'd like to "hide" my code from being viewed (linux). Is there anyway for me to compile my program into .pyc and only have the .pyc files available, or do I always have to have the .py file? thanks in advance!! Al (newbie!!)
0
1155
by: Jon Nicoll | last post by:
Hi all anyone know what compiler and version I should use to compile an extension module for ActiveState Python 2.3? <background> quite a few years ago I used a useful Python extension module called xstruct in a program suite. It does a similar job to what ctypes does nowadays, AFAICT. The extension is a C file compiled to a .DLL for windows.
6
6176
by: Martin Bless | last post by:
The good news: Along with Python-2.4 comes really good news to Windows users. Yes, you now CAN build extension modules yourself using the SAME C++ compiler and linker Python is built with itself. Everything you need is available at no costs (except download hassle and installation time). Once your system is set up properly its just a matter of running 'python setup.py build'. No longer waiting for someone else to build binaries and a...
0
3036
by: Vangelis Pappas | last post by:
I am hopping to get mysql compiled for arm in an i386 redhat pc. I have the cross compiler and some arm distribution, the version of the gcc is 2.95.3, and mysql distribution is 3.23.57. (I also tried 4.0.14 withthe same results/error) I do a: ../configure --prefix=/usr/local/arm/arm-linux --host=arm-linux --build=i386-linux
0
9744
by: Kirt Loki Dankmyer | last post by:
So, I download the latest "stable" tar for perl (5.8.7) and try to compile it on the Solaris 8 (SPARC) box that I administrate. I try all sorts of different switches, but I can't get it to compile. I need it to be compiled with threads. Anyone have any wisdom on how best to do this? Here's a transcript of my latest attempt. It's long; you might want to skip to the bottom, where I try "make" and the fatal errors start happening.
3
2334
by: Ryan Riehle | last post by:
Hi All! Trying to upgrade to Apache 2.0.49 and getting compile errors related to mod_auth_pgsql, any clue?: make: Entering directory `/usr/src/httpd-2.0.49' /usr/src/httpd-2.0.49/srclib/apr/libtool --silent --mode=link gcc -pthread -I/ =500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER I. -I/usr/src/httpd-2.0.49/os/unix -I/usr/src/httpd-2.0.49/server/mpm/prefork -I .49/modules/proxy
2
3598
by: eliben | last post by:
On Jun 27, 3:10 pm, eliben <eli...@gmail.comwrote: Problem solved: http://eli.thegreenplace.net/2008/06/28/compiling-python-extensions-with-distutils-and-mingw/
0
8991
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8830
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9370
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9321
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9247
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6074
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4602
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2782
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.