ECS-L Home Automation and Security Archives
  learn more | view messages for this month | NetBloc® | terms of use | search

Google
 


  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects

Subject:
From:
Date:
RE: [ECS] Calling BASIC modules from C ?
Ingo Pakleppa
Thu, 31 Aug 2000 22:59:36 -0700

One of the pitfalls that can easily trip you up is that before you make any 
CoCreateObject calls, you must first, once at the beginning of your 
program, call CoInitialize(). That's non-trivial to find if you forget it...

Ingo

At 08:46 PM 8/30/2000 -0700, Nathan Brown wrote:
>If they have compiled their VB code into a DLL, then it will be a COM
>dll.  To call any of the functions in the DLL you must first instanciate
>an objects see CoCreateObject.  This is the entry point for calling any
>functions from a COM object.  If their code is not compiled then I would
>search for references on the VB Scripting Engine.
>
>-----Original Message-----
>From: Mark Gilmore [mailto:omnip@usit.net]
>Sent: Wednesday, August 30, 2000 5:22 PM
>To: ecs-list@netbloc.com
>Subject: Re: [ECS] Calling BASIC modules from C ?
>
>
>Hi Nathan,
>I would need to call VB modules (in a vendor library)
>from MS VC++ (under Windows).
>Many thanks for any tips you may offer.
>Just a phrase to search for would probably suffice.
>I haven't been able to turn up anything yet.
>--
>Mark Gilmore
>Omnipotence (ECS home automation software)
>http://omnipotencesoftware.com
>423-745-0026
>Hours: Mon-Sat, 9AM-8PM/EST
>
>
>Nathan Brown wrote:
> >
> >         This depends on what environment you are in.  Windows has
> > several facilities that will allow you to do this (such as the Visual
> > Basic Scripting engine and VB COM components).  Are you talking about
> > compiled components?  Does it have to work in Unix?
> >
> >         -----Original Message-----
> >         From: Mark Gilmore
> >         Sent: Wed 8/30/2000 3:53 PM
> >         To: ecs-list@netbloc.com
> >         Cc:
> >         Subject: [ECS] Calling BASIC modules from C ?
> >
> >
> >
> >         Does anyone know if this is possible ?
> >         Thanks,
> >         --
> >         Mark Gilmore
> >         Omnipotence (ECS home automation software)
> >         http://omnipotencesoftware.com
> >         423-745-0026
> >         Hours: Mon-Sat, 9AM-8PM/EST
> >
> >
> >
>------------------------------------------------------------------------
> >                   Name: winmail.dat
> >    winmail.dat    Type: application/ms-tnef
> >               Encoding: base64


  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects




Services provided by [NetBloc]®! NetBloc Solutions Inc.
Terms of use. Indexing software (c) 1999 Lin-De, Inc
.