AnsweredAssumed Answered

Use of WinAPI- An open project

Question asked by VRFuser on Jun 23, 2000
Hey folks. I had intended to send out the following over a month ago. It's
not quite what I'd call finished, but I'm not going to be able to get back
to it any time soon and since it may be useful to somebody I'm going to send
it anyway.

Hi Georg.

> I am playing with the Windows
> API and want to include all the
> things that are missing in VEE !

Cool! For what it's worth, here's some more stuff to play with. There's not
a whole lot going on here. Many of these functions are just wrappers around
API functions. Really, there's just a couple things:

First off, the .vee file is completely self-contained. I sent the project,
source & compiled dll just for completeness. I thought your idea of writing
the definition file on the fly was just great. Then some others came up with
other thoughts, like the actual location of the system directory between
versions & whatnot. Then I thought, "wouldn't it be cool if we could include
non-standard dlls in VEE without the hassle of getting all the directories

And so the solution is simple: put the dll in an integer array and write it
wherever you want it with WRITE BINARY BYTE. No problem. Getting a dll into
this array is another simple operation: READ BINARY BYTE ARRAY:* and send
the output to the Default Value pin of a constant int array. See the VEE
function SnagAFile.

So both the definition file and the library file are created and destroyed
on the fly. Very neat.

Secondly, I'm just about sure I heard somebody mention recently that it's a
shame one can't change the color of some object or other on the fly. The
Subclass example accomplishes this in VEE by subclassing a VEE window. A
button specifically.

To make a very long story short, Open the SubclassExample function and click
the "Start" button. The text in the South Park enabled Confirmation button
will change and the button background and text colors will change
programmatically each time through the loop. The parallel, smaller loop
simply waits a short time and clicks the Confirmation button so that the
larger loop can continue.

The documentation for the functions contained in VeeWinapi.dll is in the
enclosed file, VeeWinapi.txt. There's also an explanation of subclassing a
VEE window for anybody that's interested.

Shawn Fessenden
Mgr., Technical Support
Oswego Software, Inc.