` Printed Icetips Article

Icetips Article



Clarion in general: Using Section to include datatypes and equates in multi-dll projects
2004-06-05 -- Bjarne Havnen
 
Newsgroups: comp.lang.clarion

> >Thanks for the help - I was confused because I thought I had to declare
the
> >queue in the global data dll in addition to the other two apps.
>
> If it's typed, then you only need it where you need it  What I have
> done where I need a lot of equates or typed structures is that I write
> them all into an external .clw file that I then just include in the
> Global data embed and forget about it.  If I need to make changes, I
> do it in that one clw file and recompile all the apps and everything
> is up to date:)

I found a pretty good way of at the same time keeping it in the app: I
define a section in the first clw in data.dll and then I include this
section in the other apps

Section('TypeDefs')
!typedefs to follow
Section('EndTypeDefs') !just to not include the rest of the file

Include('data.clw','TypeDefs')



Printed November 21, 2024, 4:08 pm
This article has been viewed/printed 35221 times.
Google search has resulted in 6 hits on this article since January 25, 2004.