editor option in a C IDE

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • arin23
    New Member
    • Apr 2010
    • 6

    editor option in a C IDE

    Hi..i am making an IDE for C using C and TCL/TK for GUI. I have put an EDIT option. Can u guys please help me what should be its callback function ...
    what all options should i put there and how to define the functions?? Thanks...
  • jkmyoung
    Recognized Expert Top Contributor
    • Mar 2006
    • 2057

    #2
    ??? Why are you writing an IDE if you don't even know what you want? Is this just an exercise? If so, you may consider copying functions from other IDE's displays.

    Comment

    • arin23
      New Member
      • Apr 2010
      • 6

      #3
      i hav assigned this project and have to complete it.... I want to may be just put CUT, COPY, PASTE, UNDO, REDO options but how to write their callback function, i am not getting it. And can u please tell me where can i get source code of any IDE written in C. I tried searching but could not get them.......Than ks for reply

      Comment

      • arin23
        New Member
        • Apr 2010
        • 6

        #4
        i hav been assigned this project and have to complete it.... I want to may be just put CUT, COPY, PASTE, UNDO, REDO options but how to write their callback function, i am not getting it. And can u please tell me where can i get source code of any IDE written in C. I tried searching but could not get them.......Than ks for reply

        Comment

        • jkmyoung
          Recognized Expert Top Contributor
          • Mar 2006
          • 2057

          #5
          OS/Compiler?


          I would honestly suggest using c++ or java in this endeavor. c's low levelness is not as well suited for writing an IDE (without pain).

          Comment

          • arin23
            New Member
            • Apr 2010
            • 6

            #6
            OS : LINUX n compiler: of course, GCC
            thanks a lot, the book looks quite useful. I would like to also share that I have to use TCL/TK for the GUI part and define the functions in C. Do you have any suggestions on further reading?

            Comment

            • newb16
              Contributor
              • Jul 2008
              • 687

              #7
              Os/compiler is irrelevant here*, because windowing part is supposed to be handled by tk shell.
              2 op - take a look at swig ; cpptk at sourceforge ;

              Irrelevant in the code, relevant when it comes to actual build and writing makefile.

              Comment

              • arin23
                New Member
                • Apr 2010
                • 6

                #8
                thanks a lot.... downloaded both of them.... will try using them. thnx

                Comment

                • arin23
                  New Member
                  • Apr 2010
                  • 6

                  #9
                  I installed swig on my system .....but i havnt been able to work successfully using it..... i am trying to write a basic tcl code and save it as some.i file but when i give the command on the command window it's giving errors.....
                  am i doing it correctly? please enlighten me...

                  Comment

                  • newb16
                    Contributor
                    • Jul 2008
                    • 687

                    #10
                    Writing helloworld is never an easy task. Afair, swig produces some C file after processing .i files that you should compile and link with your code and tk interpreter, and with this executable you should run the tcl commands that are supposed to access the functions defined in .i file.

                    Comment

                    Working...