Posted by
yiming on
23 February 2007, 5:24 pm
In short, if your project crashes at library load time after a round trip through CVS, you might want check your NTFS execute permissions on the DLLs that the project depends on. Also, if your application mysteriously blows up with error code 0xc0000022, you’d do well to make sure that:
all DLLs that your [...]
Posted by
yiming on
7 February 2007, 5:34 pm
If you’ve left information in the Address Book in OS X, any other program on the machine can use Cocoa APIs to extract information automatically.
#import <Foundation/Foundation.h>
#import <AddressBook/AddressBook.h>
#import <AppKit/NSWorkspace.h>
void sayHello(void)
{
ABPerson *currUser = [[ABAddressBook sharedAddressBook] me];
NSString *firstName = [currUser valueForProperty:kABFirstNameProperty];
NSString *lastName = [currUser valueForProperty:kABLastNameProperty];
[[NSWorkspace sharedWorkspace]
[...]
Posted by
yiming on
3 February 2007, 10:10 pm
For the five of you who have a copy of Heroes of Might and Magic IV, Mac edition (and still play it on occasion), here’s something you might not know.
The .h4s saved game files are gzipped data files, with what appears to be a straight-up serialized form of in-memory data structures representing your heroes, their [...]