1. Many questions

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.

new topic     » topic index » view message » categorize

2. 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

> 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.
> 
> 
> 
> 
>

new topic     » goto parent     » topic index » view message » categorize

3. Re: Many questions

>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

new topic     » goto parent     » topic index » view message » categorize

4. Re: Many questions

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu