visual-studio-2010

ProgramFiles64Folder is installing to \Program Files (x86)\ in WIX Installer

末鹿安然 提交于 2020-01-04 02:55:11
问题 I currently have two WIX projects - one for creating an x86 installer and one for creating an x64 installer. I would like to combine these two projects into just one project which uses variables to control program flow. I have the following: <?if $(var.Platform) = x64 ?> <?define ProductName = "CableSolve Web (64 bit)" ?> <?define Win64 = "yes" ?> <?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?> <?else ?> <?define ProductName = "CableSolve Web" ?> <?define Win64 = "no" ?> <

Dynamically allocating memory inside __device/global__ CUDA kernel

元气小坏坏 提交于 2020-01-04 02:44:32
问题 According to the CUDA Programming Guide , Page 122, it is possible to dynamically allocate memory inside a device/global function so long as we're using compute architecture 2.x. My problem is that when I attempt this I get the command line message: The command "some command" -gencode=arch=compute_10,code=\"sm_10,compute_10\" -gencode=arch=compute_20,code=\"sm_20,compute_20\" etc... This is followed by an error saying that you cannot call a host function (malloc) from a device/global function

VS2010's concurency runtime and unbounded_buffer<shared_ptr<T>>, any pitfalls?

时光总嘲笑我的痴心妄想 提交于 2020-01-04 02:33:09
问题 I want to pass heap-allocated objects from a dll. Obviously, memory must be managed correctly. Does anyone see a problem with the following cunning scheme I devised: unbounded_buffer<shared_ptr<T>> buf; I am aware that shared_ptr stashes away a deleter for the contained object, so using it alone across dll boundaries shouldn't be a problem. 回答1: Here's what I received from MSFT regarding the issue: Yes, you can use the message blocks (like unbounded_buffer) on thread that are manually created

SvcUtil.exe vs Add Reference

坚强是说给别人听的谎言 提交于 2020-01-04 01:53:06
问题 Why would someone use SvcUtil.exe when Add Service Reference in VS.NET provides all the proxy classes you'll need? 回答1: Sometimes Add Service Reference in VS fails to create a useful proxy. Instead it gives you an empty Reference.cs details here and here file. I've created a series of bat files to call SvcUtil.exe to generate the proxy classes. 回答2: Both svcutil.exe & 'Add Service reference' will use the same proxy generation code underneath. Think of 'Add service reference' as a UI way to

VS 2010 C++ IntelliSense “a storage class may not be specified here” even though it can?

本小妞迷上赌 提交于 2020-01-04 01:28:48
问题 This is a fairly minor question, but it's annoying me: IntelliSense seems to be convinced that declaring static variables at the function-scope in an if condition is an error, and complains about it. Only it builds just fine, and even the MSDN docs mention it as a legitimate usage. I'd really like to get rid of the wavy red line, because it comes up fairly often (it's used in a macro I use regularly). Here's the code, as an example, though it's not the only example in my program: MyForm:

GHC Foreign hs_init/hs_add_root crashes

孤街浪徒 提交于 2020-01-03 21:48:09
问题 I don't repeat more than necessary, brief summary: Following the Adder example from this tutorial on a machine with win7 (64) with VS 2010. But I don't use C++ but plain C. When using the cl (MS compiler) with cl /Zi (and no other flag) it works like expected. If not use /Zi and then try to execute the exe goes into flames. Why? (There must be some compiler/link options that make some init in the start of the haskell dll go wrong ) EDIT: Some investigation: /Zi does not affect optimizations.

GHC Foreign hs_init/hs_add_root crashes

廉价感情. 提交于 2020-01-03 21:47:04
问题 I don't repeat more than necessary, brief summary: Following the Adder example from this tutorial on a machine with win7 (64) with VS 2010. But I don't use C++ but plain C. When using the cl (MS compiler) with cl /Zi (and no other flag) it works like expected. If not use /Zi and then try to execute the exe goes into flames. Why? (There must be some compiler/link options that make some init in the start of the haskell dll go wrong ) EDIT: Some investigation: /Zi does not affect optimizations.

EXPECT_CALL of googlemock leads to “unknown file:error: SEH exception with code 0xc0000005 thrown in the test body” [closed]

自作多情 提交于 2020-01-03 20:13:29
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . I am novice to googlemock. My current project needs googlemock to use. I have learned from basics of gmock from google help site. But when I have tried

EXPECT_CALL of googlemock leads to “unknown file:error: SEH exception with code 0xc0000005 thrown in the test body” [closed]

情到浓时终转凉″ 提交于 2020-01-03 20:13:23
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . I am novice to googlemock. My current project needs googlemock to use. I have learned from basics of gmock from google help site. But when I have tried

Developing multiple Visual Studio 2010 extensions

浪尽此生 提交于 2020-01-03 19:42:06
问题 Im working on a couple of independent Visual Studio extensions in separate solutions. When I open one of them and launch the experimental instance in the debugger, the other extensions from the other solutions (which aren't open) are loaded as well. There must be a way to only launch one extension in the experimental instance at a time (in particular the one you're currently working on), right? 回答1: Not really. When you build and run the extension project in VS, it is actually deployed to the