Click here to Skip to main content
15,893,190 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionOne dought Pin
Deepu Antony27-Apr-09 2:38
Deepu Antony27-Apr-09 2:38 
AnswerRe: One dought Pin
CPallini27-Apr-09 2:51
mveCPallini27-Apr-09 2:51 
GeneralRe: One dought Pin
Deepu Antony27-Apr-09 3:00
Deepu Antony27-Apr-09 3:00 
GeneralRe: One dought Pin
CPallini27-Apr-09 3:04
mveCPallini27-Apr-09 3:04 
GeneralRe: One dought Pin
Deepu Antony27-Apr-09 3:06
Deepu Antony27-Apr-09 3:06 
QuestionWhat if I write Interface defination inside a library block. Pin
pandit8426-Apr-09 23:53
pandit8426-Apr-09 23:53 
AnswerRe: What if I write Interface defination inside a library block. Pin
Stephen Hewitt27-Apr-09 0:14
Stephen Hewitt27-Apr-09 0:14 
AnswerRe: What if I write Interface defination inside a library block. Pin
Stuart Dootson27-Apr-09 0:34
professionalStuart Dootson27-Apr-09 0:34 
pandit84 wrote:
#import(..\..\..\MSADO15.dll);


You're expecting #import to work in an IDL file? Don't think so - I think you want import "MSADO15.idl";

pandit84 wrote:
But i need to do #import inside a library block
(This is required for passing an argumnet to fun(RecordSetPtr *ptr) )


Really? This IDL seems to compile and build fine, even though the itnerface is outside the library declaration:

import "oaidl.idl";
import "ocidl.idl";

import "MSADO15.idl"; /* Use this to refer to MSADO */

[
	object,
	uuid(7CD26371-4A6B-4234-A024-6690A53CA450),
	nonextensible,
	helpstring("Itest Interface"),
	pointer_default(unique)
]
interface Itest : IUnknown
{
   HRESULT GetCount([in]_Recordset* rs, [out]int* num);
};
[
	uuid(D39DD965-FC96-4C0A-AA62-CA3F5F117685),
	version(1.0),
	helpstring("cccc 1.0 Type Library")
]
library ccccLib
{
	importlib("stdole2.tlb");
	[
		uuid(F8AAE058-76E9-4F2C-995A-FB5B6565CED6),
		helpstring("test Class")
	]
	coclass test
	{
		[default] interface Itest;
	};
};


A quick test indicates that putting the interface definition inside the library definition makes little to no difference to the generated code.

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

QuestionOXCaptionPainter error message that, 'CPushRoutingFrame' : 'class' type redefinition Pin
NamitaS26-Apr-09 23:53
NamitaS26-Apr-09 23:53 
AnswerRe: OXCaptionPainter error message that, 'CPushRoutingFrame' : 'class' type redefinition Pin
Cedric Moonen27-Apr-09 0:03
Cedric Moonen27-Apr-09 0:03 
GeneralRe: OXCaptionPainter error message that, 'CPushRoutingFrame' : 'class' type redefinition Pin
NamitaS27-Apr-09 1:42
NamitaS27-Apr-09 1:42 
GeneralRe: OXCaptionPainter error message that, 'CPushRoutingFrame' : 'class' type redefinition Pin
Cedric Moonen27-Apr-09 1:57
Cedric Moonen27-Apr-09 1:57 
GeneralRe: OXCaptionPainter error message that, 'CPushRoutingFrame' : 'class' type redefinition Pin
NamitaS27-Apr-09 2:12
NamitaS27-Apr-09 2:12 
GeneralRe: OXCaptionPainter error message that, 'CPushRoutingFrame' : 'class' type redefinition Pin
Cedric Moonen27-Apr-09 2:33
Cedric Moonen27-Apr-09 2:33 
AnswerRe: OXCaptionPainter error message that, 'CPushRoutingFrame' : 'class' type redefinition Pin
NamitaS27-Apr-09 3:02
NamitaS27-Apr-09 3:02 
QuestionInstall ActiveX in non admin Pin
p_196026-Apr-09 22:18
p_196026-Apr-09 22:18 
AnswerCross Posted Pin
led mike27-Apr-09 4:36
led mike27-Apr-09 4:36 
Questionhow to get gps value Pin
yunpil26-Apr-09 21:07
yunpil26-Apr-09 21:07 
AnswerRe: how to get gps value Pin
ThatsAlok26-Apr-09 21:16
ThatsAlok26-Apr-09 21:16 
AnswerRe: how to get gps value Pin
CPallini26-Apr-09 21:44
mveCPallini26-Apr-09 21:44 
GeneralRe: how to get gps value Pin
Hamid_RT27-Apr-09 4:31
Hamid_RT27-Apr-09 4:31 
GeneralRe: how to get gps value Pin
CPallini27-Apr-09 7:18
mveCPallini27-Apr-09 7:18 
GeneralRe: how to get gps value Pin
Hamid_RT27-Apr-09 8:36
Hamid_RT27-Apr-09 8:36 
AnswerRe: how to get gps value Pin
Rajesh R Subramanian26-Apr-09 22:14
professionalRajesh R Subramanian26-Apr-09 22:14 
QuestionCOleDateTime problem Pin
Davitor26-Apr-09 20:08
Davitor26-Apr-09 20:08 

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.