Click here to Skip to main content
15,922,533 members
Home / Discussions / COM
   

COM

 
GeneralRe: extern "C" DllExport Function crashing Pin
Lim Bio Liong26-Dec-03 20:17
Lim Bio Liong26-Dec-03 20:17 
GeneralProblems passing a DISPPARAMS structure to IDispatch::Invoke Pin
Dark Magus22-Dec-03 17:39
Dark Magus22-Dec-03 17:39 
GeneralRe: Problems passing a DISPPARAMS structure to IDispatch::Invoke Pin
Vi223-Dec-03 23:36
Vi223-Dec-03 23:36 
GeneralRe: Problems passing a DISPPARAMS structure to IDispatch::Invoke Pin
Dark Magus25-Dec-03 11:34
Dark Magus25-Dec-03 11:34 
GeneralRe: Problems passing a DISPPARAMS structure to IDispatch::Invoke Pin
Vi225-Dec-03 19:21
Vi225-Dec-03 19:21 
GeneralRe: Problems passing a DISPPARAMS structure to IDispatch::Invoke Pin
Dark Magus26-Dec-03 10:03
Dark Magus26-Dec-03 10:03 
Generalabout LocalServer COM Register Pin
yingkou22-Dec-03 15:05
yingkou22-Dec-03 15:05 
GeneralRe: about LocalServer COM Register Pin
User 78226222-Dec-03 23:16
professionalUser 78226222-Dec-03 23:16 
i my project i search the /RegServer and /UnregServer in order to reg or unreg my server.

i do it like this in my CWinApp::InitInstance:
// ( _AtlModule is derived from CAtlMfcModule )

<br />
TCHAR szToken[] = _T("-/");<br />
long operation = 0;<br />
LPCTSTR lpsztoken = _AtlModule.FindOneOf( lpCmdline, szToken );<br />
<br />
while ( lpszToken != NULL )<br />
{<br />
  if ( lstrcmpi( lpszToken, _T("RegServer") ) == 0 )<br />
  {<br />
     operation = 1;<br />
     break;<br />
  }<br />
  if ( lstrcmpi( lpszToken, _T("UnregServer") ) == 0 )<br />
  {<br />
     operation = 2;<br />
     break;<br />
  }<br />
  lpsztoken = _AtlModule.FindOneOf( lpCmdline, szToken );<br />
}<br />
<br />
switch ( operation )<br />
{<br />
  case 0: // launch my app ...<br />
    break:<br />
  case 1: // regserver<br />
    _AtlModule.UpdateRegistryFromResource( MYUINT, TRUE );<br />
    _AtlModule.RegisterServer( TRUE );<br />
    break;<br />
  case 2: // unreg server<br />
    _AtlModule.UpdateRegistryFromResource( MYUINT, TRUE );<br />
    _AtlModule.UnregisterServer( TRUE );<br />
    break;<br />
}<br />


try like this ...

modified 14-Jun-22 21:01pm.

GeneralRe: about LocalServer COM Register Pin
Vi223-Dec-03 23:29
Vi223-Dec-03 23:29 
GeneralCOM Apartments and Marshalling Pin
Jörgen Sigvardsson22-Dec-03 14:03
Jörgen Sigvardsson22-Dec-03 14:03 
GeneralNo, that sucked Pin
Jörgen Sigvardsson23-Dec-03 7:07
Jörgen Sigvardsson23-Dec-03 7:07 
GeneralRe: No, that sucked Pin
geo_m30-Dec-03 0:32
geo_m30-Dec-03 0:32 
GeneralAll COM that expose a specific interface Pin
IreneVassileva22-Dec-03 0:00
IreneVassileva22-Dec-03 0:00 
GeneralRe: All COM that expose a specific interface Pin
Abhishek Srivastava22-Dec-03 1:01
Abhishek Srivastava22-Dec-03 1:01 
GeneralYahoo messenger login interface. Urgent Pin
SiddharthAtw21-Dec-03 18:35
SiddharthAtw21-Dec-03 18:35 
QuestionHow to access COM objects during runtime? Pin
dapipi21-Dec-03 17:13
dapipi21-Dec-03 17:13 
AnswerRe: How to access COM objects during runtime? Pin
Anonymous21-Dec-03 18:47
Anonymous21-Dec-03 18:47 
AnswerRe: How to access COM objects during runtime? Pin
Anonymous21-Dec-03 18:52
Anonymous21-Dec-03 18:52 
AnswerRe: How to access COM objects during runtime? Pin
Abhishek Srivastava21-Dec-03 19:07
Abhishek Srivastava21-Dec-03 19:07 
GeneralRe: How to access COM objects during runtime? Pin
dapipi22-Dec-03 19:30
dapipi22-Dec-03 19:30 
GeneralLookgin for good COM+ book suggestions Pin
Flack21-Dec-03 14:16
Flack21-Dec-03 14:16 
GeneralIRunnableTask and IExtractImage Pin
ohadp18-Dec-03 1:45
ohadp18-Dec-03 1:45 
GeneralHelp me for COM+ design with C#.NET Pin
Simi Agarwal17-Dec-03 21:37
Simi Agarwal17-Dec-03 21:37 
QuestionHow to capture mouse event in MS word? Pin
aw1ay17-Dec-03 15:55
aw1ay17-Dec-03 15:55 
GeneralMS Active Accessibility problem Pin
visharma17-Dec-03 10:52
visharma17-Dec-03 10:52 

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.