newyuppie's Q&A profile
Visual C++ How to rebuild the C++ STL library for Visual Studio 2005?
I have made some changes to (to solve C2248 basic_ios problem) the VC8 STL library. How do I rebuild the C++ STL for Visual Studio 2005 You need not call support via phone - you can do it online at support.microsoft.com http://support.microsoft.com/oas/default.aspx Gprid=3041 Then select the product (Visual Studio 2005 Professional) and then press "Start an email request" and then type in your product ID and when it asks you to describe the problem, mention you need a hotfix and give the KB id number 919280, and for what product. Within 24 hours (usually), someone will email you a link to the hotfix and the password you need to use to access it. ...Show All
Visual C# Does 'foreach' contain an accessable index?
Hello, Just to understand C#. Can I use the 'foreach' loop to get an index back from an array //Example foreach ( Citizen citizen in MyTown ) { if ( citizen.firstName == mySearchedFirstName ) { return citizen.lastName; //<=== here I would like to get the index back === } return null; } regards, Henk Just so you know: The reason "foreach" cannot give you an index is because it can be used to iterate over collections that do not provide and indexing operator. For example, the elements of a Linked List cannot be accessed via an index, but it can be iterated over via "foreach". ...Show All
Visual Basic SplashScreen Help!
Hi I need help w/ my SplashScreen all i want it to do is Show another Form after it has been on the screen for like 5 seconds I know how to add it but when it shows up when my app is started it just sits there and doesnt go to the Form i want it to. I want it to go to my Login form after like 5 seconds can you help with that ...Show All
Smart Device Development SQL Ex ,Data conversion failed. [ OLE DB status value (if known) = 2 ] ?
public void CreateOrderRow(int productid, int quantity) { string identity = "@@identity"; conn = new SqlCeConnection(connstring); cmd = conn.CreateCommand(); cmd.CommandType = System.Data.CommandType.Text; cmd.CommandText = "insert into orderrow (Productid,Orderid,Quantity)values('" + productid + "','" + identity + "','" + quantity + "')"; try { conn.Open(); cmd.ExecuteNonQuery(); } catch (SqlCeException ex) { throw ex; } finally { finallymethod(); } When using this question i get an exception saying: [ OLE DB status value (if known) = 2 ] What is this Fir ...Show All
Visual Basic Reporting Component
Can anyone tell me please if the reporting component in the Standard version of VB .Net 2005 can utilise Access Databases Thanks, AliQ Hi, If you're talking about Sql Server Reporting Services and the ReportViewer control the answer is yes. You just have to fill a dataset with the data from Access, then use the dataset as the datasource of the report. Regards, Charles ...Show All
.NET Development Multiple Project Solution and References
I have a solution with multiple projects. The main project is a MdiContainer in which forms from other projects are loaded. The main projects has references to the other projects. Only when the form is loaded In want to add a button to a toolstrip in the main form. How do I reference to the MDI form. ((FormMdiContainer)( this .MdiParent)).toolStripFormButtons.Items.Add(btn); This works fine in a single project slolution, but how do I use it in a multiple project solution How do I reference to 'FormMdiContainer' Here's a generic example: MDI-child: public partial class Form2 : Form { public Form2() { InitializeComponent(); } public delegate void MdiRequestFromChild2(int optionalargs); ...Show All
Software Development for Windows Vista A question about State workflow
Hi, I have a state workflow and it initializes in state A after receiving an external event. In this initialize state, it receives an object as event argument. Now in state A, i wanted to see if value of one of the property (DateTime) of this object is matching with today. If not i want it to wait until the today is equal to the value of the property, else if date is >= today, I want to set the state to State B The date value of the property could be any future day of the year, and my question is... how to implement this and if the duration is too long e.g. date is Dec31st2006 and today is July 5th2006. In this case what would happen to workflow instance will it be loaded in runtime untill the date is Dec312006 or it will be persi ...Show All
Visual Studio 2008 (Pre-release) Potential Bug: IPv6 + ServiceHost + NamedPipe
I've noticed something unusual. When creating a ServiceHost and passing this for a base address: net.pipe://[::1]/servicebase It is expanded to the full IPv6 address: net.pipe://[0000:0000:0000:0000:0000:0000:0000:0001]/servicebase The named pipe transport then fails to identify this as a local address and authentication operations fail. Whether the abbreviated form is used or not, the expanded address or any intermediate variations should still be considered local. ::1 0::1 0:0:0::0:1 0000:0:0::0000:1 etc. You need to set a valid SPN for the remote host in your endpoint address. The reason that this works for localhost or 127.0.0.1 is that the OS implementation of SSPI windows auth reco ...Show All
Windows Live Developer Forums Unexpected call to method or property access - Do not use an image to trigger map load
Ok this bug just took me about 5 hours to find grr. If you can't put the call to the map load function in the body as per the examples do not be tempted to use the onload() of an image. Everything will work fine until one day your polygons and polylines will give an "Unexpected call to method or property access" error in IE6. recreate: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script type="text/javascript" src=" http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js"></script > <script type="text/javascript"> var map = null; function loadmap(mydiv) { map = new VEMap('MapDiv'); map.L ...Show All
Visual Studio Team System creating work - item. is attribute refname just a qualifier?
hi, i want to create a set of work-items to replace our existing requirements-database. these are 12 classes. therefore i had a question. in the xml-definition of a work-item i do see often the attribute "refname". a value of this attribute is " Microsoft.VSTS.Build.IntegrationBuild". is this just a qualifier or is there more semantics behind this refname if it is just a qualifier it should be possible to define something like this: <FIELD name="CustomerID" refname="ProjectPweb.CustomerID" type="String" reportable="dimension"> <HELPTEXT>something</HELPTEXT> <SUGGESTEDVALUES> <LISTITEM value="None"/> </SUGGESTEDVALUES> </FIELD> is this assumption correct what do i have to consider when usin ...Show All
Visual Studio Team System Install Load test agent and controller in unattended mode
Hi, I tried to install load test agent and controller in unattended mode but failed with exception. I create a network image, copy all setup files there. Use "setup /createUnattend" to create an unattend file in the network image. Modify the unattend file, change "InstallActionInteger=5" to "InstallActionInteger=1". Then use "setup /UnattendFile" to execute the setup, but get an exception like below: Event Type: Error Event Source: MsiInstaller Event Category: None Event ID: 10005 Date: 12/25/2006 Time: 8:16:39 PM Description: Product: Microsoft Visual Studio 2005 Team Test Load Controller - ENU -- Error 33010.There's a problem with the setup package. Error ...Show All
Visual Studio Team System How to do profiling in MS Visual Studio 2005 (VC++)?
HI all, I searched on google again and again. But I could not find a clear and easy-to-follow approach to follow -- about how to profile my VC++ code in MS Visual Studio 2005 Could anybody shed some lights on me Thanks a lot You need to have the Team Edition for Developers or the Team Suite to have the profiling tools in Visual Studio 2005. The information you are looking for is: http://msdn2.microsoft.com/en-us/library/z9z62c29(VS.80).aspx Thanks, Dave Lubash Microsoft Visual Studio Team Developer ...Show All
Windows Forms Start application in system tray
I am writing an application which I want to run in the system tray. Everything is set so that when it open it puts an icon in the system tray, and if I minimize it, it will also go to the system tray. The problem I am having is having it so that when it opens the form shows, however I want it to be hidden until the user selects it from the system tray. So basically, how do I start the applicatin in hidden mode. Hope this is clear. Thanks, Russ This is pretty simple. Create a form. Set its WindowState to Minimized (not that this is really necessary but it makes you feel good) and set ShowInTaskbar to False (this is the key part). Now, add a NotifyIcon to your form (it should be avai ...Show All
Visual Studio asp.net
How to added the multiple textbox dynamically in asp.net Hi Yes. In HTMLInputHidden is present in HTML. If i use that code i have get only one textbox. Instead of HiddenField, i have used HTMLInputHidden. This is the coding i have used. Dim textbox As New TextBox() Dim i As Integer Dim hi as new HTMLInputHidden() hi.value=0 hi.Value = Convert.ToString((System.Convert.ToInt32(hi.Value) + 1)) For i = 0 To System.Convert.ToInt32(hi.Value) - 1 textbox = New TextBox() textbox.ID = i.ToString() PlaceHolder1.Controls.Add(textbox) Next Please check ...Show All
.NET Development DAAB problem with SQL syntax.
Dear All I want to use Microsoft data access application block for dynamic database layer In my application which support SQL server , DB2 , oracle databases . But as you know each one of these DBMS has his own syntax for SQL parameter Example : Oracle >> select empno,ename from emp where empno=:empno SQL server>> select empno,ename from emp where empno=@empno DB2>> select empno,ename from emp where empno= So I wonder if I should modify the DAAB to rewrite the SQL statement according to the DB provider Or there is another solution for this . Note: I want to use the native DB provider for each DBMS not OLE or ODBC provider . Dear Mr. Logic; Ho ...Show All
