View Poll Results: Should i attempt to HARDCODE A TEXT EDITOR?
- Voters
- 24. You may not vote on this poll
-
Aug 9th, 2002, 07:04 AM
#1
Thread Starter
Frenzied Member
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?
-
Aug 9th, 2002, 07:07 AM
#2
Thread Starter
Frenzied Member
NOTE: I should be back on this forum in like, 12-14 hours, OK? So
just keep the thread alive for me, please.
-
Aug 9th, 2002, 07:29 AM
#3
Frenzied Member
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
-
Aug 9th, 2002, 08:23 PM
#4
Thread Starter
Frenzied Member
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
-
Aug 9th, 2002, 08:42 PM
#5
Frenzied Member
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).
-
Aug 9th, 2002, 09:48 PM
#6
Software Eng.
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!
-
Aug 9th, 2002, 09:56 PM
#7
Software Eng.
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!
-
Aug 9th, 2002, 10:08 PM
#8
yay gay
agree, with vb it gonna be hellhard to do that
-
Aug 9th, 2002, 10:13 PM
#9
The picture isn't missing
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  .
-
Aug 10th, 2002, 01:51 AM
#10
Thread Starter
Frenzied Member
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?
-
Aug 10th, 2002, 04:43 AM
#11
Thread Starter
Frenzied Member
Is what i posted above a good way to learn low lvl stuff?
-
Aug 10th, 2002, 01:12 PM
#12
Frenzied Member
API Form
Here's something to get you started.
-
Aug 10th, 2002, 01:22 PM
#13
Need-a-life Member
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.
-
Aug 10th, 2002, 01:38 PM
#14
The picture isn't missing
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  .
-
Aug 10th, 2002, 01:43 PM
#15
Addicted Member
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..
-
Aug 10th, 2002, 03:38 PM
#16
Good Ol' Platypus
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)
-
Aug 10th, 2002, 03:46 PM
#17
PowerPoster
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.

-
Aug 10th, 2002, 04:23 PM
#18
PowerPoster
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.
-
Aug 10th, 2002, 04:28 PM
#19
So Unbanned
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.
-
Aug 10th, 2002, 04:50 PM
#20
Thread Starter
Frenzied Member
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.
-
Aug 10th, 2002, 04:59 PM
#21
Fanatic Member
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++
-
Aug 10th, 2002, 06:13 PM
#22
PowerPoster
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.

-
Aug 10th, 2002, 08:06 PM
#23
Frenzied Member
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.
-
Aug 10th, 2002, 08:14 PM
#24
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|