ActiveX DLL to return a collection with CFOBJECT

2002-04-26 Thread David Jones
Hi All, I'm a new subscriber to the list and about 3 projects new to CF. I recently posted a message but was unsure if it got to the rest of you. So please paron me if you receive this as a dubplicate. I am having trouble returning a

RE: ActiveX DLL to return a collection with CFOBJECT

2002-04-26 Thread BillyC
Looks like you're trying to handle the ADO recordset being returned like you would in ASP. Note that CF really doesn't know how to handle ADO recordsets - you'll probably want to write a wrapper object (or change the current one) to place the recordset into an array (which I *think* CF has no

Re: ActiveX DLL to return a collection with CFOBJECT

2002-04-26 Thread Jon Hall
I don't have a solid answer but there area few things to keep in mind when working with COM with cfobject. CF pukes when you try to reference anything with a null value passed back from a com object. CF pukes if you reference a piece of data that is one of the less common datatypes in an ADO

RE: ActiveX DLL to return a collection with CFOBJECT

2002-04-26 Thread David Jones
Thanks, I was actually wondering that same thing. I was just about to try doing that. Changing the object to return an array I mean. Also I was wondering if anyone had an example of a component that does something similar to what I am trying to do. I don't want an proprietary information or

RE: ActiveX DLL to return a collection with CFOBJECT

2002-04-26 Thread David Jones
Thanks, I'll do that. I don't absolutely have to use ADO, it just so happened that the component I picked to test with returned an ADO record set. To be honest, the components I write in the future will more than likely return arrays anyway. I believe this will help performance in the long haul

Re: ActiveX DLL to return a collection with CFOBJECT

2002-04-26 Thread Joseph Thompson
For fun I converted the JavaScript ADO definitions into a CF include file and posted an example of running through a recordset that way... It may help? http://cfhub.com/advanced/ado/ Basically I want to see a component that for sure works with CF so that I can be sure of why mine do not.

RE: ActiveX DLL to return a collection with CFOBJECT

2002-04-26 Thread David Jones
Yeah I read this yesterday while looking for an answer to my problem. I almost tried it, just for the hell of it... I was able to get my component working to return an array. Thanks for everyone's advice. Dave. -Original Message- From: Joseph Thompson [mailto:[EMAIL PROTECTED]] Sent:

ActiveX DLL to return a collection with CFOBJECT

2002-04-25 Thread David Jones
I am having trouble returning a collection with the cfobject command. Any help would be appreciated. I have an ActiveX Dll with the Prog-ID:ghZipLocator.clsghZipLocator inside that I have a method/function called GetCompanyNames. GetCompanyNames returns a recordset. Which works well in ASP.