×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Does anyone know how to write a .com project in VB6?

Does anyone know how to write a .com project in VB6?

Does anyone know how to write a .com project in VB6?

(OP)
'Cause it's the only way I know to actually get a CF application to read it....


RE: Does anyone know how to write a .com project in VB6?

Kyrene -

.com files are ancient -- back from the MS-DOS 3.x days. The .com extension means that the program was written to the 'small' model, and has only one 16k data segment and one 16k code segment. No one other than the embedded systems guys have used them in 10 years.

Are you sure that's what the Cold Fusion docs say they'll run? Seems strange.... What happens if you rename your .exe program to .com? I suspect the operating system will choke, but it might be interesting to see what happens.

Chip H.

RE: Does anyone know how to write a .com project in VB6?

chiph,

Think the 'com' referenece here is to the Component Object Model, not the small memory C compilation method.

However, I don't know enough to write _either_ variety <grin!>.

Kyrene,

If you have MSDN access, there was a sample/tutorial/example/whatever of using VB to create a COM object on the MSDN site - may be in the CDs, too, haven't looked there for it.

Make a good day . . .
. . . barn

RE: Does anyone know how to write a .com project in VB6?

Kyrene,

We've been developing apps with COM structure since VB4.

MSDN subscription is a must. A good book is Doing Objects in VB6 by Deborah Karata by Miscrosof Press. MSDN site has Duwamish Books sample app, among others.

COM and DCOM and more are all rolled into COM+ in WIN2000. In my opinion, WIN2000 will be where distributed architecture will really take off. Many, many benefits. At this time many, many headaches. Much pain, much gain.

John

RE: Does anyone know how to write a .com project in VB6?

(OP)
:) The reason why I'm asking is because of the Cold Fusion tag CFOBJECT, which can call com and dcom applications.... I was wondering if I could use that to call a VB program.

RE: Does anyone know how to write a .com project in VB6?

Hi Kyrene!

OK, I misunderstood the question -- that 'dot' in '.com' threw me off! Too many things, not enough names for them all.

Simply put, VB has had the ability to create COM objects since version 4. What you do is create a Active-X DLL project, add a class module, and then set the instancing properties for the class as a whole to "5 - Multiuse". Any methods (properties, functions, subroutines) and variables that you declare as "public" in this class become visible to other programs, and available for their use.

So, if CF has the ability to call COM and DCOM objects, then there shouldn't be any problems calling a COM object written in VB. One catch, is if you distribute your VB COM object, you also have to distribute the VB runtime.

Chip H.

RE: Does anyone know how to write a .com project in VB6?

Good luck and let us know how you get on.

Mike
---
Mike_Lacey@Cargill.Com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close