Digging Deeper into DEPTREE_TEMPTAB
-
I had previously written about running a script to set up the
DEPTREE_TEMPTAB table in my schema. I knew it was used to track
dependencies. But I knew li...
Writing Apps With C++
I consulted some MSDN pages to help learn how to write Windows 8 apps using C++. You need Visual Studio Express for Windows 8. This is also known as Visual Studio 11. It has Blend in it. This product is licensed to you. Be reminded that you cannot perform file input/output operations directly in your apps.
Windows Store apps are not managed. The user interface is defined using XAML. You will notice some files with a *.g extension on them. They are generated files and will get overwritten. Do not edit them.
There is a manifest file for your app that specifies the app capabilities. This file is an XML file. You can edit it with an XML Editor. Normally you use the Application Manifest Design part of Visual Studio. The user has to grant the resources that you request via the manifest. This is a security feature.
Windows App Limitations
To use JavaScript to write a Windows 8 app, you should choose the JavaScript template in Visual Studio. Make sure you choose the one destined for the Windows Store. You need to consider that there are different states that you app can be in. I personally use Visual Studio to develop apps. You could also use a product called Blend. I hear it is good for layout.
You must delcare what capabilities your app needs to access. This info goes into your manifest. Be warned that the default manifest for Visual Studio app projects has Internet Access checked. Your app will get failed if you leave this checked and do not provide a privacy policy for your app. If you app does not require Internet Access, disable this capability!
Active X control are not allowed in your apps. Plug-ins are also not aupported. File access is blocked. Windows alerts do not work. You also need some tricks to access innerHTML as well. The Windows prompt is unavailable.
Windows 8 Apps Using JavaScript
Although I decided in the end to write my Windows 8 Apps in C++, you can write them in JavaScript. There is a Windows Library for JavaScript. It is called WinJS. It gives you a bunch of controls and a toolkit of sorts. There is an app host, which is an executable like a browser. It is really Internet Explorer 10 behind the scenes.
You launched your apps using a URI. You cannot use interprocess communication with other apps. That is blocked. The app splash screeen is the fisr thing that is displayed. There are a few view states that an app can be in such as full screen or snapped. The minimum screen resolution for using apps is 1024 x 768.
There is no close command in an app. Your app has to save its state when it is being suspended. The state will later be reloaded. The app settings can be done per user. You need a development account to create apps. To get into the Windows 8 Store, the app needs to pass some tests. Those tests will be conducted with the Windows App Certification Kit. It checks for things like malware and such.
The Windows 8 Store
You can write a Windows RT project in either the C++, C#, Visual BASIC, or JavaScript programming languages. Yeah. There are a lot of options. Initially I leaned toward JavaScript since I learned it recently. However I fell back onto C++ when I actually wrote my apps.
Windows 8 Apps are sold in the Windows 8 Store. You use Visual Studio to upload your app package to the store. The package file has an appx extension. It needs a manifest. The appx file is really just a zip (compressed) file.
When you start out, you should reserve your app name in the Windows Store. The app will then get licensed to the user when they purchase it through the Windows 8 Store. Kind of reminds you of the Apple store for apps, right? Microsoft is coming a bit late to the game. Let's hope they can catch up.
Windows RT
Been through some Windows 8 App Store development this summer. Did not do too much blogging about it because I was super busy. Now I got six apps in the Windows 8 Store. Still need to do some marketing for them. But the initial development for them is done. Time to reflect back on what I learned in a bunch of blog posts.
I first read a book that taught you how to write Windows 8 apps using HTML/CSS/JavaScript. Sounded good as I have been learning these technologies for the last few years. Just recently finished up an advanced Javascript course. Windows RT is a new API. It stands for the Windows Runtime API. This supports this like touch screens running on tablets and phones.
You need a couple things to start writing Windows 8 apps. Need a tool like Visual Studio 2012 express for Windows. Or you could use something called Blend. I recommend VS 2012. The express version is free. You also have to be actually running the Window 8 operating system to develop for Windows 8.
Windows 8
I am a little late to the party. But I got a copy of Windows 8 installed on my laptop. Why? I wanted to develop apps for Windows 8. And guess what? You need to have Windows 8 to develop on Windows 8. Fair enough. I had an extra laptop laying around. The install was not too hard. Getting used to the new version of Windows was harder.
The main user interface that comes up by default with Windows 8 is a screen that itself launches apps. You can spin up a normal looking Windows desktop. But there is no start menu (at least until Windows 8). I guess I need to create a lot of icons on the desktop.
Many common Windows activities are changed in Windows. For example, I had a hard time figuring out how to shut down the computer. It has been a while developing a bunch of apps. I still do not feel comfortable with the Windows 8 interface. I prefer Windows 7. I plan to give it some time.
Windows Start Button
A developer I work with was worried about the state of affairs in the Windows 8 operating system. Things seemed to be drastically changing. He worried that the new tablet style interface would be accepted by Microsoft, and mark the demise of desktop application development. Well another big change with Windows 8 was supposed to be the removal of the Windows start button.
Yeah the start button has been around since what, Windows 95? Microsoft likes shaking things up. You have seen the craziness in the Microsoft Office 2007 menus. Now they are getting rid of the start button? Turns out that was too bold a move. Guess there was an outcry from the people. Because I just read in BBC News that Microsoft is back pedaling this decisions. The start button is back. About time.
Yeah the start button has been around since what, Windows 95? Microsoft likes shaking things up. You have seen the craziness in the Microsoft Office 2007 menus. Now they are getting rid of the start button? Turns out that was too bold a move. Guess there was an outcry from the people. Because I just read in BBC News that Microsoft is back pedaling this decisions. The start button is back. About time.
Subscribe to:
Posts (Atom)