visual-studio-2008

Renaming worksheets in Excel via export from Visual Studio 2010

丶灬走出姿态 提交于 2019-12-24 00:48:08
问题 I' m developing reports from Visual Studio 2010 using .rdlc extension. There is a requirement where I have to export all reports to one excel file in the form of tabs. When I export reports to Excel I can see the reports in the form of tabs(sheet1, sheet2, ........). I want to rename these sheets. I have seen that in SQL Server 2008 R2 there is a property PageName which I' m unable to find in Visual Studio 2010. Please help me with this. 回答1: You can try this out: PageName Set this and then

DisconnectedContext Error while running Unit Test project in VS 2008

一个人想着一个人 提交于 2019-12-24 00:45:21
问题 I have a unit test project inside my solution. I keep adding new unit tests and modifying old ones. Some days ago, a message box keeps appearing when running my unit test project. The message box say: DisconnectedContext was detected Message: Context 0x2aae50' is disconnected. Releasing the interfaces from the current context (context 0x2aad98).This may cause corruption or data loss. To avoid this problem, please ensure that all contexts/apartments stay alive until the applicationis

How do you call Win32 API functions from inline assembler?

我只是一个虾纸丫 提交于 2019-12-24 00:45:00
问题 Would somebody please tell me whats wrong with this code I am just calling a Sleep function from the kernel32.dll What's wrong? I am using Visual Studio 2008. Any help would be grateful. Thank you very much. __asm { mov eax, 77e2ef66h push 9999 call eax } 回答1: Where did you get that magic number, 77e2ef66h ? Usually if you're calling Win32 API functions from inline assembler, you'd do something like: __asm { push 9999 call Sleep } Functions in Win32 do not have a fixed address (regardless of

WPF Designer exception while trying to edit UI in Visual studio 2008

扶醉桌前 提交于 2019-12-24 00:43:24
问题 I have VS2008 with .net 3.5 SP1 installed on my machine, I have written one simple application with two listviews and databinding, My application compiles fine and I am able to run it, but when I try to open designer to edit controls, I get following error. I am not getting why this is happening. Any idea...see xaml below this error message Type 'MS.Internal.Permissions.UserInitiatedNavigationPermission' in Assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken

Unable to set breakpoints in C DLL used by C++/CLI called from C#

◇◆丶佛笑我妖孽 提交于 2019-12-24 00:37:45
问题 I have a native C DLL being invoked by a C++/CLI object which is the ViewModel for a WPF progam in C#. I want to set breakpoints in the C DLL. When I try to set them they are grayed out and the help balloon says the breakpoint will not currently be hit. No symbols have been loaded for this document. To get the program to run OK I had to add a custom build step which copies the DLL, PDB, ILK and LIB files to the intermediate directory of the C# main program. I suspect that has something to do

Visual Studio 2008 and JavaScript brackets formatting

大兔子大兔子 提交于 2019-12-24 00:36:09
问题 As we all know MS added JavaScript formatting to VS 2008 SP1. But unfortunately it fails on this code: var viewport = new Ext.Viewport({ layout: "border", items: [{ region: "center", contentEl: "center" }, { region: "south", contentEl: "south" }, { region: "west", contentEl: "west" }] // This bracket is misplaced }); viewport.render(); Is there any way to fix it? Is it fixed in VS 2010? 回答1: Couldn't find any way to fix it, but it is fixed in VS 2010. 来源: https://stackoverflow.com/questions

How do you change Visual Studio's default web browser?

狂风中的少年 提交于 2019-12-24 00:16:38
问题 This is a for a Silverlight project that isn't anchored to an .aspx file, so right clicking, etc. is a bit out of the question. Any ideas? Edit: Add an .html file, then click it. Really dumb. Last time I ask a question at three in the morning. 回答1: Why is right-clicking out of the question? With any HTML document at least (even in Miscellaneous Files ) you can right-click on it, select Browse With... , select the browser, and click on Set as Default . If the browser doesn't appear in the list

Customizing the Places Bar in Visual Studio 2008

你说的曾经没有我的故事 提交于 2019-12-23 23:06:25
问题 Has anybody succeeded in customizing the Places Bar for VS 2008? My customizations from VS 2005 did not transfer to 2008 (obviously), and no matter what I do with the registry, I cannot make my custom places appear on the Open dialogs. I have read and applied the relevant MS KB article, to no avail. This used to work fine with VS 2005, so it may well be a VS 2008 bug, but I may be wrong trying the same approach. 回答1: some observations: VS2008 uses now Common File Dialog. With Powertoys

Difference between WIN32 and x86 in smart card project

◇◆丶佛笑我妖孽 提交于 2019-12-23 22:51:24
问题 I have smart card related project.In smart card field x86 and win32 has any difference.Because I have to create 32bit application in vc++.So what solution platform,Should I choose in MS visual studio 2008. 回答1: x86 is for Intel/AMD specific code generation, while Win32 is a general 32bit target. My guess is that the smart card reader has an ARM chip-set, so Win32 should be right choice. 来源: https://stackoverflow.com/questions/7709942/difference-between-win32-and-x86-in-smart-card-project

In Visual Studio, what's a quick way to delete all the exclude files from a project?

若如初见. 提交于 2019-12-23 22:18:06
问题 I have a LARGE project in visual studio 2008. It has an accumulation of a few years of trying things out and often excluding (not deleting) files from the project. I need a way to permanently delete any excluded file. There are thousands of files and hundreds of folders. Doing it manually in solution explorer would take too much time. I could build a project file parser and compare with filesystem but I'm hoping for a shortcut. Thanks 回答1: Are the excluded files under source control along