The Daily Click ::. Forums ::. Non-Klik Coding Help ::. Execute gam file with VB?
 

Post Reply  Post Oekaki 
 

Posted By Message

Jenswa

Possibly Insane

Registered
  26/08/2002
Points
  2722
28th August, 2004 at 11:55:33 -

My question is simple, is there any way to execute a .gam file with visual basic?
And if not with the .gam file, is there a way to do this with the .exe file?

Like i load the dll file and the .gam file and execute the whole stuff?

You probably want to know why i want to do this?
Well the reason is simple, so i can execute my game on any pc without installing the dll in a system folder.

I know, mmf will let me do this by having the dll in the same folder as the exe file.
Even windows xp will do this for tgf, but the fact is on win98 systems and older that doesn't work, so i would like to do this, so i am sure it works on every system.

 
Image jenswa.neocities.org

Mr. Esch

Stone Goose

Registered
  30/05/2003
Points
  0
28th August, 2004 at 13:08:05 -

I usually solve this problem by hex editing. I can change file information e.g. version info and I can change which dll the file looks for and where it looks for it. I spoke to Jeff about this and at first he thought this wouldn't be allowed but when I discussed the license agreement with him further he made a phonecall to the department in France and found out that it is all perfectly legal - same goes for MMF aswell. If you havn't got mmf pro you are allowed to hexedit the exe to change some of the information that you can usually only change in MMF Pro - If you want assistance you know where I am (Please note when I referr to "exe" I mean the file that TGF/MMF compiled not the actual program - that would be illegal and I don't think you are allowed to change information in the dll itself.)

Image Edited by the Author.

 
Do you feel you are being... watched?

RapidFlash

Savior of the Universe

Registered
  14/05/2002
Points
  2712
28th August, 2004 at 17:06:27 -

Do you want it to run in Visual Basic? The Shell() command will run a separate program, so Shell("C:\mygame.exe") will run the game. You're still going to need the .dll, though.

 
http://www.klik-me.com

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
28th August, 2004 at 17:38:01 -

I don't see why you need to use VB here. In ALL versions of Windows, DLLs are searched for in several places all including the same directory as the application. According to MSDN ( http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/loadlibrary.asp ) even as early as Windows 95 had this functionality.

 
- Tigerworks

Batchman



Registered
  08/08/2003
Points
  231
29th August, 2004 at 06:12:58 -

win 3.1 doesn't ?

that would suprise me

 
n/a

Jenswa

Possibly Insane

Registered
  26/08/2002
Points
  2722
29th August, 2004 at 08:40:06 -

@Rapidflash: I was hoping some people would come up with a better idea than the shell command. The shell command let's you open an executable file from visual basic, not in visual basic. The shell command doesn't solve the problem.

@Tigerworks: Tried already with tgf executable's on win98 that didn't work for me. I'll search my registry for "SafeDllSearchMode" and set the value to "1".



 
Image jenswa.neocities.org

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
29th August, 2004 at 09:56:06 -

Batchman: Windows 3.1 is pretty much irrelevant being a 16 bit operating system, so obviously MSDN doesn't provide information on it any more. It is a truly obsolete operating system. It probably used the same DLL method but who cares? Nobody uses it.

Jenswa: With cncs32.dll in the same directory a TGF game did not run on Win98? I would be suprised if that's true. Did you get the right DLL? (Must be cncs32.dll not cncs232.dll)
If it doesn't work because it's only looking in the system directory, then it wouldn't work on a newer OS either. Besides, you can use Install Creator to easily put a DLL in the system directory.

 
- Tigerworks

Hayo

Stone Goose

Registered
  15/08/2002
Points
  6946

Game of the Week WinnerHas Donated, Thank You!VIP MemberGOTM 3RD PLACE! - APRIL 2009Weekly Picture Me This Round 27 Winner!Weekly Picture Me This Round 41 Winner!Weekly Picture Me This Round 45 Winner!
29th August, 2004 at 10:16:32 -

I think the reason he wants this is cuz he doesn't want an installer.
(and doesn't want to use mmf, and who could blame him )

 
www.hayovanreek.nl

Hagar

Administrator
Old klik fart

Registered
  20/02/2002
Points
  1692

You've Been Circy'd!Teddy Bear
29th August, 2004 at 12:31:42 -

Jenswa: this is simpler than everyone is making out.

You don't have to put CNCS32.DLL in the "C:\windows\system" folder. Like DMC2 and bass.dll you can just zip the game with cncs32.dll in the same directory as the game. And it will work fine, if in doubt try it on an old PC with no cncs32.dll/tgf installed .

 
n/a

Hayo

Stone Goose

Registered
  15/08/2002
Points
  6946

Game of the Week WinnerHas Donated, Thank You!VIP MemberGOTM 3RD PLACE! - APRIL 2009Weekly Picture Me This Round 27 Winner!Weekly Picture Me This Round 41 Winner!Weekly Picture Me This Round 45 Winner!
29th August, 2004 at 12:43:14 -

that doesn't work on the PC's at my uni

 
www.hayovanreek.nl

Jenswa

Possibly Insane

Registered
  26/08/2002
Points
  2722
29th August, 2004 at 14:47:40 -

In case of doubt:

I tried that already and didn't work.
That's basically the reason why i am asking for this.

And yes i don't want to use the installer, but i believe it will be necessary.

Thanks for your help and yes i'll try some more.

 
Image jenswa.neocities.org

Hayo

Stone Goose

Registered
  15/08/2002
Points
  6946

Game of the Week WinnerHas Donated, Thank You!VIP MemberGOTM 3RD PLACE! - APRIL 2009Weekly Picture Me This Round 27 Winner!Weekly Picture Me This Round 41 Winner!Weekly Picture Me This Round 45 Winner!
30th August, 2004 at 06:12:59 -

You don't even have money to buy STOCKS in anything you silly.

 
www.hayovanreek.nl

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
30th August, 2004 at 08:55:48 -

I suppose you can't afford the $100 administration fee for purchasing stocks then.

 
- Tigerworks

Muffin Batel [neonair games]



Registered
  09/08/2002
Points
  900
30th August, 2004 at 20:42:10 -

i would make a conjecture as well

 
n/a

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
30th August, 2004 at 21:10:16 -

I've forgotten what this was about but put the DLL with the EXE file. Or get an installer, they're cheap and you can put dirty pictures on the left side. Unless this is a kids' game, in which case you might want to show Pokémon. Yeah. You'd never want to have dirty Pokémon pictures, trust me. In fact, forget the installer and ask Radix for some premade hentai themes. No, forget the game, you got to install those themes somehow. Plus, you can have some more pictures in the installer. Yeah, this game will be so cool... when are you releasing it?

 
n/a
   

Post Reply



 



Advertisement

Worth A Click