OWL NExt - Knowledge Base

[ Home | Contents | Search | Next | Previous | Up ]

DLL and Stringtables?

Date: 11/30/99
Time: 12:02:27 AM

Q.I try to put some text (e.g. for multi language progs) into a DLL. but whenI write the stringtable there is an error like "unsigned short integer expected!", then "!Compile!".

A. Take a look at editsear.rh in your include\owl directory. You'll see something like
       
        #define IDS_CANNOTFIND 32540
       
        Then in editsear.rc you'll see
       
        IDS_CANNOTFIND, "Cannot find ""%s""."

    Here, IDS_CANNOTFIND is the unsigned constant. Make sure you've defined such a constant for each string (for instance, in an .rh file), and make sure it's available inside the .rc (for instance by #including the .rh file in the .rc).

Last changed: July 14, 2001