visual-studio-2012

Read SSIS Package File Name From Within Package (Package Deployment)

馋奶兔 提交于 2019-12-23 13:06:12
问题 I created a SSIS Package in Visual Studio SSDT 2012, using Package Deployment model. Is there any way to get access to the package's file name as a readonly variable or property from within the package? I don't see it listed as a system variable, is there any way maybe through the script task? 回答1: I think you need to check System variables in the name of [System::PackageName], if you want to rename the package name,then you have to change the Properties. I've attached screenshots for your

VS2012 - Add WPF existing user control to project

 ̄綄美尐妖づ 提交于 2019-12-23 12:59:41
问题 This seems like it should be pretty simple but I can't seem to make it happen. Lets say I have an existing project with a user control named uc1. I would like to use this user control in another project. I right-click the project name in the solution explorer and select add>existing item, change the drop down to all files and select the files uc1.xaml and uc1.xaml.vb. This of course adds the files to the project but there is no correlation between the xaml and the code behind file and there

Nvidia visual studio Nsight CPU and GPU debugging

假如想象 提交于 2019-12-23 12:53:44
问题 The NVIDIA Nsight Visual Studio Edition does not seem to be capable of debugging CPU (host code) and GPU (cuda code) at the same time. With the Nsight Eclipse Edition (or cuda-gdb) this is quite simple, for example, you can "step in" to a CUDA kernel from the host execution. How to do the same with Visual Studio? 回答1: From the Nsight manual It says Use a separate Visual Studio instance to debug the host portion of a target application. If you wish to debug the host portion of your CUDA

Why is log4net not writing to a file?

…衆ロ難τιáo~ 提交于 2019-12-23 12:52:42
问题 I have added all parts of log4net, however it doesn't write to the file. I'm working with the VS2012 LoadTest project. Neither the System.Console.WriteLine or Debug.WriteLine() work, when running the LoadTest project. I've added the assembly info line: [assembly: log4net.Config.XmlConfigurator(ConfigFile = "web.config", Watch = true)] //For log4net 1.2.10.0 I've: - added webconfig section - initialized an configured an XML initializer - initialized new log4net with the proper log My app

C++11 enum class instantiation

只愿长相守 提交于 2019-12-23 12:34:14
问题 I've encountered the following form of enum class variable instantiation and it is compiling without any warning or error under VS2012: UINT32 id; enum class X {apple, pear, orange}; X myX = X(id); Moreover, sending X(id) as an argument to a function expecting X type param compiled as well. I'm not sure if the result is always correct or it's just a strange compiler behavior. However, trying to do X myX(id); instead of the above resulted in compilation error: error C2440: 'initializing' :

error LNK2019: unresolved external symbol referenced in function main

ぐ巨炮叔叔 提交于 2019-12-23 12:24:43
问题 Am trying to run my simple assembly code in C++.I have only two files ".cpp" file and ".asm" file. On compiling it gives an error (see below ).I would appreciate if anyone could help...:) This is my "main.cpp" file #include <iostream> using namespace std; extern "C" int GetValueFromASM(); int main(int argc, char *argv[]){ cout<<"value is:"<<GetValueFromASM()<<endl; cin.get(); return 0; } Also i have a simple "asm.asm" file .code GetValueFromASM proc mov rax,3254 ret GetValueFromASM endp end

xamarin support in Add Portable Class Library dialog

爱⌒轻易说出口 提交于 2019-12-23 12:24:07
问题 What are the steps required to make the two items available in the Add Portable Class Library dialog? 回答1: Please see my answer in Creating a PCL that targets Monodroid In the meantime, there are quite a few blog posts around on how to get PCLs working unofficially - eg.: http://blogs.endjin.com/2013/05/xamarin-platform-setup-gotchas/ http://slodge.blogspot.co.uk/2013/04/my-current-pcl-setup-in-visual-studio.html 来源: https://stackoverflow.com/questions/16678066/xamarin-support-in-add-portable

Cannot compile 7zip under MSVC2012

只愿长相守 提交于 2019-12-23 12:14:22
问题 I cannot compile 7zip under MSVC2012. When i type: C:\7zsrc> nmake NEW_COMPILER=1 MY_STATIC_LINK=1 Build.mak I get this: Microsoft (R) Program Maintenance Utility Version 11.00.50727.1 Copyright (C) Microsoft Corporation. All rights reserved. link -nologo -OPT:REF -OPT:ICF /LARGEADDRESSAWARE -out:O\ oleaut32.li b ole32.lib user32.lib advapi32.lib shell32.lib LINK : fatal error LNK1104: cannot open file 'O\' NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0 \VC

Building with XAudio2 on Windows 7

 ̄綄美尐妖づ 提交于 2019-12-23 12:08:55
问题 I'm trying to use the following instructions to build some code that uses XAudio2 and runs on Windows 7: http://msdn.microsoft.com/en-us/library/windows/desktop/ee663275%28v=vs.85%29.aspx As suggested, I'm including the XAudio2.h from the DirectX SDK: #include <%DXSDK_DIR%Include\xaudio2.h> Result: fatal error C1083: Cannot open include file: '%DXSDK_DIR%Include\xaudio2.h': No such file or directory Oh well. I was pretty sure VC++ didn't expand environment variables like that anyway. So I

Visual Studio Intellisense methods with underscore don't appear

廉价感情. 提交于 2019-12-23 11:01:51
问题 I'm using VS2012, and one of my project-wide Javascript function namespaces has all of its exposed methods beginning with underscores _ , for example: var NameSpace = { _aMethod = function () { }, _anotherMethod = function () { } }; I created a quick vsdoc file for the namespace, and the namespace itself appears, but none of the methods do . NOTE: If I remove the _ at the beginning of the methods, it works like a charm. // This would work, and show up in the VSDOC var NameSpace = { aMethod =