Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / How to cause a DBPro error from a user dll

Author
Message
Cloggy
19
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 6th Jan 2006 21:28
I want to return a DPB error when the user causes an error in my dll.

I read in an earlier thread that you could write a DWORD to globstruct->g_pErrorHandlerRef and this would do the trick, only problem is that it is defined as an LPVOID and I'm not sure how to write to it.

Does this make sense to anybody?

Cheers,

Cloggy
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 6th Jan 2006 21:51
Yes. It's like this:



Check in the following file for a list of all valid error numbers:

C:\Program Files\Dark Basic Software\Dark Basic Professional\Compiler\lang\english\Errors.txt

For free Plug-ins and source code http://www.matrix1.demon.co.uk
Cloggy
19
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 7th Jan 2006 00:23
IanM,

Thats great thank you.

Cheers,

Cloggy

Login to post a reply

Server time is: 2024-05-18 23:44:44
Your offset time is: 2024-05-18 23:44:44