Click here to Skip to main content
15,909,896 members
Home / Discussions / COM
   

COM

 
GeneralRe: Problem with Word automation/Shapes/AddCurve Pin
Member 3538108-Mar-04 15:22
Member 3538108-Mar-04 15:22 
GeneralRe: Problem with Word automation/Shapes/AddCurve Pin
Vi28-Mar-04 18:45
Vi28-Mar-04 18:45 
GeneralThanks, but that isn't a problem Pin
Member 3538108-Mar-04 19:10
Member 3538108-Mar-04 19:10 
GeneralRe: Thanks, but that isn't a problem Pin
Vi28-Mar-04 19:26
Vi28-Mar-04 19:26 
GeneralRe: Thanks, but that isn't a problem Pin
Member 3538108-Mar-04 23:20
Member 3538108-Mar-04 23:20 
GeneralI can't beleive that I wasted so much time with this Pin
Member 3538109-Mar-04 0:56
Member 3538109-Mar-04 0:56 
GeneralMFC executable registration. Pin
oleg638-Mar-04 12:25
professionaloleg638-Mar-04 12:25 
GeneralRe: MFC executable registration. Pin
Mike Dimmick16-Mar-04 2:31
Mike Dimmick16-Mar-04 2:31 
The convention for an EXE is that passing the parameter /regserver will register the server, while passing /unregserver will unregister it.

The Wizard-generated MFC code will have produced an override of CWinApp::InitInstance which creates a CCommandLineInfo which is then passed to CWinApp::ParseCommandLine. When this returns it then calls CWinApp::ProcessShellCommand.

You can hook into this by deriving your own class from CCommandLineInfo, overriding ParseParam, and performing the necessary registration steps in response to the appropriate command line. You should exit (by returning FALSE from InitInstance) after processing a registration flag.

You can use AfxOleRegisterTypeLib to register your type library and COleObjectFactoryEx::UpdateRegistryAll to register all the known classes.

Stability. What an interesting concept. -- Chris Maunder
GeneralRe: MFC executable registration. Pin
oleg6316-Mar-04 4:14
professionaloleg6316-Mar-04 4:14 
Questionussoftproblem with COM server registration??? Pin
pelos7-Mar-04 4:41
pelos7-Mar-04 4:41 
AnswerRe: ussoftproblem with COM server registration??? Pin
Steve S7-Mar-04 22:03
Steve S7-Mar-04 22:03 
GeneralRe: ussoftproblem with COM server registration??? Pin
pelos8-Mar-04 11:37
pelos8-Mar-04 11:37 
AnswerRe: ussoftproblem with COM server registration??? Pin
Anonymous8-Mar-04 9:36
Anonymous8-Mar-04 9:36 
AnswerClass not registered Pin
pelos9-Mar-04 20:06
pelos9-Mar-04 20:06 
AnswerRe: ussoftproblem with COM server registration??? Pin
Vi29-Mar-04 20:44
Vi29-Mar-04 20:44 
GeneralRe: ussoftproblem with COM server registration??? Pin
pelos10-Mar-04 0:15
pelos10-Mar-04 0:15 
QuestionCopying an automation object? Pin
Zee man6-Mar-04 22:46
Zee man6-Mar-04 22:46 
AnswerRe: Copying an automation object? Pin
Steve S7-Mar-04 22:00
Steve S7-Mar-04 22:00 
GeneralRe: Copying an automation object? Pin
Zee man8-Mar-04 4:04
Zee man8-Mar-04 4:04 
GeneralRe: Copying an automation object? Pin
Steve S8-Mar-04 4:33
Steve S8-Mar-04 4:33 
QuestionHow to make clickable/ draggable shapes Pin
Anonymous4-Mar-04 21:24
Anonymous4-Mar-04 21:24 
Generalopening an Excel file Pin
Liate2-Mar-04 5:37
Liate2-Mar-04 5:37 
GeneralRe: opening an Excel file Pin
Steve S2-Mar-04 6:24
Steve S2-Mar-04 6:24 
GeneralRe: opening an Excel file Pin
Liate2-Mar-04 19:55
Liate2-Mar-04 19:55 
GeneralProblem while destroying SafeArray Pin
mandarpb1-Mar-04 22:09
sussmandarpb1-Mar-04 22:09 

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.