Re: Unsatisfied forward declaration?

From: Alexander Nickolov (agnickolov_at_mvps.org)
Date: 09/29/04


Date: Wed, 29 Sep 2004 10:48:36 -0700

Presumably sdkevent.dll is built for a previous project in your
solution. Ensure you make that project a dependency for this
project, so the DLL (its output) is already built.

-- 
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@mvps.org
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"Mervin Williams" <mwilliams@innovasolutions.net> wrote in message 
news:%23VtzWFkpEHA.556@TK2MSFTNGP09.phx.gbl...
> If I BUILD the code below, all works fine.  But if I REBUILD the solution
> at any time, the following errors are found in the WrapperCOMEXE.idl:
>
>        1) error MIDL2337 : unsatisfied forward declaration :
> IQBEventCallBack
>            [Coclass 'MyWrapper' ] --> This error occurs within the
> MyWrapper Coclass
>            definition at the line that reads: "[default] interface
> IQBEventCallBack;"
>
>        2) warning MIDL2015 : failed to load tlb in importlib: :
> sdkevent.dll -->
>            This warning occurs in the importlib statement that reads:
>            "importlib("sdkevent.dll");".
>
> Here's the WrapperCOMEXE.idl code:
>
> // EventWrapperCOMEXE.idl : IDL source for EventWrapperCOMEXE
>
> //
>
> // This file will be processed by the MIDL tool to
>
> // produce the type library (EventWrapperCOMEXE.tlb) and marshalling code.
>
> import "oaidl.idl";
>
> import "ocidl.idl";
>
> [
>
> uuid(EFA60AF9-9F1E-4F2F-9AE2-1DFDCF7721F5),
>
> version(1.0),
>
> helpstring("EventWrapperCOMEXE 1.0 Type Library")
>
> ]
>
> library EventWrapperCOMEXELib
>
> {
>
> importlib("stdole32.tlb");
>
> importlib("stdole2.tlb");
>
> importlib("sdkevent.dll");
>
> [
>
> uuid(3892EADE-FB47-4C18-B296-F91035CE95BF),
>
> helpstring("EventWrapperCOM Class")
>
> ]
>
> coclass EventWrapperCOM
>
> {
>
> [default] interface IEventWrapperCOM;
>
> };
>
> };
>
> Please help!
>
> Mervin Williams
>
>
> 


Relevant Pages

  • Re: Unsatisfied forward declaration?
    ... Presumably sdkevent.dll is built for a previous project in your ... > MyWrapper Coclass ... > IQBEventCallBack;" ... > // EventWrapperCOMEXE.idl: IDL source for EventWrapperCOMEXE ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Unsatisfied forward declaration?
    ... Presumably sdkevent.dll is built for a previous project in your ... > MyWrapper Coclass ... > IQBEventCallBack;" ... > // EventWrapperCOMEXE.idl: IDL source for EventWrapperCOMEXE ...
    (microsoft.public.vc.language)
  • Re: Unsatisfied forward declaration?
    ... Presumably sdkevent.dll is built for a previous project in your ... > MyWrapper Coclass ... > IQBEventCallBack;" ... > // EventWrapperCOMEXE.idl: IDL source for EventWrapperCOMEXE ...
    (microsoft.public.vc.atl)
  • Re: Unsatisfied forward declaration?
    ... Presumably sdkevent.dll is built for a previous project in your ... > MyWrapper Coclass ... > IQBEventCallBack;" ... > // EventWrapperCOMEXE.idl: IDL source for EventWrapperCOMEXE ...
    (microsoft.public.vc.ide_general)
  • Re: Unsatisfied forward declaration?
    ... Presumably sdkevent.dll is built for a previous project in your ... > MyWrapper Coclass ... > IQBEventCallBack;" ... > // EventWrapperCOMEXE.idl: IDL source for EventWrapperCOMEXE ...
    (microsoft.public.vstudio.development)