a lil something something

Users who are viewing this thread

lemon

Member
Messages
7,916
Reaction score
0
Tokenz
0.01z
that im writing in visual basic 6. its called splc - or simple programming language compiler - and this is a picture of the messages sent to the console window so far:

splcoutputka0.jpg
 
  • 31
    Replies
  • 1K
    Views
  • 0
    Participant count
    Participants list

SilentEyz

Well-Known Member
Messages
5,305
Reaction score
0
Tokenz
0.00z
Ummm since I really had no clue as to what I was looking at, I had to report it as offensive/adult content :eek:


















lol, Ok so maybe I didn't report it, But I still have no clue what I was looking at :confused:
 

lemon

Member
Messages
7,916
Reaction score
0
Tokenz
0.01z
ok ok... :D

first off - it is a screen capture of the command prompt in windows xp ( start->run; type "cmd" and press enter ). i used the print screen function of my keyboard ( the key next to the f12 key ) and then went into mspaint ( mspaint.exe or paint.exe, or whatever ms calls it now ... ) and cut the command prompt window out of the whole screen.

second - the stuff inside the window:

c:\docume~1\me\mydocu~1\vbproj~1>cd c:\program files\microsoft visual studio\vb98\

the current directory c:\docume~1\me\... is getting changed to the c:\program files\... directory, by the compund cd command - "cd" by itself returns the current directory, whereas typing a location out on your computer, such as "c:\program files\" after "cd" and a space, will change the directory to the one specified, or it will error out and thats not a pretty road to travel down at 1.33.am :D

c:\program files\microsoft visual studio\vb98>link.exe /edit /subsystem:console c:\docume~1\me\mydocu~1\vbproj~1\splc.exe

this line is telling the program "link.exe" located in the directory "c:\program files\microsoft visual basic\vb98" to edit "/edit" the subsystem from graphical to console "/subsystem:console" and the program i want it to change, my program "splc.exe" is found in the directory "c:\docume~1\me\mydocu~1\vbproj~1\"

microsoft (r) coff binary file editor version 6.00.8168
copyright (c) microsoft corp 1992-1998. all rights reserved.

is the text that the link.exe program outputs to the window. if any errors occur, then they are displayed under this text. good thing is, there are none. :D

c:\program files\microsoft visual studio\vb98>cd c:\docume~1\me\mydocu~1\vbproj~1\

this text is telling the computer to return to the location of where my program, splc.exe, is located.

c:\docume~1\me\mydocu~1\vbproj~1>testsplc

the command "testsplc" is actually a batch program (.bat) i wrote to combine a few commands for the command prompt to execute. currently, it just runs the splc.exe program with a text input file. this is the

c:\docume~1\me\mydocu~1\vbporj~1>splc c:\hoobla.txt

line. this line shows the path to the program splc.exe, and the location of the textfile that i wish to input as source code for the program. ( just testing code, literally the lines read <tab>"crap" ... )

simple programming language compiler

this text is the first output of my program - it identifies what the program is. the program name - splc - is immediately obvious as to why i shorthanded the program name :D

successfully read 127 bytes of file c:\hoobla.txt
9 lines found
19 bytes on the first line
successfully wrote 127 bytes to file c:\hoobla.sxf

these lines are the text outputed from various functions in my code, which im using visual basic 6, as previously mentioned, to write the early version of the compiler.

the last bit of text is just the current directory - it is waiting for another command to execute.

---------

did this explanation help any?
 

Rusteh

Active Member
Messages
2,741
Reaction score
0
Tokenz
0.01z
so in otherwords you made a program from VB's event driven programming to capture a screen image?

not bad i guess lol...my first stint with VB was pretty much making a program that asked "Do You Like Me" and two variables, yes and no.

so what initiates the program...a simple double click or have u bound it to certain events?

*edit*

ok after skimming over your reply as to what your "program" does, you just made a program that links to a certain batch file to exe a few commands...so what commands did you exe?
 

lemon

Member
Messages
7,916
Reaction score
0
Tokenz
0.01z
so in otherwords you made a program from VB's event driven programming to capture a screen image?

no. im writing a program in vb that writes to the command prompt instead of a message box or equivalent graphical element. i used the print screen function of the keyboard which captured the whole screen, and then i used mspaint to cut out the command prompt out from the rest of the screen ;)

not bad i guess lol...my first stint with VB was pretty much making a program that asked "Do You Like Me" and two variables, yes and no.

hah - at least it wasnt just a "hello world" program - your program actually interacted with the user, instead of just displaying "ello world"... :cool:

so what initiates the program...a simple double click or have u bound it to certain events?

well, since its not the screen capture thingy.. i have to call it explicity - whether in the command prompt, or dragging a textfile onto the program icon in the windows explorer window.

*edit*

ok after skimming over your reply as to what your "program" does, you just made a program that links to a certain batch file to exe a few commands...so what commands did you exe?

heh - i just explained the window text, not what my program does. but, i wrote two batch files - makesplc ( this converts the splc executable from the windows interface to the console interface - or the command prompt ) and testsplc ( which is a typed out command to the program with a file from the c:\ drive. ). the testsplc < characters than the command, so i just wrote it to do the testing. makesplc has 3 commands - a cd - to get to the right directory of the link.exe ( the one that converts from the graphical to the console ) and then the second command is executing the link program to edit the subsystem of the splc from graphical to console. the third command returns to the location of the splc program.

-----------

my program is what is called a compiler - or a program that takes human readable source code and turns it into computer understandable machine language...
 

lemon

Member
Messages
7,916
Reaction score
0
Tokenz
0.01z
hmm - how do i tell you that you are wrong rusteh? i dont know, because its hard to decipher what you are really saying. ;)

all windows programs run under dos. well, an emulated one nowadays - or thats what they want you to think. but dos is very much part of the windos operating system( no, its not a typo ;) )
 

Kat

Heart & Soul
Messages
8,166
Reaction score
0
Tokenz
0.00z
hey lemon.... my bf was wondering if you knew any sites for vb ....like the one he posted about for java script....since his school doesnt teach any vb classes and he's interested in learning that too.
 

Rusteh

Active Member
Messages
2,741
Reaction score
0
Tokenz
0.01z
hmm - how do i tell you that you are wrong rusteh? i dont know, because its hard to decipher what you are really saying. ;)

all windows programs run under dos. well, an emulated one nowadays - or thats what they want you to think. but dos is very much part of the windos operating system( no, its not a typo ;) )

well thats an obvious statement lol

but your right, i was wrong, i was thinking of vb.net, a program to make program essentially
 

elluko

Active Member
Messages
3,594
Reaction score
1
Tokenz
0.01z
I like java script, I just dont like getting too technical with it. When I get warped into a projecj I dont stop on it until my brain throbs.
 

lemon

Member
Messages
7,916
Reaction score
0
Tokenz
0.01z
I like java script, I just dont like getting too technical with it. When I get warped into a projecj I dont stop on it until my brain throbs.

haha - when i code in vb, i usually fall asleep, or recognize that im about to leave this plane of existance for a period of time. then i quit for the day ( or usually, night ) and save my work, get to the room, and laydown. sometimes, i dont even take off my shoes.:D
 
N

NightWarrior

Guest
Coding in VB is pretty much an oxymoron since it's not a true computer language, a baby language so to speak. What is your qualifications Lemon? I see you know some things. I have a BS in computer science and have been programming with C++, VB6, VB.NET, ASP.NET, C#, etc, etc. for over 8 years. Once you learn how to code in one high level language, ie (C++), then the rest is just syntax. But I have never considered coding in VB6 as actual programming since it is not OO and you can be sloppy as hell with it. However, I do like it for prototyping and putting something out there fairly quickly.
 
78,872Threads
2,185,377Messages
4,958Members
Back
Top