![]() |
|
#1
|
|||
|
|||
C++ Irc BotHello I downloaded the source code to an IRC bot, and Im having trouble compiling it.
I get the following errors. --------------------Configuration: ZOMBOT - Win32 Debug-------------------- Compiling... ZOMBOT.CPP c:\documents and settings\administrator\desktop\zombot\hide.cpp(2) : error C4226: nonstandard extension used : '__pascal' is an obsolete keyword c:\documents and settings\administrator\desktop\zombot\util.cpp(40) : error C2143: syntax error : missing ';' before '}' c:\documents and settings\administrator\desktop\zombot\brolist.cpp( 16) : error C2065: 'setmem' : undeclared identifier c:\documents and settings\administrator\desktop\zombot\parser.cpp(1 c:\documents and settings\administrator\desktop\zombot\rndstr.cpp(1 6) : error C2106: '^=' : left operand must be l-value c:\documents and settings\administrator\desktop\zombot\rndstr.cpp(2 4) : warning C4244: '=' : conversion from 'unsigned long' to 'char', possible loss of data c:\documents and settings\administrator\desktop\zombot\irctool.cpp( 30) : warning C4244: 'argument' : conversion from 'unsigned long' to 'unsigned short', possible loss of data c:\documents and settings\administrator\desktop\zombot\sleep.cpp( Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast c:\documents and settings\administrator\desktop\zombot\sleep.cpp(14 ) : error C2664: 'RegSetValueExA' : cannot convert parameter 5 from 'char *' to 'const unsigned char *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast c:\documents and settings\administrator\desktop\zombot\install.cpp( 12) : error C2664: 'RegSetValueExA' : cannot convert parameter 5 from 'char *' to 'const unsigned char *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast Error executing cl.exe. ZOMBOT.exe - 8 error(s), 2 warning(s) Was wondering if anyone could help me ? And tell me what file I can find the setmem function in. THanks |
|||
|
#2
|
|||
|
|||
|
Hey, welcome to the forums!
It looks like a compiler thing, so where did you get the source & what compiler <if any> was recommended? It's hard to debug without any source The only mention of a www.clipx.net function I can see is one of Turbo C's propietry functions. Not part of the ANSI standard. GF |
|
#3
|
|||
|
|||
|
I got the source from http://www.z0mbie.host.sk/zombot.zip
and I am using Mircosoft Visual Studio C++ Compiler. And I wasnt recommended a compiler.. im just one of those M$ idiots lol. Too many .cpp files make me go crazy |
|
#4
|
|||
|
|||
|
Garth could you download the source and try to compile.. see how many errors you get with your compiler ? plz and thx.
|
|
#5
|
|||
|
|||
|
I'll try, but at the moment, I've only access to work PCs (I've been moved for the summer), so only if I've time.
If anyone else could help out, I'd appreciate it. GF |
|
#6
|
|||
|
|||
|
Ah no need, I fixed it. You were right it was the compiler. I used lcc compiler and it worked fine.
|
|
#7
|
|||
|
|||
virusJust to let those of you who dont have an antivirus. Enclosed in that zip file were various viruses that my anti virus picked up. Just to let you know
|
|
#8
|
||||
|
||||
|
Thanks for the warning, DarkSteel. I will remove the link to the infected file.
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#9
|
||||
|
||||
|
Bots are always regarded as viruses due to their explicit ability to run code on the host machine. It is not necessarily malicious.
__________________
-Aaron |
|
#10
|
|||
|
|||
|
If I remember correctly, the zip file had only source code enclosed. It may have been taken over or something
GF |
Recent GIDBlog
Not selected for officer school by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The