Click here to Skip to main content
15,920,438 members
Home / Discussions / COM
   

COM

 
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 
Hi,
I have a COM object that exports a couple of interfaces and some enums. I need to access this from JScript, and everything works expect for the enums.
Here's the idl file:

in myCOM.dll
typedef [uuid(someIDHere.....)] enum tagEnum
{
a = 0xFFF,
b = 0,
c = 1,
}enumType;

[
object,
uuid(..................),
dual,
helpstring("IMyInterface"),
pointer_default(unique)
]
interface IMyInterface : IDispatch
{
[id(1), helpstring("test")] HRESULT Test();
};

[
uuid(E0691460-B804-11D5-ADF6-00C04F029739),
version(1.0),
helpstring("MyCOM 1.0 Type Library")
]
library MyCOMLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");

[
uuid(....................),
helpstring("MyCOM Class")
]
coclass MyInterface
{
[default] interface IMyInterface;
};
};


The JScript code looks something like this:
var mycom = WScript.CreateObject("MyCom.MyInterface");
mycom.Test();
etc.
I tried to access the methods and the enum from VB and it works fine. So there's nothing wrong with myCOM.

How can I access the enum from JScript?

Thanks!
QuestionHow to make DCOM work over VPN ? Pin
vgrigor129-Jul-05 4:40
vgrigor129-Jul-05 4:40 
Questionhow to create COM DLL ..Help Me Pin
Anonymous29-Jul-05 1:18
Anonymous29-Jul-05 1:18 
AnswerRe: how to create COM DLL ..Help Me Pin
vgrigor129-Jul-05 4:48
vgrigor129-Jul-05 4:48 
AnswerRe: how to create COM DLL ..Help Me Pin
Logan from Singapore31-Jul-05 16:12
Logan from Singapore31-Jul-05 16:12 
Questionhow to create DLL ..Help Me Pin
Anonymous29-Jul-05 1:17
Anonymous29-Jul-05 1:17 
GeneralCOM Interop event handling - help! Pin
Will-FG28-Jul-05 23:50
Will-FG28-Jul-05 23:50 
GeneralLoading ActiveX under Limitted User Account Pin
MohammadAmiry28-Jul-05 7:32
MohammadAmiry28-Jul-05 7:32 
GeneralRe: Loading ActiveX under Limitted User Account Pin
vishalmore29-Jul-05 21:49
vishalmore29-Jul-05 21:49 
GeneralCall a running C# application from a C++ application Pin
scchan198427-Jul-05 22:02
scchan198427-Jul-05 22:02 
GeneralRe: Call a running C# application from a C++ application Pin
Lim Bio Liong29-Jul-05 2:54
Lim Bio Liong29-Jul-05 2:54 
GeneralRe: Call a running C# application from a C++ application Pin
Lim Bio Liong29-Jul-05 11:04
Lim Bio Liong29-Jul-05 11:04 
Questionhow to connect modem to CPU by using visual basic Pin
Member 214288927-Jul-05 20:26
Member 214288927-Jul-05 20:26 
GeneralOutlook 2003 COM AddIn Pin
civilwar27-Jul-05 4:04
civilwar27-Jul-05 4:04 
GeneralHelp!!!!! Need to do COM DLL with multiple objects Pin
Logan from Singapore27-Jul-05 0:37
Logan from Singapore27-Jul-05 0:37 
GeneralRe: Help!!!!! Need to do COM DLL with multiple objects Pin
Jörgen Sigvardsson27-Jul-05 3:03
Jörgen Sigvardsson27-Jul-05 3:03 
GeneralRe: Help!!!!! Need to do COM DLL with multiple objects Pin
Logan from Singapore27-Jul-05 15:18
Logan from Singapore27-Jul-05 15:18 
GeneralRe: Help!!!!! Need to do COM DLL with multiple objects Pin
Jörgen Sigvardsson27-Jul-05 15:25
Jörgen Sigvardsson27-Jul-05 15:25 

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.