GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 07-May-2008, 15:23
fakepoo fakepoo is offline
Regular Member
 
Join Date: Oct 2007
Posts: 440
fakepoo is a jewel in the roughfakepoo is a jewel in the roughfakepoo is a jewel in the rough

AfxLoadLibrary() fails


Hello,

I have an application that I developed in EVC++ 4.0. This application runs on PocketPC 2003 platform and uses DLLs that I also have created.

I am currently trying to build and run the app in debug mode so that I can use a diagnostic program to catch problems but if I build it in debug mode (all of my modules), the AfxLoadLibrary() function fails and GetLastError() returns 193 meaning ERROR_BAD_EXE_FORMAT.

Does anyone know why this is happening or if there is some kind of solution?
  #2  
Old 10-May-2008, 00:59
Peter_APIIT Peter_APIIT is offline
Regular Member
 
Join Date: May 2007
Location: Malaysia
Posts: 405
Peter_APIIT is on a distinguished road

Re: AfxLoadLibrary() fails


have used before the LoadLibrary() function from Win32 API where you can return error value if some bad things happen.

I suggest you create a small file that contain only the AfxLoadLibrary() function only.

I hope this help.
__________________
Linux is the best OS in the world.
  #3  
Old 12-May-2008, 07:17
fakepoo fakepoo is offline
Regular Member
 
Join Date: Oct 2007
Posts: 440
fakepoo is a jewel in the roughfakepoo is a jewel in the roughfakepoo is a jewel in the rough

Re: AfxLoadLibrary() fails


Thanks for the suggestion. It actually had to do with one of the system debug version DLLs not being installed. It is resolved now.
 
 

Recent GIDBlogToyota - 2008 July Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Progress Indicator called from other class fails robalo MS Visual C++ / MFC Forum 1 08-Nov-2007 23:47
reasons why malloc fails? prasath C Programming Language 2 05-Apr-2006 09:14
Child Thread fails to update Shared Memory Correctly j_kenpo CPP / C++ Forum 1 12-Jul-2005 17:06
CListCtrl problems - FindItem fails after Sort Items dotygr MS Visual C++ / MFC Forum 0 03-Mar-2005 14:23
Apache Make Fails beardo Apache Web Server Forum 6 09-Mar-2004 10:44

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 04:23.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.