Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C++ Libraries / November 2003

Tip: Looking for answers? Try searching our database.

Using ATL server 7 for web services.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andy - 04 Nov 2003 16:10 GMT
I have an ATL 7 web service.  I need to call methods in an MFC extension
DLL.
I have wrapped the extension DLL with a 'normal' (_USERDLL) MFC dll and
linked my web service to the normal DLL.  There is code in the
InitInstance() of the MFC application in the 'normal' DLL which calls the
initialisation code of the extension DLL (so that MFC resources etc are
correctly located).

When I try to call the web service the LoadLibrary() is failing with the
error 1114 (ERROR_DLL_INIT_FAILED).

I am using Visual Studio project dependencies to link the various DLLs.
That is to say I have a solution with the ATL web service, a normal MFC dll
that has an instance of CWinApp and an MFC extension DLL that has and
exported initXXX method.  I have set the solution dependanies such that my
web service depends on the normal MFC dll and the normal MFC dll depends on
the extension DLL.

My questions are:

1) Is loading an MFC dll from a ATL server 7 web service dll a valid thing
to do?  If not, why not?

2) Assuming that the answer to 1) is 'yes', and the MFC dll that you load
needs to use an MFC extension DLL, are there any special considerations that
need to be taken into account when initialising either the MFC DLL or the
MFC extension dll?

3) Assuming the answer to 2) is 'no' - any other ideas why my web service
DLL fails to load?  If I remove the links to the MFC DLL's it loads and runs
just fine.

TIA

Andy
Andy - 13 Nov 2003 12:13 GMT
Sorry about that.
The "problem" was that my extension DLL was not on the path.
I had assumed that if the DLL was deployed in the virtual root that would be
enough, but no.

> I have an ATL 7 web service.  I need to call methods in an MFC extension
> DLL.
[quoted text clipped - 31 lines]
>
> Andy

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.