Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: Clan CDH on June 27, 2006, 11:49 PM

Title: Export OCX and EXE File?
Post by: Clan CDH on June 27, 2006, 11:49 PM
A friend started teaching me how to use resource files but he never got into any detail on how, I was wondering how I would do that in visual basic so that VB would automatically put specific files where I wanted them to go.  Mostly OCX files and one EXE file.  Thanks for your help and I will again, be posting on another forum just to get the best results!  Thanks!
Title: Re: Export OCX and EXE File?
Post by: UserLoser on June 28, 2006, 05:46 PM
I don't understand what you're trying to find out...or ask.  Resource files have nothing to do with file placement or ActiveX controls (.OCX extended files)
Title: Re: Export OCX and EXE File?
Post by: Clan CDH on June 28, 2006, 11:05 PM
well what im trying to do is create an installer that will extract .ocx files to the system32 directory and register them so that it doesnt tell the user "missing stupidfile.OCX"  do you get it now?
Title: Re: Export OCX and EXE File?
Post by: Clan CDH on June 29, 2006, 12:00 AM
i resolved my problem

for reference, see this link
http://www.stealthbot.net/forumn/index.php?showtopic=5899&st=0&#entry59490
Title: Re: Export OCX and EXE File?
Post by: MysT_DooM on June 29, 2006, 10:54 AM
for some odd reasons, installers on bots make me uneasy  ::)
Title: Re: Export OCX and EXE File?
Post by: topaz on June 29, 2006, 06:30 PM
Quote from: Clan CDH on June 29, 2006, 12:00 AM
i resolved my problem

for reference, see this link
http://www.stealthbot.net/forumn/index.php?showtopic=5899&st=0&#entry59490

You're better off writing a small util with the packaged dependencies that does it for you (minimal requirement is registering the visual basic runtime).
Title: Re: Export OCX and EXE File?
Post by: Joe[x86] on July 01, 2006, 04:18 PM
If a person doesn't know how to run the VB runtime installer and regsvr32, and know where to place OCX files, then they shouldn't be allowed to use a bot.
Title: Re: Export OCX and EXE File?
Post by: topaz on July 01, 2006, 04:30 PM
Quote from: J on July 01, 2006, 04:18 PM
If a person doesn't know how to run the VB runtime installer and regsvr32, and know where to place OCX files, then they shouldn't be allowed to use a bot.

It's a lot of hassle to regsvr32 eight different files.
Title: Re: Export OCX and EXE File?
Post by: Joe[x86] on July 01, 2006, 06:11 PM
Not really.
Title: Re: Export OCX and EXE File?
Post by: Eric on July 01, 2006, 06:31 PM
Quote from: J on July 01, 2006, 04:18 PM
If a person doesn't know how to run the VB runtime installer and regsvr32, and know where to place OCX files, then they shouldn't be allowed to use a bot.

That's exactly why your work never becomes popular... well one of several reasons why anyway.
Title: Re: Export OCX and EXE File?
Post by: Warrior on July 01, 2006, 08:13 PM
LOL LORD you own
Title: Re: Export OCX and EXE File?
Post by: Joe[x86] on July 02, 2006, 01:59 AM
Not really. He pointed out an obvious fact which came to mind soon after I posted it. To be quite frank, if I cared about peoples opinions at all it definately wouldn't be those of the general stupid populace of Battle.net who don't know ByRef from ByVal.
Title: Re: Export OCX and EXE File?
Post by: topaz on July 02, 2006, 02:26 AM
Quote from: J on July 02, 2006, 01:59 AM
Not really. He pointed out an obvious fact which came to mind soon after I posted it. To be quite frank, if I cared about peoples opinions at all it definately wouldn't be those of the general stupid populace of Battle.net who don't know ByRef from ByVal.

Ah yes, they're stupid because they don't program in VB6. Brilliant.
Title: Re: Export OCX and EXE File?
Post by: Joe[x86] on July 02, 2006, 10:45 AM
Yet they're not as stupid as you because they have the common sense to understand that I used VB terms in a discussion about, of all things, VB.

Get a girlfriend and waste her time instead of mine.
Title: Re: Export OCX and EXE File?
Post by: topaz on July 02, 2006, 02:57 PM
Quote from: J on July 02, 2006, 10:45 AM
Yet they're not as stupid as you because they have the common sense to understand that I used VB terms in a discussion about, of all things, VB.

Get a girlfriend and waste her time instead of mine.

Ah, but you were talking about 'the general stupid populace of Battle.net' weren't you?
Title: Re: Export OCX and EXE File?
Post by: Dale on July 02, 2006, 05:58 PM
Hey, uh here.

Go to Project, Resources, and Scroll down to "Microsoft Scripting Runtime" then

Public  FSO as Filesystemobject, and go from there.
Title: Re: Export OCX and EXE File?
Post by: vuther.de on July 04, 2006, 06:11 PM
Quote from: Joex86] link=topic=15294.msg155192#msg155192 date=1151855109]
Yet they're not as stupid as you because they have the common sense to understand that I used VB terms in a discussion about, of all things, VB.

Get a girlfriend and waste her time instead of mine.
Get a boyfriend and waste his time instead of mine*

It's a girl. ;)
Title: Re: Export OCX and EXE File?
Post by: Grok on July 07, 2006, 09:18 AM
Get back on topic.

The most lightweight installer you could use is an INF file.  With that you have full control over placement of your OCX and EXE files.

More elaborate setup editors let you create MSI files.  You could and should use those instead of INF, if you must learn one.
Title: Re: Export OCX and EXE File?
Post by: Clan CDH on July 23, 2006, 06:56 PM
i finished this project a month ago, not using the post here, but with the help of a friend who showed me a better way of doing this.