Help me please's Q&A profile
Visual Studio Team System Rule Interface
HI...I'm trying to check that an interface name begins with the letter "i" using the following code: public override ProblemCollection Check(TypeNode type) { Interface interfaz = type as Interface; if (!(type is Interface)) return null; if (!(type.Name.Name.StartsWith("I"))) { Problems.Add(new Problem(new Resolution("Interfaces deben empezar con 'I'"), type.FullName)); } return Problems; } could you tell me please what I'm doing wrong. thanks, Cinthia, The rule seems fine, although you don't need the following line: Interface interfaz = type as Inter ...Show All
.NET Development Hai everyone this is new commer may u teach me well with lots of expectations i have joined this forum.
how to get the result of the button on the next page with out occupying space on the displaying page. Indetail: when we add the data to a feild and click update after sucessfull completion of update i want to receive an message "updatedsucessfully" in a page which navigate after the update function. i dont like to occupy any space in this regard of placing a label which i had done untill now. can any one help me on my way hai master, one thing is that i have to post the message to the next page or else on the same that is not matter but it should not occupy place in which ever pa ...Show All
Windows Forms Picture box binding
Hi everyone, I need bind a image from a dataset to a picturebox. i found the code in KB but its in Visual C# DataSet ds = new DataSet(); da.Fill(ds, "BLOBTest"); int c = ds.Tables["BLOBTest"].Rows.Count; //BLOB is read into Byte array, then used to construct MemoryStream, //then passed to PictureBox. Byte[] byteBLOBData = new Byte[0]; byteBLOBData = (Byte[])(ds.Tables["BLOBTest"].Rows[c - 1]["BLOBData"]); MemoryStream stmBLOBData = new MemoryStream(byteBLOBData); pictureBox1.Image= Image.FromStream(stmBLOBData); I would greatly appreciate if anyone can translate it i n VB. i have done so far and getting error: dim byteBLOBDa ...Show All
Game Technologies: DirectX, XNA, XACT, etc. dxwebsetup wierdness - deployment with app
Hi, sorry to post this in this forum, I am unsure where to post it. OK here is the thing. I have a deployment problem. I am creating a setup with my app, created in VS 2005 Pro, using C#(.NET 2.0) This app of mine requires DirectX runtime end user files, or the SDK but really the runtime files. Now, during installation, I bundled in the dxwebsetup.exe. This executes fine. 2 main problems here already: 1) I want to silently install it without the need for user interaction, switch used to do this: /Q. When specifying this, it just seems to show then disappear instantly. I then find this next problem: ...Show All
.NET Development Soap Extension - ChainStream has a null request stream
Using VS 2005 and .NET 2.0 I'm trying to adapt the code from this article http://msdn.microsoft.com/msdnmag/issues/03/03/WebServices/ and this article http://www.codeproject.com/cs/webservices/SerializationFun.asp for use on a winform client. Winform works without the SoapExtension implementation. But when I hook into the web reference (reference.cs) by adding an attribute [XmlStreamSoapExtension()] to the method, something is breaking the request stream and makes it null. ChainStream is given a null stream to work with. Any ideas what might be causing it ...Show All
.NET Development Sample certificate folder missing from WSE sample
Sample Certificate folder missing in quick start examples for WSE 3.0 released 11/07/2005. How do I get it The sample certificates were removed from the product and replaced with a setup.bat file in the \Samples directory. This setup file uses MakeCert.exe to generate named certificates, installs them into the correct certificate stores and set the appropriate priviledges when run. This was done to ease the installation on the samples and enable you to get started with the samples sooner If you want to install certificates by manually you can follow the instructions either in the readme.htm in the samples di ...Show All
Visual Studio Team System Static Analyzer reports leaking memory in atldbcli.h, is there a workaround?
When I run the VC 2005 static analyzer in release mode with ATLdbcli.h included I get the following warning: c :\program files\microsoft visual studio 8\vc\atlmfc\include\atldbcli.h(4095) : warning C6211: Leaking memory 'pBinding' due to an exception. Consider using a local catch block to clean up memory: Lines: 4066, 4067, 4068, 4069, 4072, 4073, 4074, 4078, 4092, 4094, 4095 C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\atldbcli.h(4065) : while compiling class template member function 'HRESULT ATL::CDynamicStringAccessorT<BaseType,OleDbType>::BindColumns(IUnknown *) throw()' with [ BaseType=WCHAR ...Show All
Software Development for Windows Vista Quicktime and directx
I am trying to figure out how I can extract single frames one by one from a quicktime movie and load them as textures. Apple has a lot of info, but aparently not anything about extracting frames. Is this something that directx can handle. Perhaps through a plugin I was looking at using directshow to render to a texture and then use it, but aparently this can not be done with quicktime movies I would imagine you'll have to look at this from the QT end rather than DirectX. By all means use Direct3D to present, but you'll probably have to use QT and it's SDK's (if they exist) to actually extract the data. Unl ...Show All
Windows Forms Inheritance using Forms
hi i am just wondering if it is possible in c# to inherit methods from a .cs class to a partial class form.... i am trying to have a parent class public class parent { public void display(string msg){ } } public partial class child: from <--- how do i inherit parent to that child to have method display so i can calls bas { public void display(string msg ){base(msg);} } i dont think i can do that because the parent is like main that holds many child forms. as in because what i am making is a chatting program, it has many childs. an i ...Show All
SQL Server Excel pivot table
Hi, I have several pivot tables in Excel that access data to a SQL 2000. We install SQL 2005, we change the ODBC from the 2000 server to the 2005 server. Now when we try to run the pivot tables I've got the following message: "User 'public' does not have permission to run DBCC TRACEON" Any idea on how to fix this problem Thanks, Arty Yes, copy and paste the code in Tools -> Macro -> Visual Basic Editor. I received an error... but now I have no errors ... will try to repro and post results... I used Excel 97 but now have tryed on an Excel 2000... may be the problems is because of the old exc ...Show All
SQL Server Cannot Apply SQL 2000 SP4 to Evaluation version
I have been trying to apply SP4 to my downloaded and installed evaluation version of SQL Server 2000. On the Analysis Services, I get an error that states "You must install Analysis Services before you can apply a service pack." When I try desktop engine, I get a "The instance name specified is invalid." I do not use Analysis Services or Desktop Engine therefore I should not be vulnerable to the things these patches fix- correct I have tried to decipher the instructions for SP4 but they are vague and ambiguous. Does anyone know if anything impoortant in this SP applies to the evaluation version Hi Gu ...Show All
Windows Forms Three level MenuStrip merge
It's ToolStripManager capable of merge a three level MenuStrip I'm using a three level form application (MainForm, GroupForm and DocumentForm) and I wan't to merge the three MenuStrip in the MainForm, but I'm getting painting problems when add the DocumentForm MenuStrip Any idea about this Thanks! Yes, you'll have to call ToolStripManager.Merge and ToolStripManager.RevertMerge manually. There's a sample here: http://blogs.msdn.com/jfoscoding/articles/472113.aspx As well you can check out the ToolStrip FAQ http://www.windowsforms.net/Default.aspx tabindex=5&tabid=60 ...Show All
Visual C# Can I make use re-useable code for slightly common methods?
Hi all (hope you all had a good weekend), I have a scenario where I have a Form that has some ComboBoxes and a ListView. The comboBoxes act as the filters in which the base the results that will populate the ListView control. Now, essentailly, the SQL required to populate the ListView for the different Filter types is the same apart from the WHERE clauses that will differ depending on what has been selected in the ComboBoxes (if any). Below is an example of two methods in my classes that have very similar SQL Code: public static int PopulateSnagGridStatus(ListView grdGrid, int Status) { return PopulateListView(grdGrid, "SELECT Snag ...Show All
Visual Studio Express Editions patterns of delegates
Hai, What are patterns of delegates Thanks in advance. Hi, Do you need any help on how to go about with delegates If yes, then could you please post more info about the same. Because, these forums deal with only programming issues. Thank you, Bhanu. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Static Buffer and Stack Back Trace error
(Managed Direct3D9) When I create vertex buffer with Pool.Default with program running in fullscreen, dbmon.exe resports “stack back trace” error and memory unfree on exit of the program when ALT+TAB is done during the running of the program It also crashes after certain times of ALT+TAB. Not error when changed to Pool.Managed. Any advice Thanks JKMax What is happening is this. When you alt-tab from the program, the device is lost, and behind the scenes that vertex buffer is disposed for you by MDX. When you alt-tab back into the program, that vertex buffer is recreated.&n ...Show All
