VB6 entity? :)

Posts   
 
    
castlejoe
User
Posts: 18
Joined: 07-Feb-2005
# Posted on: 23-Apr-2005 13:09:37   

Hi,

I was wondering if it would be possible to change/extend the template that generates the entities (adapter) to generate VB6 entities too? We have a webservice that delivers data (SOA bla, bla you know wink ) and is consumed by C# and VB6 code, and would be cool to recreate the entities as vb objects, make changes on them and submit those changes for saving to the webservice.

Does anybody use llblgen from VB?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39749
Joined: 17-Aug-2003
# Posted on: 23-Apr-2005 13:19:14   

You could try to use the generated code in VB6, by generating an interop typelib for vb6 from the compiled generated code assembly. Though I've never used it.

Frans Bouma | Lead developer LLBLGen Pro
castlejoe
User
Posts: 18
Joined: 07-Feb-2005
# Posted on: 23-Apr-2005 13:21:51   

The point unfortunately is not to have the .net framework on the client.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39749
Joined: 17-Aug-2003
# Posted on: 23-Apr-2005 13:35:50   

castlejoe wrote:

The point unfortunately is not to have the .net framework on the client.

Then you have to use the XML, I'm afraid.

Frans Bouma | Lead developer LLBLGen Pro
castlejoe
User
Posts: 18
Joined: 07-Feb-2005
# Posted on: 23-Apr-2005 13:47:25   

Sure, but I'm looking for generating the vb classes that are filled from xml (llblgen format from the webservice). So having vb classes with more-or-less same interface as the llblgen entities.

Thanks

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39749
Joined: 17-Aug-2003
# Posted on: 25-Apr-2005 10:18:57   

castlejoe wrote:

Sure, but I'm looking for generating the vb classes that are filled from xml (llblgen format from the webservice). So having vb classes with more-or-less same interface as the llblgen entities. Thanks

You can of course write some templates which generate VB6 code, that's no problem. Though you can't use the ORM support classes etc., you have to rely on MSXML and plain VB6 code.

Frans Bouma | Lead developer LLBLGen Pro
Devildog74
User
Posts: 719
Joined: 04-Feb-2004
# Posted on: 25-Apr-2005 19:31:48   

Personally I would rather parse the xml dom returned from the web service vs. trying to interop llblgen entities to vb6 what a nightmare.

Using template studio wouldnt be that bad either if you had a generic object loader that would load the data from the dom into the vb6 code generated objects, but eesh.