I'm using C++ and had to convert the definitions of bncsutil.dll from VB in C++.
Thats my 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);
The value of CheckSum is still 0 after passing this function. :(
What do I do wrong?
What is the Difference between checkRevision and CheckRevisionFlat?
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. :)))
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 from: MyndFyre on November 19, 2005, 08:50 PM
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.
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.
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 ;)