Click here to Skip to main content
15,921,959 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help me about Reading and writing files! Thanks! Pin
Brian Shifrin28-Mar-03 2:28
Brian Shifrin28-Mar-03 2:28 
GeneralRe: Help me about Reading and writing files! Thanks! Pin
dxhdxh30-Mar-03 3:49
dxhdxh30-Mar-03 3:49 
Questionhow to calculate maximum number of visible lines that could be displayed in a CRichEditCtrl, which doesn't have any scrolling property? Pin
vinothini28-Mar-03 0:44
vinothini28-Mar-03 0:44 
AnswerRe: how to calculate maximum number of visible lines that could be displayed in a CRichEditCtrl, which doesn't have any scrolling property? Pin
John R. Shaw28-Mar-03 16:55
John R. Shaw28-Mar-03 16:55 
GeneralRe: how to calculate maximum number of visible lines that could be displayed in a CRichEditCtrl, which doesn't have any scrolling property? Pin
vinothini2-Apr-03 0:33
vinothini2-Apr-03 0:33 
GeneralMIDL: Compilation Error Pin
Ahsan Abbas28-Mar-03 0:38
Ahsan Abbas28-Mar-03 0:38 
GeneralRe: MIDL: Compilation Error Pin
tomiczek28-Mar-03 0:54
tomiczek28-Mar-03 0:54 
GeneralRe: MIDL: Compilation Error Pin
Ahsan Abbas28-Mar-03 1:30
Ahsan Abbas28-Mar-03 1:30 
I have already done it the way you are saying. I tried to say the same thing in my question. I have imported the "MyInterface.idl" in "OtherInterface.idl". But when I import MyInterface.idl, MIDL compiler goes and compiles "MyInterface.idl" first. Now problem starts here, "MyInterface.idl" also uses "OtherInterface.idl".

Let me write the scenario in the form of code, this might be better understandable.
========================
Start of MyInterface.idl
========================
import "oaidl.idl";
import "OtherInterface.idl";

[
uuid(072C0C51-426B-1ED2-B2DF-0060085FAE21),
dual,
helpstring ("IMyInterface Interface"),
pointer_default (unique)
]
interface IMyInterface: IDispatch
{
[id(0), propget] HRESULT EventID
([out, retval] IOtherInterface** pvKey);
}
======================
End of MyInterface.idl
======================


===========================
Start of OtherInterface.idl
===========================
import "oaidl.idl";
import "MyInterface.idl";

[
uuid(073D0C21-466A-11D2-A2DF-0050485CFE7B),
dual,
helpstring ("IOtherInterface Interface"),
pointer_default (unique)
]
interface IOtherInterface: IDispatch
{
[id(0), propget] HRESULT EventID
([out, retval] IMyInterface** pipSeg);
}
=========================
End of OtherInterface.idl
=========================

Now, you people may know my problem, that both files are needing the other file. This has become a dead-lock. To compile any of the both files I will need to compile the imported file. I hope you understood. Now, can anyone help me out? :'(

Ahsan
GeneralRe: MIDL: Compilation Error Pin
Brian Shifrin28-Mar-03 2:32
Brian Shifrin28-Mar-03 2:32 
GeneralRe: MIDL: Compilation Error Pin
Ahsan Abbas30-Mar-03 20:42
Ahsan Abbas30-Mar-03 20:42 
QuestionHow to hide a popup menu? Pin
The.Saint27-Mar-03 23:33
The.Saint27-Mar-03 23:33 
AnswerRe: How to hide a popup menu? Pin
Iain Clarke, Warrior Programmer28-Mar-03 0:42
Iain Clarke, Warrior Programmer28-Mar-03 0:42 
Generala Function call itself Pin
wow999927-Mar-03 23:14
wow999927-Mar-03 23:14 
GeneralRe: a Function call itself Pin
RChin27-Mar-03 23:26
RChin27-Mar-03 23:26 
GeneralVisual Studio .NET build scripts Pin
Jörgen Sigvardsson27-Mar-03 23:01
Jörgen Sigvardsson27-Mar-03 23:01 
GeneralRe: Visual Studio .NET build scripts Pin
Roger Allen28-Mar-03 0:37
Roger Allen28-Mar-03 0:37 
GeneralRe: Visual Studio .NET build scripts Pin
Jörgen Sigvardsson28-Mar-03 0:47
Jörgen Sigvardsson28-Mar-03 0:47 
GeneralCListCtrl improving Pin
JensB27-Mar-03 22:56
JensB27-Mar-03 22:56 
GeneralRe: CListCtrl improving Pin
tomiczek28-Mar-03 0:34
tomiczek28-Mar-03 0:34 
GeneralRe: CListCtrl improving Pin
JensB28-Mar-03 1:19
JensB28-Mar-03 1:19 
GeneralRe: CListCtrl improving Pin
Alin Negru28-Mar-03 1:35
Alin Negru28-Mar-03 1:35 
GeneralRe: CListCtrl improving Pin
JensB28-Mar-03 1:57
JensB28-Mar-03 1:57 
GeneralRe: CListCtrl improving Pin
tomiczek28-Mar-03 2:56
tomiczek28-Mar-03 2:56 
GeneralRe: CListCtrl improving Pin
sulaxan28-Mar-03 1:56
sulaxan28-Mar-03 1:56 
GeneralRe: CListCtrl improving Pin
JensB28-Mar-03 2:00
JensB28-Mar-03 2:00 

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.