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 / Will anyone walk me through making a plug-in?

Author
Message
Zeus
17
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 24th Jul 2007 00:36
I want to make a syntax highlighting plug-in. Example:

syntax (RGB Value,Word,[help file])

Will anyone please walk me through? I am using Dev C++.

IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 24th Jul 2007 01:20
TBH, it's not at all clear what you are trying to do. Syntax highlighting is controlled by ini files, not plug-ins. Plug-ins just provide the commands.

Zeus
17
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 24th Jul 2007 03:48
Oh. Well can someone walk me through a Message Box command plug-in in Dev C++. I want these,

DisplayMessage "[caption],message"
ErrorDisplay "[caption],message"
WarningDisplay "[caption],message"

but I need to learn how to make them. DBP's 3rd Party isn't helping at all. Anyone?

Mistrel
Retired Moderator
18
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 24th Jul 2007 06:31
I think IanM's plugin allows you to output custom error messages.

http://www.matrix1.demon.co.uk/

http://3dfolio.com
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 24th Jul 2007 16:29
That will just redirect you back to New Matrix1Utils plugins collection in this forum.

Anyway, remember that message boxes will work great unless you are in FSEX mode - using them in FSEX mode will take you back to windowed mode, losing all of your directx resources along the way.

There's no difference real between a 'DisplayMessage' and a 'WarningMessage' - both will pop up a message box, wait for it to be responded to, then return control to you. The only difference may be that you display the warning icon on the WarningMessage:


The only way that ErrorDisplay is different is that it must cause the program to end after it completes. The way that I used to do this (with confirmation from Mike) was as follows:


The CloseDisplay and Quit functions are available in the DBProCore.dll.

Login to post a reply

Server time is: 2024-05-23 14:51:07
Your offset time is: 2024-05-23 14:51:07