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
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.
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.
All the Best.
int LoadString(HINSTANCE hInstance,
Palem Gopalakrishna http://www.geocities.com/krishnapg/
By David Chu in forum .NET
Last Post: 08-16-2006, 10:32 PM
By LABYRNTH in forum VB Classic
Last Post: 07-28-2006, 12:39 PM
Last Post: 01-28-2002, 06:15 AM
By Andrew McLellan in forum Java
Last Post: 05-09-2001, 05:34 PM
By Paul in forum Database
Last Post: 08-22-2000, 10:54 PM
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