Click here to Skip to main content
15,892,674 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: mutual connection class Pin
Cedric Moonen7-Oct-07 21:16
Cedric Moonen7-Oct-07 21:16 
GeneralRe: mutual connection class Pin
JesusLeFou1327-Oct-07 21:58
JesusLeFou1327-Oct-07 21:58 
QuestionHow to add a page in the mouse of the control panel ? Pin
nike_zzyun7-Oct-07 20:38
nike_zzyun7-Oct-07 20:38 
AnswerRe: How to add a page in the mouse of the control panel ? Pin
Hamid_RT7-Oct-07 21:21
Hamid_RT7-Oct-07 21:21 
GeneralRe: How to add a page in the mouse of the control panel ? Pin
nike_zzyun7-Oct-07 21:40
nike_zzyun7-Oct-07 21:40 
QuestionErrors about #import. Help me. Pin
kcynic7-Oct-07 17:46
kcynic7-Oct-07 17:46 
AnswerRe: Errors about #import. Help me. Pin
ShilpiP7-Oct-07 22:42
ShilpiP7-Oct-07 22:42 
GeneralRe: Errors about #import. Help me. Pin
kcynic7-Oct-07 23:20
kcynic7-Oct-07 23:20 
of course.but the whole code is too long,i would paste a snip of it.
Because these days,I am test iTunes libaray.Here,"iTunes.exe" is valiable everywhere,such as apple.com,its lastest version is 7.3.2.4 on that web site.I use 6.0.0.18
I use such code to import the COM of iTunes:

#import "iTunes.exe"
..
..
//in .tlh file:
//error code here<br />
 //<br />
    // Wrapper methods for error-handling<br />
    //<br />
<br />
    ITSourceKind GetKind ( );<br />
    double GetCapacity ( );<br />
    double GetFreeSpace ( );//error here<br />
    IITPlaylistCollectionPtr GetPlaylists ( );


in .tli file:
//error here<br />
inline double IITSource::GetFreeSpace ( ) {//error<br />
    double _result = 0;<br />
    HRESULT _hr = get_FreeSpace(&_result);<br />
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));<br />
    return _result;<br />
}


And if delete the error statement,no errors.
If there is no errors,I also want to know how to use the new file.
Thank you very much.

GOOD LUCK.
QuestionHow to locate Application Folder in MFC? Pin
TooShy2Talk7-Oct-07 16:56
TooShy2Talk7-Oct-07 16:56 
AnswerRe: How to locate Application Folder in MFC? Pin
Roger Broomfield7-Oct-07 19:15
Roger Broomfield7-Oct-07 19:15 
QuestionSetting item / row height in CListCtrl Pin
s196675m7-Oct-07 16:34
s196675m7-Oct-07 16:34 
AnswerRe: Setting item / row height in CListCtrl Pin
Naveen7-Oct-07 20:17
Naveen7-Oct-07 20:17 
Questionconvert twips to pixels? Pin
littleGreenDude7-Oct-07 15:07
littleGreenDude7-Oct-07 15:07 
AnswerRe: convert twips to pixels? Pin
Mark Salsbery7-Oct-07 15:38
Mark Salsbery7-Oct-07 15:38 
GeneralRe: convert twips to pixels? Pin
littleGreenDude9-Oct-07 4:32
littleGreenDude9-Oct-07 4:32 
GeneralRe: convert twips to pixels? Pin
littleGreenDude9-Oct-07 4:38
littleGreenDude9-Oct-07 4:38 
GeneralRe: convert twips to pixels? Pin
Mark Salsbery9-Oct-07 5:52
Mark Salsbery9-Oct-07 5:52 
QuestionSimple %s issue help Pin
monsieur_jj7-Oct-07 15:07
monsieur_jj7-Oct-07 15:07 
AnswerRe: Simple %s issue help Pin
Mark Salsbery7-Oct-07 15:30
Mark Salsbery7-Oct-07 15:30 
GeneralRe: Simple %s issue help Pin
monsieur_jj7-Oct-07 17:07
monsieur_jj7-Oct-07 17:07 
GeneralRe: Simple %s issue help [modified] Pin
Mark Salsbery7-Oct-07 17:22
Mark Salsbery7-Oct-07 17:22 
GeneralRe: Simple %s issue help Pin
Michael Dunn7-Oct-07 17:38
sitebuilderMichael Dunn7-Oct-07 17:38 
GeneralRe: Simple %s issue help Pin
Mark Salsbery7-Oct-07 17:47
Mark Salsbery7-Oct-07 17:47 
GeneralRe: Simple %s issue help Pin
monsieur_jj7-Oct-07 17:53
monsieur_jj7-Oct-07 17:53 
AnswerRe: Simple %s issue help Pin
TooShy2Talk7-Oct-07 17:48
TooShy2Talk7-Oct-07 17:48 

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.