Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Programming » Windows API   (RSS)

Windows Security and how it affects running generated code

Here I described how VFP generates executable code and runs it for early and late binding COM clients and implementing COM interfaces. However, there is an important issue with generating and running executable code in the same process. A computer has

Binding to Internet Explorer events: bug in Typelibrary

I was using the web browser control and getting some errors when binding to its events. This can be duplicated with the code below. To generate the event class, open the object browser (Tools->Object Browser) and select the Microsoft Web Browser Control.
Posted by Calvin_Hsia | 4 Comments
Filed under: ,

Calling the Windows APIs for Large Files

A customer was trying to use FoxPro to handle large files. The files that Fox handles natively (like tables, indexes) are limited to using 32 bit addressing, (2^32 = 4 gigs). Back in the old days (not that long ago), there were no hard disks > 2 gigs.

Undocumented APIs and 16 bit DLLs

As a long time software company, Microsoft has certain procedures to follow when releasing software to the public. A change to the policy was instituted at Microsoft last year. A brand new tool would scan all released software to see if any “undocumented”

Run your code in response to a new drive being inserted

At the Las Vegas Devcon last month I used a digital camera to take a picture, then I plugged the camera media into my Tablet PC which was running the Visual Foxpro code below. The pictures on the media were automatically detected by the event handler

Start your Screen Saver NOW!

Now that Las Vegas Devcon is over, I’ll be posting some of my sample code from the keynote and my session here. I demonstrated how to make a simple VFP screen saver. To test it, invoking it immediately is useful. Windows XP allows you to have a screen

What is a C0000005 crash?

In my blog about Dr. Watson I talked about product crashes. What is an example of a crash? How destructive is it? Here’s a simple example. MyFunction takes a string parameter and calculates its length MyFunction ( char * StringParam) { int nlen;
 
Page view tracker