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

C / C++ / MFC

 
GeneralCreating ActiveX control (variable types) Pin
BlackDice20-Jul-04 9:26
BlackDice20-Jul-04 9:26 
Generalwindow message Pin
Anonymous20-Jul-04 9:10
Anonymous20-Jul-04 9:10 
GeneralRe: window message Pin
Alexander Wiseman20-Jul-04 9:21
Alexander Wiseman20-Jul-04 9:21 
GeneralRe: window message Pin
Anonymous20-Jul-04 9:35
Anonymous20-Jul-04 9:35 
GeneralRe: window message Pin
Alexander Wiseman20-Jul-04 11:29
Alexander Wiseman20-Jul-04 11:29 
GeneralRe: window message Pin
Bob Stanneveld20-Jul-04 12:58
Bob Stanneveld20-Jul-04 12:58 
GeneralCOM programming Pin
Tropicana20-Jul-04 8:48
Tropicana20-Jul-04 8:48 
GeneralRe: COM programming Pin
Antti Keskinen20-Jul-04 11:58
Antti Keskinen20-Jul-04 11:58 
No, it will not work, and you've quite mistracked.

I suggest quickly renaming the interface back or you will corrupt your DirectX SDK installation for certain. If you rename the interfaces in the header files, and compile the code, then during execution, when you call the DirectX methods, you'll most likely cause serious errors. Or at least, your application will not do what it is supposed to. This includes crashing/damaging the OS and/or DirectX run-time.

Each COM object, and each interface they expose is considered unique. The Globally Unique Identifier (GUID) is used to identify these interfaces and objects on a global, around-the-world scale. If you created an interface that had the same GUID as DirectX's IAMTVTuner, then you'd be breaking a major rule of COM programming. In plain english, do not do this. Give your interface a new GUID, period. You can use the GUIDGEN.EXE to generate new GUIDs to use with your NEW interfaces.

If you need to extend the functionality offered by the IAMTVTuner interface, I suggest creating a standard C++ class that queries and uses the interface, while providing public functions that allow the user of class to do the "flunky things" you describe.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralDoc/View Philosophical Question... Pin
Nitron20-Jul-04 8:11
Nitron20-Jul-04 8:11 
GeneralRe: Doc/View Philosophical Question... Pin
Ravi Bhavnani20-Jul-04 9:56
professionalRavi Bhavnani20-Jul-04 9:56 
GeneralRe: Doc/View Philosophical Question... Pin
David Crow20-Jul-04 10:37
David Crow20-Jul-04 10:37 
GeneralRe: Doc/View Philosophical Question... Pin
Bob Stanneveld20-Jul-04 13:05
Bob Stanneveld20-Jul-04 13:05 
Generalsetting dialog size Pin
Anonymous20-Jul-04 6:39
Anonymous20-Jul-04 6:39 
GeneralRe: setting dialog size Pin
Nitron20-Jul-04 7:28
Nitron20-Jul-04 7:28 
GeneralRe: setting dialog size Pin
David Crow20-Jul-04 10:38
David Crow20-Jul-04 10:38 
GeneralIE Favorites Pin
Anonymous20-Jul-04 4:34
Anonymous20-Jul-04 4:34 
GeneralRe: IE Favorites Pin
Ravi Bhavnani20-Jul-04 5:34
professionalRavi Bhavnani20-Jul-04 5:34 
QuestionHow to handle doubleclick on a toolbar Pin
MyttO20-Jul-04 4:27
MyttO20-Jul-04 4:27 
AnswerRe: How to handle doubleclick on a toolbar Pin
Alexander Wiseman20-Jul-04 5:24
Alexander Wiseman20-Jul-04 5:24 
QuestionHow to Enable EditBox through Win32Application(SDK) Pin
Anonymous20-Jul-04 3:37
Anonymous20-Jul-04 3:37 
AnswerRe: How to Enable EditBox through Win32Application(SDK) Pin
David Crow20-Jul-04 3:53
David Crow20-Jul-04 3:53 
AnswerRe: How to Enable EditBox through Win32Application(SDK) Pin
bikram singh20-Jul-04 4:30
bikram singh20-Jul-04 4:30 
Generalmenu ID Pin
V.20-Jul-04 3:21
professionalV.20-Jul-04 3:21 
GeneralRe: menu ID Pin
Alexander Wiseman20-Jul-04 4:58
Alexander Wiseman20-Jul-04 4:58 
GeneralRe: menu ID Pin
V.20-Jul-04 5:08
professionalV.20-Jul-04 5: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.