ShadowFlare's Realm
http://sfsrealm.hopto.org/cgi-bin/yabb2/YaBB.pl
ShadowFlare's Realm Forums >> Support >> Using SFMpqApi
http://sfsrealm.hopto.org/cgi-bin/yabb2/YaBB.pl?num=1205773910

Message started by gex on Mar 17th, 2008, 6:11pm

Title: Using SFMpqApi
Post by gex on Mar 17th, 2008, 6:11pm

Hi,

I have two questions:

a) is it possible to use the dll with JAVA?

b) If not how do I make it run using c? I tried to include the sfmpqapi.h file into my c program, but it gives me these errors:

Code:

SFmpqapi/sfmpqapi.h:167: error: syntax error before "SFMpqCompareVersion"
SFmpqapi/sfmpqapi.h:167: warning: data definition has no type or storage class
SFmpqapi/sfmpqapi.h:281: error: syntax error before "MPQARCHIVE"
SFmpqapi/sfmpqapi.h:281: warning: no semicolon at end of struct or union
SFmpqapi/sfmpqapi.h:282: warning: data definition has no type or storage class
SFmpqapi/sfmpqapi.h:287: error: syntax error before '*' token
SFmpqapi/sfmpqapi.h:287: warning: data definition has no type or storage class
SFmpqapi/sfmpqapi.h:293: error: syntax error before '*' token
SFmpqapi/sfmpqapi.h:293: warning: data definition has no type or storage class
SFmpqapi/sfmpqapi.h:294: error: syntax error before '*' token
SFmpqapi/sfmpqapi.h:294: warning: data definition has no type or storage class
SFmpqapi/sfmpqapi.h:295: error: syntax error before '*' token
SFmpqapi/sfmpqapi.h:295: warning: data definition has no type or storage class
SFmpqapi/sfmpqapi.h:298: error: syntax error before "MpqHeader"
SFmpqapi/sfmpqapi.h:298: warning: data definition has no type or storage class
SFmpqapi/sfmpqapi.h:301: error: syntax error before '}' token
SFmpqapi/sfmpqapi.h:306: error: syntax error before "MPQFILE"
SFmpqapi/sfmpqapi.h:306: warning: no semicolon at end of struct or union
SFmpqapi/sfmpqapi.h:307: warning: data definition has no type or storage class
SFmpqapi/sfmpqapi.h:310: error: syntax error before '*' token
SFmpqapi/sfmpqapi.h:310: warning: data definition has no type or storage class
SFmpqapi/sfmpqapi.h:311: error: syntax error before '*' token
SFmpqapi/sfmpqapi.h:311: warning: data definition has no type or storage class
SFmpqapi/sfmpqapi.h:323: error: syntax error before '*' token
SFmpqapi/sfmpqapi.h:323: warning: data definition has no type or storage class
SFmpqapi/sfmpqapi.h:325: error: syntax error before '}' token
SFmpqapi/sfmpqapi.h:395: error: syntax error before "FILELISTENTRY"


So, how do I do it without errors?

ShadowFlare's Realm » Powered by YaBB 2.2.1!
YaBB © 2000-2008. All Rights Reserved.