Re: WinCE DLL

Tech-Archive recommends: Fix windows errors by optimizing your registry



Not supported in Window CE.

You might workaround using ideas in this thread:
http://groups-beta.google.com/group/microsoft.public.win32.programmer.wince/browse_thread/thread/3f9361a513fd2495/88e089ab29b56602?q=salamone+LoadLibrary&rnum=24#88e089ab29b56602

--
Michael Salamone [eMVP]
Entrek Software, Inc.
www.entrek.com


"claudio" <claudio@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:AB7A2329-BE99-497D-933E-EA2159B15131@xxxxxxxxxxxxxxxx
> Hello,
> I have an executable (MyApp.exe) that load a DLL using LoadLibrary() and
> GetProcAddress().
> In the DLL I need to call some functions exported by the exe program.
> I have declared these functions in the exe with __declscped(dllexport)
> but I don't know how to get the pointer to these functions inside the DLL.
> I have tried to link the MyApp.lib to the DLL but I get a LoadLibrary
> error
> 193.
> I have tried to call GetProcAddress(GetModuleHandle(NULL), _T("my_func"))
> inside an exported function in the DLL but I get always a NULL pointer.
> Can someone help me?
> Thanks in advance
> Claudio


.



Relevant Pages

  • Re: Importing a Class define in a Dll
    ... pointer as an extra parameter passed to each non-static ... It is specially useful for the ARM platform as the ... MyClass() {... ... Build the DLL containing your class in the same ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Exception handling for loading of dependency library?
    ... typedef int (const CString & s, ... A common technique for doing this is to declare it as a global variable, ... the handle for a given dll all in one place. ... pointless because ANSI C does not require dereferencing function pointer variables. ...
    (microsoft.public.vc.mfc)
  • Re: How to program plugin DLLs
    ... build the descriptor you mentioned. ... That class is the "only" element to be exported from the DLL. ... pointer to that class and then call something like this: ... > What I might consider here is a method which fills in a popup menu. ...
    (microsoft.public.vc.mfc)
  • Re: Pointers and DLLs/shared libraries
    ... These pointer variables will point to data in the main program. ... subroutine set_pointer ... (DLLs and shared libraries do not always behave like ordinary ... ....the DLL effectively becomes a part of all of the client programs that use it. ...
    (comp.lang.fortran)
  • Re: dll load address
    ... Marco Ventanas ... >> I'm trying to read the dll import table using a pointer initialized to ... >> but as I read the first byte pointed by this pointer, ... but the displayed Base Addr is the same for all ...
    (microsoft.public.windowsce.platbuilder)