1. Many questions
- Posted by d l <egoodies at runbox.com> Aug 09, 2001
- 430 views
I have a couple questions: 1)How can i write bytes to a floppy using locations on the floppy with out creating a file? So no one could copy the file(Because there will no file, just bytes on a disk). 2)How can i use multiple page graphics with win32lib like in dos so graphics will move smoothly for a window's game that i am making? 3)How can i write a window's game that will run in a loop and still catch mouse events? When i use a loop for my game the mouse doesn't work in the window until the loop is over. If you can help me out with at least one of the questions please do.
2. Re: Many questions
- Posted by gertie at ad-tek.net Aug 10, 2001
- 424 views
On 10 Aug 2001, at 5:08, d l wrote: > > I have a couple questions: > > 1)How can i write bytes to a floppy using locations on the floppy with > out creating a file? So no one could copy the file(Because there will > no file, just bytes on a disk). Use bios or dos interrrupt calls, instead of dos or windoze commands. Kat > 2)How can i use multiple page graphics with win32lib like in dos so > graphics will move smoothly for a window's game that i am making? > > 3)How can i write a window's game that will run in a loop and still > catch mouse events? When i use a loop for my game the mouse doesn't > work in the window until the loop is over. > > If you can help me out with at least one of the questions please do. > > > > >
3. Re: Many questions
- Posted by daryl_vdb at HOTMAIL.COM Aug 10, 2001
- 435 views
>2)How can i use multiple page graphics with win32lib like in dos so >graphics will move smoothly for a window's game that i am making? If you want graphics to move smoothly, here's what you do. Create a pixmap control that is the size of the window client area. This will be your virtual screen. Instead of drawing to the window, draw to the pixmap. When you are ready to switch pages, use copyBlt() to copy the pixmap to the window. If you want multiple pages for some other reason, just create multiple pixmaps. >3)How can i write a window's game that will run in a loop and still >catch mouse events? When i use a loop for my game the mouse doesn't >work in the window until the loop is over. pereodically call doEvents(). Every time this is called, win32lib checks for events and executes the apropriate event handlers. As for your floppy disk question, I wish I knew how to do that, but I don't. sorry. regards, Daryl van den Brink
4. Re: Many questions
- Posted by Gerardo <gebrandariz at YAHOO.COM> Aug 10, 2001
- 457 views
d l, Sorry to disappoint you, but if you can write to disk (follow Kat's advice), then you can read it too. If you write outside the DOS file structure, you will only fool newbies (no offence intended), who expect everything to be properly organized and available. Any disk editing tool will let you read (and write) physical sectors, whether the disk is formatted DOS, elf, Mac, or what have you. A commercial cracker or pirate would never rely on directories and files, s/he would grab a disk image and use it as a master for copies; this image would include all your 'bytes on a disk,' file or not. Gerardo ----- Original Message ----- From: <gertie at ad-tek.net> To: "EUforum" <EUforum at topica.com> Sent: Friday, August 10, 2001 4:58 AM Subject: Re: Many questions > > On 10 Aug 2001, at 5:08, d l wrote: > > > > > I have a couple questions: > > > > 1)How can i write bytes to a floppy using locations on the floppy with > > out creating a file? So no one could copy the file(Because there will > > no file, just bytes on a disk). > > Use bios or dos interrrupt calls, instead of dos or windoze commands. > > Kat