NickNotYet's Q&A profile
.NET Development Several asmx files or one?
I have to develop several web services, I'm thinking in two options: Develop all webservices in only a asmx file. One wsdl, one stub. Very easy. Develop several asmx files in groups. Several wsdl files, several stubs... What is move easy and clear, for the client developer Thanks If possible try to group them based on functionality or on application domain. Think about what apps outside of the one your building will need to interop with your webservice and group them together. For example group webmethods together in one asmx related to accounting so an accounting package can interop. But don't put everything in this asmx as the accounting package may not need to edit the product listings. I.e One amsx for products One for managing ...Show All
Visual C# Winzip utility in C# web application
Hi We need winzip component in order to have utility which can zip and unzip a file. Is there any corresponding microsoft utility for web applications Many thanks in advance. Hi, Following is the MS C# Built-in Zip/Unzip utils. Which uses System.IO.Compresson Libs. Hope this help. using System; using System.Collections.Generic; using System.Text; using System.IO; using System.IO.Compression; using System.Windows.Forms; namespace Zipper { class ZipUtil { public void CompressFile ( string sourceFile, string destinationFile ) { // make sure the source file is there if ( File .Exists ( sourceFi ...Show All
Visual Studio Team System The project file * has been moved, renamed or is not on your computer
Hi, somehow my VS2005 Team Suite is still looking in the old/wrong path for my project file and I can't figure out why it's looking there. So here's the deal: A while ago I created a solution with 3 projects in it; two C# class projects and one Website project. Life was good and everything worked fine, wonderful. Since then, I have acquired a new development workstation and have been developing happily ever after... until today, when I had to revisit my old Solution. Upon opening the old solution file I was prompted with a dialog indicating that it could not load one of my C# class projects because it has been moved or renamed. I OK'd the dialog and attempted to re-Add the project. To try and add my project back into the soluti ...Show All
Visual Studio Express Editions Need Help on DataBase program
Hi, I'm trying to create a data base program with access basically, my data source contains 2 tables Profile Detail, Group now, 1. i managed to modify and delete the rows in profile detail, Dim DeleteRow As DataRow = DsContactDetail.Details.Rows(LBoxName.SelectedIndex) DeleteRow.Delete() TaDetail.Update(DsContactDetail.Details) DsContactDetail.AcceptChanges() but when i try to use the same command on the group table, it didnt work. Dim DeleteGroup As DataRow = DsContactDetail.Groups.Rows(LBoxMGroup.SelectedIndex) DeleteGroup.Delete() TaGroup.Update(DsContactDetail.Groups) DsContactDetail.AcceptChanges() I get the error saying something like "when the DataRow contains deleted data, update requires a valid delet ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Screen shots on the Xbox 360
I'm simply wondering if there is a way to somehow capture the backbuffer contents to a file on the xbox 360 and then transfer that file back to the PC I've checked the framework docs and this forum and it doesn't seem to be possible, but I'm hoping that I am wrong. :-) A screenshot looks slightly less amateurish on a website than if I photograph my TV, even though it still looks like programmer art. The one solution I have come up with is to run the same code on the PC and capture the screen that way. The problem is that my PC GPU isn't on par with the Xbox 360 and I would prefer not to have to write separate shaders just to enable me to capture the screen. Plus, the screen shots would be uglier. Actua ...Show All
Visual C# Executing Batch files from C#
Hi I am executing a batch program from c# and It works fine as in code shown below. But I am not able catch any exceptions thrown while executing batch file. Example the getfiles.bat has command >>open ftp.###.com If there is a dos exception like bad ftp url the exception is not transmitted back to C# app. I just wanted to know if it possible to transmit the error back to C# app. I want to check if the batch file executed sucessfully. Thanks in Advance... /*********88 try { System.Diagnostics.Process proc; proc = System.Diagnostics.Process.Start("C:\\getfiles.bat"); proc.WaitForExit(); return true ; } catch (Exception ex) { UploadException.AddExceptionMessage ( ...Show All
.NET Development ArrayList problem/question!
Hi! I have a problem with the ArrayList because it only supports one string at a time. For example, I have to put a title and link in an arraylist, but cant do it cause then ill need two arraylists - one with the titles and one with the links. I would like the two strings in one arraylist. So then I just get the title and link using a foreach statement instead of going into two arraylists (which wont be accurate) Matt Just create a new object that will contain all that you need and place it into the arraylist. For example I will use the typesafe generic list, the cousin of ArrayList, but the concepts are the same. I will create a struct to hold the info: using System.Collections.Generic; ... p ...Show All
SQL Server How to Iterate thru Tables? Jamie Thomson...?
How does one setup a SSIS package to iterate through all (or selected) tables in a database. The reason is to update an internal database nightly using an approach similar to how Jamie Thomson stated in the below article. http://blogs.conchango.com/jamiethomson/archive/2006/09/12/SSIS_3A00_-Checking-if-a-row-exists-and-if-it-does_2C00_-has-it-changed.aspx I suppose that one wouldn't need to read the entire Log file so long as one has the ability to change or ignore the LSN in the Log file. Is there a way to do this I don't know what the big deal is to hide the ability to read log files or export a log file to a text file via command prompt, or even to have a SSIS Source Component be able to read a L ...Show All
.NET Development No connection cold be made
hi all .... i'm developing client server application that the part on the server is going to monitor what accounts are active on each client machine and which machines are in "logoff" status ... I tried to find a way to develop something just for server without clients application but unfortunatly i didn't find , so I decided to develop something for the client that send messages of the current user account to the server application when any user log on... and this is the first time i'm dealing with network programming ... but every thing seems to be good except that when I use the loop back ip as following ( for now, the client and server on the same machine): tcpClient.Connect("127.0.0.1", 8000) but when I replace it ...Show All
SQL Server Running under 64-bit OS
In configuration manager, the parameter "running under 64-bit os" is grayed out on my sql services. How can you change this Where does it get set At install It turns out that the label is very confusing. There is a bug filed on it in the SQL bug database and it will hopefully get fixed in the future to make this clearer. It turns out that this field shows if you are running a 32-bit version of SQL under a 64-bit OS (as in WoW). I had an X64 machine here with a 64-bit instance of SQL and a 32-bit instance of SQL. The field shows "No" for the 64-bit version of SQL and "Yes" for the 32-bit version of SQL. A bit misleading, but "correct" if you look at it in this w ...Show All
Smart Device Development CCommandBar accessing the Tool bar buttons in VS 2005
Hello, I am porting an app from ecv4 to VS2005. I am having a problem accessing the toolbar buttons(2) that I have added to CCommandBar. m_ToolTipsTable[0] = MakeString(IDS_ACTION); m_ToolTipsTable[1] = MakeString(IDS_ZOOM_IN); m_ToolTipsTable[2] = MakeString(IDS_ZOOM_OUT); if (!m_wndCommandBar.Create( this ) || !m_wndCommandBar.InsertMenuBar(IDR_MAINFRAME) || !m_wndCommandBar.AddAdornments(dwAdornmentFlags) || !m_wndCommandBar.LoadToolBar(IDR_TOOLBAR1) || !m_wndCommandBar.SendMessage(TB_SETTOOLTIPS, (WPARAM)(3), (LPARAM)(m_ToolTipsTable))) { TRACE0( "Failed to create CommandBar\n" ); return -1; // fail to create } m_wndCommandBar.SetBarStyle(m_wndCommandBar.GetBarStyle() | CBRS_TO ...Show All
Visual C# Parsing from scientific notation
Hi Im trying to read in values from a file containing numbers that are a mix of "normal" doubles (i.e. 3.23124) and numbers written in scientific notation (i.e. -12e3). I guess this has something to do with the format of the string. Im trying to feed the values into a custum struct called Matrix, which takes doubles... The code I'm using is: if (numberOfRows>0 && numberOfColumns>0) { Matrix M = new Matrix (numberOfRows,numberOfColumns); fs.Position = 0; int i=0; while ((line = reader.ReadLine()) != null ) { string [] split = line.Split( new Char [] { ' ' }); for ( int j =0; j<split.Length; j++) M[i,j]= Double .Parse(split[ i ]); i++; } fs.Close(); r ...Show All
Internet Explorer Development How to catch certain browsing events
Hi everyone, i'm currently developing a BHO with ATL as i'm in need to write an application that would record the interaction between a user and the browser while surfing the internet. With my BHO i'm able to get notification of the events thanks to the DIID_DWebBrowserEvents2 interface. This way i can record when new windows are opened, a page is navigated to, a print template is istantiated and so on. But this just takes care of half of the events i'd like to catch. What i'd like to record too is when a user presses the back, forward and refresh button, saves a page or the content of a link, adds a bookmark, and similar. I can't get notifications of those events from the DWebBrowserEvents2 interface. How could i manage in getting this in ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Question about Device callbacks
Hi! I'm a newbie using MDX Framwork to learn MDX and have a question about Device object callbacks. When exactly are they called and are there some general rules what to do in which callback (i.e. where to load effect or texture from the file) I.e. in "DirectX Managed" docs there's: "Framwork.DeviceReset Event Occurs when the Microsoft Direct3D Device object is reset." It doesn't really explain when the Device object is reset. I'm interested in the following Framework callbacks: OnCreateDevice OnResetDevice OnLostDevice OnDestroyDevice. Thanks in advance ...Show All
Windows Forms Escaping/Exiting an autocomplete/form
When using autocomplete, i want to press escape key on the autocomplete to not use it, however escape key is set on the form, i.e. this is the CancelButton property. Is there a way of catching the key event when the user clicks the escape key for the autocomplete on a textbox, so that its possible to determine whether to close the form or to close the autocomplete dropdown This is ok for when focus is in the textbox, but the problem now is when first open the form or click away, can't close the form by using Escape key, as the forms cancelbutton is not set. ...Show All
