473,804 Members | 3,251 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Standalone EXE in VB6

I need to create an EXE that is truly "standalone ". By that, I mean the
executable file is all that's required for the application to run. My app
has a button that fires up a common control (to select a file), and this
seems to be my stumbling block. When I try to run my program on another
machine, it complains that comdlg32.ocx is not registered properly.

Short of creating my own form and writing my own code to browse for a file,
can VB6 create a fully self-contained EXE that uses a common control and can
simply be run without the need for the program to be installed? It was
suggested to me that VB6 was what I needed (was using VB5 prior to now), so
I bought an old copy of VB6 Enterprise especially for the occasion. Have I
been misled?

--
George
"You can just hang outside in the sun all day tossing a ball around, or you
can sit at your computer and do something that matters." - Eric Cartman - 4
October 2006
Dec 20 '06
13 16416

"J French" <er*****@nowher e.ukwrote in message
news:45******** ******@news.btc lick.com...
On Wed, 20 Dec 2006 11:32:18 GMT, "Wog George"
<wo************ *******@amd-p.comwrote:
>>I need to create an EXE that is truly "standalone ". By that, I mean the
executable file is all that's required for the application to run. My app
has a button that fires up a common control (to select a file), and this
seems to be my stumbling block. When I try to run my program on another
machine, it complains that comdlg32.ocx is not registered properly.
>>Short of creating my own form and writing my own code to browse for a
file,
can VB6 create a fully self-contained EXE that uses a common control and
can
simply be run without the need for the program to be installed? It was
suggested to me that VB6 was what I needed (was using VB5 prior to now),
so
I bought an old copy of VB6 Enterprise especially for the occasion. Have
I
been misled?

You have been misled.

VB5 is fine for what you are doing
- VB6 is VB5 with a few more bells and whistles

As others have pointed out, you can use the API
- I ran into exactly the same problem, as I refuse to use OCXes
My problem is now fixed using the API, as suggested.
Get the downloadable API Guide (packed with examples) from
http://www.mentalis.org/agnet/
Thanks for the link. I'm sure there'll be lots of fun and headaches in that
lot.
You'll probably find an OpenFile API implementation on Rany's site
http://vbnet.mvps.org/

The more, the merrier.

Thanks

--
George
"I got such a raging clue that I almost shot clue goo all over Joe." - Frank
Hardly - 11 October 2006
>

Dec 21 '06 #11
On Thu, 21 Dec 2006 08:37:46 GMT, "Wog*George "
<wo************ *******@amd-p.comwrote:

<snip>
>Get the downloadable API Guide (packed with examples) from
http://www.mentalis.org/agnet/
>Thanks for the link. I'm sure there'll be lots of fun and headaches in that
lot.
The API Guide is amazingly good
- the examples are simple and work

You'll have a great deal of painless fun with it
Dec 21 '06 #12
yes there is actually, when you use the package and deployment wizard you
can add files like comdlg32.ocx to the package so that when the application
is installed all relevant ocx and dll files are installed on the client
machine as well. alternately, if the destination machine also has the VB6
runtime libraries on it, then you can just port the EXE and it will work
fine because all the OCX and DLL files would already be on the machine.

"Wog George" <wo************ *******@amd-p.comwrote in message
news:6b******** *********@news-server.bigpond. net.au...
>I need to create an EXE that is truly "standalone ". By that, I mean the
executable file is all that's required for the application to run. My app
has a button that fires up a common control (to select a file), and this
seems to be my stumbling block. When I try to run my program on another
machine, it complains that comdlg32.ocx is not registered properly.

Short of creating my own form and writing my own code to browse for a
file, can VB6 create a fully self-contained EXE that uses a common control
and can simply be run without the need for the program to be installed?
It was suggested to me that VB6 was what I needed (was using VB5 prior to
now), so I bought an old copy of VB6 Enterprise especially for the
occasion. Have I been misled?

--
George
"You can just hang outside in the sun all day tossing a ball around, or
you can sit at your computer and do something that matters." - Eric
Cartman - 4 October 2006


Dec 26 '06 #13
news:6b******** *********@news-server.bigpond. net.au...
>I need to create an EXE that is truly "standalone ". By that, I
mean the executable file is all that's required for the application
to run. My app has a button that fires up a common control (to
select a file), and this seems to be my stumbling block. When I
try to run my program on another machine, it complains that
comdlg32.ocx is not registered properly.

yes there is actually, when you use the package and deployment wizard
you can add files like comdlg32.ocx to the package so that when the
application is installed all relevant ocx and dll files are installed
on the client machine as well. alternately, if the destination
machine also has the VB6 runtime libraries on it, then you can just
port the EXE and it will work fine because all the OCX and DLL files
would already be on the machine.
That OCX file mentioned is not a standard VB runtime and is NOT
guaranteed to be installed in any circumstance.

--
Dean Earley (de*********@ic ode.co.uk)
i-Catcher Development Team

iCode Systems
Jan 2 '07 #14

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

Similar topics

0
2288
by: FilexBB | last post by:
Currently I use jdom-b9 version to parase xml with the following xml message <?xml version="1.0" encoding="UTF-8" standalone="no"?> ...... with the code like this SAXBuilder builder = new SAXBuilder(); InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream("test.xml"); Document doc = builder.build(is);
2
5441
by: Lonnie, SRC employee | last post by:
*** post for FREE via your newsreader at post.newsfeed.com *** I can figure out how to set the standalone attribute in the <? xml version="1.0 ?> tag eg <?xml version="1.0" standalone="yes" ?> closest I have got to what I need is: <?xml version="1.0" ?> <?standalone yes?> <xpg creator="crusher" version="1.0"> <etr>
9
2052
by: Dan Williams | last post by:
Hi people I'm getting a little annoyed with the way the print function always adds a space character between print statements unless there has been a new line. The manual mentions that "In some cases it may be functional to write an empty string to standard output for this reason." Am I the only the who thinks that this sucks? It's the first thing I've come across in Python that I really think is a design flaw. Is there a good way to...
3
2880
by: Isaac Gouy | last post by:
1) Running a standalone script with SpiderMonkey on Linux js -f scriptfile.js scriptarg How can I get the value of scriptarg from within the JavaScript scriptfile? 2) Running a standalone script with SpiderMonkey on Linux How can I do formated printing to stdout?
0
309
by: tt | last post by:
My mod_python 3.1.4 installation works when Apache 2.0.54 is run in standalone mode (apache -k standalone) but refuses to operate when run as a service (apache -k restart). Logs yield the usual and well-known "make_obcallback: could not import mod_python.apache" error. I have tried PYTHONHOME, LoadFile python24.dll (2.4.2) with no result. I have read *all* threads about make_obcallback that google found. What's even weirder I had this...
2
2370
by: JohnR | last post by:
Hi all. In my program I try to handle all obvious potential errors with structured error handling (try-catch) block. What I would like to do is have an 'overall' error handler that would gracefully catch any unanticipated errors. I created a startup module to place my overall error handling for my "real" program which is Form1. My program is structured like this: Module startup
0
1530
by: sdb1031 | last post by:
I'm trying to learn about Python and XML. I would like to be able to add standalone="no" to my xml declaration when writing an xml file, but I am unable to figure out how. So far, I have the following code: import xml.dom.minidom doc2 = xml.dom.minidom.Document() print doc2.toxml('iso-8859-1') Which produces the following XML declaration: <?xml version="1.0" encoding="iso-8859-1"?>
1
1554
by: VK | last post by:
It is possibly more suitable to address this question to W3C mailing list, but I'm trying here first. Could anyone comment on <http://www.w3.org/TR/REC-xml/#sec-rmd> The first statement says: "If there are external markup declarations but there is no standalone document declaration, the value "no" is assumed."
7
11669
by: tah | last post by:
Hey, Can someone please clarify, confirm, or set me straight on my understanding of a standalone="yes" attribute in the xml version element? I assume it means that the xml document containing it is standalone, and does not refer to any external document to define types. In other words, it doesn't use an external dtd to validate any types - everything used would be defined within the doc itself. In other words, you would never see an xml...
4
2335
by: Ted Lyngmo | last post by:
Hi! I'm new (but please do continue reading) to C++ in the VS environment and wanted to create a standalone program (or preferably, a static library, compatible with other Windows compilers) that; 1. Takes an URI as an argument. 2. Prints the proxy for that URI to stdout (or in the static library case, returns the resulting string).
0
9708
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
9587
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
10340
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...
0
10085
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
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7623
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5662
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4302
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3827
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.