View Poll Results: Should i attempt to HARDCODE A TEXT EDITOR?

Voters
24. You may not vote on this poll
  • Yes! You are 100% capable of doing that!

    10 41.67%
  • No! You suck!

    14 58.33%
Results 1 to 24 of 24

Thread: Hard Code Everything!

  1. #1

    Thread Starter
    Frenzied Member macai's Avatar
    Join Date
    Jul 2001
    Location
    Napanoch NY
    Posts
    1,228

    Hard Code Everything!

    I'm thinking about writing a text editor, that is truly hard coded.
    This meaning, the text box will be hard coded (no controls),
    EVERYTHING! Even the KEYDOWN AND KEYUP EVENTS! I just want
    \to see if i have the technical knowledge to do something like this.
    Should i attempt to do this just to see if i can?
    Luke

  2. #2

    Thread Starter
    Frenzied Member macai's Avatar
    Join Date
    Jul 2001
    Location
    Napanoch NY
    Posts
    1,228
    NOTE: I should be back on this forum in like, 12-14 hours, OK? So
    just keep the thread alive for me, please.
    Luke

  3. #3
    Frenzied Member swatty's Avatar
    Join Date
    Aug 2002
    Location
    somewhere on earth
    Posts
    1,478

    Don't keep me here standing ...

    Do it.
    Try it out, so you'll see how technical you are.

    But try it yourself, don't get over here to let others do the coding for you.
    Code:
    If Question = Incomplete Then
       AnswerNextOne
    Else
       ReplyIfKnown
    End If
    cu Swatty

  4. #4

    Thread Starter
    Frenzied Member macai's Avatar
    Join Date
    Jul 2001
    Location
    Napanoch NY
    Posts
    1,228

    Re: Don't keep me here standing ...

    Originally posted by swatty
    Do it.
    Try it out, so you'll see how technical you are.

    But try it yourself, don't get over here to let others do the coding for you.
    Of course not. The only thing ill allow myself to use is a form. lol
    Luke

  5. #5
    Frenzied Member Shawn N's Avatar
    Join Date
    Dec 2001
    Location
    Houston
    Posts
    1,631
    My understanding of "hard coding" in the programming sense is that variables have literal assigned values instead of ones that are computed.

    Like if I assign a string variable the value "hi" then "hi" has been hard coded into my program.

    To me it seems you're attempting to dynamically create controls and base the events off a subclassing event handler (that's what you're going to have to do, at least, if I understand what you're trying to do).
    Please rate my post.

  6. #6
    Software Eng. Megatron's Avatar
    Join Date
    Mar 1999
    Location
    Canada
    Posts
    11,286
    It'll be a lot easier for you to do this in C/C++. In order to get the API's all you need is
    Code:
    #include <windows.h>
    With VB you need
    Code:
    Public Declare Function/Const...
    etc.
    for every function/constant and UDT!

  7. #7
    Software Eng. Megatron's Avatar
    Join Date
    Mar 1999
    Location
    Canada
    Posts
    11,286
    It'll be a lot easier for you to do this in C/C++. In order to get the API's all you need is
    Code:
    #include <windows.h>
    With VB you need
    Code:
    Public Declare Function/Const...
    etc.
    for every function/constant and UDT!

  8. #8
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    agree, with vb it gonna be hellhard to do that

  9. #9
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    you don't even need a form. just use sub main as the start up in a module. use createwindow to make controls.
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  10. #10

    Thread Starter
    Frenzied Member macai's Avatar
    Join Date
    Jul 2001
    Location
    Napanoch NY
    Posts
    1,228
    Originally posted by Megatron
    It'll be a lot easier for you to do this in C/C++. In order to get the API's all you need is
    Code:
    #include <windows.h>
    With VB you need
    Code:
    Public Declare Function/Const...
    etc.
    for every function/constant and UDT!
    What im trying to do is learn the way of C++ with VB. What i
    mean by this, is, im preparing to learn C++ going byt he fact that
    you have to write EVERYTHING! I'll learn total independance from
    controls etc first, then ill learn the C++ syntax\code. Is this an
    appropriate aproach to going low level?
    Luke

  11. #11

    Thread Starter
    Frenzied Member macai's Avatar
    Join Date
    Jul 2001
    Location
    Napanoch NY
    Posts
    1,228
    Is what i posted above a good way to learn low lvl stuff?
    Luke

  12. #12
    Frenzied Member Shawn N's Avatar
    Join Date
    Dec 2001
    Location
    Houston
    Posts
    1,631
    API Form

    Here's something to get you started.
    Please rate my post.

  13. #13
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Originally posted by macai
    Is what i posted above a good way to learn low lvl stuff?
    As far as I now, C is not low level... but medium level. If you want to learn low level, then you should be reading about Assembler.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  14. #14
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    why don't you just LEARN c++ instead of doing it in VB to learn how c++ works?
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  15. #15
    Addicted Member
    Join Date
    Aug 2002
    Location
    Baltimore, MD
    Posts
    230
    Have to agree. If you want to learn C++, just learn it. Don't try to do things in VB that are not meant to be done. That's just strange. C++ isn't that hard to learn the basics of. After that, just start experimenting..

  16. #16
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    This can be done in VB, and it has been before. Even if it was unknown territory, I say go for it. You've gotta accept a challenge
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  17. #17
    PowerPoster Arc's Avatar
    Join Date
    Sep 2000
    Location
    Under my rock
    Posts
    2,336
    Umm.. isnt this chit chat?!? And a Moderator even posted in it!! Whats this place coming to?
    -We have enough youth. How about a fountain of "Smart"?
    -If you can read this, thank a teacher....and since it's in English, thank a soldier.


  18. #18
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    It's not chit chat. He is talking about writing a text editor in VB, hence it goes into the General VB forum... now if there were a forum called The Text Editor forum, then he should be posting there, but he's not.

    I'd have to agree with almost everyone else here, and tell you to just make it in C++ from the start. I personally don't know C++, and I would love to learn it, but never have any thing to program in C++ to learn. Books are too expensive for me.
    <removed by admin>

  19. #19
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    Sounds like a lot of work. I also think you should just dive into C++, or VC++. They have a wizard that creates controls for you(creates the code behind them, and lets you adjust/create/destroy them visually). It's pretty straight forward.

  20. #20

    Thread Starter
    Frenzied Member macai's Avatar
    Join Date
    Jul 2001
    Location
    Napanoch NY
    Posts
    1,228
    Originally posted by DiGiTaIErRoR
    Sounds like a lot of work. I also think you should just dive into C++, or VC++. They have a wizard that creates controls for you(creates the code behind them, and lets you adjust/create/destroy them visually). It's pretty straight forward.
    The thing is, im not using any controls. Im using a form with lines and Print functions...no controls.
    Luke

  21. #21
    Fanatic Member Illspirit's Avatar
    Join Date
    Mar 2001
    Location
    Blackpool, England
    Posts
    815
    well i'm no c++ master, but i dont think it uses lines and print methods, so whats the point?

    it uses API to create windows and stuff, so if you ARE going to do this then use the API or it seems even more pointless. But like everyone else says just dive into c++
    Illspirit - [email protected]

    SmartBarXP Lead Developer
    SmartBarXP - The leading desktop sidebar application for Microsoft Windows XP

  22. #22
    PowerPoster Arc's Avatar
    Join Date
    Sep 2000
    Location
    Under my rock
    Posts
    2,336
    Hes running a poll to see if people think he should attempt something. That isnt a VB question that is chit chat.
    -We have enough youth. How about a fountain of "Smart"?
    -If you can read this, thank a teacher....and since it's in English, thank a soldier.


  23. #23
    Frenzied Member numtel's Avatar
    Join Date
    Apr 2000
    Location
    CA
    Posts
    1,163
    j/k bout my answer to your poll, i thought the second one was more fun

    just use the createwindowex method and subclass the controls you make, it's very easy, just like win32asm. nothing fancy. even easier since you can use vb's file funcctions instead of writing them in asm.

  24. #24
    Hyperactive Member
    Join Date
    Jun 2002
    Posts
    299
    To actually recreate the functionality of a textbox from lines and code you would be forced to use very low level things to get any speed at all. There is no way using the bulky API's and especially VB's to try to make your own.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width