BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

more OMF woes

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Command Line Tools)
View previous topic :: View next topic  
Author Message
Jeffrey Quesnelle
Guest





PostPosted: Mon Dec 05, 2005 9:45 pm    Post subject: more OMF woes Reply with quote



I know this seems odd, but for some reason all the examples I've found to
"fix" the coff2omf problems won't work. I'm trying to get the Inpout32
library (http://www.logix4u.net/inpout32.htm) working on Borland, but
nothing seems to be doing it. coff2omf of the import library only produces a
512 byte file (regardless of options), and implib on the actual DLL produces
a lib that still doesn't contain the correct symbols (according to the
linker). I know that the files themselves are good, because I have a program
up and running is MSVC that uses the same files. Any ideas :-/?







Back to top
Ed Mulroy
Guest





PostPosted: Mon Dec 05, 2005 10:20 pm    Post subject: Re: more OMF woes Reply with quote



I downloaded that zip file and extracted the DLL. Running impdef on the DLL
created a module definition file, impout32.def, a text file whose contents
are below:

LIBRARY INPOUT32.DLL

EXPORTS
Inp32 @1 ; Inp32
Out32 @2 ; Out32

This implies that the function prototypes should be something like this:

#ifdef __cplusplus
extern "C" {
#endif
WORD WINAPI Inp32(WORD port_number);
void WINAPI Out32(WORD port_number, WORD data);
#ifdef __cplusplus
}
#endif

Try using the function prototypes that I show above along with doing one of
the items below:
- Add the module definition file I show above to the project
- Run impdef inpout32.DEF inpout32.DLL to create your own
module definition file and add it to the project
- Run implib -c inpout32.LIB inpout32.DLL to create your own
import library and add it to the project

If you receive errors from either of WORD or WINAPI not being recognized,
include windows.h at the top of the source file.

.. Ed

Quote:
Jeffrey Quesnelle wrote in message
news:4394b4de (AT) newsgroups (DOT) borland.com...

I know this seems odd, but for some reason all the examples I've found to
"fix" the coff2omf problems won't work. I'm trying to get the Inpout32
library (http://www.logix4u.net/inpout32.htm) working on Borland, but
nothing seems to be doing it. coff2omf of the import library only produces
a 512 byte file (regardless of options), and implib on the actual DLL
produces a lib that still doesn't contain the correct symbols (according to
the linker). I know that the files themselves are good, because I have a
program up and running is MSVC that uses the same files. Any ideas :-/?








Back to top
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Command Line Tools) All times are GMT
Page 1 of 1

 
 


Powered by phpBB © 2001, 2006 phpBB Group
.