Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. add-ins in c++ using the DTE-object

add-ins in c++ using the DTE-object

Scheduled Pinned Locked Moved C / C++ / MFC
questioncsharpc++tutorial
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    schaereran gmx net
    wrote on last edited by
    #1

    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!!!

    X 1 Reply Last reply
    0
    • S schaereran gmx net

      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!!!

      X Offline
      X Offline
      xxhimanshu
      wrote on last edited by
      #2

      ;)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

      S 1 Reply Last reply
      0
      • X xxhimanshu

        ;)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

        S Offline
        S Offline
        schaereran gmx net
        wrote on last edited by
        #3

        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 !

        A 1 Reply Last reply
        0
        • S schaereran gmx net

          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 !

          A Offline
          A Offline
          Alvaro Mendez
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups