PDA

View Full Version : Win 8 App Creation Help



MongerVog
April 9th, 2013, 02:43 PM
Im still new to win 8.
Im looking to expand my knowledge a little.
Im trying to find away around the javascript crap that Visual Studio Express 2012 gives you with external sources.
The key thing with the program is it only wants to allow certain files to be allowed to be loaded locally.
Well With what I want to do Its try iFrame witch gives me the java errors but still lods all the other element coding (html, css ect), Or to do php extension witch I dont know how to do.
I found that there is an extension but it dont install for some reason.
I basically want to take my website and make it into an app for windows 8.
I understand Microsofts rules and the crap they say, Thing is I aint submitting this to there store, so I wont be breaking there rules.
If the app was setup so all the files for the php script was made into the app then that be different, would only have to change a few files to pull external data and such.
But either way, Im needing help with getting either to work.
Anyone know much about coding win8 apps?

8pecxstudios
April 9th, 2013, 10:29 PM
Hi mate

best trying to make a project with xaml and visual basic

you will find that easy enough to get you started.

if your looking for a good tutorial on this try lynda.com

hope that helps

MongerVog
April 10th, 2013, 12:52 PM
I know how to make in visual basic. Thats how I created my Audio-Freak Media Player.
But issue is visual basic express dont make win8 app for start screen.
Im wanting to release basically kind of a browser app thats specified to my website with no address bar and such.
Sorta like opening my website in firefox then press F11 that kinda view as an win8 start screen app once clicked if ya know what I mean.
The only program I have that can make win8 apps is visual studio express 2012

I cant afford to buy any of MS rediculously priced software.

8pecxstudios
April 10th, 2013, 05:57 PM
hi mate

make sure you have visual-studio-express-for-windows-8 (http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-for-windows-8)


as its different to visual studios express 2012 this ones designed just for apps

An XAML (http://msdn.microsoft.com/en-AU/library/ms752059.aspx) application is what your after as for most part is visual basic.

the VS express for win 8 is free and will do everything you need.

as for your app idea sounds ok, tho i wouldn't use vb base for a web browser i would set it up to just fetch a text or xml file from the site server then parse the info inside to generate the content with using an internal html\css instead of actually going online to an external page

as you could end up with some major security issues there.


best of luck and look forward to seeing your final product.











(http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-for-windows-8)

MongerVog
April 10th, 2013, 11:37 PM
Yeah I got that already downloaded, installed and registered
How would I go about calling such like you say? I tried searching google but I get a lot of crap thats seriously just crap.
I was able to do an iframe call in the software but ran into the issues of it not wanting to load the javascripts that make everything happen.

8pecxstudios
April 11th, 2013, 12:17 AM
well thats the fun part as reading to and writing to files is the easy part with Stream Reader (http://msdn.microsoft.com/en-AU/library/system.io.streamreader.aspx) that will read the file just fine

i highly recommend you multi-thread the app with a safe threading module like background worker (http://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1) as to ensure the
application can perform more then one task at any giving time ensuring the application is capable of still doing functions while running another as to prevent the flaw in VB with (not responding only been able to run 1 task before doing another).

you will have to make a small library of html and css elements and assign them to id's so on the say xml file <button id"button"></button> ect its able to know what to do with the code in the xml so for the button ID its able to use CSS to style it with your predefine settings.

note there are quite a few elements to consider and plan, its best to plan on paper to work out or try n work out exactly what you need and work out the preparation for your work space as there are many ways you can do this some very easy with little complexity and others will allot of coding and debugging but remember XAML brings stuff to the table as well.


here is a youtube video that will give you a refresher on the basic, i find the http://msdn.microsoft.com/library/default.aspx library is the best source for info if needed .

http://www.youtube.com/user/TeachMeComputer/videos?view=0

I wish you luck on your adventure as the rest is up to you.