Wiki Page Content

Differences between revisions 5 and 6
Revision 5 as of 2013-08-07 23:45:18
Size: 829
Editor: Sam Lantinga
Comment:
Revision 6 as of 2017-03-11 22:55:32
Size: 825
Comment: Fixed include and comment in example.
Deletions are marked like this. Additions are marked like this.
Line 22: Line 22:
#include "SDL_loadso.h" #include "SDL.h"
Line 24: Line 24:
// Dynamically load mylib.so /* Dynamically load mylib.so */

SDL_LoadObject

Use this function to dynamically load a shared object and return a pointer to the object handle.

Syntax

void* SDL_LoadObject(const char* sofile)

Function Parameters

sofile

a system dependent name of the object file

Return Value

Returns a pointer to the object handle or NULL if there was an error; call SDL_GetError() for more information.

Code Examples

#include "SDL.h"

/* Dynamically load mylib.so */
SDL_LoadObject("mylib.so");

Remarks

You can add useful comments here


CategoryAPI, CategorySharedObject

None: SDL_LoadObject (last edited 2017-03-11 22:55:32 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit