# Dynamic Code - Need some direction

**URL:** <https://forums.digi.com/t/dynamic-code-need-some-direction/10171>\
**Category:** Rabbit\
**Created:** [October 3, 2008, 3:56pm UTC](https://forums.digi.com/t/dynamic-code-need-some-direction/10171 "2008-10-03T15:56:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dexsite](https://avatars.discourse-cdn.com/v4/letter/d/e56c9b/32.png) [@Dexsite](https://forums.digi.com/u/Dexsite)\
**Post date:** [October 3, 2008, 3:56pm UTC](https://forums.digi.com/t/dynamic-code-need-some-direction/10171/1 "2008-10-03T15:56:30Z")

</div>

Hello:

I need a way to generate code based on settings specified in another file. I believe in C this was done using an include file but I do not know if or how it can be done in Dynamic C and was hoping you could either provide me with the information or at least point me in the right direction so I can research it myself. I’m just having a hard time finding anything online.

Just so you can better understand what I’m looking for, here is my problem. I use this code to program a device, and I do many of these a week with the only changes to the code being a few lines like I mentioned above. To help with the work load, I’d like to be able to have some of the other people do it as well but I don’t want them to have to sort through the source code to try and find the lines. I’d like for them to be able to open a file/program, change some settings and then the rest is taken care of.

Thanks in advance for you help,

Russell

---

<div class="post-metadata">

**Author:** ![Margaret](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@Margaret](https://forums.digi.com/u/Margaret)\
**Post date:** [October 3, 2008, 6:34pm UTC](https://forums.digi.com/t/dynamic-code-need-some-direction/10171/2 "2008-10-03T18:34:10Z")

</div>

In Dynamic C you can use #USE

Take a look at the Dynamic C Users manual located at

[http://www.rabbit.com/products/dc/docs.shtml](http://www.rabbit.com/products/dc/docs.shtml)

I hope this helps

---

<div class="post-metadata">

**Author:** ![Dexsite](https://avatars.discourse-cdn.com/v4/letter/d/e56c9b/32.png) [@Dexsite](https://forums.digi.com/u/Dexsite)\
**Post date:** [October 3, 2008, 7:58pm UTC](https://forums.digi.com/t/dynamic-code-need-some-direction/10171/3 "2008-10-03T19:58:08Z")

</div>

Thanks. I think this will definitely help with what I need to do.

I appreciate the help.

Russell
