PB 9 Editor Addon - Example Source

Started by Theo Gottwald, March 30, 2013, 07:46:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Theo Gottwald

This is meant as an example Source code for the used technology to change a running application on the fly.
This one works closely with the old PB 9 Editor.

Igor Dovgunyk

Hi Тhео. But in fact your archive incomplete.
I offer the latest version...

Yes, it is my work. As in PB10 Bob has refused from MDI, I have stopped this work.

Gary Beene

Thank you for the updates!

Before I try out the code, I want to understand a bit more about what it does.

Would you give a brief description of how it works?

And, can I test it without messing with my PBWin9 or PBWin10 installations?

In general, I might have guessed that over the years multiple folks would have posted ways to create addons to the PowerBASIC IDE - independent of whether PowerBASIC INC supported it or not.  But I've not seen any such string of addon applications.  Can you comment on why that is?

Igor Dovgunyk

The idea was to add in PBdit.exe (9. X; 8. X; 7. X or PBCC.exe) new functionalities or to modify existing. I was a lot of ideas and code has taken from the SED-editor.

For testing copy PrePbEd.dll, PrePbCm.dll and PbEdit9 +.exe in the catalogue of installation PBWin9. X (in a folder "bin") and start "PbEdit9 +.exe".

PbEdit9 +.exe - creates new process PBdit.exe and loads into his address space PrePbEd.dll and PrePbCm.dll.
PrePbCm.dll - a little bit modified postprocessor from Semen Matusovski.
PrePbEd.dll - performs all other work:
   - the expanded highlight of syntax PB, and also *.rc, *.odl, *.idl;
   - updating of windows of "Search" and "Replace" (preservation and restoration of a history) is started;
   - work with projects *.spf (SED editor);
   - and many other things...
There were many ideas. The some are completely realized, the some in part.

The idea is certainly - interesting, but the project is constructed rather chaotically. Simply I was not going to make its public and in any way did not assume, that the project will find at one small forum and will suggest as an example for the big community...

I not the professional programmer and the given employment simply one of my hobbies. It is obvious, that for me this process of the decision of a task is more important, than result :).

Theo Gottwald

Igor, after i got your code as sample code from somebody, i took a look and said that its an interesting coding sample that should be shared with the coding community.

Welcome here in the Forum, Igor.
If possible provide us with more samples of what you are doing.
Don't worry. Your english - while not beeing perfect - is ok.
You are welcome.

Igor Dovgunyk

Theo, thank for the invitation.

My English - is not my English. I never studied this language, and the program - translator which I use, unfortunately, is not capable to transform correctly the structure of speech accepted for concrete language.
Should tell, I not bad understand the English texts, but very unusual way - I read them as if they are written in German.

What can I do, if people write so many letters, and then them do not utter, or utter, but something absolutely another :( :)?

Examples of a code? Yes. I have interesting (for me :)) examples, but all of them on PB9.
For example, "class ComCollection" on pure PB9? Seems, at forums such was not.
I shall think of it...

Theo Gottwald

If you have something interesting, jst share it and we start a discussion.
PB 9 ist still welcome. You can post here in my subforum.