473,386 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

basic COM useage

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.
Jul 21 '05 #1
5 1244
You haven't really asked a specific question here. What exactly do you want
to know about using a COM object?
"colmag" <an*******@discussions.microsoft.com> wrote in message
news:00****************************@phx.gbl...
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.

Jul 21 '05 #2
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 wantto know about using a COM object?
"colmag" <an*******@discussions.microsoft.com> wrote in messagenews:00****************************@phx.gbl...
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.

.

Jul 21 '05 #3
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" <an*******@discussions.microsoft.com> wrote in message
news:05****************************@phx.gbl...
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" <an*******@discussions.microsoft.com> wrote in

message
news:00****************************@phx.gbl...
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.

.

Jul 21 '05 #4
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 yourcomponent?

If so, then just go into Visual Studio's Object Browser (hit F2). Now, fromthe top/left drop down box, you can filter what the Object Brower is showingyou, 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 andreturn values, etc.

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

Good luck!


Jul 21 '05 #5
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" <an*******@discussions.microsoft.com> wrote in message
news:00****************************@phx.gbl...
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!

Jul 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: pix | last post by:
Hello, I would like to start learning Visual Basic, and I was wondering if there are any recomendations to any ebooks, or actual books for that matter. I have my eye on this book by John Smiley,...
7
by: Michael Foord | last post by:
#!/usr/bin/python -u # 15-09-04 # v1.0.0 # auth_example.py # A simple script manually demonstrating basic authentication. # Copyright Michael Foord # Free to use, modify and relicense. #...
0
by: Leon | last post by:
I noticed that any running .NET window application including .Net Visual Studio, when GUI is not minimized and keped running for long time, the memory useage of its could be high, but, when it is...
9
by: J Bunton | last post by:
My Access 97 applictions seem to have recently become very Cpu useage hungry. When opened they go to almost 100% useage on the peformance monitor. After several seconds this returns to near...
56
by: Dave Vandervies | last post by:
I just fixed a bug that some of the correctness pedants around here may find useful as ammunition. The problem was that some code would, very occasionally, die with a segmentation violation...
7
by: Vasil Buraliev | last post by:
Hallo. I started a solution in VS.NET with template for C# windwos application. The solution has several projects: -Artifacts -BusinessRules -Client -ErrorLog -Standardization .... ... ..
3
by: sefe dery | last post by:
hi ng, i try to create a asp.net 1.0 website on windows server 2003(Servername: ServerX) with iis 6.0. PROBLEM: The user should login with his windows credentials in basic.aspx and...
10
by: trippeer | last post by:
I have the source code to an old BASIC program that a friend of mine would like to run online. I am a beginner at JS, but I think that it would be a good choice for the project. My background is in...
97
by: Master Programmer | last post by:
An friend insider told me that VB is to be killled off within 18 months. I guess this makes sence now that C# is here. I believe it and am actualy surprised they ever even included it in VS 2003 in...
6
by: Simon Walsh | last post by:
I'm an Electronics student in college and I'm currently working on a project. I was given a circuit diagram for my project, from which I had to design a printed circuit board to be sent off and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.