Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
Source/StringListResource.h
/* |
* StringListResource.h |
* By Patrick Beard |
*/ |
#pragma once |
struct StringList { |
short count; |
unsigned char strings[1]; |
}; |
typedef struct StringList StringList; |
class StringListResource { |
public: |
StringListResource(short id); |
~StringListResource(); |
StringPtr First(); |
StringPtr Next(); |
private: |
void operator delete(void *) {} |
private: |
Handle fStrings; |
int fCount; |
unsigned char* pText; |
}; |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14