News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

jni.h to jni.inc

Started by shashank_tulsyan, November 13, 2006, 01:23:07 PM

Previous topic - Next topic

shashank_tulsyan

I converted jni.h to jni.inc using h2inc.
While compiling the some asm file which includes it, the compiler tells that :vararg uses C calling convention. Well that ":vararg" came after converting jni.h to jni.inc. One more thing, during declaration of such types, the specifier STDCALL is present, even then :vararg is troubling. Does this mean I cannot use the file, because in no way I'll find it convinient to change calling convention to C.
Someone please tell me a way to make a useable jni.inc.
The command that I used :
h2inc /WIN32 jni.h
Thanks

hutch--

shashank,

If its the old Microsoft h2inc, you are in trouble in that it generally does not work correctly on modern C/C++ files. STDCALL does not support :VARARG, you need to specify the C calling convention in the prototype to do this. If the include file is not a very large one, it may be quicker to convert it manually than to try and get an automated technique to work.

You could have a look in the windows.inc subforum as one of our members ToutEnMasm is developing a header file converter that looks like it wioll end up a very useful tool.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

shashank_tulsyan

Thanks hutch--,
ToutEnMasm's translator did some trick. It was in German so I don't know what I actually did. But, I did a successful compilation, and if anthing goes wrong I know where to find help.