Solved

TurboC and windows.h library

Posted on 2004-09-13
6
1,006 Views
Last Modified: 2010-04-15
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
0
Comment
Question by:npuleio
  • 3
  • 2
6 Comments
 
LVL 45

Accepted Solution

by:
sunnycoder earned 250 total points
ID: 12042233
I do not think it is possible ... you cannot link 16 bit code to 32 bit library
0
 

Author Comment

by:npuleio
ID: 12042326
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
0
 
LVL 45

Expert Comment

by:sunnycoder
ID: 12042644
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
0
 

Author Comment

by:npuleio
ID: 12042889
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
0
 
LVL 45

Expert Comment

by:sunnycoder
ID: 12042928
Hi Luigi,

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

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

sunnycoder
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now