-
please explain how to use STRINGTABLE in a resource file?
I have been having SO MUCH trouble finding an answer to this. And I've tried a hundred different thigns in code. I want to have a string table in my .res file, and then when my program executes put them into a TStringList (BCB). But I can't figure out how to do it and I have been very very unsuccessful trying to find a place that can tell me how.
Here's how the code is in a .RC file, just for kicks
STRINGTABLE
BEGIN
1000,"&DevX"
1010,"&Saved"
1020,"&MY"
1030,"&Life"
END
-
I am not sure of the exact syntax myself, but you can load a list box with default strings using the editor and then look at the resource file that it generates or just use that list box (you can use hidden items, its handy sometimes!) as a string table instead.
-
TRuthfully, I was looking for the code, because I was trying to load it into a string table and it just wasn't working.
-
Hello,
Have you tried LoadString() function??
The LoadString function loads a string resource from the executable file associated with a specified module, copies the string into a buffer, and appends a terminating NULL character.
Code:
int LoadString(HINSTANCE hInstance,
UINT uID,
LPTSTR lpBuffer,
int nBufferMax
) ;
All the Best.
Yours,
Palem Gopalakrishna http://www.geocities.com/krishnapg/
Similar Threads
-
By David Chu in forum .NET
Replies: 6
Last Post: 08-16-2006, 10:32 PM
-
By LABYRNTH in forum VB Classic
Replies: 1
Last Post: 07-28-2006, 12:39 PM
-
Replies: 1
Last Post: 01-28-2002, 06:15 AM
-
By Andrew McLellan in forum Java
Replies: 3
Last Post: 05-09-2001, 05:34 PM
-
By Paul in forum Database
Replies: 0
Last Post: 08-22-2000, 10:54 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks