473,587 Members | 2,291 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unsatisfied forward declaration?

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.i dl:

1) error MIDL2337 : unsatisfied forward declaration :
IQBEventCallBac k
[Coclass 'MyWrapper' ] --> This error occurs within the
MyWrapper Coclass
definition at the line that reads: "[default] interface
IQBEventCallBac k;"

2) warning MIDL2015 : failed to load tlb in importlib: :
sdkevent.dll -->
This warning occurs in the importlib statement that reads:
"importlib("sdk event.dll");".

Here's the WrapperCOMEXE.i dl code:

// EventWrapperCOM EXE.idl : IDL source for EventWrapperCOM EXE

//

// This file will be processed by the MIDL tool to

// produce the type library (EventWrapperCO MEXE.tlb) and marshalling code.

import "oaidl.idl" ;

import "ocidl.idl" ;

[

uuid(EFA60AF9-9F1E-4F2F-9AE2-1DFDCF7721F5),

version(1.0),

helpstring("Eve ntWrapperCOMEXE 1.0 Type Library")

]

library EventWrapperCOM EXELib

{

importlib("stdo le32.tlb");

importlib("stdo le2.tlb");

importlib("sdke vent.dll");

[

uuid(3892EADE-FB47-4C18-B296-F91035CE95BF),

helpstring("Eve ntWrapperCOM Class")

]

coclass EventWrapperCOM

{

[default] interface IEventWrapperCO M;

};

};

Please help!

Mervin Williams

Nov 17 '05 #1
2 6219
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: ag********@mvps .org
MVP VC FAQ: http://www.mvps.org/vcfaq
=============== =============== =======

"Mervin Williams" <mw*******@inno vasolutions.net > wrote in message
news:%2******** *******@TK2MSFT NGP09.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.i dl:

1) error MIDL2337 : unsatisfied forward declaration :
IQBEventCallBac k
[Coclass 'MyWrapper' ] --> This error occurs within the
MyWrapper Coclass
definition at the line that reads: "[default] interface
IQBEventCallBac k;"

2) warning MIDL2015 : failed to load tlb in importlib: :
sdkevent.dll -->
This warning occurs in the importlib statement that reads:
"importlib("sdk event.dll");".

Here's the WrapperCOMEXE.i dl code:

// EventWrapperCOM EXE.idl : IDL source for EventWrapperCOM EXE

//

// This file will be processed by the MIDL tool to

// produce the type library (EventWrapperCO MEXE.tlb) and marshalling code.

import "oaidl.idl" ;

import "ocidl.idl" ;

[

uuid(EFA60AF9-9F1E-4F2F-9AE2-1DFDCF7721F5),

version(1.0),

helpstring("Eve ntWrapperCOMEXE 1.0 Type Library")

]

library EventWrapperCOM EXELib

{

importlib("stdo le32.tlb");

importlib("stdo le2.tlb");

importlib("sdke vent.dll");

[

uuid(3892EADE-FB47-4C18-B296-F91035CE95BF),

helpstring("Eve ntWrapperCOM Class")

]

coclass EventWrapperCOM

{

[default] interface IEventWrapperCO M;

};

};

Please help!

Mervin Williams

Nov 17 '05 #2
I am not a C++ programmer. The sdkevent.dll is already created. How do I
make it a dependency?

Mervin Williams

"Alexander Nickolov" <ag********@mvp s.org> wrote in message
news:ud******** ******@tk2msftn gp13.phx.gbl...
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: ag********@mvps .org
MVP VC FAQ: http://www.mvps.org/vcfaq
=============== =============== =======

"Mervin Williams" <mw*******@inno vasolutions.net > wrote in message
news:%2******** *******@TK2MSFT NGP09.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.i dl:

1) error MIDL2337 : unsatisfied forward declaration :
IQBEventCallBac k
[Coclass 'MyWrapper' ] --> This error occurs within the
MyWrapper Coclass
definition at the line that reads: "[default] interface
IQBEventCallBac k;"

2) warning MIDL2015 : failed to load tlb in importlib: :
sdkevent.dll -->
This warning occurs in the importlib statement that reads:
"importlib("sdk event.dll");".

Here's the WrapperCOMEXE.i dl code:

// EventWrapperCOM EXE.idl : IDL source for EventWrapperCOM EXE

//

// This file will be processed by the MIDL tool to

// produce the type library (EventWrapperCO MEXE.tlb) and marshalling code.
import "oaidl.idl" ;

import "ocidl.idl" ;

[

uuid(EFA60AF9-9F1E-4F2F-9AE2-1DFDCF7721F5),

version(1.0),

helpstring("Eve ntWrapperCOMEXE 1.0 Type Library")

]

library EventWrapperCOM EXELib

{

importlib("stdo le32.tlb");

importlib("stdo le2.tlb");

importlib("sdke vent.dll");

[

uuid(3892EADE-FB47-4C18-B296-F91035CE95BF),

helpstring("Eve ntWrapperCOM Class")

]

coclass EventWrapperCOM

{

[default] interface IEventWrapperCO M;

};

};

Please help!

Mervin Williams


Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
5457
by: mjm | last post by:
Folks, Please help me with the following problems: ******************************************** 1. I have a class template template<class Base> class Matrix : public Base { /* .... */ }
6
5196
by: Steven T. Hatton | last post by:
Should I be able to forward declare something from a namespace different from the current one? For example the following code compiles: //testdriver.hpp #ifndef TESTDRIVER_HPP #define TESTDRIVER_HPP #include <ostream> namespace ns_testdriver{ using std::ostream;
2
4498
by: Plok Plokowitsch | last post by:
After over a decade of programming in C++ I seem to have missed some substantial point (mental note: am I getting too old for this?). A little bit of help would be *very* appreciated. I'm trying to gather various different classes into a common namespace using typedefs: class QWidget {}; class MyListview {}; namespace gui
3
20592
by: Michael Sgier | last post by:
Hello with the original code below I get the error: "forward declaration of `struct CPlayer'" class CPlayer; // what does this do? Instantiate the class CPlayer? // what's a forward declaration? class CEnemy : public CEntity { public:
23
3831
by: mark.moore | last post by:
I know this has been asked before, but I just can't find the answer in the sea of hits... How do you forward declare a class that is *not* paramaterized, but is based on a template class? Here's what I thought should work, but apparently doesn't: class Foo; void f1(Foo* p)
3
7712
by: ÂËÉ«¾µ | last post by:
in my idl file, i define a user-define data type as bollow: typedef struct RasterFileHeader { DWORD dwVersion; LONG nDataOffset; LONG nBandCount; LONG nWidth; LONG nHeight; enum PixelDataTypeEnum ePDType; // it's a enum type import from another tlb by importlib(...)
6
8609
by: Hunk | last post by:
Hi I have a question on usage of forward declarations of templates. While searching through this group , people suggested using forward declarations and typedefs for templates as // in myfile.h template<typename T,typename R> class some_class;
4
5358
by: Steve | last post by:
Hi, I always though to return an instance of a class by value, it had to be defined - i.e. forward declaration isn't good enough? Consider the following code snippet: class RGBA; class Colour
7
5066
by: RedLars | last post by:
Need some help with a couple of questions. Previously I have seen this declaration; struct Student { int age; char name; }; and this definition of an object; struct Student stud;
0
7915
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8205
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7967
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6619
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5712
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5392
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3840
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2347
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.