Link to home
Start Free TrialLog in
Avatar of npuleio
npuleio

asked on

TurboC and windows.h library

Hello everyone,

I wrote a little program that makes a banner like linux banner command using TurboC 2.01, since I want to convert long filenames to short filenames, where I can find the windows.h library to add in the TurboC to use the GetShortPathName API function?

Or even is there a 32bit version of the 16bit instruction:

ch1 = (char far *)0xFFA6000EL + (ch * 8) + 1

so I could compile it with DJGPP obviously finding a windows.h library since I don't have it in the DJGPP include directory?

Thanks,
Ciao, Luigi
ASKER CERTIFIED SOLUTION
Avatar of sunnycoder
sunnycoder
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of npuleio
npuleio

ASKER

OK sunnycoder,

then since I'm doing something like the Unix banner command, and I've found the bitmap argument as in the instruction I said in the previous post, do you know maybe how it's treated the bitmap character in 32bit mode so I could try to "convert" the 16bit code in 32bit code then compiling it with DJGPP instead of TurboC?

Thanks.
Ciao, Luigi
Hi npuleio,

I do not know how windows treats the bitmap argument.

I am bit confused on this one but as far as I can recollect, Unix banner did not involve bitmaps. There have been questions on replicating the banner command functionality and the easiest way I remember is to read input char by char and have predefined ASCII patterns for each character entered. Not so elegant but works.

If you wish, I can reopen the question and you can wait for some windows Expert to comment on this.

sunnycoder
Avatar of npuleio

ASKER

I don't think it does need to reopen... from your suggest about prefefined ascii patterns I'm just writing some code and in that way I guess it'll work for sure....
Thanks a lot anyway :-)
Ciao, Luigi
Hi Luigi,

In that case, I would request you to revise the grade. Please take time to read this link
https://www.experts-exchange.com/help.jsp#hi73

Grade can be revised by posting a 0 point request in Community Support
https://www.experts-exchange.com/Community_Support/

sunnycoder