windows-8

WP7 SDK on Windows 8

て烟熏妆下的殇ゞ 提交于 2019-12-04 19:54:31
问题 Is it possible to install WP7 SDK on Windows 8 Release Preview? I tried using standard installation package but keep getting following error: Installation Requirements: KB2669191 does not apply, or is blocked by another condition on your computer. Please see http://go.microsoft.com/fwlink/?LinkId=225649 for more details. I installed WP7 SDK 7.1 but had some compatibily errors durring the instaa. Right now I can start VS2010 for WP7 but cannot build the solution because of following error: The

Is there a way to find the PackageFamilyName at runtime?

徘徊边缘 提交于 2019-12-04 19:49:26
Is there a way to figure out the PackageFamilyName (as appearing in the manifest) in runtime? I looked in /Program Files/WindowsApps and could not find the relevant string there. Could not find any API that would let me do this... Any other ideas are welcome. I think what you're looking for is PackageId.FamilyName which is available through the Package.Current.Id.FamilyName property. Source: MSDN Forums 来源: https://stackoverflow.com/questions/15333375/is-there-a-way-to-find-the-packagefamilyname-at-runtime

Run application on startup in Windows 8 C#

安稳与你 提交于 2019-12-04 19:38:37
This code: RegistryKey rKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true); rKey.DeleteValue(Application.ProductName, false); rKey.SetValue(Application.ProductName, Application.ExecutablePath, RegistryValueKind.String); doesn't work on Windows 8. I don't have idea why because on Windows 7 and on Windows XP this solution works. Can you help me? In order to set something in the registry you need to run the application as an administrator. To do so you first add a Application Manifest File to the Properties "folder" in the project. Then you change

Connect Windows Phone and Windows 8 apps to SQL Server

时光总嘲笑我的痴心妄想 提交于 2019-12-04 19:34:22
What is the best method to connect a Windows Phone app or Windows 8 app directly to an SQL Server? The apps must not use a proxy/IIS etc. and was hoping to connect directly using SQL like with normal desktop applications. Thanks. You can't directly connect to a SQL Server, because of the Metro-Apps-Sandbox concept. They only can comunicate with a server through a service. The only way around this limitation that I know of is a SQLite integration into Windows 8 Apps. In my opinion the best way (if you use Visual Studio) is the EntityFramework . It seems a bit complex at the beginning, but the

Internet Explorer Extensions

懵懂的女人 提交于 2019-12-04 19:09:19
I created an IE extension from this source: How to get started with developing Internet Explorer extensions? And it work great. But i want to change int IOleCommandTarget.Exec(IntPtr pguidCmdGroup, uint nCmdID, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) { var form = new HighlighterOptionsForm(); form.InputText = TextToHighlight; if (form.ShowDialog() != DialogResult.Cancel) { TextToHighlight = form.InputText; SaveOptions(); } return 0; } to this: int IOleCommandTarget.Exec(IntPtr pguidCmdGroup, uint nCmdID, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) { HTMLDocument document =

D8048: cannot compile C file 'openssl\applink.c' with /ZW option

╄→尐↘猪︶ㄣ 提交于 2019-12-04 18:54:15
问题 I am trying to use OpenSSL in my metro application. I created a C++ WinRTComponent and have openssl files under this component However, when I try to compile the project, I got the following error: D8048: cannot compile C file 'openssl\applink.c' with /ZW option Anyone can tell me how should I resolve this problem to get my project to compile? Please let me know if you need any other info to help me. Thanks, 回答1: The error message is exactly what it says it is - VC++ does not support C++/CX

how to remedy mno cygwin error?

▼魔方 西西 提交于 2019-12-04 18:45:51
问题 I'm working on compiling a library in windows with GCC and Make. When I run make , I get the following error: unrecognized command line option '-mno-cygwin' I saw this post on SO, but it doesn't necessarily seem like the same issue, and I don't understand how to downgrade my system to a version of GCC (or Make) that supports the flag I need to use in order to compile. Could someone please try to point me in the right direction, or if you've run into this problem offer a solution? I'm running

Binding multiple HTML properties using WinJS?

喜夏-厌秋 提交于 2019-12-04 18:45:31
WinJS allows you to bind HTML properties dynamically at run-time, similar to XAML binding. <div id="itemTemplate" data-win-control="WinJS.Binding.Template"...> <h3 data-win-bind="innerText: timestamp"></h3> </div> How if I want to also bind the font color style for <h3> as well, how do I achieve that? Unlike the data-win-options binding which makes use of {key:value,key2:value2} syntax. data-win-binding uses a syntax similar to inline-css styles. Using property:bindingValue;property2:bindingValue2 etc will allow you bind multiple properties to the same HTML control. As an example to answer the

Is there any MasterPage in windows8 development

江枫思渺然 提交于 2019-12-04 18:35:59
I have some pages in the win8 application, most of which have a similar layout, I use Frame.Navigate to switch the pages. Just wonder if there is something like MasterPage in asp.net webform/mvc. Just create a page with the layout you want and then use templates to customize it for particular views. You could have one main view .xaml file and then create a resource dictionary file (for separation purposes) for each different way you use it. Edit: I found someone who made a "Master Page" for wpf. See here . You could do something similar for metro. 来源: https://stackoverflow.com/questions

Visual Studio 2012 designer error

余生长醉 提交于 2019-12-04 18:34:00
I am in the middle of Windows Store app development. Suddenly an exception occurred when I open XAML file " System.Runtime.InteropServices.COMException. The application cannot be started. Try reinstalling the application to fix the problem. (Exception from HRESULT: 0x80073CFC)" What I tried so far: 1. Restart PC 2. Reinstall Visual Studio 2012 ultimate 3. Uninstall VS 2012 ultimate and installed VS2012 Express for windows 8. but still the error is same. The details of the error are: Microsoft.Expression.HostUtility.AppPackage.AppPackageNativeMethods.IApplicationActivationManager