Page 1 of 1

Set TypedAddress off in Dac.inc

Posted: Fri 25 Dec 2015 20:22
by davidmarcus
I find it simpler to add the source folder to the unit search path for third-party libraries that I use. I would appreciate it if you would please add the following line to Source\Dac.inc:

Code: Select all

{$TypedAddress off}
I have TypedAddress on, so I need to do this to compile MyDAC source. I'm using

MyDAC Professional with source code 8.6.20
Delphi 10 Seattle

Re: Set TypedAddress off in Dac.inc

Posted: Mon 28 Dec 2015 11:47
by ViktorV
Existing compilation directives are standard for our components, which are used by many users - so we can't change them. You can override them for your needs.

Re: Set TypedAddress off in Dac.inc

Posted: Mon 28 Dec 2015 12:52
by davidmarcus
Victor,

I'm sorry, but I don't understand what you wrote. Your components won't compile if TypedAddress is on. You should set the directives you need in your files or write your code to work with any setting.

David

Re: Set TypedAddress off in Dac.inc

Posted: Mon 28 Dec 2015 14:46
by ViktorV
We will consider the possibility to add this directive in the next build of MyDAC. For now, you can add it in Dac.inc manually.

Re: Set TypedAddress off in Dac.inc

Posted: Mon 28 Dec 2015 14:51
by davidmarcus
Thank you. I did add it manually, but I don't like to change MyDAC code.

Re: Set TypedAddress off in Dac.inc

Posted: Mon 28 Dec 2015 15:33
by ViktorV
We will let you know as soon as the next MyDAC build is released.