visual-studio-2010-beta-2

Why can't convert TCHAR* to char*

你说的曾经没有我的故事 提交于 2019-12-10 03:09:20
问题 error C2664: 'strcpy' : cannot convert parameter 1 from 'TCHAR *' to 'char *' code: LPCTSTR name, DWORD value strcpy (&this->valueName[0], name); error C2664: 'strlen' : cannot convert parameter 1 from 'LPCTSTR' to 'const char *' LPCTSTR name; strlen (name) The code above to a class which works fine in another project, I can't find the reason why it doesn't work in this MS VS2010 Project. 回答1: You need to use a function such as wcstombs when _UNICODE is defined. Either that or just use

In VS2010 Beta 2, the Web Report Viewer does not display the content of the report

烂漫一生 提交于 2019-12-09 12:53:46
问题 In VS2010 Beta 2, the Web Report Viewer does not display the content of the report, whether I use Local or Remote mode. It only display the following "disabled" bar [image] The report I created works fine in the Report Server. Here is the code for displaying the report: ReportViewer1.ProcessingMode = ProcessingMode.Remote; ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://localhost/reportserver"); ReportViewer1.ServerReport.ReportPath = "/MyReports/Report1"; ReportViewer1

VS 2010 mouse processor extension - not working

人走茶凉 提交于 2019-12-09 03:48:48
问题 I am experimenting with a Visual Studio 2010 extension, where I need to work with the events exposed by IMouseProcessor. As far as I can tell from the docs, I should create an IMouseProcessorProvider and export is using MEF, so that it can be automatically picked up by Visual Studio. I created this class: [Export(typeof(IMouseProcessorProvider))] [ContentType("code")] internal sealed class MouseProcessorFactory : IMouseProcessorProvider { public IMouseProcessor GetAssociatedProcessor

Is there any risk while using Visual Studio 2010 Beta 2?

冷暖自知 提交于 2019-12-07 03:05:59
问题 Is it safe to use the beta versions of Visual Studio? By safe I mean, while developing any project in this studio, is it probable that it may cause some losses to my project? Or any other kind of risk? Should I just use the studio 2008 and wait for the stable version of Studio 2010? Purpose of the question: I am doing my graduation project in .NET framework (includes - C#, WPF etc.).So I don't want to put my project at any risk because of some issue regarding (beta) visual studio.Hence the

Do I want Publish or Release Build in VB.net?

馋奶兔 提交于 2019-12-06 06:24:49
问题 I wrote a little (like 40 lines little) Winforms application with VB.net in Visual Studio 2010. Now I've released the code as a Google Code project. It's easy for a developer to get the source but I'd like to make it easy to install too. What I did was make a release build then zip up what it created, this included a setup.exe. There was also an option to "publish" my project which looks like it can enable update checks and other stuff. In my case, I just want to make it easy for a casual

How to get GitExtensions installed on Visual Studio 2010 Beta 2?

血红的双手。 提交于 2019-12-06 05:51:33
问题 How do I manually install GitExtensions as a plugin for Visual Studio 2010 Beta 2? There is no automatic option in the present installer, only plugin options for Visual Studio 2005/2008. 回答1: I think the plugin architecture is different for 2010 (not 100% sure on that, but fairly certain), so they might need to alter their code to suit. The plugin's not really necessary though - personally I find it easier to use GIT outside of VS altogether. 回答2: I'm going to try it right now, but it seems

Embedding IronPython in a C# application - import error on urllib

♀尐吖头ヾ 提交于 2019-12-06 05:09:31
问题 I have a Python file with as content: import re import urllib class A(object): def __init__(self, x): self.x = x def getVal(self): return self.x def __str__(self): return "instance of A with value '%s'" % (self.getVal()) I also have a simple C# console project with the following code: engine = Python.CreateEngine(); ScriptSource source = engine.CreateScriptSourceFromFile("test.py"); ScriptScope scope = engine.CreateScope(); ObjectOperations op = engine.Operations; source.Execute(scope); //

System.Core.dll in 4.0 added by default?

大兔子大兔子 提交于 2019-12-05 23:10:21
问题 I was playing around with VS2010 beta2. I noticed that if I try to add System.Core.dll to a project which does not already have a reference to that, in VS2010, it complains saying I cannot add that assembly as it is already referenced by the project system. Any idea why they are doing that in VS2010/4.0? Is it because they have forwarded few types to mscorlib from System.Core? 回答1: Not an answer for "why they are doing that", but could be helpful. This is how I see the chain of actions that

Visual Studio 2010 Beta 2 + ClearType

佐手、 提交于 2019-12-05 17:55:19
I was wondering: are you satisfied with the text-rendering in the Visual Studio 2010 editor (Beta 2)? On my primary monitor it looks very blurred, even when using font size 12! When using font size 10 or 11 it's horrible. Can the WPF text rendering mode be set explicitly for VS code window? EDIT: I am using Windows 7 x64 and my primary monitor is a Benq G2412HD. What's kind of strange is that the font seems to be nicer on the secondary monitor, which is a 4 year old 19' TFT. EDIT: I tried several Cleartype settings but none really looks as nice as when using Visual Studio 2008. The first image

WCF Service Reference does not reuse types in existing assemblies (VS 2010 Beta 2)

一世执手 提交于 2019-12-05 15:12:48
问题 I'm looking for the best approach to share types (the actual classes, not proxies) between a WCF service and a client. To that end, I defined the classes in a separate assembly that both service and client reference. I selected "Reuse types in all referenced assemblies" when generating the service reference in the client, but References.cs is generated with proxies for all classes. This is exactly the same question as this one, but I don't know how to implement the accepted solution. One