Peter Huang - MSFT's Q&A profile
Visual Basic Where is windows application Equivalent of web.config?
Hi fellow developers, I am new in windows app development. can anyone kindly advice where I can find a windows equivalent of web.config (in the web app terms) and global file I wish to create an application level variable to connection the sqlconnection object. thanks and enjoy your day, jimmy chan Check out http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnadvnet/html/vbnet04222003.asp Best regards, Johan Stenberg ...Show All
Visual C# Mutex.Dispose() - Does it release the mutex?
Does anyone know if disposing a System.Threading.Mutex object will call ReleaseMutex() for the object automatically. I'm assuming not, but I can't find anything explicit in the documentation. Does anyone know Yes it does. Mutex inhires the WaitHandle class that contains a Dispose method. WaitHandle.Dispose calls the WaitHandleProtector.Close method that releases it. ...Show All
Software Development for Windows Vista Where is the visual layout state for the state transition root activity stored (and why is it being lost)?
When you open the completed sample for Exercise 2 of WWF Lab 4 (the State Transitition workflow sample) for the first time, the layout for the 4 activities is lost. By this I mean all of the 4 acitivities appear one on top of the other in the top-left corner of the design surface. Q1. Why is the visual layout of the 4 activities being lost If I rearrange the activities and save them, close the solution and re-open it, the layout is preserved. Q2. Where is the layout preserved from one opening of the solution to the next They don't appear in the design itself or the code behind. A more detailed follow-on discussion continu ...Show All
Visual Studio Visual Source Safe Command Line
Hi! What can be the advantages we can get by using the Visual Source Safe Command Line In any automated build environement with multiple code trees, the command line is much more simple and reliable when trying to create a specific version of the code set. Although the GUI is fine, the automation interface does not provide a simple method to get the "latest" version of a file that is PINNED to a prior version. Automated creation of command lines is also easy due to the simple syntax, and by logging them to a file, one can always see what was attempted, and repeat or test a single step by simply cutting the line from the fi ...Show All
Visual Studio Team System Error Creating a new project
Hello guys I followed the .chm installation guide to install TFS beta3. After I open my VS2005, I logon to the TFS server as an administrator [tfssetup] then, I try to add a new project when suddenly I got this error messages: Error TF30170: The plugin Microsoft.ProjectCreationWizard.Portal failed during task SharePointPortal from group Portal. Explanation Plugin error text: “Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. The request failed with the error message: -- body {font-family:'Verdana';font-weight:normal;font-size:.7em;color:black;} p {font-family: ...Show All
Visual Studio Express Editions read a remote file in a char * variable
People, how do I read a remote file in a variable Respectively, I need some function like char *file_get_contents ( char *url ) so that i can remote_file = file_get_contents ( "http://192.168.0.10/somefile.html" ); Is there some straightforward way I think it's an optimization made by Internet Explorer. Internet Explorer only downloads a file if it has changed on the server, otherwise it recycles the file from the cache (btw, that's why you sometimes need to press Ctrl-F5 to get a fresh copy of a file that has changed). The API is dictated by the setting in Control Panel -> Inte ...Show All
Visual C++ noobie listbox value question
im fairly new to the visual environment and have been playing around with listboxes recently in visual c++ 2005 express edition. i assigned a binding source to a listbox and have a button which implements a function requiring me to get the value of a particular selected item, or all of them. the listbox->items attribute gets me an objectcollection from which i can get the string value, but not the value associated with that string. from what i can tell, the listitem and listitemcollection is not available in c++, which sound like they would do the job nicely. the only other useful information i found was here... ms-help://MS.VSExpressCC.v ...Show All
Visual C++ Help on choosing the right product
Hello, I'm facing the problem of choosing the right product for my developer's group, and I find myself somewhat confused. First of all I'd like to use a stable and tested product, not a beta one, so I excluded the upcoming 2005, because the Beta 2 version to which I gave a try presents a long list of bugs and annoyances at the moment, and there's too much uncertainty on its real final release date. So let's go with .NET 2003, for now... We use only C (maybe C++ in the nearby future) to build a stand alone application for Windows; we don't need support for Web Applications and deployments, distrib ...Show All
Software Development for Windows Vista end-user workflow design & compilation
In WWF, you compile a workflow, which I believe calls the workflow compiler wfc.exe, and then calls the C# compiler, which outputs a .NET assembly. What I'm wondering is how this will work for end-user workflow design, where I have re-hosted the designer in my own app. Will this require me to output the workflow definition to a file on disk, call the workflow compiler, then generate a .NET assembly from that for a specific workflow Do I end up with potentially hundreds of compiled workflow assemblies in that case, if I have many workflows Or can I do all this compilation in memory The idea of compiling a workflow seems somewhat s ...Show All
Visual Basic Null Reference Exception
Hi, Our application has 2 main windows it can be changed using the combo box.When i try to change to another window i am getting this exception.When i try to catch the exception it is caught only after Application.Run(context).I dont know where this exception is thrown from. this is the exception i got... System.NullReferenceException: Object reference not set to an instance of an object. at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam) at System.Windows.Forms.NativeWindow.DefWndProc(Message& m) at System.Windows.Forms.Control.DefWndProc(Mes ...Show All
SQL Server Can't connect to data source
I've got a report (2005) that is sourcing from an AS2000 cube. Everything works fine in the BI Dev Studio, it builds and deploys without a hitch. The report has a shared data source and is using a generic login (i.e. it's not set to my NT login). However, when I navigate to the Report Server and try to run the report, I get the following error message... Cannot create a connection to data source On the Report Server, I'm using the same credentials that I used in BIDS. I've tried a number of Connection Types and I've copied the Connection String from BIDS to the Report Server, but still no luck. Any clues I'm kind of at a loss ...Show All
SQL Server Importing Tables with Identity properties (uisng Import wizard)
I am using the Import wizard to import a SQL2000 database to SQL2005 and noticed 2 problems: 1. all tables and views were selected; the tables were imported correctly but the views were created as tables, ignoring the "Create view" syntax. The SQL generated contains "Create table" syntax instead of "Create View". 2. when a table contained a column with an "identity" property, the data was successfully imported, but the values for the "identity" column were not preserved, instead they were resquenced from 1 with an increment of 1 (the default values for an identity). When I opened the &q ...Show All
Visual Studio Express Editions How can I do reports with my visual Basic Express Edition?
I would like to do charts reports with my visual basic Express edition. ReneeC I would have to take exception to your comment that people doing professional things should not be using VBE but should run out and buy VS. I disagree. VS simply gives you more tools and apparently easier methods of accomplishing almost all of the tasks VBE does. Visual Basic is a language. Who has the right to say how that language is used I'd take exception with that statement too as I never said it. ...Show All
Visual Studio Team System Could I use SQL Server 2005 Express Edition with VSTS
An express edition of SQL Server 2005 is included in the VS.NET 2005 Beta2 DVD. Could I just use this express editon to fully explore the VSTS functionality Thanks! No. I posted an answer to this located here http://forums.microsoft.com/msdn/ShowPost.aspx PostID=2197 ...Show All
Smart Device Development Help shortcut being created in \Windows\Start Menu
I am using Visual Studio to create a cab project for my VB project. I am placing a help file in the \Windows directory and creating a link to this help in the \Windows\Help directory. When I install my cab on Pocket PC 2003 it stalls correctly. When I try to install it on Windows Mobile 5.0 an extra shortcut is being created in the \Windows\Start Menu directory using the same name as the shortcut that is being created in the \Windows\Help directory. This is causing my help to show up on the Start Menu - which I really don't want to have happen. Anyone else run into this Is there a workaround The following is the inf file that the ...Show All
