| | |
Writing MSVC Plugins
Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
well, after hours apon hours of serching for this, i've come up with nothing but a few sources for some plugins[from thecodeproject.com], which don't cover what I need: Basically writing to the currently active (source) file(at the position of the cursor/caret), like so(highly simplified)
I know my vc6 pro has a wizard for this, but its mfc based, which I a) lothe & b) still have no clue how to use to do the above due to a lack of documentation
(or my lack of finding documentation).
So my questions are:
can anybody point me to some documentation?
is it possible to use WinAPI for this and not mfc?
any cryptic clues or help is much appreciated
C++ Syntax (Toggle Plain Text)
fprintf(pOpenDocument,"/*\n\tTime: %s\n\tDate: %s\n\tAuther: %s\n\tReason & Revision: %s\n*/",GetTime(),GetDate(),GetAuther(),GetReason());"
I know my vc6 pro has a wizard for this, but its mfc based, which I a) lothe & b) still have no clue how to use to do the above due to a lack of documentation
(or my lack of finding documentation).So my questions are:
can anybody point me to some documentation?
is it possible to use WinAPI for this and not mfc?
any cryptic clues or help is much appreciated
Judgment is Final, Death is Eternal
Day of Death, Mod for Diablo II | The Phrozen Keep - D2Mods Central
Day of Death, Mod for Diablo II | The Phrozen Keep - D2Mods Central
•
•
Join Date: Dec 2007
Posts: 360
Reputation:
Solved Threads: 69
Maybe this comes helpful: http://www.c-sharpcorner.com/UploadF...AM/AddIns.aspx
If you are forced to reinvent the wheel at least try to invent a better one!
Please use code tags - Please mark solved threads as solved
Please use code tags - Please mark solved threads as solved
well after a wierd turn in msdn i found this:
http://msdn.microsoft.com/en-us/library/cc138565.aspx
but i hate C#(nor am i very profficient in it)...
your link looks alot nicer jencas, but i'd like to do this in C/C++(yes i'm a picky *******
), if worst comes to worst i'll just whip out olly and IDA....
on a side note: ms seems to have gotten better as supporting plugins:
http://www.visualstudiogallery.com/
http://msdn.microsoft.com/en-us/library/cc138565.aspx
but i hate C#(nor am i very profficient in it)...
your link looks alot nicer jencas, but i'd like to do this in C/C++(yes i'm a picky *******
), if worst comes to worst i'll just whip out olly and IDA....on a side note: ms seems to have gotten better as supporting plugins:
http://www.visualstudiogallery.com/
Judgment is Final, Death is Eternal
Day of Death, Mod for Diablo II | The Phrozen Keep - D2Mods Central
Day of Death, Mod for Diablo II | The Phrozen Keep - D2Mods Central
•
•
Join Date: Dec 2007
Posts: 360
Reputation:
Solved Threads: 69
O.K., then take a look at http://www.mztools.com/ and http://social.microsoft.com/Forums/en-US/vsx/threads/
Last edited by jencas; Mar 2nd, 2009 at 7:49 am. Reason: added forum link
If you are forced to reinvent the wheel at least try to invent a better one!
Please use code tags - Please mark solved threads as solved
Please use code tags - Please mark solved threads as solved
•
•
Join Date: Nov 2007
Posts: 981
Reputation:
Solved Threads: 210
One approach would be to
A (cryptic) clue: the interfaces you'll need, are; IApplication, ITextDocument, ITextWindow and ITextSelection.
You'll get some understanding about how things are organized by looking into the #include <ObjModel\*auto.h> files.
I'm not aware about any decent documentation on the msvc 6.0 add-ins/object model. However, if you are happy with a simple add-in, providing a command or two via a command bar, then you'll probably not be missing the documentation too much.
You might also get some general insight by taking a look at
How to automate tasks by using COM objects in Visual C++
- generate a default MFC-based add-in
- study it so that you understand how things work
- strip off all MFC/AFX -based stuff, converting the add-in to a standard DLL (i.e. with a DllMain(...) instead of CWinApp, etc (leave the COM-code in-place though))
A (cryptic) clue: the interfaces you'll need, are; IApplication, ITextDocument, ITextWindow and ITextSelection.
You'll get some understanding about how things are organized by looking into the #include <ObjModel\*auto.h> files.
I'm not aware about any decent documentation on the msvc 6.0 add-ins/object model. However, if you are happy with a simple add-in, providing a command or two via a command bar, then you'll probably not be missing the documentation too much.
You might also get some general insight by taking a look at
How to automate tasks by using COM objects in Visual C++
well, it seems that i should have checked here sooner before i found this:
http://msdn.microsoft.com/en-us/libr...97(VS.60).aspx
, time to dig into those links, thanks guys
http://msdn.microsoft.com/en-us/libr...97(VS.60).aspx
, time to dig into those links, thanks guys
Last edited by Necrolis; Mar 4th, 2009 at 1:25 pm.
Judgment is Final, Death is Eternal
Day of Death, Mod for Diablo II | The Phrozen Keep - D2Mods Central
Day of Death, Mod for Diablo II | The Phrozen Keep - D2Mods Central
![]() |
Other Threads in the C++ Forum
- Previous Thread: Simple file read test working as intended in Linux, but not Windows
- Next Thread: how to compare operators if they are characters.
Views: 454 | Replies: 5
| Thread Tools | Search this Thread |
Tag cloud for C++
6 add api array arrays beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete desktop directshow dll encryption error file forms fstream function functions game getline givemetehcodez google graph homeworkhelper iamthwee ifstream input int integer java lazy lib linkedlist linux loop looping loops map math matrix memory microsoft newbie news node number output parameter pointer problem program programming project proxy python random read recursion recursive reference return sort string strings struct studio system template templates test text tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets





