Thanks for the replies, once again this list proves invaluable. Thanks to Ned for his answer and also to Gavin for his word of warning!
The solution to the problem was as Ned suggested. I was storing the value of the dll HINSTANCE but not handling it correctly in the DllMain. I had it as the last part of the procedure, by moving it inside a switch statement which handles the DLL_PROCESS_ATTACH message all worked as expected! Gavin, I believe there is a problem/issue with the way a dll returns a string. You have to pass a string that is large enough to hold the return information as a parameter to your dll function, the dll then changes the string to hold the return information and mapinfo should then quite happily be able to handle the string without throwing a wobbly. That is of course if the problem arose from returning a string, if so then I've probably told you something you already know! Once again thanks for the help, I now have a pretty dialog appear in mapinfo - now I just have to work out how to use it! Can anyone suggest a decent resource on the net that will help with handling dialogs in C? Many thanks, Colin Henderson If you have received this email in error, please delete it immediately and notify the sender. This email may contain confidential information and if you are not the intended recipient, you must not copy, distribute or rely on it. As email is not a 100% secure communications medium, you accept that there are risks in communicating by email by doing so. We advise you to check that emails and attachments are virus-free before opening them. No contracts can be entered into on our behalf by email. Opinions expressed in this email are not necessarily endorsed by us unless otherwise specifically stated. We reserve the right to read and monitor any email or attachment entering or leaving our systems without prior notice. Ordnance Survey Romsey Road Southampton SO16 4GU Tel: 023 8079 2000 http://www.ordnancesurvey.co.uk --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 5175
