Prev Previous Post   Next Post Next
Old 28th October 2002, 22:08   #3
fOSSili
Junior Member
 
Join Date: Oct 2002
Posts: 5
Hmmm,

I looked into the export definition and found extern "C" __declspec (dllexport) int _AVS_APE_RetrFunc(...). That makes me wondering, because you (thanks UnConeD) mentioned AVS_APE_RetrFunc(). Removing preceding "_" fixes the loading problem, so that I can see the plugin under +->Tutorials->Box v1.0 now.

But when I select it, it crashes Winamp with "Runtime Error" (Visual C++ runtime library). It seems to be harder than I thought.

When debugging the .ape, everything works fine until the render() function is called. The "c_thisclass->enabled" flag (Set to "1" in constructor) is always a different _random_ number when I try to activate the plugin. So that it seems to be a problem with the c_thisclass instance (probably casted as c_rbase, and so the class property doeas not exists?). Many open questions here...

I hope, a c++builder guru can assist me in porting this to Borland.

Thank you
Andreas

PS: working, but crashing c++builder project and avstut00.ape attached
Attached Files
File Type: zip boxtut-bcpp-crash.zip (35.6 KB, 96 views)
fOSSili is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Visualizations > AVS

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump