Click here to Skip to main content
16,004,919 members
Home / Discussions / COM
   

COM

 
QuestionHow to Create a COM object from a nominated EXE Pin
Guy le Mar8-Jun-04 15:51
Guy le Mar8-Jun-04 15:51 
GeneralPassing BSTR and Short variables in a function Pin
tommcf8-Jun-04 13:52
tommcf8-Jun-04 13:52 
GeneralRe: Passing BSTR and Short variables in a function Pin
Anonymous9-Jun-04 19:40
Anonymous9-Jun-04 19:40 
Questionhow to create a COM object Pin
iceman117-Jun-04 17:17
iceman117-Jun-04 17:17 
QuestionDownload my .ocx and 2 depending dll’s? Pin
anderslundsgard6-Jun-04 21:02
anderslundsgard6-Jun-04 21:02 
GeneralImplementing Span tag Pin
Member 5281555-Jun-04 0:22
Member 5281555-Jun-04 0:22 
GeneralRe: Implementing Span tag Pin
Andrew Quinn AUS6-Jun-04 22:23
Andrew Quinn AUS6-Jun-04 22:23 
QuestionHow to call methods of an appobject directly? Pin
Roozbeh693-Jun-04 18:32
professionalRoozbeh693-Jun-04 18:32 
Hello everybody,

I am a beginner in com programming, and i have a question:
I have created an ATL 3.0 project including a simple object named MyObj with the attribute of 'appobject' on it's coclass. It has a property named MyString that holds string values. I have successfully built it and then tested it from vb. I have access to MyString property directly without instantiating MyObj. everythings is Ok.
but I have problem with VC. From a Console application which has access to that type library (via import directive) MyString property cannot be accessed without qualification. With the statement:

MyString = "Hello world!";

compiler generates following error:

error C2065: 'MyString' : undeclared identifier

what is the problem? do you think i should use a special syntax?
if so, would you please help me to know how i can use it?

thanks in advance
Roozbeh

AnswerRe: How to call methods of an appobject directly? Pin
Andrew Quinn AUS3-Jun-04 22:15
Andrew Quinn AUS3-Jun-04 22:15 
GeneralAutomating Office Pin
no_reg_name3-Jun-04 6:14
no_reg_name3-Jun-04 6:14 
GeneralRe: Automating Office Pin
sas22223-Jun-04 9:27
sas22223-Jun-04 9:27 
GeneralRe: Automating Office Pin
sas22223-Jun-04 9:32
sas22223-Jun-04 9:32 
GeneralRe: Automating Office Pin
no_reg_name3-Jun-04 23:02
no_reg_name3-Jun-04 23:02 
GeneralRe: Automating Office Pin
Rory Solley3-Jun-04 22:14
Rory Solley3-Jun-04 22:14 
GeneralRe: Automating Office Pin
no_reg_name3-Jun-04 23:01
no_reg_name3-Jun-04 23:01 
Generalpassing array to com Interface Pin
smartcoder2-Jun-04 9:31
smartcoder2-Jun-04 9:31 
GeneralRe: passing array to com Interface Pin
Andrew Quinn AUS3-Jun-04 4:18
Andrew Quinn AUS3-Jun-04 4:18 
GeneralCOM Interface Hooking Pin
hardboy1111-Jun-04 9:13
hardboy1111-Jun-04 9:13 
GeneralRe: COM Interface Hooking Pin
Anonymous1-Jun-04 11:12
Anonymous1-Jun-04 11:12 
Generalfirewall Pin
shahrokh nabavi1-Jun-04 7:12
shahrokh nabavi1-Jun-04 7:12 
Generalhandwritten signature authentication pro Pin
yep yin31-May-04 20:49
yep yin31-May-04 20:49 
GeneralAsync Sockets in a COM Dll/OCX Pin
shekar_raja31-May-04 17:11
shekar_raja31-May-04 17:11 
GeneralConverting from STA to MTA Pin
mahvk31-May-04 13:45
mahvk31-May-04 13:45 
GeneralRe: Converting from STA to MTA Pin
Rory Solley1-Jun-04 22:06
Rory Solley1-Jun-04 22:06 
GeneralCOM help?! Pin
Anonymous31-May-04 6:39
Anonymous31-May-04 6:39 

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.