add-ins in c++ using the DTE-object
-
hy, i have read a lot about this topic, but didnt found good answers. can anybody explain, how i can code the following VB-code in VC++ ? Sub DocumentsExample() MsgBox(DTE.Documents.Count) End Sub How can i get this DTE object? the compiler doesent recognises it. I would like to make an addin for VC++.NET in which i can manipulate the code. (textmanipulations) can anybody tell me, how i can do this? i dont know how to do things which i coud do in VB with activedocument.selection , etc.. thanx for any input!!!
-
hy, i have read a lot about this topic, but didnt found good answers. can anybody explain, how i can code the following VB-code in VC++ ? Sub DocumentsExample() MsgBox(DTE.Documents.Count) End Sub How can i get this DTE object? the compiler doesent recognises it. I would like to make an addin for VC++.NET in which i can manipulate the code. (textmanipulations) can anybody tell me, how i can do this? i dont know how to do things which i coud do in VB with activedocument.selection , etc.. thanx for any input!!!
;)can't understand what ur looking for..but what i can make out is you want to messgae something on the screen.. for that u just have to write MessageBox(CString); or MessageBox("string"); so you need to convert whatever you want to display into string first then you can display anything. hope you can slove it now.. cheers.. Himanshu
-
;)can't understand what ur looking for..but what i can make out is you want to messgae something on the screen.. for that u just have to write MessageBox(CString); or MessageBox("string"); so you need to convert whatever you want to display into string first then you can display anything. hope you can slove it now.. cheers.. Himanshu
hy, thanx for the answer. unfotunately, its not what im looking for. 1. MessageBox("string"); gives a compiler error, only : MessageBox(NULL, _T("Hello From C++"), _T(""), MB_OK) is ok. 2. i wonder how to use the DTE object. in the MSDN library the example code is all in VB! 3. remember, i try to program an add-in !
-
hy, thanx for the answer. unfotunately, its not what im looking for. 1. MessageBox("string"); gives a compiler error, only : MessageBox(NULL, _T("Hello From C++"), _T(""), MB_OK) is ok. 2. i wonder how to use the DTE object. in the MSDN library the example code is all in VB! 3. remember, i try to program an add-in !
It would help if we knew what this DTE object is. More importantly, search for the type-library. Once you find it, you can use the Class Wizard/Automation tab to add a wrapper class for it which you can then use in your code. Regards, Alvaro
All you need in this life is ignorance and confidence, and then success is sure. -- Mark Twain