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.
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.)
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.
@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".
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.
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 .
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?
@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'.
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?
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