R.Tutus's Q&A profile
Software Development for Windows Vista Why are there no 'composite state activities'?
lately, i got to a point at which it would make sense to define composite state activities in order to reuse them as kind of a template. first, i tried to extend the StateActivity but a custom StateActivity is not allowed to have sub states. As a second approach, i subclassed StateMachineWorkflowActivity , but a StateMachineWorkflowActivity is not allowed to be used as a sub state (although it inherits form StateActivity ). does anyone know an approach to define composite state activities - or if they are really not allowed on purpose, can someone explain me why thanks,marco For custom StateActivity that contain children you can use a custom ActivityToolboxItem . The example below adds a StateInit ...Show All
Visual Basic Reading from MSMQ help needed
Hi, I am a beginner and am trying to find out a better way to read from MSMQ using VB.NET. There is an application that queues message on a MSMQ. Now I want to have another application that should always listen on the queue and whenever a message arrives want to deque the message and do further processing and if all goes fine finally deletes the message off the queue and then wait for another message. There can be multiple messages queued within a second but I want to deque them one by one. As I work in Java/Oracle and this is a new requirement so trying to find out what is the best way to design this. Is there something that I can develop using VB.net that basically listens on the queue and whenever a message arrives automatically picks ...Show All
Visual Basic Can you digitaly sign your program?
hey i was wondering can you digitaly sign your program and also make to be able to install into C:\Program Files is this possible thank you. You can also use sn.exe to sign your exe. ...Show All
.NET Development DateTime interpretation between ADO.Net and SQL Server
In my application I write to a table in a database a DateTime field (which happens to be a primary key) by executing a SQL command, e.g. INSERT INTO MyTable (MyDateCol) VALUES ('8/22/2006 4:20:21 PM'). Then, I insert the same value into another table (in which that same field is a foreign key) by using ADO.Net's SqlAdapter->Update(), where in a DataTable in a DataSet I had stored that same System::DateTime object. I am getting a failure - foreign key constraint violation - when trying to do that last write. When inspecting the value of that field in the DataSet from within the debugger, the date looks like this: "22/8/2006 16:20:21" (same thing, just different representation). This is all on the same computer so the culture is the same ...Show All
SQL Server Confusing layout in SSIS with regard to "Execute SQL Task".
I hope someone can help. I'm trying to read rows from a SQL Server Table and for each row use a few columns as parameters into a query to be run against oracle which will delete oracle rows. I add OLDEB connections for Oracle and SQL and then I try to add a "Execute SQL Task". I've also tried a "OLE Command" but I can't get the mapping of the columns to the parameters to work. There is lots of articles on the web that talk in general around parameterized queries but no clear examples. I also find the difference between the Control Flow and Data Flow tabs confusing as its not intuitive where to place things. It also appears to force me to re-define things that it should already know (this is no doubt because ...Show All
Visual Studio Express Editions Getting the WebBrowser LocationURL to show.
I am having a lot of trouble getting the webbrowser location to show up in the textbox that I use as my address bar. I am trying to make it so that the address bar always stays up to date with what URL the webbrowser is at. Can someone give me an example code of how this is done Sorry for all the questions. I'm very new to VB Double click on the web browser control, in the form designer. With some luck, it'll automatically give you a Document_Completed Private Sub. Once there, enter this code: <youraddressbar>.Text = <yourwebbrowsercontrol>.Url.ToString Replace <youraddressbar> and <yourwebbrowsercontrol> with the appropriate control names. ;-) Martin ...Show All
.NET Development System.ServiceModel.dll no longer appears in Visual Studio's Add References dialog (.NET tab)
I have a brand new install of the Vista RC2 Candidate and I went looking and found that this was a problem in the past. However I am not sure the fix that was posted is the proper one as it was posted sometime back in February. System.ServiceModel.dll no longer appears in Visual Studio's Add References dialog (.NET tab). Does anyone know why this behavior occurs, and what can be done about it Thanks, -ja Running VS 2005 Standard Edition. I had to download Visual Studio 2005 extensions for Visual Studio 2005 extensions for .NET Framework 3.0 (Windows Workflow Foundation) You can find it here. http://www.microsoft.com/downloads/details.aspx familyid=5D61409E-1FA3-48CF-8023-E8F38E709BA ...Show All
Visual Studio 2008 (Pre-release) Problem with Storyboard.TargetName and resources
Hi! I'm new to WPF, and I need some help with a Storyboard.TargetName that refers to an inner element of a resource. Here's an example: < Page xmlns = http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " Title = " Page1 " > < Page.Resources > < LinearGradientBrush x:Key = " fff " > < GradientStop Offset = " 0.2 " Color = " White " /> < GradientStop x:Name = " grad " Offset = " 0.4 " Color = " Green " /> < GradientStop Offset = " 0.8 " Color = " White " /> </ LinearGradientBrush > < St ...Show All
SQL Server The certificate, asymmetric key, or private key file does not exist or has invalid format.
I am sure I'm being dumb here but I am trying to deploy an assembly with external_access. I have signed the assembly using the <new> option in the project properties. When I then try and create the Key I get the above error using the code below. CREATE ASYMMETRIC KEY SQLExtensionUDTKey FROM EXECUTABLE FILE = 'C:\Documents and Settings\Simon Sabin\My Documents\Visual Studio 2005\Projects\SQLBits\Core\SQLExtensions\SQLExtensions.UDT\bin\Debug\SQLExtensions.UDT.dll' What could be the problem Yep, the server will use the service account to access the file. If your "My Docs" folder is set to just give you access, that might be why you're getting that error message Sung ...Show All
Smart Device Development Detect and install correct Compact Framework for end user device
Hi all, I have a problem where I have to now ship my application with both the PPC and WM versions of the compact framework 2.0 to ensure that the user can use my application that was written in VS 2005. There is obviously no CF installation that caters for both the operating systems, or did I miss something Do any of you have some code that can be used to detect the OS version and to install the correct CF I take it that this will replace the AutoRun.exe in the 2577 folder Someone must have had the same problem before, but where can I find a solution PS. I assume that the end user does not have a previous version of the CF installed. Any help would be appreciated. You're correct, differen ...Show All
Game Technologies: DirectX, XNA, XACT, etc. d3d10 specs
Sorry if im being stupid but where can I find the exact D3D10 Specification I want to find out exact details like what precise parts of the ieee 754 spec it does/doesn't support. I have read the David Blythe's useful overview of the spec and also Nvidia's similar document, however is the actual spec or any d3d spec public (btw, im not talking about api specs, but the specs that hardware manufacturers follow to be compliant). Thanks! Owen As far as I know this specification is not public available. ...Show All
Windows Forms app.application Publish file
Hi, I know this has already been posted, but I need to get it clear in a simple way. The 'app'.application file is created when you publish an application to a web/ftp server, along with other files. The publish.htm page shows a button linking to the 'app'.application file and I can correctly install it, but a friend of mine (and maybe many more people too) get the 'app'.application file contents displayed in his browser. He has the .NET Framework 2.0 installed (installed automatically with VB 2005 Express), and I would like a simple solution to resolve this issue, without reinstalling .NET 2.0 (unless you are sure it resolves it). I also heard that it has to do with MIME types , but I'm not too familiar with this term to unders ...Show All
Visual C++ Running an external .exe from C program
Hi, I want to run an external .exe file from my C code. If i use "system" command the external exe runs in the same window. How can i run the child exe in a different window Thanks Karthik Alternatively, you could use CreateProcess, with the creation flag CREATE_NEW_CONSOLE. See http://msdn.microsoft.com/library/en-us/dllproc/base/createprocess.asp frame=true for more information. ...Show All
Visual Studio Team System VSTSTFSRTM expires this month, whats next?
The virtual pc image VSTSTFSRTM will expire by the end of september. Will Microsoft release a new vpc for another 180 day We have used the trial VPC for TFS experimental purposes and we would like to continue with that even after we have deployed a real TFS server (for continous process and method development based on TFS). I guess that we are not alone in wanting to have a full TFS environment up and running on a laptop in a few minutes. An environment that we can do different kinds of testing and dispose, start again etc. ...Show All
Software Development for Windows Vista LessThan cannot be used on decimal type ?
How do you do comparisons on currency values in rule conditions I want to do a simple discount test for a price < 50.00, where price is decimal type. Am I missing something easy You need to add a m to indicate the 29.99 is a decimal instead of a double. So use: this.CurrentOrder.TotalOrderAmount < 29.99 m Maurice ...Show All
