Re: LoadLibrary



On Tue, 28 Mar 2006 14:28:02 -0800, Ancient Dragon
<AncientDragon@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

I'm using VC++ 2005 Pro, Windows Mobile 5.0 Pocket PC, ARMV4I. I wrote an
MFC ATL dll, and an MFC application test program. The text program tries to
use LoadLibrary() but LoadLibrary failed with error 120 (Must be in Win32
mode to run this function).

I know I've encountered this message, but I can neither remember
details nor find anything to job my memory. I'm pretty sure I was
attempting to use some function other than LoadLibrary.

I'm also pretty sure the problem is with one or more of the arguments
you pass to the library. Make sure you pass Unicode strings for the
dll path. If you don't understand that sentence, then I strongly
recommend taking time to understand UNICODE and all its implications
for Windows CE programming.

If you get past that problem, you may well encounter another pair.
Windows CE has no concept of "current directory". Also, the search
rules for LoadLibrary are simpler for CE than for "big" Windows. I
_think_ the search rules are:
storage card root directory
main storage \windows
main storage root
directory containing caller
I recommend always using _full_paths whenever a file needs to be
specified. That way you don't need to remember when default search
rules apply or what they might be.

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com
.



Relevant Pages

  • Re: Kb947562 issues
    ... MS MVP-IE, Mail, Security, Windows Desktop Experience - since 2002 ... myself and install it directly. ... I attempted to remedy the situation by doing a System Restore ... downloading this update to encounter the same problem. ...
    (microsoft.public.windowsupdate)
  • Re: Windows 2003 faxcomex api HEADACHE!!
    ... I had setup a Windows 2003 (not SP1) virtual machine, ... So if you encounter 0x800710D8 start playing arrount with fxscomex.dll ... on a Windows 2003 SP1 (automatic updates are enabled) machine. ...
    (microsoft.public.win32.programmer.networks)
  • MPG Playback & Disappearing Windows XP Task Bar
    ... file would cause my Windows taskbar to disappear. ... of the taskbar autohide setting -- happened when enabled and disabled. ... Occasionally I would encounter a ... I can play .mpg files and still retain my taskbar. ...
    (microsoft.public.multimedia.windows.mediaplayer)
  • Re: Standards have to be respected.
    ... The program that worked with Windows XP SP1 ... will be completely crippled by SP2. ... ...not once did I encounter a problem with it. ... My professor has some really old Word docs ...
    (comp.os.linux.development.apps)