CRSL's Q&A profile
.NET Development Block packet by packet payload
I want to create a packet filtering but not use IP as the filter, but the packet payload as the filter. For example I want to block user that request mp3. So I only watch the payload if there any request of mp3 then that packet is dropped. Now the problem is how to make the packet route, that must past our application for payload check then after check passed than the packet can passed to network adapter. Its like that packet route is serial, go to our application first then to adapter, not like this the packet at the same time go to our application and also pass the adapter. Thanks. This is very much a kern ...Show All
Visual C++ Multithreading
Is it possible for a master thread to force abortion of pending IO in a slave thread, as with signals on Posix. Win32 only, no .net bullshit please. Thanks, - NK A similar way has been suggested by Ronald in this thread. Unfortunately I cannot guarantee (or rather enforce) that the client code is using asynch IO. Hence this is not the solution to the problem. With posix I can use signals to abort *any* system call, including the blocking ones. I was hoping that a similar solution could be found with Win32, alas, it appears there is none. Thanks, - NK PS. the library I describe has already been implemen ...Show All
SQL Server What's a UDF file?!
I'm trying to download the Enterprise Edition of SQL Server 2005 CTP from this link http://www.microsoft.com/downloads/details.aspx familyid=8D986ECB-DBB2-43A6-9853-E539DB96EB61&displaylang=en#filelist I see the ISO file links, but they link to UDF files. What are those How to convert them to ISO files ISOBuster does and so does winrar, but nero burning rom doesn't. UDF file is recognized as an User Defined Function in my computer. I guess i have to extract the file and burn or rename the file to .iso and burn! ...Show All
.NET Development Single p2p? Send files using sockets or remoting?
I just did my first single application with remoting and I liked it. Should I use remoting or sockets programming If I should use sockets can you please point me to the right information of sending files and everything I could need Thanks For your first question, it really depends on transfer sizes and number of conneced clients, available bandwidth etc. For example, if you're got dialup users you will want every last byte you can squeeze out of the network connection, and so you will want to go the sockets route and implement a very light transfer protocol (e.g. implement a syn/ack with a crc32 on small 2k packets). However, if ...Show All
Visual Studio Team System How do I use multiple rows per test?
Suppose I have a test that performs the following: 1) Log in 2) create an order 3) add 3 items to the order 4) checkout 5) logout I created my test and did the data binding and when I run it, I get the same order three times, always the first row in the database. I would like to be able to be able to get a new record each time I add an item to the order. What am I doing wrong Thanks Hello, I think that what you're looking for is a data-driven unit test. With these kind of tests, data will be retrieved from row(s) of a data source, and this data will be availabe from some propertie ...Show All
Windows Forms Windows Installer Uninstaller and Conditions
Hello, I have two problems. I created a new windows setup project in VC2005 Pro. There I added a checkbox page with two checkboxes. One to create a shortcut on user's desktop and one to create a shortcut in user's program menu. My problem is, that the installer always creates both shortcuts regardless of the state of the checkboxes (CHECKBOXA1 and CHECKBOXA2). I added a folder condition to "User's desktop" and "User's program menu". What does VC expect there (CHECKBOXA1 or CHECKBOXA1 = Checked or ...) Another question is about an uninstaller. Is it possible to create an unistaller shortcurt, too Currently it is only possi ...Show All
Windows Forms Question on VS 2005 publishing ClickOnce application
Hi, I have a C# Windows application that I want to publish it as ClickOnce installable. On the project's properties' Publish tab, I click on the button "Application Files" to try to include some other assemblies that I build in different solutions. The question I have is: how does Visual Studio know what files to be populated onto the grid Is there any way to add files (e.g. dlls from different solutions, database files) to the grid Thanks in advance. LLee ClickOnce looks at the project's properties, including it's calculated dependencies. If you have a reference to an assembly, it sho ...Show All
SQL Server problem with dynamically created RDL files and reports
Hello, I have a strange problem with a dynamic created RDL resp. dynamic created report. I have followed the programming tipps on the microsoft site to create programmatically a RDL file and this RDL file is accepted by the reporting server. But when the report is rendered out of that RDL some fields are somehow modified. In one field after the first line (which holds the correct value) all values in the following rows are cut after the fifth character. Other fields contain every now and then strange signs like a caret... My report items in the RDL e.g. look like this: - <TableCell> - <ReportItems> - <Textbox Name= ...Show All
Visual Studio Express Editions Having trouble watching training videos
Hi, I'm trying to watch the training videos on Microsoft's site ( http://msdn.microsoft.com/vstudio/express/vwd/learning/default.aspx ), yet the video will pause while the audio continues. Anyway to get these videos to run smoothly without the video pausing for a minute every once in a while I can still here the audio though. Thanks! Leo I downloaded them and I still get the same problem. For example, on the first video at exactly 15min : 11sec the video pauses and doesn't resume until about 18min : 21sec. I personally dislike .wmv, I wish microsoft would have giving the option of a ...Show All
Visual C# Designer.cs error
I am getting the following error on a build: Warning 1 The name "Description" is already in use by another component. K:\fms\admin.Designer.cs 2151 0 ok, so I check around in the Designer.cs file and see the following: this .descriptionDataGridViewTextBoxColumn1.Name = "Description" ; // this is the only other line using "Description" this .descriptionDataGridViewTextBoxColumn.Name = "Description" ; /// this is the line erroring out This stuff is all genereated by VS 2005 (C#)....so why the error The textbox columns are different names used in different gr ...Show All
Windows Forms giving bordercolor for richtextbox
i have a custom richtextbox and i want to have a property as BoderColor by i can set a different border colors for this richtextbox control. Hi, You can do that by following steps… Add a user control Inherit it from panel Declare a RichTextBox in the user control Add RichTextBox to the user controls collection and set dock style to fill Your user control code will looks like following… using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; ...Show All
SQL Server Import flat file automatically?
Hi, I'm going to be getting several flat files that need to be imported into one of two tables. Although the text files will have different file names, they will have either "Header" or "Detail" in the file name, so I can tell which table they need to be imported into. The problem is I don't know enough about SQL Server 2005 to set up an automated import of these files into the database. Does anyone have any suggestions on how to do this, or have any experience in setting this up Are there any inexpensive programs to load data realtime or on a schedule (I work for a young company with a very tight budget). I ha ...Show All
Visual Studio Tools for Office Using existing word doc in VSTO project (VS2005) Causes "Attempted to read or write protected memory" error
**EDIT**- Please see my next post in this thread for specific steps to reproduce error*** We have a fairly complex Word document that we use here at my company for creating reports. While it contains a good amount of VBA code, it has never had any VSTO associated with it. My intention with this current project is to bring the doc "up to date" by replacing the VBA code with VSTO equivilants. Unfortunately, I can't even get started. I go into Visual Studio 2005 and select "Create project". I select Office --> Word Document, and click "OK". On the next dialog, I select "Copy an existing document ...Show All
Visual Studio 2008 (Pre-release) how to save a richtext formatted string in wpf
hi, i am wondering about how to save rich text component string to a file and retrive it with the formatting. thanks prasanth http://blogs.msdn.com/jfoscoding/archive/2006/01/16/513383.aspx ...Show All
Windows Forms Longhorn style Breadcrumb Bar
Anyone have an idea for how to implement a Longhorn style "breadcrumb bar" in C# for Windows Forms Basically, the idea is: - A parent window that can spawn child windows of the same style. The child windows will append their title/location to the breadcrumb bar. (i.e. "Parent Title -> Child Title") - If you click on one of the crumbs  ...Show All
