Click here to Skip to main content
15,921,989 members
Home / Discussions / COM
   

COM

 
GeneralDirect Music Pin
Mad Docs Hairy Belly11-Jul-03 10:11
Mad Docs Hairy Belly11-Jul-03 10:11 
GeneralRe: Direct Music Pin
Hadi Rezaee12-Jul-03 10:57
Hadi Rezaee12-Jul-03 10:57 
GeneralUninstalling a COM component/server Pin
Anonymous11-Jul-03 8:18
Anonymous11-Jul-03 8:18 
GeneralRe: Uninstalling a COM component/server Pin
valikac12-Jul-03 5:05
valikac12-Jul-03 5:05 
GeneralRe: Uninstalling a COM component/server Pin
Anonymous12-Jul-03 13:07
Anonymous12-Jul-03 13:07 
QuestionHOW TO IMPORT A TAB DELIMITED TEXT FILE INTO AN ACCESS DATABSE PROGRAMMATICALLY? Pin
vcseeker9-Jul-03 23:13
vcseeker9-Jul-03 23:13 
AnswerRe: HOW TO IMPORT A TAB DELIMITED TEXT FILE INTO AN ACCESS DATABSE PROGRAMMATICALLY? Pin
Mil1013-Jul-03 18:28
Mil1013-Jul-03 18:28 
GeneralCOM/ATL trying to write a new interface, getting error base class undefined Pin
yoshibebe9-Jul-03 8:19
yoshibebe9-Jul-03 8:19 
I've been trying to add a new interface to my application, and for some reason, I keep getting the following error:

C2504: IWWAlmDBAck : base class undefined

I defined a new interface in an IDL file, and IWWAlmDBAck is using IUnknown.

I declare the interface in a header file, underneath a class called CWWAlmDBPrg, declaring it as public IWWAlmDBAck.

The error is pointing to the header file, saying that the base class is undefined. However, there are old interfaces defined under CWWAlmDBPrg, and no errors generated from that. Why is it when I add a new one, the error occur?

Below is my header code:

This is where I got the error, at IWWAlmDBACK

class CWWAlmDBPrg :
public IWWAlmDBConnection,
public IWWAlmDBInfo,
public IWWAlmDBTable,
public IWWAlmDBProviderSession,
public IWWAlmDBQuery,
public IWWAlmDBDetailed,
public IWWAlmDBConsolidated,
public IWWAlmDBCause,
public IWWAlmDBComment,
public IWWAlmDBDefaultQuery,
public IWWAlmDBTagStatus,
public IWWAlmDBEvents,
public IWWAlmDBErrorInfo,

//New Interface:
public IWWAlmDBACK,



public CComObjectRoot,
public CComCoClass<cwwalmdbprg,&clsid_wwalmdbprg>
{
public:
CWWAlmDBPrg()


Below is code from my IDL:

This is where I defined the interface IWWAlmDBACK:

//New
[
object,
uuid(2D65B748-6B53-45e5-A201-74D072F39045),
helpstring("IWWAlmDBACK Interface"),
pointer_default(unique)
]
interface IWWAlmDBACK : IUnknown
{
[helpstring("method LogAlmAckConsolidated")] HRESULT LogAlmAckConsolidated([in] int AlarmId,[in,string] wchar_t* AckTime,[in] int AckTimeFracSec,[in] int AckTimeZoneOffset,[in] int AckDaylightAdjustment,[in] int OutstandingAcks,[in] int AckCommentId, [in,string] wchar_t* AckOperatorName,[in,string] wchar_t* AckNodeName, [in] double User1, [in] double User2, [in,string]wchar_t* User3, [in] long Cookie);
};
//End New

I generated the uuid using guidgen.exe


I defined the interface in coclass:

coclass WWAlmDBPrg
{
[default] interface IWWAlmDBConnection;
interface IWWAlmDBInfo;
interface IWWAlmDBTable;
interface IWWAlmDBProviderSession;
interface IWWAlmDBQuery;
interface IWWAlmDBDetailed;
interface IWWAlmDBConsolidated;
interface IWWAlmDBCause;
interface IWWAlmDBComment;
interface IWWAlmDBDefaultQuery;
interface IWWAlmDBTagStatus;
interface IWWAlmDBEvents;
interface IWWAlmDBErrorInfo;

//New
interface IWWAlmDBACK;

};

Thank you!
GeneralRe: COM/ATL trying to write a new interface, getting error base class undefined Pin
Heath Stewart10-Jul-03 3:56
protectorHeath Stewart10-Jul-03 3:56 
GeneralAccessing images trough IHTMLDocument2 Pin
SysLo7-Jul-03 22:36
SysLo7-Jul-03 22:36 
GeneralRe: Accessing images trough IHTMLDocument2 Pin
Heath Stewart10-Jul-03 4:06
protectorHeath Stewart10-Jul-03 4:06 
GeneralRe: Accessing images trough IHTMLDocument2 Pin
SysLo13-Jul-03 21:32
SysLo13-Jul-03 21:32 
GeneralRe: Accessing images trough IHTMLDocument2 Pin
Heath Stewart14-Jul-03 1:53
protectorHeath Stewart14-Jul-03 1:53 
GeneralRe: Accessing images trough IHTMLDocument2 Pin
SysLo15-Jul-03 1:34
SysLo15-Jul-03 1:34 
GeneralNot detecting interfaces Pin
satishsilla7-Jul-03 17:29
satishsilla7-Jul-03 17:29 
Generalin-proc ==&gt;&gt; Out-of-proc Pin
In-At7-Jul-03 0:44
In-At7-Jul-03 0:44 
GeneralRe: in-proc ==&gt;&gt; Out-of-proc Pin
Vi210-Jul-03 3:09
Vi210-Jul-03 3:09 
GeneralRe: in-proc ==&gt;&gt; Out-of-proc Pin
In-At14-Jul-03 20:01
In-At14-Jul-03 20:01 
GeneralRe: in-proc ==>> Out-of-proc Pin
Vi215-Jul-03 2:29
Vi215-Jul-03 2:29 
GeneralRe: in-proc ==&gt;&gt; Out-of-proc Pin
In-At15-Jul-03 2:42
In-At15-Jul-03 2:42 
GeneralSpeed of COM Pin
Jo Fredrickson6-Jul-03 21:02
Jo Fredrickson6-Jul-03 21:02 
GeneralRe: Speed of COM Pin
In-At6-Jul-03 23:30
In-At6-Jul-03 23:30 
GeneralRe: Speed of COM Pin
In-At6-Jul-03 23:58
In-At6-Jul-03 23:58 
GeneralRe: Speed of COM Pin
Jo Fredrickson7-Jul-03 16:03
Jo Fredrickson7-Jul-03 16:03 
GeneralRe: Speed of COM Pin
In-At7-Jul-03 19:59
In-At7-Jul-03 19:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.