Проблемче с vc++ .net

2 отговора 151 прегледа
#1

Проблемче с vc++ .net

Имам MFC проект, който си линква библиотеките статично. Да, ама като се опитам да го подкарам под гола 95-ца, казва,че не може да отвори "oleacc.dll", дори въпросния .dll да е там.
Някой сеща ли се за причината?

Я вышел им наперерез!
Отговор
в отговор на Resurrector #2

Re: Проблемче с vc++ .net

Supporting Windows 95 with MFC 7 (Visual Studio .NET) apps
Problem: When you run an MFC7/Visual C++ application compiled with Visual Studio .NET on Windows 95, you get the error stating that "OLEACC.DLL" can't be found (or a similar message for another DLL, such as "SHELL32.DLL").

Solution: Use Delay-Loading to link with OLEACC.DLL. The Delay Loading feature has been available since Visual Studio 6.0. It allows you to accomplish the same as using LoadLibrary and GetProcAddress to load a DLL only when it is needed instead of statically linking to it.

In Visual Studio .NET, go to the Solution Explorer window. View your project settings. Go to the Linker -> Input -> Delay Loaded DLLs settings. Add OLEACC.DLL to the list. You also need to link with DelayImp.lib for a "helper function" that enables Delay Loading:


// After specifying to delay-load OLEACC.DLL, add this
// in any of your main source files, e.g. MainDlg.cpp:
#pragma comment(lib, "DelayImp.lib")

See the topic "delayed loading of DLLs, linker support" in MSDN for more information.

Отговор
в отговор на code_grinder #3

Re: Проблемче с vc++ .net

Мерси, бачка.

Я вышел им наперерез!
Отговор