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

Jenswa

Possibly Insane

Registered
  26/08/2002
Points
  2722
31st August, 2004 at 13:12:57 -

@Guido Arbia: be glad that was the only thing your sis did.

@Chris Branch: so that's how expert members answer difficult questions: "euh forgot well put some hentai in it, oh no forget that and just stop asking these difficult questions"

Thanks for your help so far

oh yeah no flames inteded, but keep it on topic then.

I haven't found a solution yet, i might just use the built-in 'save with install option'.

 
Image jenswa.neocities.org

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
31st August, 2004 at 15:22:50 -

What's so hard about doing the first thing I said? (Put the DLL with the EXE file) Although it would be much better if you did have hentai.

 
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!
31st August, 2004 at 15:27:03 -

the problem is that it doesn't work on some computers if it is compiled with tgf.

 
www.hayovanreek.nl

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
1st September, 2004 at 07:25:40 -

Well, all TGF does is load the DLL in exactly the same way as MMF does. It looks in the same folder first - I know this, it's a fact of Windows. Did you try doing that on Windows 95?

 
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!
1st September, 2004 at 16:14:15 -

98, fucked up uni computers.

 
www.hayovanreek.nl

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
1st September, 2004 at 22:30:43 -

'fucked up uni computers' - there's your problem ;P

 
n/a

Jenswa

Possibly Insane

Registered
  26/08/2002
Points
  2722
2nd September, 2004 at 12:38:35 -

Great solution (not exactly)
well i'll just tell everyone that's it should and if it doesn't work, they have a fucked up computer.

 
Image jenswa.neocities.org

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
2nd September, 2004 at 14:00:33 -

They won't mind provided they still get the hentai.

 
n/a

Batchman



Registered
  08/08/2003
Points
  231
3rd September, 2004 at 04:47:01 -

uni computer often mean over-protected computer, i used KNP on win3.1 , TGF (and TGF games) on 95 and 98 and MMF on 98 and linux with wine, and i never had that dll problem

 
n/a

Jenswa

Possibly Insane

Registered
  26/08/2002
Points
  2722
3rd September, 2004 at 12:58:53 -

Well batchman i tested today on my pc with the cncs32.dll removed from the windows\system directory and guess what: it works!

That makes me a little happy, but most of my friends had trouble when they tried to play a game like this (.dll .exe and .gam).

Thanks for your help guys! (Yes, i was a bit stubborn, but that's just because my tests from the past didn't coupe with my latest test.)

And yes i'll put in the hentai too (that's why i needed a loader)

 
Image jenswa.neocities.org

tdc052621



Registered
  20/12/2002
Points
  908
3rd September, 2004 at 19:06:33 -

hey jenswa, is that supposed to be gerald off of hey arnold on ur avatar?

 
n/a

Mr Icekirby



Registered
  18/12/2003
Points
  846
3rd September, 2004 at 19:36:27 -

NO! thats highhair from the fishhead adventures!

 
Mr Icekirby says so!
OBEY ME!

tdc052621



Registered
  20/12/2002
Points
  908
4th September, 2004 at 03:25:21 -

OMG! i forgot. lol, time to stop watchin nickeleodion.

 
n/a

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
4th September, 2004 at 04:21:59 -

Gerald is black, dude.

 
n/a

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
26th September, 2004 at 09:22:55 -

It would be great if TGF and MMF would be ported to Linux!
Okay, so I have a dual-boot system, so what?! TGF crashed in Windows!

 
Old member (~2004-2007).

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
26th September, 2004 at 11:09:23 -

Yes, Windows sucks. TGF has never crashed for me on Mandrake.

 
n/a

Liquixcat

Administrator
Lazy Coder

Registered
  08/12/2002
Points
  201

VIP MemberLikes TDCKitty
28th July, 2005 at 10:00:42 -

Yes, linux port....That'd be great

 
thinking is like pong, it's easy, but you miss sometimes.

Nuklear41

Possibly Insane

Registered
  12/01/2008
Points
  2395

VIP MemberPS3 OwnerWii Owner
30th July, 2005 at 03:42:52 -

*sigh*

 
Image

Mr Icekirby



Registered
  18/12/2003
Points
  846
6th August, 2005 at 22:15:18 -

would it be breaking any laws to manipulate tgf in order to NOT use the corel libraries?

 
Mr Icekirby says so!
OBEY ME!

Muffin Batel [neonair games]



Registered
  09/08/2002
Points
  900
8th August, 2005 at 11:07:19 -

and why was this thread brought back to life from last year?

shoot me

 
n/a
   

Post Reply



 



Advertisement

Worth A Click