Click here to Skip to main content
15,897,371 members
Home / Discussions / COM
   

COM

 
AnswerRe: Class not registered Pin
Stuart Dootson18-Jun-09 23:30
professionalStuart Dootson18-Jun-09 23:30 
AnswerRe: Class not registered Pin
Md. Marufuzzaman6-Jul-09 21:53
professionalMd. Marufuzzaman6-Jul-09 21:53 
Question[SOLVED]Exception in COM Pin
denghp18-Jun-09 21:31
denghp18-Jun-09 21:31 
AnswerRe: Exception in COM Pin
Stuart Dootson18-Jun-09 22:08
professionalStuart Dootson18-Jun-09 22:08 
GeneralRe: Exception in COM Pin
denghp18-Jun-09 22:19
denghp18-Jun-09 22:19 
GeneralRe: Exception in COM Pin
Stuart Dootson18-Jun-09 23:01
professionalStuart Dootson18-Jun-09 23:01 
GeneralRe: Exception in COM Pin
denghp18-Jun-09 23:05
denghp18-Jun-09 23:05 
GeneralRe: Exception in COM Pin
Stuart Dootson18-Jun-09 23:15
professionalStuart Dootson18-Jun-09 23:15 
So....your question had nothing to do with COM...OK

Anyway - I wrote this sample program:

#include <windows.h>
#include <iostream>

int f()
{
   __try
   {
      *(int*)0 = 0;
      std::cout << "good!\n";
   }
   __except( EXCEPTION_EXECUTE_HANDLER)
   {
      std::cout << "exception!\n";
   }
   return 3;
}

int main()
{
   f();
}


and compiled it with VS2008 using the command cl -EHa a.cpp (you apparently need -EHa for structured exception handling to work correctly).

As expected, it printed exception! - the structured exception handler was called correctly.

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: Exception in COM Pin
denghp18-Jun-09 23:25
denghp18-Jun-09 23:25 
AnswerRe: Exception in COM Pin
Md. Marufuzzaman6-Jul-09 21:58
professionalMd. Marufuzzaman6-Jul-09 21:58 
QuestionATL COM server crash Pin
Harish Pulimi17-Jun-09 5:36
Harish Pulimi17-Jun-09 5:36 
AnswerRe: ATL COM server crash Pin
Roger Stoltz17-Jun-09 6:42
Roger Stoltz17-Jun-09 6:42 
GeneralRe: ATL COM server crash Pin
Harish Pulimi17-Jun-09 21:46
Harish Pulimi17-Jun-09 21:46 
GeneralRe: ATL COM server crash Pin
Roger Stoltz18-Jun-09 0:57
Roger Stoltz18-Jun-09 0:57 
GeneralRe: ATL COM server crash Pin
Harish Pulimi10-Feb-10 2:28
Harish Pulimi10-Feb-10 2:28 
GeneralRe: ATL COM server crash Pin
Member 176963118-Jul-11 12:21
Member 176963118-Jul-11 12:21 
QuestionCan we get object size from the Interface pointer? Pin
Mahesh Kulkarni16-Jun-09 22:45
Mahesh Kulkarni16-Jun-09 22:45 
AnswerRe: Can we get object size from the Interface pointer? Pin
Roger Stoltz16-Jun-09 23:52
Roger Stoltz16-Jun-09 23:52 
AnswerRe: Can we get object size from the Interface pointer? Pin
Stephen Hewitt17-Jun-09 3:14
Stephen Hewitt17-Jun-09 3:14 
GeneralRe: Can we get object size from the Interface pointer? Pin
led mike17-Jun-09 4:47
led mike17-Jun-09 4:47 
AnswerRe: Can we get object size from the Interface pointer? Pin
Vi221-Jun-09 22:35
Vi221-Jun-09 22:35 
QuestionCOM (system.__comobject) i need to convert it to byte[] C# Pin
Sander123432116-Jun-09 4:58
Sander123432116-Jun-09 4:58 
AnswerRe: COM (system.__comobject) i need to convert it to byte[] C# Pin
led mike16-Jun-09 5:53
led mike16-Jun-09 5:53 
GeneralRe: COM (system.__comobject) i need to convert it to byte[] C# Pin
Sander123432116-Jun-09 6:28
Sander123432116-Jun-09 6:28 
GeneralRe: COM (system.__comobject) i need to convert it to byte[] C# Pin
led mike16-Jun-09 8:41
led mike16-Jun-09 8:41 

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.