Octopus384's Q&A profile
SQL Server selectively receiving
I have a scenario whereby I will have 200+ clients putting messages onto a service broker queue. This message will go through a pipes and filters based messaging system, and ultimately the message will pop out the other end. Here's the question: what is a good way of making sure the same client gets the response to the message he received. Is there anyway I can selectively receive messages from a queue, i.e., pass a correlation id in with the message, and then filter messages based on that id. Or if someone knows a better way to do it altogether i'd really appreciate it. Many thanks, Paul Not as it stands currently, each client posts to the same service. I'm using the notion of a service here ...Show All
Visual C++ visual C++ 6.0, dialog class not in Workspace ClassView
Created a MFCAppWizard.exe file in visual C++ 6. Used dialog option. The dialog class (MyDlg) does not appear in the Workspace ClassView. It is in the FileView and also in the ClassWizard. Inserted the MyDlg class into ClassView by right-clicking the project name in Class View and choosing New Class option. The class is now in the Workspace ClassView. However there are now two MyDlg.cpp and MyDlg.h files in the FileView. Tried to remove the MyDlg class from Workspace ClassView by right-clicking it but there is no delete option. How can I fix this For VC6.0 issues, please use the newsgroups at http://msdn.microsoft.com/newsgroups OTP Thanks, Ayman Shoukry VC++ Team ...Show All
Visual Studio Team System Team Foundation and Reports
Hi guys, I am new to team foundation. I have to generate reports using Team foundation. Any idea how it can be done. Thanks, Aditya You can start by reading Team Foundation Server Reporting http://msdn2.microsoft.com/en-us/library/ms194922(VS.80).aspx Then if you have specific questions I would ask in the Team Foundation Server - Reporting & Warehouse forums http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=480&SiteID=1 ...Show All
SQL Server Parsing one field into many
I am trying to parse a single field into many. A sample of the data in one of my fields is: 0;127.20;3;23.90;13.56;0;0;0;0 I would like to parse it into 9 fields. I am sure that this is easy, but, since I am new to SQL2005, I am having a few probs with this simple task. Any assistance will be greatly appreciated. Layne Dave, This is a sample of the data in one field of the table. It occurs in every record. I want to parse this column into many columns for each record in the table. I hope this helps clear it up. If not, let me know. Layne ...Show All
Visual C# Forcing drawing of layered window/Tooltip issues with layered window
Hello, My Issue is in two parts: first, I need a proper way to force .Net to draw my form in layered mode all the time, to prevent the form from flickering when I change the opacity (currently I am setting the transparency key to some unused color, which I don't think is very good practice). Second, when I try and display tooltips on a form which is layered, the tooltips appear behind the form, so aren't visible. Any help on this problem would be greatly appreciated. Thanks, Al Yep, thats what I was doing. Only trouble is it looks ugly on fade out, because windows can't switch between normal forms and layered (with opacity) properly. The form fades out ok, but before it does, every control ...Show All
Visual C# Using DeviceIoControl and IOCTLs from C#
Hello, I'm currently working in a C# project where I require the use of DeviceIoControl(). It seems that there is no implementation of this function under c#, is this correct If this is the case what would be the best way of including calls to this function within the project Would it be best to create a separate project within the solution, and if so is there a link out there that goes over this type of solution/project Thanks, Devan Putting the code in a separate C# project will not in any way make it easier to call the function. It will only affect the modularity of your code. You have to call the function through P/Invoke either way. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Load/UnloadGraphicsContent
I'm guessing that the Load/UnloadGraphicsContent is there to allow the runtime to make a game release resources and then reload them, in the following order: 1 / Game loads, LoadContent is called, and game can load graphics anytime after this point if it feels the need, e.g. when loading a level. 2 / Runtime requests game to release content - so UnloadGraphicsContent is called. 3/ Runtime requests game to reload content at some point, presumably before Game.Draw is called again, else we would be in trouble... Is this correct And also, I presume there might be a point before which you are allowed to load any content - is this the first time LoadContent is called, or before that 1: Yes, you can ...Show All
.NET Development A simple .NET 1.1 / 2.0 hosting question...
This question has been asked before but I want to know if anyone has actually tried it. Can you build a .NET 1.1 assembly that loads in the CLR version 1.1 and call a COM+ server application (aka hosted in dllhost.exe) that loads a .NET 2.0 assembly Obviously the marshalling is a performance penalty but believe it or not I have an API that only seems to want to support 2.0 and I don't want to start rewriting all my 1.1 apps (at least not yet :) -Tom Only one CLR can be loaded per process. Since you're essentially loading two processes to perform the COM+ transaction (I'm assuming it's a transaction) then COM+ will/must load whatever CLR that other assembly needs/wants. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA with languages different than C#
Will XNA express run with other .NET languages different then C# For example, VB or Managed C++ ... Hey Bubu I have some sample vb.net code if you like, Get it here: http://www.tridexconsultants.co.uk/pages/downloads/XNA%20VB.NET.zip ...Show All
.NET Development .NET framework data provider
Has this been previously reported Using a multi-line textbox control enter a back slash ('\') and then hit the return key and enter more text. Take this data and insert/update it to a column defined as varchar in a MSSQL table. The back slash plus the carriage return and line feed are gone! Repeat again but this time put a space after the back slash ('\ ') before hitting the return key and you will find that the back slash and the carriage return line feed are all stored properly. Is this one of those Microsoft 'by design' implementations or is the data provider mistakenly identifying the back slash as an escape character because it immediately precedes the carriage return line feed The backslash characte ...Show All
Visual Basic Data update problem
Hello guys, I am failry new to VB.NET 2005 and would like some help from you guys if you dont mind helping me. I have a dataGridView called wr130dg having 5 cloumns of which the 5th column called donecheckdgcolumn is a checkbox column. I want to update only those records where the user checks the checkbox in the wr130dg. This update depends on the first 2 columns namely MoNodgcolumn and SeqNodgcolumn. In short it means that I have to find all the MoNo and SeqNo in the datagrid whose values in done column is ticked and update the date field of the databasetable to current date and done field value to 1. The code I am using to display the data in the wr130dg is: Private Sub OK_Button_Click( ByVal sender As System.Object, ...Show All
Visual C++ Executable size in Visual Studio 2005 larger than VS 2003
I have noticed that a non-MFC (statically linked) project is bigger in VS 2005 than VS 2003 or VS 6. This is noticeable when building a simply hello world program. This size difference increases as the executable size increases. (For one project the increase was a whopping 150k.) I have examined the executables and am at a loss for this size increase. Hello, I also have noticed the increased size. All my DLLs and EXEs increased about 16-45 kB. I played around with the compiler settings, but I didn' t get the old (VS 2003) size. I found in the EXE as well in the DLLs a new section <assembly xmlns> and PADDINGXX bytes. The size of this section is ~ 1,8 kB. There are two anot ...Show All
SQL Server CLR integration problem
Hello, I wrote an assembly with refernce to another assembly (the referenced assmbly is framework 1.1 assembly, i don't have its source code). I tried to load the assembly to SQL Server (reate Assembly...) and got the following error: reate failed for SqlAssembly 'OptimalTest.Statistics'. (Microsoft.SqlServer.Smo) For help, click: http://go.microsoft.com/fwlink ProdName=Microsoft+SQL+Server&ProdVer=9.00.1399.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Create+SqlAssembly&LinkId=20476 ------------------------------ ADDITIONAL INFORMATION: An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo) ----------- ...Show All
.NET Development How to tell if the remote object is available on the server (without invoking its method)
I have a remote object hosted in windows service. The client access this remote object via interfaces (not by instantiating the object type directly). Currently, the way i can tell if the server is available or not is calling one of the method and catching for RemotingException. These are the setup: 1. Channel: IPC ,binary formatter 2. Host: Windows Service 3. Client: Windows Form 4. .NET 2.0 5. Remote Object is a server activated singleton object. 6. I created the object on the server manually and marshal it out manually rather than relying on the remoting infrastructure to create the object since I have to be able to control the lifetime of this remote object on the server side. This ...Show All
Visual Studio Team System Close a MessageBox from a test
I am writing some tests for a program that uses a few MessageBoxes. Is there anyway to detect when one comes up and/or close it once it does from the test so that I can run the tests unattended Through continuing research, I found a way to do this. A Timer's Tick event still fires if there is a modal form up (a MessageBox, for example). So create a Timer that has a sufficiently long interval to allow the code to generate the MessageBox and then in the Tick event use the SendKeys method to send an appropiate key or key combination to the program. It is best to disable ther timer during the tick event as well. Just a note, but the code I am testing does not always generate a MessageBox (exceptions, for e ...Show All
