On Fri, Oct 29, 2010 at 3:30 PM, Peter Hart <[email protected]> wrote: > > Took a look at this and liked the "Tip of the day" Function so decided > to give it a try. > Worked OK in development mode but when I compiled my app I get an error > "Cannot load 32-bit DLL user32.dll" > This is on Windows 7. > > The Declaration is OK "Declare Integer GetSysColor In user32 Integer" > It fails at the "This.BackColor = GetSysColor( COLOR_BTNFACE)" line and > all other GetSysColor( ) calls
Try replacing the user32 with win32api. -- Ted Roche Ted Roche & Associates, LLC http://www.tedroche.com _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

