I've been trying to convert the ventrcon tool into C# for a couple days now.
Running into a couple snags, i decided to see if i could build and debug
the original source code to the exe i received.
so i downloaded and installed Code::Blocks, and mingw(thinking this would be easy)
I've had nothing but issues.
my build log is below.
Code:
-------------- Build: Debug in ventrcon ---------------
Compiling: ventrilo3_handshake.cpp
C:\ventrcon\ventrilo3_handshake.cpp:60:5: error: 'u8' does not name a type
C:\ventrcon\ventrilo3_handshake.cpp:61:5: error: 'u16' does not name a type
C:\ventrcon\ventrilo3_handshake.cpp:74:11: error: 'NULL' was not declared in this scope
C:\ventrcon\ventrilo3_handshake.cpp:75:1: error: too many initializers for 'ventrilo3_auth_t'
C:\ventrcon\ventrilo3_handshake.cpp:75:1: error: too many initializers for 'ventrilo3_auth_t'
C:\ventrcon\ventrilo3_handshake.cpp:75:1: error: too many initializers for 'ventrilo3_auth_t'
C:\ventrcon\ventrilo3_handshake.cpp:75:1: error: too many initializers for 'ventrilo3_auth_t'
C:\ventrcon\ventrilo3_handshake.cpp:75:1: error: too many initializers for 'ventrilo3_auth_t'
C:\ventrcon\ventrilo3_handshake.cpp:79:33: error: 'u8' has not been declared
C:\ventrcon\ventrilo3_handshake.cpp:79:43: error: 'u8' has not been declared
C:\ventrcon\ventrilo3_handshake.cpp:80:42: error: 'u32' has not been declared
C:\ventrcon\ventrilo3_handshake.cpp:80:50: error: 'u16' has not been declared
C:\ventrcon\ventrilo3_handshake.cpp:80:60: error: 'u8' has not been declared
C:\ventrcon\ventrilo3_handshake.cpp:81:57: error: 'u8' has not been declared
C:\ventrcon\ventrilo3_handshake.cpp:82:11: error: 'u8' was not declared in this scope
C:\ventrcon\ventrilo3_handshake.cpp:82:15: error: 'data' was not declared in this scope
C:\ventrcon\ventrilo3_handshake.cpp:82:21: error: 'u32' was not declared in this scope
C:\ventrcon\ventrilo3_handshake.cpp:82:26: error: 'ret' was not declared in this scope
C:\ventrcon\ventrilo3_handshake.cpp:82:31: error: expected primary-expression before 'int'
C:\ventrcon\ventrilo3_handshake.cpp:82:39: error: initializer expression list treated as compound expression
C:\ventrcon\ventrilo3_handshake.cpp:83:11: error: 'u8' was not declared in this scope
C:\ventrcon\ventrilo3_handshake.cpp:83:15: error: 'data' was not declared in this scope
C:\ventrcon\ventrilo3_handshake.cpp:83:21: error: 'u32' was not declared in this scope
C:\ventrcon\ventrilo3_handshake.cpp:83:30: error: expected primary-expression before 'int'
C:\ventrcon\ventrilo3_handshake.cpp:83:38: error: initializer expression list treated as compound expression
C:\ventrcon\ventrilo3_handshake.cpp:88:30: error: variable or field 'ventrilo3_algo_scramble' declared void
C:\ventrcon\ventrilo3_handshake.cpp:88:30: error: 'ventrilo_key_ctx' was not declared in this scope
C:\ventrcon\ventrilo3_handshake.cpp:88:48: error: 'ctx' was not declared in this scope
C:\ventrcon\ventrilo3_handshake.cpp:88:53: error: 'u8' was not declared in this scope
C:\ventrcon\ventrilo3_handshake.cpp:88:57: error: 'v3key' was not declared in this scope
C:\ventrcon\ventrilo3_handshake.cpp:69:40: warning: 'ventrilo3_auth' defined but not used
Process terminated with status 1 (0 minutes, 0 seconds)
30 errors, 1 warnings
Keep in mind, that i've touched nothing on my end, fearing that i
just have something misconfigured in code::blocks. i've tried
uncommenting the code block at the top of
ventrilo3_handshake.cpp.
Code:
-------------- Build: Debug in ventrcon ---------------
Compiling: ventrilo3_handshake.cpp
C:\ventrcon\ventrilo3_handshake.cpp:26:19: fatal error: types.h: No such file or directory
compilation terminated.
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings
This is what i get when it is uncommented.(i'm using windows 7 fyi).
what confuses me is that this must have compiled or the exe that came with it wouldn't exist