Click here to Skip to main content
15,913,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: adding menu item to right click context menu Pin
Naveen27-Aug-07 2:32
Naveen27-Aug-07 2:32 
QuestionDetecting response/acknowledgement timeout in Winsock Pin
__yash__27-Aug-07 1:09
professional__yash__27-Aug-07 1:09 
Answeruse CTime or clock_t Pin
chandu00427-Aug-07 1:41
chandu00427-Aug-07 1:41 
GeneralRe: use CTime or clock_t Pin
__yash__27-Aug-07 1:51
professional__yash__27-Aug-07 1:51 
AnswerRe: Detecting response/acknowledgement timeout in Winsock Pin
Cedric Moonen27-Aug-07 2:09
Cedric Moonen27-Aug-07 2:09 
GeneralRe: Detecting response/acknowledgement timeout in Winsock Pin
__yash__27-Aug-07 4:46
professional__yash__27-Aug-07 4:46 
AnswerRe: Detecting response/acknowledgement timeout in Winsock Pin
Naveen27-Aug-07 2:51
Naveen27-Aug-07 2:51 
Question2 Different idl files 2 different outputs Pin
sawerr27-Aug-07 0:44
sawerr27-Aug-07 0:44 
Hi I am learning com programming. I want to ask a question about output files in idl compilation.

When i compile this file. It only generates FileName_h.h and FileName_i.c files.
import "wtypes.idl";<br />
<br />
[<br />
    uuid(6F818C55-E6AD-488b-9EB6-511C0CCC0612),<br />
    version(1.0)<br />
]<br />
library LibCOMServer<br />
{<br />
    importlib("stdole32.tlb");<br />
    importlib("stdole.tlb"); <br />
<br />
    [ uuid(7F24AABF-C822-4c18-9432-21433208F4DC), <br />
      oleautomation <br />
    ]<br />
    interface ICOMServer : IUnknown<br />
    {<br />
        HRESULT Name([out] BSTR* objectname);<br />
    }<br />
<br />
<br />
    [ uuid(6AE24C34-1466-482e-9407-90B98798A712),<br />
      helpstring("COMServer object") <br />
    ]<br />
    coclass CoCOMServer<br />
    {<br />
        [default] interface ICOMServer;<br />
    }<br />
}


But when i compile this code. It generates FileName_h.h, FileName_i.c, DllData.c, FleName_p.c
import "oaidl.idl"; <br />
import "ocidl.idl"; <br />
<br />
[<br />
  object, <br />
  uuid(318B4AD0-06A7-11d3-9B58-0080C8E11F14), <br />
  helpstring("IVideo Interface"), <br />
  pointer_default(unique) <br />
] <br />
interface IVideo : IUnknown <br />
{<br />
  [helpstring("Obtain the signal value")] <br />
  HRESULT GetSignalValue([out, retval] long* val); <br />
}; <br />
<br />
[<br />
  object, <br />
  uuid(318B4AD1-06A7-11d3-9B58-0080C8E11F14), <br />
  helpstring("ISVideo Interface"), <br />
  pointer_default(unique) <br />
] <br />
interface ISVideo : IUnknown <br />
{<br />
  [helpstring("Obtain the S-Video signal value")] <br />
  HRESULT GetSVideoSignalValue([out, retval] long* val); <br />
}; <br />
[<br />
  uuid(318B4AD2-06A7-11d3-9B58-0080C8E11F14), <br />
  version(1.0), <br />
  helpstring("VCR Type Library") <br />
] <br />
library VcrLib <br />
{<br />
  importlib("stdole32.tlb"); <br />
  importlib("stdole2.tlb"); <br />
<br />
  [<br />
    uuid(318B4AD3-06A7-11d3-9B58-0080C8E11F14), <br />
    helpstring("VCR Class") <br />
  ] <br />
  coclass VCR <br />
  {<br />
    interface IVideo; <br />
    interface ISVideo; <br />
  }; <br />
<br />
}; 


I don't understand what the reason for this. What is absence in first idl files so the other files can't generated.

Thanks
AnswerRe: 2 Different idl files 2 different outputs Pin
KarstenK27-Aug-07 2:20
mveKarstenK27-Aug-07 2:20 
GeneralRe: 2 Different idl files 2 different outputs Pin
sawerr27-Aug-07 3:00
sawerr27-Aug-07 3:00 
GeneralRe: 2 Different idl files 2 different outputs Pin
KarstenK27-Aug-07 3:15
mveKarstenK27-Aug-07 3:15 
Questionbackground of picture static control Pin
vasu_sri26-Aug-07 23:41
vasu_sri26-Aug-07 23:41 
AnswerRe: background of picture static control Pin
Roger Broomfield27-Aug-07 0:26
Roger Broomfield27-Aug-07 0:26 
QuestionReading mrt.log file Pin
Manasi D26-Aug-07 21:26
Manasi D26-Aug-07 21:26 
AnswerRe: Reading mrt.log file Pin
Naveen26-Aug-07 21:48
Naveen26-Aug-07 21:48 
Questionfile path's Pin
Waldermort26-Aug-07 20:58
Waldermort26-Aug-07 20:58 
AnswerRe: file path's Pin
toxcct26-Aug-07 21:10
toxcct26-Aug-07 21:10 
GeneralRe: file path's Pin
Waldermort26-Aug-07 21:16
Waldermort26-Aug-07 21:16 
QuestionDiff b/w Copy constructor & Assignment operator Pin
prashant pissey26-Aug-07 20:49
prashant pissey26-Aug-07 20:49 
AnswerRe: Diff b/w Copy constructor & Assignment operator Pin
Hamid_RT26-Aug-07 21:00
Hamid_RT26-Aug-07 21:00 
AnswerRe: Diff b/w Copy constructor & Assignment operator Pin
toxcct26-Aug-07 21:18
toxcct26-Aug-07 21:18 
Questioncompilation of UTF-8 in visual cpp Pin
puneet_cha26-Aug-07 20:30
puneet_cha26-Aug-07 20:30 
AnswerRe: compilation of UTF-8 in visual cpp Pin
sGrabert26-Aug-07 22:48
sGrabert26-Aug-07 22:48 
AnswerRe: compilation of UTF-8 in visual cpp Pin
bob1697227-Aug-07 2:04
bob1697227-Aug-07 2:04 
QuestionRe: compilation of UTF-8 in visual cpp Pin
bob1697227-Aug-07 5:03
bob1697227-Aug-07 5:03 

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.