Author | Message | Time |
---|---|---|
ThePro | I'm using C++ and had to convert the definitions of bncsutil.dll from VB in C++. Thats my Code: [code] long MPQNR = 3; long CheckSum = 0; checkRevisionFlat("A=460329258 B=123071798 C=254350412 4 A=A^S B=B-C C=C+A A=A^B", "STAR/starcraft.exe", "STAR/Storm.dll", "STAR/battle.snp", MPQNR, CheckSum); [/code] The value of CheckSum is still 0 after passing this function. :( What do I do wrong? What is the Difference between checkRevision and CheckRevisionFlat? | November 19, 2005, 11:46 PM |
ThePro | I solved the Problem. I declared the last parameter (CheckSum) as Pointer in the Dll Import. I changed CheckSum to &Checksum and got the exe hash. :))) | November 20, 2005, 12:03 AM |
Myndfyr | Um.... just FYI, BNCSUtil is written in C++. You shouldn't have had to convert the VB definitions; you should have just used the header file. | November 20, 2005, 2:50 AM |
shadypalm88 | [quote author=MyndFyre link=topic=13291.msg134736#msg134736 date=1132455035] Um.... just FYI, BNCSUtil is written in C++. You shouldn't have had to convert the VB definitions; you should have just used the header file. [/quote]Yeah, at the moment you'll need the full source to get the header files though. WinRAR can open the .tar.gz/.tar.bz2 files. | November 20, 2005, 2:55 AM |
ThePro | Too late, I converted the funktions I need by myself lol. I get connected to battle.net now, I made it. :) Thanks to all in this forum and the bncsutil.dll ;) | November 20, 2005, 3:48 AM |