Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

1,318 views
Skip to first unread message

Anton Raath

unread,
Dec 30, 2002, 9:04:12 AM12/30/02
to
Hi All,

I am having problems trying to use msxml4.dll.

I have downloaded msxml.msi from microsoft and installed it, registered
msxml4.dll but when I create a Win32 Console App and add the following lines

#include <stdio.h>
#import <msxml4.dll>
using namespace MSXML2;

int main(int argc, char* argv[])
{
return 0;
}

I get the error

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

I did have the same problem on the laptop but when I installed msxml.msi it
worked OK. This problem remains on the desktop though.

Can anyone help ??


Luke Zhang [MS]

unread,
Dec 31, 2002, 2:26:35 AM12/31/02
to
Have you tried to specify the full path for the MSXML4.DLL? For example:

#import "c:\program files\MSXML\MSXML4.DLL"


Luke

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Anton Raath

unread,
Dec 31, 2002, 7:19:46 AM12/31/02
to
Cheers

#import "c:\program files\WINDOWS\System32\msxml4.dll" works.

Why doesn't

#import <msxml4.dll>

work then Luke ??

"Luke Zhang [MS]" <luke...@online.microsoft.com> wrote in message
news:2JHDY3JsCHA.896@cpmsftngxa09...

Roger Willcocks

unread,
Jan 1, 2003, 3:58:23 AM1/1/03
to
msxml4.dll is not in any of the 'PATH' envrinoment settings
the local directory, or the windows/system directory
so you need to specify the full path.

"Anton Raath" <ra....@amsler.com> wrote in message
news:unidLbMsCHA.868@TK2MSFTNGP12...

Luke Zhang [MS]

unread,
Jan 2, 2003, 7:13:42 AM1/2/03
to
With #import <msxml4.dll>, the compile will try to find the file msxml4.dll
in current folder, not its real folder.
0 new messages