# AnyScreen - Adding to a 100% Hand Coded Project

**URL:** <https://clarionhub.com/t/anyscreen-adding-to-a-100-hand-coded-project/5397>\
**Category:** uncategorized\
**Created:** [September 2, 2022, 10:09pm UTC](https://clarionhub.com/t/anyscreen-adding-to-a-100-hand-coded-project/5397 "2022-09-02T22:09:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CarlBarnes](https://clarionhub.com/user_avatar/clarionhub.com/carlbarnes/32/1859_2.png) [@CarlBarnes](https://clarionhub.com/u/CarlBarnes)\
**Post date:** [September 2, 2022, 10:09pm UTC](https://clarionhub.com/t/anyscreen-adding-to-a-100-hand-coded-project/5397/1 "2022-09-02T22:09:27Z")

</div>

The topic " Implementing AnySreen in a 100% hand-coded application " is in the AnyScreen help and just documents adding 2 AS lines of code.

```
MAP ...
INCLUDE('AnyScreen.inc') ! Add #1 
...
CODE
AnyScreen:Init() ! Add #2 Initialize AnyScreen

```

That will not build reporting a number of missing files like ClaAnyScreen.lib. I reviewed the AnyScreen.TPL to get the required project settings.

1. Project Defines add: `_AnyScreenPresent_=>1`

2. After MAP add code line: ` INCLUDE('AnyScreen.inc')`

3. After CODE add code line: `AnyScreen:Init() ! Initialize AnyScreen`

4. Before CODE add the project settings below as PRAGMA’s. You could add these in the Project Pad but that’s pain compared to just pasting in the Pragma() lines:

```auto
!-- Added AnyScreen Project Settings Here -- Top -- from AnyScreen.TPL --
 PRAGMA('project(#file copy 7z.exe)') !#PROJECT('None(7z.exe),CopyToOutputDirectory=Always')
 PRAGMA('link(ClaAnyScreen.lib)') !#PROJECT('ClaAnyScreen.lib')
 PRAGMA('link(ClaAnyScreenNet.lib)') !#PROJECT('ClaAnyScreenNet.lib')
 PRAGMA('link(ClaI2PDF.lib)') !#PROJECT('None(ClaI2PDF.dll),CopyToOutputDirectory=Always')  
 PRAGMA('link(ClaASC.lib)') !#PROJECT('C%V%ASC%X%%L%.LIB') 
 PRAGMA('link(ClaDOS.lib)') !#PROJECT('C%V%DOS%X%%L%.LIB') 
 PRAGMA('link(ClaOLE.lib)') !#PROJECT('C%V%OLE%X%%L%.LIB') 
!-- Added AnyScreen Project Settings -- End --

   INCLUDE('AnyScreen.inc')
CODE
   AnyScreen:Init() ! Initialize AnyScreen

```

In this [Sheet Tab project Repo on GitHub](https://github.com/CarlTBarnes/SHEET-TAB-PROP) the SheetTab\_AnyScreen.Clw / CwProj file has these settings. It builds and runs using the IDE AnyScreen button.

The Run and Help are under this button in the IDE

 ![image](https://clarionhub-uploads.s3.eu-north-1.amazonaws.com/original/2X/a/ac4c6cef6ce0e356f873b6a3806352194b1ba9c4.png)

---

<div class="post-metadata">

**Author:** ![jslarve](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/e480ec/32.png) [@jslarve](https://clarionhub.com/u/jslarve)\
**Post date:** [September 3, 2022, 12:01am UTC](https://clarionhub.com/t/anyscreen-adding-to-a-100-hand-coded-project/5397/2 "2022-09-03T00:01:34Z")

</div>

Maybe they could add those pragmas to the .inc. That’s what I do in my .incs with dependencies.

---

<div class="post-metadata">

**Author:** ![AbdurrahmanKorkmaz](https://clarionhub.com/letter_avatar_proxy/v4/letter/a/48db29/32.png) [@AbdurrahmanKorkmaz](https://clarionhub.com/u/AbdurrahmanKorkmaz)\
**Post date:** [August 8, 2024, 7:37pm UTC](https://clarionhub.com/t/anyscreen-adding-to-a-100-hand-coded-project/5397/3 "2024-08-08T19:37:57Z")

</div>

thanks… i will work about
