From: "Craig A. Schultz" <[EMAIL PROTECTED]>
Subject: Re: Debugging RealPlayer Plugins
Jason,
When you compile and link, make sure you have your "Build", "Set active
configuration" settings for "Debug.
The mak files contain both "Debug" and "Release" settings but one or the
other is actually chosen in the "Build" environment.
It is possible that somehow or other, the *.def file is missing from
your project. This very short text file is required so that during the
linking of the compiled objects, the proper functions are exported so that
the rest of the world can get access to them. An example of what the *.def
file should look like is as follows:
___________________________________________
LIBRARY FX_ATS_ff.dll
;EXETYPE WINDOWS
HEAPSIZE 1024
EXPORTS
RMACreateInstance
---------------------------
The only required parameter is the "Exports" statement. The "library"
statement just needs to agree with the name of the dll as it is created
during linking and isn't even needed, the "Exetype" isn't used and in this
case is commented out by the ";" and the "heapsize" which in this casse is
the default size anyway just tells the system how much memeory to allocate
for the dll when it is loaded.
I see by your last paragraph, if it is exactly correct, that you are not
including the *.def file, something that has tripped me up too many times
for me to still laugh at! ;-)
I would be willing to bet that if you include that file that everything
will start working again. BTW, it is an excellent test to view the
RealPlayer copyright information to see if the plug-ins got loaded or not.
It is a simple test that many people forget about.
Good luck and if you have anymore questions, please repost.
----- Original Message -----
From: "RealForum" <[EMAIL PROTECTED]>
To: <undisclosed-recipients:;>
Sent: Tuesday, March 28, 2000 10:11 AM
Subject: Debugging RealPlayer Plugins
> From: "Jason Phillips" <[EMAIL PROTECTED]>
> Subject: Debugging RealPlayer Plugins
>
> I am attempting to create my own File Format and Rendering plug-ins. I =
> followed the directions in the SDK for debugging them, but MS VC++ won't =
> let me put a breakpoint in. I believe the *.mak file that comes with =
> the SDK does not create a DLL with debug info. I saw an old post in =
> this forum about creating my own new workspace/project from scratch and =
> that should work. =20
>
> After successfully building my new DLL's, they don't get loaded by =
> RealPlayer (I don't see them in the copyrights page) and RealServer =
> gives me the error "Not a valid library" when it tries to load my File =
> Format plug-in.
>
> Is there something I'm missing here? Anyone have any instructions for =
> creating a new project that may let me know what I missed? When I =
> created my new project, I had VC++ project wizard create an empty Win32 =
> DLL project. I then added my .cpp and .h file to the project, and then =
> built the DLL. Are there some other settings/files I'm missing?
>
> Thanks for any help,
> Jason Phillips
>
>
*******************************************************
The RealForum is an email discussion group focused on using RealNetworks
products. The RealForum is a place to post messages about the best methods
for creating content using RealNetworks technologies and the planning and
implementation of streaming-media web sites. Archives of RealForum can
be found at http://realforum.real.com
If you ever want to remove yourself from this mailing list,
you can send mail to <[EMAIL PROTECTED]> with the following
command in the body of your email message:
unsubscribe realforum
or from another account, besides the address you subscribed with:
unsubscribe realforum <[EMAIL PROTECTED]>