Rafe Wu's Q&A profile
Visual Studio Team System Registering com during build
Hi all I'm trying to register a COM dll during the build process, my Regsvr32 is looking ok but it returns an error code of 3. However when I try and register manually (whilst remotely working on the server) it works absolutely fine. Any ideas Thanks Kev I needed to register a dll before the project was build. In the project folder I created a new folder 'lib' and copied the dll to the folder Opened the project file in the XML editor and added a new target block: <Target Name="BeforeBuild"> <Exec Command="regsvr32 /s "$(ProjectDir)lib\dsofile.d ...Show All
Visual Studio Simulating App.config behaviour
I would like to be able to have App.myconfig files copies to the output directory like AssemblyName.myconfig, like it happens with App.config files. How can I do that without creating the targets from scratch Ovatsus, Just add the following just before the </Project> tag: <Target Name="AfterBuild" Inputs="@(MyFilesToCopy)" Outputs="@(MyFilesToCopy ->'$(OutputPath)%(TargetPath)')" > <Copy SourceFiles="@(MyFilesToCopy)" &n ...Show All
Visual Basic Help needed to select specific arrays and diplay in a Listbox?
Ok well the problem I have is that i have to setup a program in which the user selects a Product from its ID which is displayed in a Combobox. Once selected the user clicks the buy button which brings up a quantity input box where the user can enter a number which is calculated and displayed in a Listbox! The problem im getting is that althought it is displaying the information i want, for each array/product in the combobox which is has not been selected the listbox displays a bunch of zeros. Im fairly sure that the program is simply cycling through all the arrays and ca ...Show All
Visual Studio Team System Error in Reporting
Hi TFS Users, I am working on TFS with the following versions installed.. TFS -- RTM Version SQL -- SQL Server 2005 Evaluation Version Team System -- RTM Version When i try to executes Reports (TeamProject -->Reports-->Builds) from Team Explorer i am getting the following message..[There are some builds configured and executed for this Team Project] Reporting Services Error What account is being used by the datasources you can check this by going to the report manager( http://<AT>/reports ) and clicking on the datasources. Thanks, Othmane ...Show All
.NET Development RSA Encryption
Cant find much info about this one on the net, but my problem is that cant encrypt\decrypt long string, im getting "Key not vaild for use in specified state" error.The key size is 2048, but string over 200-250 chars just dont get encrypted.. Thanks all If memory serves me right, RSA works in blocks that must be smaller than the modulus by 11 bytes, for padding. This would mean that a modulus of 2048 bits will allow you to encode 245 bytes at a time, which seems compatible with your findings. The value is in bytes, so you will see some fluctuations depending on what you feed the UTF8 encoder ...Show All
Windows Forms Datagrid Combobox
Hi, i want to show two comboboxes inside a datagrid, say for example banks and branches. so when ever user selects a bank from the banks combobox the corresponding branches for that bank should be populated in the other combobox any leads.... thanks in advance Hi, this article from msdn should be useful, too: http://msdn.microsoft.com/msdnmag/issues/03/08/DataGrids/default.aspx ...Show All
Visual Studio 2008 (Pre-release) controlling animation in between?
i am using a Border control, and animating its width from 20 to 50, iam animating it for say 5 second, with AutoReverse = true for again changing is width after 5 sec. I am activating it with MouseDown event on the border. Problem arises if in between i again click mouse on border, animation restarts from width 20, i want its width to start from the current width and not always 20, although animation duration still remains 5 sec, & width should increase till 50 if it is (< 50 and >20) and than decrease to 20. how can i control animation guide.. d ...Show All
Visual Studio I use the VS2005 february ctp, but my problems:
I've already tried to reinstall windows and the VS2005 but it takes no affect. If I start my app just from windows (not in VS2005), then everything is ok. Furthermore starting the app in VS2005 but without debuging is also works properly fast and no memory reducing. The problem occours when I debug the project each start reduce the memory ~40MB. ...Show All
Visual Studio MSBuild conditional import and Visual Studio IDE
Hi all, First of all, apologies if this is the wrong group - the problem I'm experiencing seems to be in the MSBuild hosted in the VS IDE, rather than the command-line MSBuild. I have vcproj files with conditional imports (to pull in MSBee build rules for a FX1.1 build). These build fine from the command line with the relevant conditional parameters set - I use a condition of: Condition=" '$(Platform)' == 'Win32 (.NET 1.1)'" so I can in theory use the platform in the IDE to discriminate between 2.0 and 1.1 builds. This works fine in the IDE for conditional compilation settings (e.g. I have a <DefineConstants>$(DefineConstants ...Show All
SQL Server User Authintication
Dear All, I have an existing application, I need to add mobile function to that application. I created a publication and tested mobile syncronization successfully. My question is: how can I create user and give him an access to syncronize database programatically from the application. I need to define MobileUsers group and give any user from this group an access to make syncronization to his mobile system should allow administrator to add remove users from this group from the application. I am using SQL Server 2005 with Sql Server Mobile client. any help is highly appreciated Thanks Tanks Dev ...Show All
.NET Development How to accomplish webservice using .NET remoting
Hi, Please let me know how to accomplish remoting on two different machines supporting webservices. Scenario: My application has a client and server (2 different machines in same network). The server consists of all the business logic and client consists of Data access layer. The client is sending a dataset to the client whose tables are being updated at server. For this purpose, iam using ASP.NET and webservices. The webservices internally call remote component(client-data access layer component). The data access layer component accepts dataset from webservice and performs updation. Iam getting a concurrency violation while u ...Show All
Visual Studio Tools for Office Serious Error with VSTO 2005
Hi, I fell into the serious errors when I follow the points as given below: 1. Click on "Add New DataSource" into Datasource configuration wizard. 2. Choose the "Object" from the options. 3. Select any of the classes from "NameSpace.Entities" dll generated by myself works as dataaccesslayer. Lets suppose class is "XXX.cs", select it & click finish. 4. Open the "Datasource Explorer", Browse the class "XXX.cs" that i have selected in the above process. 6. Drag this class to the form, datagridview of the class get represented with bindingdatasource control. 7. Write code to grab all the data with thi ...Show All
.NET Development Webclient gives generic error during Async operations
I have an application that is attempting to upload a file using the WebClient method UploadFileAsync. I assign the callback functions and then call the following: m_UploadClient.UploadFileAsync( new Uri (m_URL), "POST" , m_Filename); It immediately calls the UploadFileCompletedEventHandler and indicates there was an error by the existance of an exception in the UploadFileCompletedEventArgs . Error object. The Error message just says "An exception occurred during a WebClient request." How can I find a more specific error message I am racking my brains but I just can't figure out what it doesn't like. ...Show All
Visual C++ create C++ DLL to be used by C# ?
I want to write a native C++ function that I can later access from C#. Please keep in mind I do not have much experience developing on windows, (mostly unix) and that my only windows compiler is VS2005. I tried creating a MFC DLL. I am able to access this from a C++ .net program, but not from a C# program using P/Invoke. It seems that a plain MFC DLL is not "good enough" for use with DllImport. Is this correct It seems that I have two options: 1) compile the C++ function as a COM DLL (not sure how to do this from VS2005 - I don't see an option for that). I see an option for an ActiveX DLL...I hope I don't need to do tha ...Show All
Visual Studio Express Editions Locking Data in Combo Box
How can I stop the items in my combo box list being deleted i.e when the program is run and the first item is displayed within the combo box I can delete the value that is displayed. However when I hit the drop down button the item is still there. Ideally I would like it so that if the "Del" key is hit nothing happens. Thanks in advance You can block the delete key by doing this: Private Sub ComboBox1_KeyDown( ByVal sender As Object , ByVal e As System.Windows.Forms.KeyEventArgs) Handles ComboBox1.KeyDown If e.KeyCode = Keys.Delete Then e.Handled = True E ...Show All
