PDA

View Full Version : writing ape's


shreyas_potnis
10th March 2003, 04:15
i know a bit of c, and i want to wite render Ape's
i already looked in the develope in winamp.com,
but i cant download the project file.
can somebody please give it to me.
and when i tried to compile render picture II,
i got 2 errors. how do you compile ape's?
when i compile it, the message said: - compiling pictureII.exe
:confused: :weird:

UnConeD
10th March 2003, 11:20
Make a DLL project.

shreyas_potnis
11th March 2003, 05:26
how do i do that?

Phaze1987
11th March 2003, 20:48
Dude how much C do you know ? I know some too but i dont think it is enough to write an APE. What exactly was the error ? I dont understand...

anubis2003
12th March 2003, 02:01
shreyas, what compiler are you using?

shreyas_potnis
12th March 2003, 06:00
this is the error:
--------------------Configuration: APEPicture2 - Win32 Debug--------------------
</h3>
<h3>Command Lines</h3>
Creating temporary file "C:\WINDOWS\TEMP\RSP5192.TMP" with contents
[
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 /subsystem:console /incremental:yes /pdb:"Debug/APEPicture2.pdb" /debug /machine:I386 /out:"Debug/APEPicture2.exe" /pdbtype:sept
.\Debug\APEPicture2.obj
]
Creating command line "link.exe @C:\WINDOWS\TEMP\RSP5192.TMP"
<h3>Output Window</h3>
Linking...
Creating library Debug/APEPicture2.lib and object Debug/APEPicture2.exp
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/APEPicture2.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.



<h3>Results</h3>
APEPicture2.exe - 2 error(s), 0 warning(s)
</pre>
</body>
</html>

i am using misrosoft c++

anubis2003
12th March 2003, 11:04
When you start a new project it should bring up a list of many different kinds of projects. Just select the DLL one. I don't know exactly how it needs to be configured(if at all), but others can help you on that.

UnConeD
12th March 2003, 12:04
An APE is a renamed .DLL file. You're building an .EXE file. Because EXE's need to be executed on their own, they need an entry point, which is the main function and that's what the linker is complaining about.

Make a Windows/Win32 DLL/Dynamic Link Library project instead.

Lion King
12th March 2003, 14:30
sample code from nsdn: http://ftp.mirrors.degnet.de/pub/mirrors/ftp.winamp.com/pub/winamp/development/avsapecode.exe

Magic.X
12th March 2003, 15:15
Ok, i got some Problems too.

I'm using Borlands C++ Builder (6) but AVS does not accept my APE's.

I dont know why, i only tryed to recompile the box tutorial.

C-Builder comes with an Visual C Project Converter, maybe it doesnt work properly.

:(

Phaze1987
12th March 2003, 20:44
I dont know exactly what it could be but make sure its linked corectly...I got that error several times on my computer while trying to make some programs.Oh and i have a friend who is an olympic at c++ so you could email me the code and i`ll give it to him,if you want,to erase the errors and make it work.

shreyas_potnis
13th March 2003, 07:00
thanks, everyone.
firstly I opened the workspace provided with picture II,
now no errors!

shreyas_potnis
13th March 2003, 07:48
--------------------Configuration: ape_tv - Win32 Release--------------------
Compiling...
ape_tv.cpp
Linking...
Creating library Release/tv.lib and object Release/tv.exp

tv.ape - 0 error(s), 0 warning(s)

this is what i got when i compiled tv.
but where do you get the compiled ape? :confused:

can anyone please explain a bit more on how to write ape's.

anubis2003
13th March 2003, 11:10
The compiled ape will be in the folder where the source code was, but it will be called <title>.dll. You must change it to <title>.ape

shreyas_potnis
13th March 2003, 17:30
umm. its not there, and it is compiling the ape..
any way, i got the solution so you dont have to bother about it.
thanks for helping me out

Magic.X
14th March 2003, 12:35
The only error i get is within the VC-Project Converter. It says something like cant convert compiler option /?

But Compiling works, i get an ape file - which avs won't accept anyway... :hang: