Minborg

Jun 17, 2003 07:30
no problems with logging here. :)
Jun 17, 2003 08:42
the file is closed explicitly after every write ... it opens the file .. writes, closes it.

Min
Jun 17, 2003 08:44
here is the exact code

ofstream fout; //using fout cause resembles cout (: FileOut
fout.open("brains\\minborg.txt",ios::out|ios::app);
fout << buffer << endl;
fout.close();
Jun 17, 2003 13:06
Min wrote:
sheeps is using XP and sticks is using windows 2000 ? ...

Min


XP Home here.

And I searched both during and after a game with no luck. Must be some bad mojo.
Jun 17, 2003 17:26
sheeps wrote:
Min wrote:
sheeps is using XP and sticks is using windows 2000 ? ...

Min


XP Home here.

And I searched both during and after a game with no luck. Must be some bad mojo.



Uninstall XP Home. Install Win98 2nd Edition. :P
Jun 17, 2003 18:06
fi wrote:
Uninstall XP Home. Install Win98 2nd Edition. :P


Geee... might as well also go back to 56K modem and get AOL, then I could change my nick to fi!
Jun 17, 2003 20:25
sheeps wrote:
fi wrote:
Uninstall XP Home. Install Win98 2nd Edition. :P


Geee... might as well also go back to 56K modem and get AOL, then I could change my nick to fi!


Well, fi is already taken, but you can change your nick to fi_wannabee. And remember to get rid of a bunch of RAM so you only have 64 Megs.
Jun 17, 2003 21:11
do they even sell 64 meg chips anymore? heh :P
Jun 17, 2003 23:46
Min wrote:
fout.open("brains\\minborg.txt",ios::out|ios::app);

That could be the exact problem. If the working directory isn't the WinBolo directory when the brain goes to open the file it is unlikely that the current working directory will contain a brains subdirectory. Thus the open will fail and nothing will be written.

Perhaps MinBorg could have a prompt for file location option which will ask where to log files to? Or you could use the Win32 API call GetModuleFileName() to locate the brains directory if you really want to write the files in there.
Jun 18, 2003 01:00
oh kewl!
Jun 18, 2003 03:26
nice ideeya Elvis! :cry: :cry: :cry: :cry: :cry: :cry:

-Madd Maxx-
Jun 18, 2003 07:17
Parameters
hModule
[in] Handle to the module whose path is being requested. If this parameter is NULL, GetModuleFileName retrieves the path for the current module.
lpFilename
[out] Pointer to a buffer that receives a null-terminated string that specifies the fully-qualified path of the module. If the length of the path exceeds the size specified by the nSize parameter, the function succeeds and the string is truncated to nSize characters and null terminated.
The path can have the prefix "\\?\", depending on how the module was loaded. For more information, see Naming a File.


so with hModule null .. it should respond with the path to the module that its been called from? (the brain itself)....

Min
Jun 18, 2003 10:38
so with hModule null .. it should respond with the path to the module that its been called from? (the brain itself)....

Yes. Either that or the WinBolo.exe file as that is the process that has loaded the Brain/DLL and is running it. Try it and see.
Jun 19, 2003 04:33
ya I guess I'll have too .... thanks I'll let you know how it goes.

Min
Aug 12, 2003 05:41
I've completed some changes I was making to Minborg, its now version 1.2 anyone who wants it will have to email me.

Min
Aug 12, 2003 06:25
i will email u. What are the new fetures?
Aug 12, 2003 23:52
Min wrote:
I've completed some changes I was making to Minborg, its now version 1.2 anyone who wants it will have to email me.

Min

yo what's ur e-mail? i want it! :D :lol: just cuz it sounds cool.....
Aug 13, 2003 19:38
Min's email can be found here on min's site. His email address is 924@cablelan.net.

-Madd Maxx-
Aug 13, 2003 19:46
k thx
:D
Aug 13, 2003 20:43
You're welcome!

-Madd Maxx-
Sep 14, 2003 19:47
how can we get minborgs now if some 1 have it please send it to me my email is bluesnake100@hotmail.com
Sep 14, 2003 20:54
hmm same...i sent mina n e-mail but no reply :( could sum1 send it to me? my e-mail is warquinnymon@hotmail.com
thx!
Sep 14, 2003 21:04
There's probably a reason you don't have it by now. If he wanted you to have it, he would have given it to you when you requested it.
Sep 14, 2003 21:07
Sticks wrote:
There's probably a reason you don't have it by now. If he wanted you to have it, he would have given it to you when you requested it.

:(
Sep 14, 2003 22:42
y r downlaods unavailible?
i want it!
:x
« Previous 1 2 3 Next »
Page 2 of 3 (52 posts total)