Klgsx's Q&A profile
Visual C++ porting expression templates to generics
I'm trying to port simple expression template to generics but I get this errors (The code is shown below): (1) left of '.Apply' must have class/struct/union (2) left of '.GetRowNum' must have class/struct/union (3) 'return' : cannot convert from 'Expression<Lhs,Rhs>' to 'Expression<Lhs,Rhs>' Cannot copy construct struct 'Expression<Lhs,Rhs>' due to ambiguous copy constructors or no available copy constructor ...Show All
Visual Studio Tools for Office InfoPath XSL Bug
XSL for an InfoPath view < xsl:value-of select =" my:Chapter[1]/my:ChapterTitle "/> ..that works < xsl:value-of select =" my:Chapter[xdExtension:getChapterIndex()]/my:ChapterTitle "/> ...that also works < xsl:apply-templates select =" my:Chapter[1]/my:Clause " mode =" _10 "/> (where 'my:Clause' is a repeating group) also works.. < xsl:apply-templates select ...Show All
.NET Development Zip files in c#
Hi, Does anyone know of a way to zip files in c#. I tried using sharplib but the compression utility that comes with XP is not able to unzip the files. I need a format that can be unzipped by this and most other compression tools since I am not sure exactly what my users will be using to unzip the files. Thanks in advance stax0711 wrote: I wonder how hard it is to zip/unzip a folder using Sytem.IO.C ...Show All
Windows Forms How do you make a ToolStripComboBox behave like a simple drop down list box
I want the end user to be able to see the value like any ordinary drop down list box but I don't want them to be able to edit/type in the text box. This is just like the "Show output from:" drop down on the VS Output Tool Window's tool bar. I don't see a simple property to enable this sort of behavior. Hi, In the designer, just change the DropDownStyle property to DropDownList... That should d ...Show All
.NET Development Documentation Comments
In C# you can create documentation comments for your code. These can then be compiled and turned into XML. Is there a way to either turn the XML into well formed HTML (like Javadoc does), or is there a way to generate HTML like Javadoc The older version of VS has a "Build Comment Web Pages" command under the tools menu but VS 2005 does not appear to have this feature. Is there some standard way to get HTML documentation ...Show All
SQL Server Create Extended Procedures in VS 2005
Hi I am trying to write an extended procedure that accepts a string parameter and returns an integer value. The extended procedure calls a regular stored procedure of a database passing the string parameter as an input. The int value is an OUT parameter to this procedure. Can I some one suggest where do I get started with respect to this in VS 2005. Why do you want to write an extended stored procedure to c ...Show All
.NET Development newbie webbrowser question
Hello all, I am trying to use the webbrowser contorol in my console application to load an HTML file and print it afterwards. I am using this code: public void Printwebpage() { WebBrowser webBrowserForPrinting = new WebBrowser(); webBrowserForPrinting.Url = new Uri(@" file://c:/arrays.htm "); while (webBrowserForPrinting.ReadyState != WebBrowserReadyState.Complete) { } webbroserForPri ...Show All
Visual Studio VSS 2005 without Team System
I have a couple of questions regarding VSS 2005. It is the most important Visual Studio add on, yet the road map for it seems cloudy. Will VSS 6 work with Visual Studio 2005 Is the server based version of VSS 2005 avaialable without purchasing the entire Team System Team system is exhorbitatly priced at $5,000+ per seat plus added server and server access charges. This puts it out of reach for even Fortune 500 companies who hav ...Show All
SQL Server Issue with SqlUserDefinedAggregate
I am using the code below but I am getting a "zero" result for dbo.AggredIssue('Test') user defined aggregate everytime that the query executes parallel processing and uses the "Merge" method. It seems that my private variable " private List < string > myList" gets nullified everytime it goes through the "Merge". I saw other people reporting the same issue in other forums, but nobody was able to provide a solution or explanation. S ...Show All
Visual C++ Opening Files
HELP ME! I have looked everywhere for how to simply OPEN a file for reading but haven't found anything. The in-program help said do this:- System::String ^fn = openFileDialog1->FileName; const char _sopen(fn); but it just errors at me Error 1 error C2440: 'initializing' : cannot convert from 'System::String' to 'const char' c:\documents and settings\callum\my documents\visual studio 2005\projects\mgp\mgp\Form1.h 126 ...Show All
Visual C# Modfying Part of a String
Hi, I am trying to change only part of a string with a new value. I have a string with the value "Hello". I want to change it to "Heslo". I am trying to do this: string sal = "Hello"; sal.substring(2, 1) = "s"; This keeps giving me an error "The left hand side of the assigner should be a variable, property, or indexer" How can I accomplish this in C# thanks ...Show All
Visual C# Scrolling causes flicker
gday everyone I have a form which contains a panel and two scrollbars. When i use the scrollbars the picture displayed on the panel moves correctly but flickers. In the scrollbar handler i am just invalidating the panel so its redrawn (at a new location). I am guessing the panel is painting the background then the image over it causing it to flicker. I have the forms DoubleBuffered property set to true. Any ideas on a way to stop that ...Show All
Game Technologies: DirectX, XNA, XACT, etc. D3DERR_OUTOFVIDEOMEMORY
I am recieving D3DERR_OUTOFVIDEOMEMORY Error, after roughly an hour during the execution of my D3D Application. Any idea what i need to look for This is the code i use to create my veretexBuffer: vertexBuffer = new VertexBuffer(typeof(CustomVertex.TransformedColoredTextured),6, d3dDev,Usage.None,CustomVertex.TransformedColoredTextured.Format,Pool.Managed); I dispose it every time the scene is drawn... Thanks... ...Show All
Visual Studio Team System Is Active Directory required for Dual-Server installations?
...or can you use Workgroup-based installations in this configuration AD is required for a dual-server configuration. While it is possible to construct workgroup service accounts that would allow the AT to access the DT using matching names/passwords, we do not recommend or test that deployment option. I think it is probably also true that the TFS administrative utility (tfsadminutil) options to manage service ...Show All
Visual Studio Fully uninstall current beta from system?
How can I fully uninstall the current Visual Studio (Not the beta 1.) I just don't have the space just now to keep it on my system. I tried uninstalling, but fear I got the order wrong & am now left with the MSDN library, Visual Studio Team Suite and (I think) the Direct X transform compnents. These three will not uninstall, and I don't know if I should clean my registry Any hints would be greatly appreciated. thanks Max ...Show All
