Sign in
Calvin Hsia's WebLog
thoughts from a professional developer
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Tags
64bit
C++
CSharp
Debugging
FunGames
History
LINQ
Memory
Mesh
Miscellaneous
Pictures
Programming
SmartPhone
Testing
VB
Vista
Visual FoxPro
Visual Studio
Web
Windows API
WPF
Archive
Archives
April 2013
(2)
March 2013
(1)
February 2013
(1)
January 2013
(1)
December 2012
(1)
November 2012
(1)
October 2012
(1)
September 2012
(1)
August 2012
(1)
July 2012
(1)
June 2012
(1)
May 2012
(2)
March 2012
(1)
February 2012
(1)
January 2012
(1)
December 2011
(1)
November 2011
(1)
October 2011
(1)
September 2011
(1)
August 2011
(1)
July 2011
(1)
June 2011
(1)
May 2011
(1)
April 2011
(1)
March 2011
(1)
February 2011
(1)
January 2011
(1)
December 2010
(2)
November 2010
(1)
October 2010
(1)
September 2010
(1)
August 2010
(1)
July 2010
(1)
June 2010
(1)
May 2010
(1)
April 2010
(1)
March 2010
(2)
February 2010
(1)
January 2010
(1)
December 2009
(1)
November 2009
(1)
October 2009
(1)
September 2009
(1)
August 2009
(1)
July 2009
(1)
June 2009
(1)
May 2009
(1)
April 2009
(1)
March 2009
(2)
February 2009
(1)
January 2009
(2)
December 2008
(1)
November 2008
(1)
October 2008
(1)
September 2008
(1)
August 2008
(1)
July 2008
(3)
June 2008
(2)
May 2008
(2)
April 2008
(2)
March 2008
(2)
February 2008
(2)
January 2008
(2)
December 2007
(3)
November 2007
(8)
October 2007
(6)
September 2007
(4)
August 2007
(9)
July 2007
(2)
June 2007
(2)
May 2007
(11)
April 2007
(5)
March 2007
(2)
February 2007
(2)
January 2007
(1)
December 2006
(2)
November 2006
(1)
October 2006
(4)
September 2006
(6)
August 2006
(10)
July 2006
(13)
June 2006
(11)
May 2006
(7)
April 2006
(8)
March 2006
(14)
February 2006
(5)
January 2006
(21)
December 2005
(9)
November 2005
(19)
October 2005
(20)
September 2005
(12)
August 2005
(23)
July 2005
(12)
June 2005
(8)
May 2005
(7)
April 2005
(4)
March 2005
(1)
February 2005
(2)
January 2005
(13)
December 2004
(9)
November 2004
(4)
October 2004
(10)
September 2004
(4)
August 2004
(8)
July 2004
(1)
June 2004
(10)
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Calvin Hsia's WebLog
Modify resource file entries
Posted
over 7 years ago
by
CalvinH
2
Comments
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 &&...
Calvin Hsia's WebLog
More Resource file data mining
Posted
over 7 years ago
by
CalvinH
1
Comments
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...
Calvin Hsia's WebLog
This code queries the foxuser resource file. What does it do?
Posted
over 7 years ago
by
CalvinH
5
Comments
# 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...
Calvin Hsia's WebLog
My daughter's soccer schedule
Posted
over 7 years ago
by
CalvinH
1
Comments
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. ...
Calvin Hsia's WebLog
How do large programs work?
Posted
over 7 years ago
by
CalvinH
3
Comments
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...
Calvin Hsia's WebLog
Creating your own web browser for your SmartPhone
Posted
over 7 years ago
by
CalvinH
16
Comments
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...
Calvin Hsia's WebLog
Collecting garbage at the wrong time
Posted
over 7 years ago
by
CalvinH
2
Comments
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...
Calvin Hsia's WebLog
Using Very large programs
Posted
over 7 years ago
by
CalvinH
5
Comments
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...
Calvin Hsia's WebLog
Will GetLastError ever work properly in VFP8.0?
Posted
over 7 years ago
by
CalvinH
6
Comments
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...
Calvin Hsia's WebLog
Why does BINDEVENT not work with StatusBar_Change?
Posted
over 7 years ago
by
CalvinH
6
Comments
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...
Calvin Hsia's WebLog
Are there any pots inside?
Posted
over 7 years ago
by
CalvinH
6
Comments
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...
Calvin Hsia's WebLog
Why doesn't drag/drop work with BindEvents?
Posted
over 7 years ago
by
CalvinH
1
Comments
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...
Calvin Hsia's WebLog
Windows SmartPhone can run my Web Apps
Posted
over 7 years ago
by
CalvinH
9
Comments
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...
Calvin Hsia's WebLog
Is drag/drop available in a COM server?
Posted
over 7 years ago
by
CalvinH
5
Comments
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...
Page 1 of 1 (14 items)