Calvin Hsia's WebLog

thoughts from a professional developer

December, 2005

  • Calvin Hsia's WebLog

    What's the greatest invention of all time?

    I read this from Raymond , which prompted this post. To qualify for greatness, an invention would have to affect the most people and benefit humankind in a big way When pondering this question, I’ve heard things like: Wheel Transistor...
  • Calvin Hsia's WebLog

    Use Named Pipes to communicate between processes or machines

    Pipes have been useful for decades for interprocess communication. At a Windows Command prompt, you can type “dir | more”, which just creates a pipe between the DIR command and the MORE command. The standard output for the left side of the pipe is redirected...
  • Calvin Hsia's WebLog

    What is a Microsoft MVP? Calvin's List updated for the new century

    In this definition of Microsoft MVP on the Wikipedia is a description of a list that I maintained that helped me to earn the Microsoft Most Vocal Person award over a dozen years ago. I plugged in my modem and dialed up CompuServe daily to download foxforum...
  • Calvin Hsia's WebLog

    SQL Select helps tune a car engine

    In this post: Fox helps drag racer win Microsoft Start Something Amazing Award , I wrote about an application written for drag racers. Don has kindly posted a comment on that entry detailing some of the aspects of his system. It’s a more detailed look...
  • Calvin Hsia's WebLog

    Inspect your memory image and see fragmentation

    The VirtualQueryEx function can help to inspect the memory of a particular process. It returns information about the various memory pages allocated to a process. If a block is marked as MEM_IMAGE, it’s a loaded module, like an EXE or DLL, so you can use...
  • Calvin Hsia's WebLog

    Using the Databar feature with real data

    I received an email with some sales figures in a table. I just pasted it into a new VFP program, added about 6 lines of code (below), then pasted the code from Excel's new gradient Data Bar feature is cool: you can do it too! After a couple minor adjustments...
  • Calvin Hsia's WebLog

    Open a file that's already opened in the editor

    In versions prior to VFP7, if you open a file in the VFP editor, you couldn’t do anything else with the file in another process. For example, you couldn’t switch to another process like Windows Explorer and copy it or open it with notepad. For VFP7...
  • Calvin Hsia's WebLog

    GetEnv Environment Variable question

    I received a question: Can you explain me the internal behavior of VFP's GetEnv() function. It's seems to me that VFP during startup make a copy of environment block and GetEnv() works with this internal buffer. So using WinAPI's SetEnvironmentVariable...
  • Calvin Hsia's WebLog

    Collection as Rowsource in Listbox

    Here’s some sample code for a new feature in VFP9: the Listbox Rowsource can be a collection, and can even specify collection members for multiple columns: CLEAR ALL CLEAR PUBLIC ox as form PUBLIC oc as Collection USE HOME ()+"\samples...
Page 1 of 1 (9 items)