Qbasicnews.com
February 28, 2020, 03:51:30 PM *
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: how to access long filename length in DOS? (na_th_an)  (Read 7951 times)
Agamemnus
x/ \z
*****
Posts: 3491



« Reply #15 on: June 13, 2003, 07:20:55 PM »

compatible with other libs.

Anyways, I am a real n00b on the issue, but maybe they can be mixed? If so I don't know how..

(and I don't want to use the huge qb lib thing)
Logged

Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Plasma
Na_th_an
*****
Posts: 1770


WWW
« Reply #16 on: June 13, 2003, 08:29:19 PM »

UGL doesn't even "know" what other libs you are using. As far as combining libs, use multilib if you're scared of the command line.
Logged
Agamemnus
x/ \z
*****
Posts: 3491



« Reply #17 on: June 14, 2003, 12:12:54 AM »

Thanks to plasma for help.... he made me what i needed.
Logged

Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Agamemnus
x/ \z
*****
Posts: 3491



« Reply #18 on: June 14, 2003, 08:15:44 PM »

Ok, Neo, I got your file conversion function working, but it adds "__" at the end. Bug!?
Logged

Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Blitz
I hold this place together
*****
Posts: 853



WWW
« Reply #19 on: June 15, 2003, 12:14:43 PM »

nathan, that code will crash in pds and vbdos becuase of far strings. You'll need to use sseg()
Logged

oship me and i will give you lots of guurrls and beeea
na_th_an
*/-\*
*****
Posts: 8244



WWW
« Reply #20 on: June 15, 2003, 01:44:41 PM »

Ok. Nice to know. But it is already commented in the code:

Quote
Code:
'* In QuickBASIC PDS and VisualBASIC, change all the lines in the format
'  "VARSEG(any.string.variable$)" to "SSEG(any.string.variable$)".
Logged

SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Agamemnus
x/ \z
*****
Posts: 3491



« Reply #21 on: June 15, 2003, 01:49:06 PM »

I can't do it in qb45, either. I get divide by zero error when trying to copy.
Logged

Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
[Unknown]
New Member

Posts: 22


WWW
« Reply #22 on: June 15, 2003, 04:47:57 PM »

Search on Google for "LFN quickbasic" and you'll doubtless find a dozen libraries.... but...

http://unknown.network32.net/qb/lfn2.zip

Written in Assembly, with source.  It's been a while since I looked at it, but I know it at least *worked*.  All it has is short->long and long->short.  Includes QLB, OBJ, ASM, and BAS test file.

-[Unknown]
Logged
Agamemnus
x/ \z
*****
Posts: 3491



« Reply #23 on: June 15, 2003, 04:52:52 PM »

i actually found the same thing in my old files:

http://www.geocities.com/pisforpi/lfn.zip

But now I am confuzzled on how to combine lfn lib and ugl lib with multilib, since I suck.
Logged

Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Glenn
I hold this place together
*****
Posts: 786



WWW
« Reply #24 on: June 15, 2003, 05:09:12 PM »

If you have LFN.LIB and UGL.LIB, and you want to combine them into one library, named for example, LFNUGL.LIB:

LIB LFNUGL +LFN.LIB +UGL.LIB;

To make LFNUGL.QLB:

LINK /Q LFNUGL.LIB, LFNUGL,, BQLB45;

or before you make LFNUGL.LIB, via

LINK /Q LFN.LIB UGL.LIB, LFNUGL,, BQLB45;
Logged

ravelling Curmudgeon
(geocities sites require copying and pasting URLs.)
I liked spam better when it was something that came in a can.
Windows should be defenestrated.
Agamemnus
x/ \z
*****
Posts: 3491



« Reply #25 on: June 15, 2003, 05:56:24 PM »

the qlb won't link due to too many segments.

Blitz said how to compile UGL here, maybe that is what some smarter dude could use to figure it out? Smiley

http://forum.qbasicnews.com/viewtopic.php?t=2906&highlight=compile+ugl
Logged

Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Glenn
I hold this place together
*****
Posts: 786



WWW
« Reply #26 on: June 15, 2003, 07:05:57 PM »

with the /Q option.  I don't know.  I've never tried it.  (But I can't see offhand why it shouldn't be allowed.)
Logged

ravelling Curmudgeon
(geocities sites require copying and pasting URLs.)
I liked spam better when it was something that came in a can.
Windows should be defenestrated.
Agamemnus
x/ \z
*****
Posts: 3491



« Reply #27 on: June 15, 2003, 07:35:01 PM »

works Smiley
Logged

Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Blitz
I hold this place together
*****
Posts: 853



WWW
« Reply #28 on: June 15, 2003, 09:27:52 PM »

hey ag, the ugl builder allows you to add 14 of your own objs/libs. I just uploaded it. Get the latest build.
Logged

oship me and i will give you lots of guurrls and beeea
Agamemnus
x/ \z
*****
Posts: 3491



« Reply #29 on: June 15, 2003, 09:36:11 PM »

i might do this later, but you're too late, blitz. I already did what I needed. Sad
Logged

Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
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!