Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / September 2004

Tip: Looking for answers? Try searching our database.

Unsatisfied forward declaration?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mervin Williams - 29 Sep 2004 17:30 GMT
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
Alexander Nickolov - 29 Sep 2004 18:48 GMT
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.

Signature

=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@mvps.org
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================

> 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:
[quoted text clipped - 66 lines]
>
> Mervin Williams
Mervin Williams - 29 Sep 2004 19:26 GMT
I am not a C++ programmer. The sdkevent.dll is already created. How do I
make it a dependency?

Mervin Williams

> Presumably sdkevent.dll is built for a previous project in your
> solution. Ensure you make that project a dependency for this
[quoted text clipped - 70 lines]
> >
> > Mervin Williams

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.