Re: error RC2135 : file not found: filename.tlb



On Oct 31, 8:56 pm, Anonymous <no.re...@xxxxxxxx> wrote:
I am having trouble compiling an ATL library.

I get the above error, BUT the typelib file named in the error IS there.
I have also checked the following (in the Properties Dialog Page:

1). Under the 'Resources' option - the resource file name is correctly
specified, using macros (the error is generated when compiling a
generated .rc file)

2). The Resources->'Additional Include Directories' is left blank, since
the full pathname is given. Even when I change to add the folder taht
contains the .tlb file, it has n o effect.

3). under the MIDL option. the type library to be generated is
correctely specified (and IT IS generated) - so I don't know why I'm
getting this error.

I ahve been stuck with this problem since yesterday, and despite sending
several hours visiting MS website, Googling for any related articles,
have not found anything of much use. Can anyone who has encountered this
problem please shed some light on how I can fix this problem?

I recently had this problem while creating new configurations for a
project. I could see the tlb file that was generated, but it didn't
seem to be there whenever the resource compiler ran. I eventually
solved the problem by deleting the configuration and recreating it,
copying it from the working configuration.

Here's what my problem was, or so I noticed.

Under the Resources tree (which is under Configuration Properties),
click "General" and make sure that for Additional Include Directories,
you've specified "$(IntDir)" for additional include directories. This
should not be blank. And we're specifying the intermediate directory
because that's where the generated type library will go during
compilation.
.



Relevant Pages

  • Re: Strange device init
    ... >>The device doesn't get its resources configured properly. ... On other laptops the configuration is done via ... Finally have you checked if PnPBIOS detects the device? ... _PRS and _CRS at least returns the proper resources that should be used. ...
    (Linux-Kernel)
  • Re: Abolute path of argv[0]
    ... There is no good reason to do ... | It -seems- like all configuration files live in etc for a system so ... do correct me if I'm wrong as I'm a Linux Noob ... resources outside the actual executable file itself. ...
    (comp.os.linux.development.apps)
  • Re: code 10
    ... with Crystal WDM, so that puts me at a dead end. ... Click "Set configuration manually". ... sure there are no conflicts reported in the "Conflicting device list". ... When I do that I get error 'You cannot modify the resources in this config. ...
    (microsoft.public.windowsxp.music)
  • Re: Localization - Dialog resource fails to load
    ... resources configuration. ... For all the languages, but german, everything works good. ... The DLL seems to build OK ... >>> This project also has a different build configuration for each language. ...
    (microsoft.public.vc.mfc)
  • Re: MICA modems allocation on AS5300
    ... You can do this by specifying different 'dialer-group' on respective ... Technologies Configuration Guide" in IOS documentation set. ...
    (comp.dcom.sys.cisco)