Welcome to MSDN Blogs Sign in | Join | Help

March 2006 - Posts

Modify resource file entries

In my prior two posts ( This code queries the foxuser resource file. What does it do? and More Resource file data mining ), I showed how to read resource file entries. Here’s code that shows how to modify the entries. SET RESOURCE ON && make sure
Posted by Calvin_Hsia | 2 Comments
Filed under:

More Resource file data mining

Here’s some more code to mine the data in your resource file. There are more settings at various offsets in the Data. Can you figure them out? _screen . FontName ="Courier New" && monospace SELECT PADR ( name , 20 ) as name , data from SET ("Resource",
Posted by Calvin_Hsia | 1 Comments
Filed under:

This code queries the foxuser resource file. What does it do?

# if 0 What does the code below do? Here's a clue Unknown, Command , File , Label , Menu , Query , Report , Form , Class , Table , Database , Project , Memo , Vue, Procedure , Classlib , View , # endif USE SYS (2005) AGAIN ALIAS fuser SELECT * from fuser
Posted by Calvin_Hsia | 5 Comments
Filed under:

My daughter's soccer schedule

I received an email forwarded from my wife with my daughter’s soccer schedule. Of course it had been forwarded through various mail servers, changing formats along the way from HTML, Plain Text, etc. The end result needed to be edited a little. I just
Posted by Calvin_Hsia | 1 Comments
Filed under:

How do large programs work?

When you write code in any computer language, there are common constructs that alter the flow of control, such as conditionals (IF THEN ELSE ENDIF), looping (FOR, FOR EACH), and selection (DO CASE). How do these work? Typically there is an evaluation
Posted by Calvin_Hsia | 3 Comments
Filed under:

Creating your own web browser for your SmartPhone

I like my Cingular 2125 SmartPhone (see Windows SmartPhone can run my Web Apps ). I went to Microsoft TechFest a couple weeks ago, which is put on by Microsoft Research to show off the latest and greatest. Several people had the same phone, and more than

Collecting garbage at the wrong time

In this post: Heartbeat: Garbage collection in VFP and .NET are similar , I talked about how the VFP name table is garbage collected. Here’s a bug that’s been in the product since forever. It involves having a name table overflow and garbage collection
Posted by Calvin_Hsia | 2 Comments
Filed under:

Using Very large programs

Sometimes VFP users create programs that are very large. The limit in earlier versions of VFP was about 64k for a compiled program size. VFP9 allows much larger programs. The code below creates a simple program with a CASE statement, verifies the result,
Posted by Calvin_Hsia | 5 Comments
Filed under:

Will GetLastError ever work properly in VFP8.0?

For this post: GetLastError: how does it work with DECLARE DLL ? , I received this question: I was sent here by someone from UT regarding a problem I'm having with GetLastError API call. It always returns 0 even if I enter a bogus password to LogonUser().
Posted by Calvin_Hsia | 6 Comments

Why does BINDEVENT not work with StatusBar_Change?

A customer had a question and sent some code: PUBLIC oHandler oHandler = NEWOBJECT ("StatusBarText") ? BINDEVENT ( _VFP ,[STATUSBAR],oHandler,[STATUSBAR_CHANGE], 1 ) _VFP .StatusBar = "AAAA" && triggers handler SET MESSAGE TO "1111" &&
Posted by Calvin_Hsia | 6 Comments
Filed under:

Are there any pots inside?

I was watching my 9 year old daughter deftly manipulating the joystick on our original Sony PlayStation (predecessor of the Play Station 2) and that reminded me of a story. I lived in Boston from 1976 to 1984. I liked to hang out in a surplus electronics
Posted by Calvin_Hsia | 6 Comments
Filed under:

Why doesn't drag/drop work with BindEvents?

In this post: Is this a bug in BindEvents? I asked why drag/drop wasn’t working. The code to dispatch methods or events to the appropriate user routines tests to see if the user has bound code that might occur before or after calling the target code.
Posted by Calvin_Hsia | 1 Comments

Windows SmartPhone can run my Web Apps

I took my family to Whistler for some great skiing. Because our cell phones didn’t work too reliably when we were there before Christmas, we decided to get new cell phones to replace our 2 year old analog cell phones. Communications was quite simple and
Posted by Calvin_Hsia | 9 Comments
Filed under: , ,

Is drag/drop available in a COM server?

A customer asks if drag/drop is available in a COM server. Contrary to what some (wOOdy <g>) believe, I do not have all the answers. However, I can create some code to test it and I can look through the crystal ball of the Visual Studio debugger.
Posted by Calvin_Hsia | 5 Comments
 
Page view tracker