Vijay Joshi's Q&A profile
Visual Studio Team System Q: How do you Filter system generated cs files(such as class.designer.cs) in FxCop?
Anyone tried using FxCop that is capable of disregarding system generated code (cs files such as class.designer.cs) You can suppress individual violations within the generated code, however, there is no way to ignore all generated code. Although, Code Analysis in Visual Studio does shutdown noise on members marked with CompilerGeneratedAttribute and GeneratedCodeAttribute. What exact violations are you trying to ignore I ask this, because at the moment we are starting to work with other teams within Microsoft to clean up warnings within generated code. ...Show All
.NET Development WebClient and ports other than 80
How do i get WebClient functions to work with web pages that are not port 80 Nothing is even sent CheckFinalStatus() of WebClient throws the error, thus nothing is sent I checked with netmon and nothing was sent I already said in a previous message that CheckFinalStatus() was throwing the error have never tryed port 8080 but as one guy said 8080 seams to work, but none of the sites i want to scan are port 8080 I can setup an iis 6 web page on a port other than 80 and 8080, and webclient throws a error as to HttpWebRequest it throws the same error The setting mod seems to work, but i dont li ...Show All
Game Technologies: DirectX, XNA, XACT, etc. I need some spiritual DirectX guidance.
I've been learning from a book titled Tricks of the Windows Game Programming Gurus by Andre' Lamothe. It's outdated using DirectX 7.0a SDK, and I believe his second volume creates software rasterization with DirectX 8.0 SDK. I really enjoy his books because it is very in depth and low leveled. My question is should I continue reading it if I'm geared on becoming a professional in graphics Since 60% of our life is maintaining and upgrading previous games/multimedia, especially MMORPG games that have a long life, you'd be working with older SDK versions, no matter if it's DirectX or not. The idea is to learn this now and migrate over to D ...Show All
Windows Forms problem calling methode with delegate
hi i have a problem communicating from a thread to the mainForm i thought i could solve the problem by using a delegate but i get an exception Controls created on one thread cannot be parented to a control on a different thread the thing i am trying to do is to add a TabPage to a TabControl i my mainForm ... public delegate void joinChannelDelegate(V ...Show All
.NET Development web service authentication
how can i athenticat in web service and is it secure Hi pooya, This page contains the most common authentication scenarios for Web Services with code samples. http://msdn.microsoft.com/webservices/default.aspx pull=/library/en-us/dnpag2/html/wss_ch1_intro.asp Regards, ...Show All
Visual Studio Express Editions printing MSchart in VB2005
I am having lots of trouble trying to print a chart in VB2005 I get this error now The runtime has encountered a fatal error. The address of the error was at 0x7a005c3d, on thread 0x11c4. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack. this is my code : AxMSChart1.EditCopy() If My .Computer.Clipboard.ContainsImage() Then #### error here ###### Dim grabpicture As System.Drawing.Image grabpicture = My .Computer.Clipboard.Get ...Show All
Software Development for Windows Vista How to load workflow assembly from a specific directory?
Our application generates workflows programmatically. Since the number of workflows (DLLs) can be quite large we would like to store the DLLs in a special folder so that they are not mingled with the application files. The problem is that when the application tries to execute a workflow, the runtime cannot find it. I have seen similar questions and the recommendations were to put the workflows in GAC or program folder. If we were to put them in GAC, it means we need to sign them, register, unregister, etc., which will degrade performance (and we do not want to fill GAC either). Another suggestion was to include the private path in the .confi ...Show All
.NET Development Twain
I'm using the .net framework 2.0. Is there a class for doing twain scanning There is no current class or API support in the BCL for Twain scanning. However, you can file a feature request on the MSDN Feedback website. http://lab.msdn.microsoft.com/productfeedback/ Thanks! Stephen [MS Common Language Runtime - Security: Developer] http://blogs.msdn.com/stfisher ...Show All
Visual Basic VB6 Upgrade Wizard
Hi, I was wondering if there is any possibility that MSFT could make the VB6 Conversion / Upgrade wizard open source. I think it could really help those of us whom have a lot of VB6 code that we'd like to migrate to .NET speed up the process. Thanks We need compatibility objects that emulate Printer and the graphics command of the Picture as well. ...Show All
.NET Development using MS app block.data to return data
Hi, All! I just started my first full data access app in dotnet on my own. I got this build error. Type 'ExecuteDataset' is not defined. I have my winform gui .vb code in one project calling Microsoft.ApplicationBlocks.data project. ExecuteDataset in SQLHelper.cs is defined as Public Static. What else do I need to do to make my gui knows the function I tried to use Imports, or set a reference to it, but don't know what is the right way. Thanks! Ok, I got it. has to be Dim ds As DataSet = SqlHelper.ExecuteDataset() instead of Dim ds As DataSet = New ExecuteDataset() ...Show All
SQL Server Run SSIS Package problem when using SQL Agent
Maybe someone else has asked similar question. But I still can't solve my problem after looking some threads in this forum. The package runs fine through VS 2005. After imported into MSDB, it still does well when I start it in Integration service directly. But the packgae never achieved under SQL Agent. Acturaly,agent can run the package,but always fail in one task. It's an 'Execute Process Task ', I use 'winrar.exe' to extract file from a mapped drive to the local disk. The Agent servic ...Show All
Visual C# How to change the color of a substring?
for example: string newStr = "The color is red"; label1.Text = newStr; output: The color is red Hi icemart525 you want this to work in Web Application or Desktop Application Rags ...Show All
Smart Device Development Today Screen
Hi! I'm looking for code to create a plug-in for Today Screen for WM2003. Everything I have found involved doing stuff with C++. Is there any way to override this, since I don't have C++ available and C++ embedded is tool large for me to download. ...not to mention that I'm not at all familiar with it!!! Can I do it only by using C# or VB Have you see this article No there is no Just managed way to make a homescreen plug http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnppcgen/html/TodayScrn.asp in. You would at least need to do Pinovoke to Native code. Amit ...Show All
Software Development for Windows Vista ASP.NET And a State Machine Workflow
I recently read the MSDN magazine article, Windows Workflow Foundation, Part 2 (http://msdn.microsoft.com/msdnmag/issues/06/04/CuttingEdge/), where Dino Esposito demonstrates how to work with workflows in ASP.NET. Dinos' demonstration provides a helpful solution to working with Sequential workflows; however, it left me a little confused with how to work with a State Machine workflow. In the article, Dino demonstrates how to pass parameters to a Sequential workflow by using a Dictionary object, which is then passed as a parameter to the CreateWorkflow() method. The problem is that State Machine workflows pass parameters throug ...Show All
Visual Studio Support for generics in code model
I have a problem with getting information about generics from code model, e.g. how can I obtain information about generic parameters from CodeClass2 Any ideas How are generics supported by code model (I have found only isGeneric method in CodeClass2/CodeInterface2/...) I think that ther should (an probably there is) better support. I have been looking for it in EnvDTE80 namespace, but I have not found any interesting classes/methods... Thanks for help, Jarek That's coincidence. I've had the same problem few days ago and asked the same question in http://groups.yahoo.com/group/vsnetaddin/. It seems that co ...Show All
