Click here to Skip to main content
15,895,011 members
Home / Discussions / COM
   

COM

 
AnswerRe: Error registering dll Pin
Keith Worden30-Jun-06 0:54
Keith Worden30-Jun-06 0:54 
QuestionOutlook addin / paste clipboard content in message window Pin
Nicolas Richeton28-Jun-06 23:02
Nicolas Richeton28-Jun-06 23:02 
AnswerRe: Outlook addin / paste clipboard content in message window Pin
Nicolas Richeton29-Jun-06 4:59
Nicolas Richeton29-Jun-06 4:59 
QuestionIs COM supported on operating systems other than windows? Pin
Ajax9528-Jun-06 14:43
Ajax9528-Jun-06 14:43 
QuestionGetting Exception when two instance of ActiveX control are opened using Ctrl+N in IE Pin
Muhammad Azam28-Jun-06 4:10
Muhammad Azam28-Jun-06 4:10 
AnswerRe: Getting Exception when two instance of ActiveX control are opened using Ctrl+N in IE Pin
Mike Dimmick3-Jul-06 3:25
Mike Dimmick3-Jul-06 3:25 
GeneralRe: Getting Exception when two instance of ActiveX control are opened using Ctrl+N in IE Pin
Muhammad Azam4-Jul-06 23:21
Muhammad Azam4-Jul-06 23:21 
QuestionImporting and using an OCX Pin
Sean Capstick28-Jun-06 3:45
Sean Capstick28-Jun-06 3:45 
This is the first time I've worked with an OCX in C and I'm having trouble getting it to run. I'm trying to use a barcode control[^]. This is not a visual application, there's no gui, I'm using it to print barcodes.

I used the class wizard to import it, it created an ezbarx32.h/cpp. I seem to be able to successfully create it using
COleException   tvExerror;
_DBarcode Barcode;
if (!(Barcode.CreateDispatch("EZBARX32.BarcodeCtrl.2", &tvExerror)))
{
    char tvBuf[10];

    itoa(tvExerror.m_sc, tvBuf, 10);
    throw CEMException(CString("CreateDispatch() failed! - ") + tvBuf);
}


but as soon as I try to call a method

Barcode.SetBarcodeType(22);

I get an un-handled exception. Debuging into it I find that this call in the libraries
// make the call
SCODE sc = m_lpDispatch->Invoke(dwDispID, IID_NULL, 0, wFlags,
    &dispparams, pvarResult, &excepInfo, &nArgErr);

returns 0x8000ffff in sc which causes the error checking code after it to report an exception.

Anyone know what I might be missing? I know the control works, it's used in some programs in other languages without any problems.
Questionchanges in idl file generated by an ocx [modified] Pin
nikhil_ag198528-Jun-06 0:31
nikhil_ag198528-Jun-06 0:31 
AnswerRe: changes in idl file generated by an ocx Pin
Mike Dimmick28-Jun-06 8:54
Mike Dimmick28-Jun-06 8:54 
GeneralRe: changes in idl file generated by an ocx Pin
nikhil_ag198528-Jun-06 15:24
nikhil_ag198528-Jun-06 15:24 
GeneralRe: changes in idl file generated by an ocx Pin
nikhil_ag19855-Jul-06 20:11
nikhil_ag19855-Jul-06 20:11 
QuestionAdding picture to outlook command button Pin
Laxman Auti28-Jun-06 0:00
Laxman Auti28-Jun-06 0:00 
AnswerRe: Adding picture to outlook command button Pin
_AnsHUMAN_ 28-Jun-06 0:28
_AnsHUMAN_ 28-Jun-06 0:28 
GeneralRe: Adding picture to outlook command button Pin
Laxman Auti28-Jun-06 0:31
Laxman Auti28-Jun-06 0:31 
AnswerRe: Adding picture to outlook command button Pin
Ganesh_T28-Jun-06 0:48
Ganesh_T28-Jun-06 0:48 
GeneralRe: Adding picture to outlook command button Pin
Laxman Auti28-Jun-06 1:08
Laxman Auti28-Jun-06 1:08 
QuestionInserting ActiveX control in ActiveX server Pin
ptiJean27-Jun-06 21:44
ptiJean27-Jun-06 21:44 
AnswerRe: Inserting ActiveX control in ActiveX server Pin
Muhammad Azam28-Jun-06 4:18
Muhammad Azam28-Jun-06 4:18 
Questionworking with DLL without it's headers Pin
adidas.levy27-Jun-06 4:23
adidas.levy27-Jun-06 4:23 
AnswerRe: working with DLL without it's headers Pin
Michael Dunn27-Jun-06 6:55
sitebuilderMichael Dunn27-Jun-06 6:55 
AnswerRe: working with DLL without it's headers Pin
User 21559727-Jun-06 9:10
User 21559727-Jun-06 9:10 
GeneralRe: working with DLL without it's headers Pin
adidas.levy27-Jun-06 23:03
adidas.levy27-Jun-06 23:03 
QuestionRunning COM interface method from another thread Pin
shadow0127-Jun-06 0:24
shadow0127-Jun-06 0:24 
AnswerRe: Running COM interface method from another thread Pin
Mike Dimmick27-Jun-06 1:37
Mike Dimmick27-Jun-06 1:37 

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.