PC Review


Reply
Thread Tools Rate Thread

basic COM useage

 
 
colmag
Guest
Posts: n/a
 
      28th Dec 2003
I'm trying to use some COM objects, and have spent days
getting nowhere.

Does anyone know of any good tutorials on USING non-MS
COM objects (i've found loads of tut's on automating
office), rather than the hundreds of tutorials on making
COM objects that i've found!

I've got the "help" file for the API in question, but
can't work out which objects to use (and how) to achieve
particular results.
 
Reply With Quote
 
 
 
 
Scott M.
Guest
Posts: n/a
 
      29th Dec 2003
You haven't really asked a specific question here. What exactly do you want
to know about using a COM object?


"colmag" <(E-Mail Removed)> wrote in message
news:007901c3cd62$b58be840$(E-Mail Removed)...
> I'm trying to use some COM objects, and have spent days
> getting nowhere.
>
> Does anyone know of any good tutorials on USING non-MS
> COM objects (i've found loads of tut's on automating
> office), rather than the hundreds of tutorials on making
> COM objects that i've found!
>
> I've got the "help" file for the API in question, but
> can't work out which objects to use (and how) to achieve
> particular results.



 
Reply With Quote
 
colmag
Guest
Posts: n/a
 
      29th Dec 2003
I can't ask a specific question, because although i have
a specific task in mind, i've realised how clueless I am
at the moment! lol.

I've installed an API, and want to use it to retrieve
information from a bunch of files related to the API's
parent application, but the API has got dozens of objects
and methods, some of which seem to duplicate things (to
me, anyway).

I've been getting messages about lack of instances etc.,
so i tried using ctype and createobject, but then got
messages saying the activex control couldn't be created
(or something along those lines). I also need to relate
some of the objects to each other, as one object has a
load method, another has objects with the properties i
need. I think i need ctype for this...

Basically, I'm looking for some guidance on general
principles of picking up someone else' poorly documented
API and using it (they give the API away for free, but
charge a developers licence for documentation. After
paying thousands to be able to create these files, i'm
bu**red if i'm paying more to disect them again). I've
got a couple of books, which is where i got the ctype
stuff from, but everything seems centred around
automating office, which i'm not interested in.


>-----Original Message-----
>You haven't really asked a specific question here. What

exactly do you want
>to know about using a COM object?
>
>
>"colmag" <(E-Mail Removed)> wrote in

message
>news:007901c3cd62$b58be840$(E-Mail Removed)...
>> I'm trying to use some COM objects, and have spent days
>> getting nowhere.
>>
>> Does anyone know of any good tutorials on USING non-MS
>> COM objects (i've found loads of tut's on automating
>> office), rather than the hundreds of tutorials on

making
>> COM objects that i've found!
>>
>> I've got the "help" file for the API in question, but
>> can't work out which objects to use (and how) to

achieve
>> particular results.

>
>
>.
>

 
Reply With Quote
 
Scott M.
Guest
Posts: n/a
 
      29th Dec 2003
Let's start at the beginning...Have you made a COM reference to your
component?

If so, then just go into Visual Studio's Object Browser (hit F2). Now, from
the top/left drop down box, you can filter what the Object Brower is showing
you, so filter it to just the component you now have a reference to.

This will at least give you an understanding of what object, properties,
methods and events are in the API, what data types are expected as input and
return values, etc.

There's really not much anyone else could do to help you, since this is a
custom component.

Good luck!


"colmag" <(E-Mail Removed)> wrote in message
news:05be01c3cdfa$d2561200$(E-Mail Removed)...
> I can't ask a specific question, because although i have
> a specific task in mind, i've realised how clueless I am
> at the moment! lol.
>
> I've installed an API, and want to use it to retrieve
> information from a bunch of files related to the API's
> parent application, but the API has got dozens of objects
> and methods, some of which seem to duplicate things (to
> me, anyway).
>
> I've been getting messages about lack of instances etc.,
> so i tried using ctype and createobject, but then got
> messages saying the activex control couldn't be created
> (or something along those lines). I also need to relate
> some of the objects to each other, as one object has a
> load method, another has objects with the properties i
> need. I think i need ctype for this...
>
> Basically, I'm looking for some guidance on general
> principles of picking up someone else' poorly documented
> API and using it (they give the API away for free, but
> charge a developers licence for documentation. After
> paying thousands to be able to create these files, i'm
> bu**red if i'm paying more to disect them again). I've
> got a couple of books, which is where i got the ctype
> stuff from, but everything seems centred around
> automating office, which i'm not interested in.
>
>
> >-----Original Message-----
> >You haven't really asked a specific question here. What

> exactly do you want
> >to know about using a COM object?
> >
> >
> >"colmag" <(E-Mail Removed)> wrote in

> message
> >news:007901c3cd62$b58be840$(E-Mail Removed)...
> >> I'm trying to use some COM objects, and have spent days
> >> getting nowhere.
> >>
> >> Does anyone know of any good tutorials on USING non-MS
> >> COM objects (i've found loads of tut's on automating
> >> office), rather than the hundreds of tutorials on

> making
> >> COM objects that i've found!
> >>
> >> I've got the "help" file for the API in question, but
> >> can't work out which objects to use (and how) to

> achieve
> >> particular results.

> >
> >
> >.
> >



 
Reply With Quote
 
colmag
Guest
Posts: n/a
 
      30th Dec 2003
Scott,

thanks for the input. As it happens, i've referenced all
of the required components (as per the API readme). I've
had a look through the objects and have drawn a bit of a
blank. I can make it load a document, but what i'm
struggling with is "linking" the objects together (which
is where i think ctype comes in), to get other object
properties from the loaded doc.

Cheers,

Col.

>-----Original Message-----
>Let's start at the beginning...Have you made a COM

reference to your
>component?
>
>If so, then just go into Visual Studio's Object Browser

(hit F2). Now, from
>the top/left drop down box, you can filter what the

Object Brower is showing
>you, so filter it to just the component you now have a

reference to.
>
>This will at least give you an understanding of what

object, properties,
>methods and events are in the API, what data types are

expected as input and
>return values, etc.
>
>There's really not much anyone else could do to help

you, since this is a
>custom component.
>
>Good luck!


 
Reply With Quote
 
Scott M.
Guest
Posts: n/a
 
      30th Dec 2003
There's really not anything anyone here can do to help beyond this. We
would really need to be able to see and use the components (since they are
custom).

Again, I usually find the Object Browser very helpful for learning about an
object model (API as you call it).

"colmag" <(E-Mail Removed)> wrote in message
news:002d01c3cef1$9af91080$(E-Mail Removed)...
> Scott,
>
> thanks for the input. As it happens, i've referenced all
> of the required components (as per the API readme). I've
> had a look through the objects and have drawn a bit of a
> blank. I can make it load a document, but what i'm
> struggling with is "linking" the objects together (which
> is where i think ctype comes in), to get other object
> properties from the loaded doc.
>
> Cheers,
>
> Col.
>
> >-----Original Message-----
> >Let's start at the beginning...Have you made a COM

> reference to your
> >component?
> >
> >If so, then just go into Visual Studio's Object Browser

> (hit F2). Now, from
> >the top/left drop down box, you can filter what the

> Object Brower is showing
> >you, so filter it to just the component you now have a

> reference to.
> >
> >This will at least give you an understanding of what

> object, properties,
> >methods and events are in the API, what data types are

> expected as input and
> >return values, etc.
> >
> >There's really not much anyone else could do to help

> you, since this is a
> >custom component.
> >
> >Good luck!

>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CPU useage B&C Windows XP Help 7 19th Nov 2007 05:18 PM
cpu useage =?Utf-8?B?aHVudGlzaA==?= Windows XP General 0 9th Oct 2006 10:43 PM
cpu useage =?Utf-8?B?aHVudGlzaA==?= Windows XP General 1 9th Oct 2006 12:43 AM
cpu useage =?Utf-8?B?aHVudGlzaA==?= Windows XP General 0 9th Oct 2006 12:26 AM
cpu useage =?Utf-8?B?aHVudGlzaA==?= Windows XP General 0 9th Oct 2006 12:24 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:13 AM.