Benin's Q&A profile
Visual C++ Strings
I have experience in Java and the use of strings, and wondered how to use them (if possible) in Visual c++. Is it something to do with LPSTR Could you point me to an introuductionary article or somethign please Mike C++ and C# are two very different things. You should rather compare C# to Java than to C++, in terms of C++ being compiled into machine code, while Java and C# is bytecode. This means that Java and C# can run the same compiled code on just about any platform, as long as there is a virtual machine (a byte code interpreter, if you will) to execute it within. C# and C++ each have their use, and it's really impossible to judge one over the other in terms of "being better". As for the LPCW ...Show All
Visual C# bool and objects
I have an collection of objects(arraylist)...in my list is want to check to see if properties within my arraylist have changed by using a _IsDirty flag...but i get an error saying cannot convert object to bool can anyone help me out here [code languge="C#"] for ( int x = 0; x < ArrayList.Count; x++) { if (Convert.ToBoolean(Arraylist[x]) == this ._IsDirty) { } [/code] how should this be this is how i am doing it right now and it seems like this way will work // for(int x = 0; x < Legs.Count; x++) // { // if(((Tracking.BusinessObjects.OrderLegDetail)Legs[x]).IsDirty) // { // if(((Tracking.BusinessObjects.OrderLegDetail)Legs[x]).ChildType == "Stop") // { // (( ...Show All
.NET Development Random TCP/IP ports for Web Services in VS 2005... How to control?
Everytime I create a new Web Service solution in VS 2005, it assign a "random" TCP/IP port when I run the web service in debug mode. Is there any way to control/modify this I tried the ASP.NET configuration, "Start Options", and could not find anything. thx! WRM WRM, Using the "Visual Studio Development Server" will use by default dynamic ports. To change that go to Solution Explorer and then in the Property panes (web project properties) change where it says "Use dynamic ports" to false and then set the "Port Number" to the one you want. If you use IIS, the port is statically defined by the IIS web site. Regards, Rodrigo ...Show All
Windows Forms Text-To-Speech: Microsoft Anna Voice
Hi all! Windows Vista comes with a new voice for Text-To-Speech, "Microsoft Anna", more natural than "Microsoft Sam" voice that is shipped with Windows XP. My question is: is it possible to install the "Microsoft Anna" voice on Windows XP Thanks in advance, Marco. ...Show All
Visual Studio Team System Kerberos for Dummies
Hi All we have a web application which communicates with TFS. This application creates new Work item on the server. We want to create the work item using the credentials of the user logged on to the web application. Therefore we use impersonation in the web app. The solution works fine until the windows profile of the current user exists on the server, but it crashes immediately if there isn't one (HKCU file is absent). I got the following exception: Access to the registry key 'HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\TeamFoundation\Servers' is denied. System.UnauthorizedAccessException: Access to the registry key 'HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\TeamFoundation\Servers' is denied. a ...Show All
Windows Forms TreeView and the SystemTray
hi, C# windows application. i have a simple app that contains a TreeView with a boat load of items in it. the app will minimize to the system tray. when restored it takes a long time to render the app again. if i leave teh tree initially empty then this is not a problem. it is as if the tree is getting reloaded. is that possible i noticed that the tree items are all collapsed, not the way i left if when i minimized it. thanks, scott i should probebly also add that when the app is minimized i set the ShowInTaskbar property to false and a NotifyIcon visible property to true. when restoring the icon's visible property is set to false adn the ShowInTaskbar property is set to true again. ...Show All
Visual Basic Error while using a datareader
I can't quite figure out what I'm doing wrong, but I keep getting a "No value given for one or more required paramters". My code has worked so far to use a dr to retrieve specific data from a combobox selection, but when I try to output to a textbox using textbox1.text = dr("columnname") I recieve the error above. Here is the code. Note: I would rather not use a dataset instead of datareader. Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim theconnectionstring As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|Datadirectory|TestCompany.mdb;User Id=admin;Password=;" Dim dbcon As New OleDb.OleDbConnecti ...Show All
Visual C# Security and Authentication
I have a C# .Net console application I wrote that is on server 1. It needs to copy files from server 1 to server 2. The location at server 2 is a shared drive with a domain user as the only user with access. I need assistance with code or tools that will allow my console app to impersonate this domain user so that it can appropriately authenticate to server 2 and copy the files over. I can run it logged into server 1 as the domain user, but I can't schedule it to run as this domain user. Please help. Thanks in advance. There is a very nice sample about impersonating the windows user credentials at the following link. Hope it helps you http://www.codeproject.com/csharp/cpimpersonation1.asp ...Show All
Visual C++ newbie help: importing functions from a dll in a C++.net project
Hi, I am using Microsoft Visual Studio 2005. I am trying to create a C++ application (Win32 project/application) that imports functions from a DLL. The DLL, which I did not create, is a Win32 DLL (that uses MFC in a static library). The DLL .h and .cpp files do not contain any classes. Just functions with __declspec (dllexport). I think that my problem is that I am very new to .NET (I am not sure I should post this question in a different form). Here is what I have done: I tried creating a new solution and adding the DLL project to it and then building the project (to generate the .dll file). Then I added a new project to the solution and tried to: 1-Add the dll to this project as a reference: using Project -> References -&g ...Show All
Visual Studio Express Editions Invalid Email address--fail to register
When registered, I was keeping get this error message: Invalid email address I have provided my hotmail address, like XXX@hotmail.com , What's wrong with that Please help how long did you have to wait i've been sitting here all day after trying to register at 09:00 this morning... someone i know reckons they still have the key they were given written down somewhere so i can always post that if it'll be of help... ...Show All
Visual Studio An error occured during printing. (0x800C0005)
We have just started receiving an error when we try to print our reports. "An error occured during printing. (0x800C0005)" We are using a webviewer control in a web form. We are only running SSRS 2005 and have never run a BETA version. These reports work find on my localhost, build server, and beta servers. It is not working on PRODUCTION. I have removed the activeX control and reinstalled it. I still get the error. Please HELP. This is a PRODUCTION problem. Thanks. We're having the same issues, same scenerio. If anyone's found any help, feel free to shoot an e-mail rccain at gmail dot com. If we get it figured out I'll post something here. Robert ...Show All
.NET Development Converting Web Application from 1.1 to 2.0
I have a working web application that was written using the .NET Framework 1.1. I am trying to recompile it using .NET 2.0 and VS 2005 without updating any of the deprecated or obsolete api calls. It compiles without errors - but fails when attempting to render an XML control. I can find no documentation for System.Web.UI.Control.ResolvePhysicalOrVirtualPath anybody got any ideas what the problem is Thanks Nigel Object reference not set to an instance of an object. at System.Web.UI.Control.ResolvePhysicalOrVirtualPath(String path, VirtualPath& virtualPath, String& physicalPath) at System.Web.UI.WebControls.Xml.LoadTransformFromSource() at System.Web.UI.WebControls.Xml.Render(HtmlTextWriter output) at System.Web.UI.Con ...Show All
Visual Studio Express Editions help on webrowser - How do you get favourites.
Hey again i've been a frquent vistor asking for help in visual c# asking about webbrowser etc.. well i'm in the middle of making my browser can any one tell me how to make a tab browser and how i can get favourites in my own browser thanks. there have been similar or same topics as yours on these forums, if you do a forum search I am sure your question would have already be answered :-) the favorites are simple - to a certain extent. Simply create say, a menuitem/dropdown menu item and everytime the user adds a favorite, add the new item into the menu items drop down list and add an event handler (click event handler) so when they click on the fav, the event handler will fire so you can then navigate to the page you want. To sa ...Show All
Visual Basic [VB.NET] How to merge many GIF Files into one file
I need to create a software that it merge many GIF File into one file container. My application has this form I want that when i click "Add File" it shows an OpenFileDialog and that add file's path in the ListBox And when I click "Merge File" It merge all GIF file present in ListBox And when I click "Split File" it split all GIF File present in a File Container and that It save GIF Files in the same directory of the File Container I tried to write the code but it change any bytes of the GIF Files when I merge :( and i don't know how to use Split Function in VB.NET [Off-Topic]I'm new in VB.NET and i don't know fine this new programming language Best Regards Flash You lost me ...Show All
SharePoint Products and Technologies Moving Documents
Can documents be moved from one folder to another certainly. the easiest way is to use the explorer view of each document library to drag the file to where ever you need to. You can also use this method: Hover over file > click the arrow to get to the individual file's menu > Send to > Other Location. ...Show All
