Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: ThePro on November 19, 2005, 05:46 PM

Title: bncsutil.dll with C++
Post by: ThePro on November 19, 2005, 05:46 PM
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?
Title: Re: bncsutil.dll with C++
Post by: ThePro on November 19, 2005, 06:03 PM
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. :)))
Title: Re: bncsutil.dll with C++
Post by: 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.
Title: Re: bncsutil.dll with C++
Post by: shadypalm88 on November 19, 2005, 08:55 PM
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.
Title: Re: bncsutil.dll with C++
Post by: ThePro on November 19, 2005, 09:48 PM
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 ;)