visual-studio-2012

Error Signing Windows Phone XAP file -> SignTool Error: This file format cannot be signed because it is not recognized

寵の児 提交于 2021-02-19 07:39:05
问题 I've just got my certificate to sign Windows Phone Apps and when I try to run this command: XapSignTool.exe sign /v C:\Temp\MyApp_Release_AnyCPU.xap I'm using Visual Studio 2012 Express. I get an strange behavior: The following certificate was selected: Issued to: XXXXXX Issued by: Symantec Enterprise Mobile CA for Microsoft Expires: XXXXXX SHA1 hash: XXXXX Done Adding Additional Store Successfully signed: C:\Users\Fernando\AppData\Local\Temp\tmp7E47.tmp\MyApp.dll Number of files successfully

C++/CLI Errors in Intellisense, Compiles fine

主宰稳场 提交于 2021-02-19 03:26:26
问题 ...anyone an idea how to fix those? Visual Studio 2011 Beta, trying to get some frameworks prepared for that and now going through a limited list of issues. The code is: String^ pUser = (System::String^) pConnectionStringBuilder["UserName"]; String^ pPass = (System::String^) pConnectionStringBuilder["Password"]; String^ pBroker = (System::String^) pConnectionStringBuilder["Broker"]; pConnectionStringBuilder is an instance of ConnectionStringBuilder. The errors: 2 IntelliSense: expression must

Winforms Could not load file or assembly 'Microsoft.ReportDesigner, Version=10.0.0.0' in VS2012

假如想象 提交于 2021-02-18 20:15:10
问题 This is driving me nuts. I have a winforms app build in VS2012 targeting .NET 4.5. On a few forms I have to use a ReportViewer. At first I worked with ReportViewer for 2012 (version 11.0.0.0). All working fine. However, my client doesn't want to install this version on their workstations yet because this version uses the CLR Types SQL 2012. Don't ask me why, but I have to accept this for now. So I decided to use the previous reportviewer version 10.0.0.0. I downloaded the redistributional

How to compile OpenSSL on Windows?

给你一囗甜甜゛ 提交于 2021-02-18 11:37:05
问题 I have been following the instructions in the OpenSSL User Guide, which links to a guide by 3noch for compiling OpenSSL. Here are the tools/versions I am using: ActiveState Perl v5.20.2 Microsoft Visual Studio 2012 Netwide Assembler (NASM) v2.12.02 OpenSSL 1.0.2j (source tarball) Following the instructions, I am able to execute the following commands without issue: perl Configure VC-WIN32 --prefix=C:\Build-OpenSSL-VC-32 ms\do_ms Then, when I go on to execute nmake -f ms\nt.mak I receive the

Setting Environment variable in Visual studio C++project

一个人想着一个人 提交于 2021-02-15 07:49:27
问题 I realize that similar questions were posted earlier but I need slightly different solution. I have VS2012 C++ project A.vcxproj,that has debug1 configuration( platform x64) , and it builds corresponding .exe. It also uses a dll from other VS2012 C project B.vcxproj from a path that must be added to the environment variables. A.vcxproj.user file has following text <LocalDebuggerEnvironment>PATH=%PATH%;C:\Program Files\libsndfile\bin;..\..\lib\simulink\;$(LocalDebuggerEnvironment) <

Visual Studio working directory

感情迁移 提交于 2021-02-11 16:47:42
问题 It looks like there are similar question to mine, but they have workarounds that I would rather avoid. I have a bin folder in my project that contains all the dynamic libraries needed to run the program. So to let the program find the dll, I have set the Working Directory in Project Property Pages -> All Configurations -> Configuration Properties -> Debugging -> Working Directory Unfortunately I am greated with an error that the libary has not been found. It looks like VS does not change the

Visual Studio working directory

旧街凉风 提交于 2021-02-11 16:47:30
问题 It looks like there are similar question to mine, but they have workarounds that I would rather avoid. I have a bin folder in my project that contains all the dynamic libraries needed to run the program. So to let the program find the dll, I have set the Working Directory in Project Property Pages -> All Configurations -> Configuration Properties -> Debugging -> Working Directory Unfortunately I am greated with an error that the libary has not been found. It looks like VS does not change the

Converting Seconds to Years, days, hours, min, secs

[亡魂溺海] 提交于 2021-02-11 15:33:16
问题 I have this much to convert seconds to hours, minutes, and seconds. I need to make it work for years, and days too. Can someone help? Dim mHours As Long, mMinutes As Long, mSeconds As Long mSeconds = 12345 ' Sample data mHours = mSeconds \ 3600 mMinutes = (mSeconds - (mHours * 3600)) \ 60 mSeconds = mSeconds - ((mHours * 3600) + (mMinutes * 60)) MsgBox mHours & ":" & mMinutes & ":" & mSeconds 回答1: Thanks Everyone, I ended up using the Mod function. If (seconds >= 31536000) Then years =

Type initializer exception OpenTK and monogame

梦想的初衷 提交于 2021-02-10 22:30:02
问题 I just installed MonoGame and OpenTK 1.0 and in Visual Studio 2012 I made a new project of type 'Windows OpenGL Game`...but when I run the project I get the following error: The type initializer for 'OpenTK.Graphics.GraphicsMode' threw an exception. The error is right on this line (the consturctor, on the base()) public Game1() : base() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; } My laptop has intel oboard graphics 3000 and I think it supports OpenGL..

Type initializer exception OpenTK and monogame

眉间皱痕 提交于 2021-02-10 22:29:14
问题 I just installed MonoGame and OpenTK 1.0 and in Visual Studio 2012 I made a new project of type 'Windows OpenGL Game`...but when I run the project I get the following error: The type initializer for 'OpenTK.Graphics.GraphicsMode' threw an exception. The error is right on this line (the consturctor, on the base()) public Game1() : base() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; } My laptop has intel oboard graphics 3000 and I think it supports OpenGL..