# Mulit-platform windows programming

**URL:** <https://forum.xojo.com/t/mulit-platform-windows-programming/11650>\
**Category:** Web\
**Created:** [October 15, 2013, 5:46am UTC](https://forum.xojo.com/t/mulit-platform-windows-programming/11650 "2013-10-15T05:46:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Scanlan](https://forum.xojo.com/user_avatar/forum.xojo.com/john_scanlan/32/472_2.png) [@John\_Scanlan](https://forum.xojo.com/u/John_Scanlan)\
**Post date:** [October 15, 2013, 5:46am UTC](https://forum.xojo.com/t/mulit-platform-windows-programming/11650/1 "2013-10-15T05:46:22Z")

</div>

creating web app for desktop, and iPad. The windows have to be different. Trying to find the easiest way to program for different windows.

The desktop program is complete and running. I’m adding the iPad window.

Putting all my methods (there’s a lot) in the session seems over burdensome due to extended references.

Anyone have a spectacular idea how to do this without months of work?

---

<div class="post-metadata">

**Author:** ![Thomas\_Tempelmann](https://forum.xojo.com/user_avatar/forum.xojo.com/thomas_tempelmann/32/315_2.png) [@Thomas\_Tempelmann](https://forum.xojo.com/u/Thomas_Tempelmann)\
**Post date:** [October 15, 2013, 7:09am UTC](https://forum.xojo.com/t/mulit-platform-windows-programming/11650/2 "2013-10-15T07:09:47Z")

</div>

I don’t have an answer but I think you should move this conversation to the “Web” sub forum.

---

<div class="post-metadata">

**Author:** ![David\_Cox](https://forum.xojo.com/user_avatar/forum.xojo.com/david_cox/32/227_2.png) [@David\_Cox](https://forum.xojo.com/u/David_Cox)\
**Post date:** [October 15, 2013, 2:34pm UTC](https://forum.xojo.com/t/mulit-platform-windows-programming/11650/3 "2013-10-15T14:34:25Z")

</div>

Place your methods into a series of Modules  one for entirely generic methods, one for desktop only, one for WE only, etc (you need to do this since a method receiving or returning a WE object will not compile in a desktop app and vice versa. Code inside a method can be inside #if target commands).

Make these modules external to your project. As you create a new app, drag them as aliases into your new project. Now your interface is environment specific but your code is not.

---

<div class="post-metadata">

**Author:** ![John\_Scanlan](https://forum.xojo.com/user_avatar/forum.xojo.com/john_scanlan/32/472_2.png) [@John\_Scanlan](https://forum.xojo.com/u/John_Scanlan)\
**Post date:** [October 17, 2013, 3:22am UTC](https://forum.xojo.com/t/mulit-platform-windows-programming/11650/4 "2013-10-17T03:22:46Z")

</div>

thanks David … did move this to web sub forum under “Session and webpage issues”

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 4:53pm UTC](https://forum.xojo.com/t/mulit-platform-windows-programming/11650/5 "2020-10-29T16:53:53Z")

</div>


