Click here to Skip to main content
15,912,977 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Get width and height in pixel of a paper before printing Pin
followait5-Sep-08 3:44
followait5-Sep-08 3:44 
QuestionProblem with VC++ editor Pin
S_Murali4-Sep-08 22:42
S_Murali4-Sep-08 22:42 
AnswerRe: Problem with VC++ editor Pin
_AnsHUMAN_ 4-Sep-08 22:46
_AnsHUMAN_ 4-Sep-08 22:46 
AnswerRe: Problem with VC++ editor Pin
Iain Clarke, Warrior Programmer5-Sep-08 1:13
Iain Clarke, Warrior Programmer5-Sep-08 1:13 
GeneralRe: Problem with VC++ editor Pin
S_Murali5-Sep-08 2:39
S_Murali5-Sep-08 2:39 
QuestionDo I have to free the resource returned by CPrintDialog::GetDevMode Pin
followait4-Sep-08 22:35
followait4-Sep-08 22:35 
AnswerRe: Do I have to free the resource returned by CPrintDialog::GetDevMode Pin
_AnsHUMAN_ 4-Sep-08 22:43
_AnsHUMAN_ 4-Sep-08 22:43 
GeneralRe: Do I have to free the resource returned by CPrintDialog::GetDevMode Pin
followait4-Sep-08 22:57
followait4-Sep-08 22:57 
Questioncombine two .exe files [modified] Pin
Vincen Wang4-Sep-08 22:04
Vincen Wang4-Sep-08 22:04 
AnswerRe: combine two .exe files Pin
vikas amin5-Sep-08 6:47
vikas amin5-Sep-08 6:47 
GeneralRe: combine two .exe files Pin
Vincen Wang10-Sep-08 21:02
Vincen Wang10-Sep-08 21:02 
QuestionProblem with mt.exe Pin
T.RATHA KRISHNAN4-Sep-08 21:37
T.RATHA KRISHNAN4-Sep-08 21:37 
AnswerRe: Problem with mt.exe Pin
_AnsHUMAN_ 4-Sep-08 21:54
_AnsHUMAN_ 4-Sep-08 21:54 
Questionhow to get IDC_ control ids dynamically Pin
saksp4-Sep-08 21:17
saksp4-Sep-08 21:17 
AnswerRe: how to get IDC_ control ids dynamically Pin
Naveen4-Sep-08 21:22
Naveen4-Sep-08 21:22 
QuestionCopy File Data Pin
knowvc4-Sep-08 20:53
knowvc4-Sep-08 20:53 
AnswerRe: Copy File Data Pin
Rajesh R Subramanian4-Sep-08 20:55
professionalRajesh R Subramanian4-Sep-08 20:55 
GeneralRe: Copy File Data Pin
knowvc4-Sep-08 21:22
knowvc4-Sep-08 21:22 
GeneralRe: Copy File Data Pin
Michael Schubert5-Sep-08 2:24
Michael Schubert5-Sep-08 2:24 
AnswerRe: Copy File Data Pin
Cedric Moonen4-Sep-08 20:56
Cedric Moonen4-Sep-08 20:56 
Questionprogid Pin
George_George4-Sep-08 20:31
George_George4-Sep-08 20:31 
AnswerRe: progid Pin
User 2155974-Sep-08 20:52
User 2155974-Sep-08 20:52 
GeneralRe: progid Pin
George_George4-Sep-08 21:12
George_George4-Sep-08 21:12 
GeneralRe: progid Pin
User 2155974-Sep-08 21:28
User 2155974-Sep-08 21:28 
1. Normally some information will be required by consumer of your COM server. So ProgId, ClassId, Interface descriptions etc need to be published. There are various ways for the consumer to instantiate and consume the services provided by the COM Server (one of which is using ProgId). If information from TypeLib is to be queried then you may use Type Description Interfaces and Functions[^]. There is also IProvideClassInfo[^] interface that helps accessing the type information for an object's coclass.
ProgId could be published in TypeLib files, Interface and coclass declaration (header) files or simply as part of your COM server documentation.
2. Yes. As mentioned by Larry Osterman in his blog entry (see the link I posted earlier) - "The PROGID provides the ability to define a string alias for a particular COM object. Thus with the PROGID, you can access a COM object without having to know it's CLSID. This can be quite handy, especially when you're working in languages that don't provide easy access to a GUID data type. A PROGID is simply a string representation of the class. "

Glad I could help.

PS: What registry entries are needed to register a COM object[^] is a good read.


Sohail


modified 21-Apr-21 21:01pm.

GeneralRe: progid Pin
George_George4-Sep-08 21:33
George_George4-Sep-08 21:33 

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.