visual-studio-2008

Method works in Visual Studio but not from exe

给你一囗甜甜゛ 提交于 2019-12-25 08:59:31
问题 I have a really wierd problem with my app. When i debug the application from visual studio it works perfectly but when i execute the exe file from the debug folder one of the methods does not work at all. the weird thing is that it is just one method everything else in the application works i read up on similar types of problems and most articles go in the direction of the configuration manager where the setting for platform is set to 'anyCPU' i changed the platform to x64 because my

Visual Studio 2008 Publish fails, can't load dll (envdte.dll)

女生的网名这么多〃 提交于 2019-12-25 08:36:42
问题 I started to get this error after I had installed and uninstalled various MS SDKs Error: Publish failed with the following error: Unable to cast COM object of type 'System.__ComObject' to interface type 'EnvDTE.Project'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{866311E6-C887-4143-9833-645F5B93F6F1}' failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).

handling specific applications volume-level

夙愿已清 提交于 2019-12-25 07:20:11
问题 Using WASAPI, I could control system volume. I wonder, I can control the specific application's volume level programmatically. (of course, this is after windows7 only) is it possible? 回答1: You can control application (session) volume, just like standard Volume Mixer does it. Read up on this in Session Volume Controls where it is explained pretty detailed: WASAPI clients can individually control the volume level of each audio session. [...] To support this behavior, WASAPI implements the

include separated exe application into VS Console project

梦想与她 提交于 2019-12-25 06:36:46
问题 I have created console application on VS 2008, the console app use another exe file(using command line). I would like to add that exe file to my console application. Now I have one problem, if I build project I need to copy exe file manually to build folder. Regards, Tomas 回答1: Add the .exe to your solution. Then in the solution explorer : richt clik on the exe file and choose properties In the properties: Copy to output folder : Copy if newer 来源: https://stackoverflow.com/questions/2243054

Unable to open cpp1.ii file while compiling CUDA project

╄→尐↘猪︶ㄣ 提交于 2019-12-25 06:33:03
问题 I've been using CUDA for the past couple of months on a 64-bit Windows 7 installation along with Visual Studio 2008. Recently I shifted to a 32-bit Windows 7 installation and also updated my graphics card, which earlier was a 8600GTX and now is a GTX465. I've installed the relevant driver and the CUDA 3.1 toolkit, and am still using VS2008. Somehow if I try and compile the same Visual Studio projects I'd used earlier, I get the following output in the build window: 1>------ Build started:

How to ignore conflicts in tortoiseSVN

狂风中的少年 提交于 2019-12-25 05:12:14
问题 I am working on a Visual Studio project and I know that I can ignore when conflicts arise in the bin/obj folders in some Class Libraries when I do updates, since I will rebuild the dll's anyway. I just don't know how to make SVN happy and tell it to ignore the conflicts - I would like to make a 'global' ignore so I will not have to do ignore every single time I update, but help in doing a simple ignore would be helpful as well. Thank you. 回答1: Why are the generated components under source

MySQL .Net Provider 5.2 does not show up in Data Source dialog of VS 2008 Express

笑着哭i 提交于 2019-12-25 05:09:38
问题 I have installed MySQL .NET data provider 5.2 (through it's installer) but I could not see the MySQL data provider in Data Source dialog of Database Explorer. I am using VS 2008 Express edition. Do you have any clues ? Regards, Jatan 回答1: VS 2008 Express (and VS 2005 Express too) doesn't allow you to use MySQL .Net Provider through the Data Source Dialog. The non-Express edition allow you to do the same. To use MySQL in VS Express, you will have to include a reference to the MySQL DLLs from

Using multiple versions of the Windows Platform SDK with VS 2008 Professional

落花浮王杯 提交于 2019-12-25 04:53:27
问题 How do I use multiple multiple versions of the Windows Platform SDK for VC++ native code development with VS 2008 Professional : like The Windows SDK for Windows 7 and .NET Framework 3.5 SP1 and the one installed by default here: C:\Program Files\Microsoft SDKs\Windows\v6.0A\ 回答1: you can use the "Windows SDK Configuration Tool" which gets installed with any SDK. When you start that tool, it shows you all the installed SDK's to choose from, and the one you choose is then used in VS2008. 来源:

c# excel image

风格不统一 提交于 2019-12-25 04:38:10
问题 hi i have inserted image on an excel worksheet... how is it possible to refer to this image from c#, thanks a lot! 回答1: You will want to use the Clipboard object and the Excel Interop assembly. See here. 回答2: There are two ways to do this: either start excel and get the image via the api, or open the excel file directly using the open xml format. I would recomend the latter. See: http://msdn.microsoft.com/en-us/library/aa338205.aspx for details on the format. 来源: https://stackoverflow.com

How to store data to Excel from DataSet without going cell-by-cell?

大憨熊 提交于 2019-12-25 04:37:12
问题 Duplicate of : What’s the simplest way to import a System.Data.DataSet into Excel? Using c# under VS2008, we can create an excel app, workbook, and then worksheet fine by doing this: Application excelApp = new Application(); Workbook excelWb = excelApp.Workbooks.Add(template); Worksheet excelWs = (Worksheet)this.Application.ActiveSheet; Then we can access each cell by "excelWs.Cells[i,j]" and write/save without problems. However with large numbers of rows/columns, we are expecting a loss in