Re: LoadLibrary
- From: r_z_aret@xxxxxxxxxxxx
- Date: Wed, 29 Mar 2006 16:35:04 -0500
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
.
- Prev by Date: Re: Question regarding WM 5.0 PocketPC softkey
- Next by Date: Re: How to hide the menu bar at the bottom of the screen
- Previous by thread: Re: LoadLibrary
- Next by thread: Re: LoadLibrary
- Index(es):
Relevant Pages
|