> I am writing a shared library and would like it to display a custom alert. > I need to provide an alert resource to FrmCustomAlert, but shared libraries > may not contain resources as far as I understand. > The shared library I am writing contains common functionality needed by a > suite of applications. I am trying to place the error-reporting > functionality here as well.
Hi! This is the code that works in our shared library #ifdef EVALUATION_VERSION LocalID id = DmFindDatabase(0, "MyLib"); DmOpenRef db = DmOpenDatabase(0, id, dmModeReadOnly); FrmAlert(EvaluationAlert); DmCloseDatabase(db); #endif Note, that there must be no ID conflict with main application, i.e. EvaluationAlert must have a unique resource ID. -- Eugene Mayevski, EldoS Group, chief coordinator Custom software development for Windows, Palm and WinCE http://www.eldos.org/outsourcing.html -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
