Adding exports to the Kernel32.dll emu-layer
#1
ok here is what i have done - all files reside in the "xbmc/xbmc/xbmc/cores/dllloader/exports" directory:

emu_kernel32.cpp - appended:
Quote:extern "c" pvoid winapi dllencodepointer(pvoid ptr)
{
 // do something
}
emu_kernel32.h - inserted before the last "#endif":
Quote:extern "c" pvoid winapi dllencodepointer(pvoid ptr);
exports_kernel32.cpp - inserted before the last, closing "}"
Quote:g_dlls.kernel32.addexport("encodepointer", (unsigned long)dllencodepointer);
kernel32.def - appended:
Quote:encodepointer

now a friend of mine build the xbmc using the "xbmcdbr" (xbmc download, build, and rar script 1.1. this does nothing really fancy besides calling
Quote:"%net%"/out "%home%\finished builds\logs\vs2003_log.txt" /rebuild release "xbmc.sln"
but it seems that i miss something because
(a) i can't find the "encodepointer" in the resulting default.xbe with a hexeditor (windows) and strings+grep (unix).
(b) the "xbmc.log" contains:
Quote: warning unable to resolve: kernel32.dll encodepointer

what's wrong?
thanks alot, patrick / ravemax
dextrose member.
Reply
#2
nothing wrong as far as i can tell.. i think he just forgot to update the files.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
nothing was wrong. my friend simply forgot to clean the project before starting the build.
dextrose member.
Reply

Logout Mark Read Team Forum Stats Members Help
Adding exports to the Kernel32.dll emu-layer0