#import & PATH
От: pivoo Россия  
Дата: 12.09.06 06:10
Оценка:
Пытаюсь имортировать dll
#import <mydll.dll> no_namespace

если dll находится в system32, то все хорошо
а если она находится в другой директории, прописаной в PATH,
то выдается ошибка компиляции

fatal error C1083: Cannot open type library file: 'mydll.dll': No such file or directory


хотя в MSDN написано про #import:

Angle-bracket form
Instructs the preprocessor to search for type library files along the following paths:

The PATH environment variable path list

The LIB environment variable path list

The path specified by the /I (additional include directories) compiler option, except it the compiler is searching for a type library that was referenced from another type library with the no_registry attribute



MSVC 6.0
Re: #import & PATH
От: pivoo Россия  
Дата: 12.09.06 08:15
Оценка:
Здравствуйте, pivoo, Вы писали:

P>Пытаюсь имортировать dll

P>#import <mydll.dll> no_namespace

P>если dll находится в system32, то все хорошо

P>а если она находится в другой директории, прописаной в PATH,
P>то выдается ошибка компиляции
P>

P>fatal error C1083: Cannot open type library file: 'mydll.dll': No such file or directory


P>хотя в MSDN написано про #import:

P>

P>Angle-bracket form
P> Instructs the preprocessor to search for type library files along the following paths:

P>The PATH environment variable path list

P>The LIB environment variable path list

P>The path specified by the /I (additional include directories) compiler option, except it the compiler is searching for a type library that was referenced from another type library with the no_registry attribute



P>MSVC 6.0


видимо, то что написано в MSDN верно только для VC 2005
там работает, в VC 7.1 тоже не работает
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.