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

COM

 
GeneralRegister a COM object Pin
Spaz805-Aug-05 2:23
Spaz805-Aug-05 2:23 
GeneralRe: Register a COM object Pin
MohammadAmiry7-Aug-05 2:49
MohammadAmiry7-Aug-05 2:49 
Generalsize of property pages of activex controls built using MFC Pin
Tulika Shrivastava5-Aug-05 0:28
Tulika Shrivastava5-Aug-05 0:28 
GeneralPlug-in for Win32 based IDE. Pin
Manish Paul4-Aug-05 19:46
Manish Paul4-Aug-05 19:46 
QuestionAbout Word Addin of adding a bmp? Pin
sharkmouse4-Aug-05 13:40
sharkmouse4-Aug-05 13:40 
GeneralActiveX Component Pin
Neelesh K J Jain4-Aug-05 6:38
Neelesh K J Jain4-Aug-05 6:38 
GeneralRe: ActiveX Component Pin
Zoltron_RuleZ4-Aug-05 8:57
Zoltron_RuleZ4-Aug-05 8:57 
GeneralCall DLL in VC++ Pin
ABDDGADSFSDFSFSF3-Aug-05 22:55
ABDDGADSFSDFSFSF3-Aug-05 22:55 
I am trying to load this dll in my VC++/MFC class using COM. However, it generates error in the generated .tlh file. This is what i did. I import the dll in stdafx.h and insert the following on a button control.

HRESULT hresult;
CLSID clsid;

CoInitialize(NULL); //initialize COM library
hresult=CLSIDFromProgID(OLESTR("Techno.Servo"), &clsid); //retrieve CLSID of component

_Servo *t;
hresult=CoCreateInstance(clsid,NULL,CLSCTX_INPROC_SERVER,__uuidof(_Servo),(LPVOID *) &t);
if(FAILED(hresult))
{
AfxMessageBox("Creation Failed");
return;
}

t->MOVE(); //call method
t->Release(); //call method
CoUninitialize(); //Unintialize the COM library

Can anyone please tell me where the error is?
GeneralRegister updated COM object (COM wrapper) without reboot machine Pin
hchiu3-Aug-05 6:30
hchiu3-Aug-05 6:30 
GeneralRe: Register updated COM object (COM wrapper) without reboot machine Pin
Rob Graham3-Aug-05 6:44
Rob Graham3-Aug-05 6:44 
GeneralRe: Register updated COM object (COM wrapper) without reboot machine Pin
hchiu3-Aug-05 6:54
hchiu3-Aug-05 6:54 
GeneralRe: Register updated COM object (COM wrapper) without reboot machine Pin
Rob Graham5-Aug-05 3:07
Rob Graham5-Aug-05 3:07 
GeneralRe: Register updated COM object (COM wrapper) without reboot machine Pin
hchiu8-Aug-05 6:12
hchiu8-Aug-05 6:12 
GeneralUsing ActiveX component in a web page Pin
Spaz803-Aug-05 0:53
Spaz803-Aug-05 0:53 
Questionhow to write avi files Pin
limra1-Aug-05 22:09
limra1-Aug-05 22:09 
QuestionHow to Show selected ActiveX controls in a list Box Pin
Ashwin kumar Gurujala31-Jul-05 20:54
Ashwin kumar Gurujala31-Jul-05 20:54 
QuestionHow to manipulate ActiveDesktop buttons Pin
programvinod31-Jul-05 7:39
programvinod31-Jul-05 7:39 
QuestionHow to share stated COM+ objects cross process and machine Pin
xqxq30-Jul-05 16:35
xqxq30-Jul-05 16:35 
QuestionHow to interface a COM class in a non-COM DLL Pin
morenz30-Jul-05 4:04
morenz30-Jul-05 4:04 
AnswerRe: How to interface a COM class in a non-COM DLL Pin
geo_m31-Jul-05 10:32
geo_m31-Jul-05 10:32 
GeneralRe: How to interface a COM class in a non-COM DLL Pin
morenz31-Jul-05 12:49
morenz31-Jul-05 12:49 
GeneralRe: How to interface a COM class in a non-COM DLL Pin
geo_m31-Jul-05 19:08
geo_m31-Jul-05 19:08 
GeneralRe: How to interface a COM class in a non-COM DLL Pin
morenz1-Aug-05 12:42
morenz1-Aug-05 12:42 
QuestionHow to access COM enums from JScript Pin
kozu29-Jul-05 11:35
kozu29-Jul-05 11:35 
QuestionHow to make DCOM work over VPN ? Pin
vgrigor129-Jul-05 4:40
vgrigor129-Jul-05 4:40 

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.