Page 1 of 1

compile injection

Posted: 2004-06-10 04:35:18
by Henry
What I need to compile injection with visual c++?

Instruction to compile Inject in MS VC++6.0

Posted: 2004-06-10 07:28:00
by Dr.Assassin
Download:
---------
1) To compile Injection you'll need to get the latest version of STL.
Download it From: http://www.sgi.com/tech/stl/stl.zip

2) And download VC version of expat
File: expat_win32bin_1_95_7.exe
From: http://keihanna.dl.sourceforge.net/sour ... 1_95_7.exe
Or Home: http://expat.sourceforge.net/

Install:
--------
Unpack stl.zip and Install expat_win32bin_1_95_7.exe.

Add Injection, STL and Expat directories to
Options-> Directories->Include files in VC IDE.
STL directory should be topmost in the list (even before standart include dirs).


Compile:
--------
Create: File->New->Workspace->BlankWorkspace File: injection.dsw
Create: File->New->Projects->Win32DinamicLinkLibrary: injection.dsp

Add Source files to project: *.c, *.cpp, *.h, *.def.
Add Header files to project: *.h
Add resource files to project: injection.rc

Goto: Project->Settings-> (select Injection project, and select "Link" tab in right window)
Edit "Object/Library modules:" must have libraries: "libexpatw.lib comctl32.lib ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib"
Do it for Debug and Release configurations!

Save All.
Close Workspace.
See injection.dsp, and be sure it contains for Debug and Release configurations:
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
# ADD LINK32 libexpatw.lib comctl32.lib ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386

It's all.
Now your injection project will be compiled ok. :=)

If no - then show me compiled error messages :-)

Posted: 2004-06-11 20:53:06
by Henry
--------------------Configuration: injection - Win32 Debug--------------------
Compiling resources...
Compiling...
common.cpp
crypt.cpp
debug.cpp
equipment.cpp
extdll.cpp
generic_gump.cpp
gui.cpp
hooks.cpp
hotkeyhook.cpp
hotkeys.cpp
iconfig.cpp
c:\projeto injection\source 305.01\iconfig.cpp(27) : fatal error C1083: Cannot open include file: 'expat.h': No such file or directory
ignition.cpp
igui.cpp
injection.cpp
ld_main.cpp
c:\projeto injection\source 305.01\injection.cpp(4837) : warning C4715: 'easyuolist' : not all control paths return a value
menus.cpp
patch.cpp
runebook.cpp
skills.cpp
spells.cpp
target.cpp
TWOFISH2.C
uo_huffman.cpp
vendor.cpp
world.cpp
Error executing cl.exe.

injection.dll - 1 error(s), 1 warning(s)

do you know whats this?

Ok.

Posted: 2004-06-12 00:00:46
by Dr.Assassin
Henry wrote:c:\projeto injection\source 305.01\iconfig.cpp(27) : fatal error C1083: Cannot open include file: 'expat.h': No such file or directory

do you know whats this?


Yes, I know...
Add Expat\Source\Lib directory to
Tools->Options-> Directories->Include files
Add Expat\LIB directory to Tools->Options->Directories->LibraryFiles.
in VC IDE.

Posted: 2004-06-13 20:03:41
by Henry
Linking...
injection.obj : error LNK2001: unresolved external symbol __imp__sndPlaySoundA@8
Debug/injection.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

injection.dll - 2 error(s), 0 warning(s)

do you know whats this?

Posted: 2004-07-30 19:23:27
by herculesjr
I get that error too ://

Posted: 2004-08-03 12:11:16
by Lord Ruslan Nightmare
I saw this error (about sound) in other cases...interesting.
But in injection i got other error - can't find hash_map (in #include <hash_map>). What is it?

Posted: 2004-08-03 21:33:01
by Yoko
part of STL (standart types library)