twilightown's Q&A profile
Software Development for Windows Vista Ifelse activity in workflow
How can I set the condition for the ifelse activity . how do I invoke the branching based on the condition. Actually, this isn't exactly what the Parallel activity is for. The Parallel activity is used when you want two sequences to run at the same time ( It literally will spawn the contained activities on another thread ). The solution you describe may work but it's a rather long way to go for a simple switch construct. Paul Ballard ...Show All
Visual Studio 2008 (Pre-release) Manually modify SOAP message to talk to TIBCO server
Hi, Sorry, I do have three more questions. At every step one more questions raises... :-|. I tried a few attribute setting, but unfortunately none solved my problems... 1.) The first is concerning the produced SOAP message. The message starts with: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> Is it possible to insert a line ( < xml version="1.0" encoding="UTF-8" > ) before that I already reat this: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1138584&SiteID=1 It seems to be very complicated. Unfortunately, the server side expects this. 2) Is it possible to edit the SOAP envelope/body The client creates something like <s:body> and the server side possibly expects <SOAP-ENV:Envelope> ...Show All
Windows Forms Connection Strings in Machine.Config and Table Adapter?
Note this question was originally asked by some one else on the ADO forum (not me). However I want to know how to do this as well and he saved me typing the problem! Any ideas I have added a DataSet to my project and then dragged one of the Data Connections from the Server Explorer and dropped it on the DataSet Designer. This gives me a schema to work with. My problem is that I want to use a connection string from the machine.config file and not the connection associated with the Data Connection I setup in the Server Explorer. When I try to modify the connection, the only options to Log on to the server are 1) Use Windows Authentication and 2) Use SQL Server Authentication. There is no option to use a connection str ...Show All
Visual C++ How to learn VC++ Windows development? Use MFC? .NET? Good books/sites?
Howdy, I need to develop a Windows application (by myself, pretty much from scratch) and I'm looking for some tips on how/where to get started. I'll be using C++ with Visual Studio 2005. The app will require several different threads collecting/analyzing data and performing I/O. It doesn't require a gui; a text output window is fine. I'm an experienced (11+ years) C and C++ programmer with predominately an embedded and unix background. I'm fluent in C++ and unix-style system functionality like threads/sockets/device I/O, but weak on GUI stuff, general Windows programming, and Windows-specific system call implementations. I did a teeny tiny bit of straight Petzold-type Win16 API programming back in the Windows 3.0 days, and more rece ...Show All
Visual Basic Sorted List Serializable?
The error message is "Sorted List is not 'MARKED' for serialization" ... which leads me to think the error may be in my code: <code> Option Explicit On Imports System Imports System.Collections Imports Microsoft.VisualBasic Imports System.IO <Serializable()> Public Class LabelMap Private PlaySlipSL As SortedList Sub Serialize() Dim formatter As Runtime.Serialization.Formatters.Binary.BinaryFormatter = _ New Runtime.Serialization.Formatters.Binary.BinaryFormatter() Dim Stream As Stream Try Stream = New FileStream(FLAT_FILES_ROOT + SL_NAME, FileMode.Create, FileAccess.Write, FileShare.None) Catch ex As Exception MessageBox.Show ...Show All
SQL Server Performance in SSIS
Hi: I've written new SSIS packages to do what DTS packages did and the performance I'd say is about 20 times slower. In this package, I have a loop that loops through different servers based on server entries in a SQL database. Each loop pumps 10 tables. The source query is set by a variable and the destination table is set also by a variable, since all this data goes to the same tables on the SQL server and the definitions are all the same on the source server (Sybase). It's still going and has taken about 12 hours to pull roughly 5 million records. The source query ends up being: SELECT *, 'ServerName' FROM SourceTable1 WHERE Date >= Date The 'ServerName' , the "sourcetable1" and the "Date" are all set ...Show All
Visual Studio Express Editions HOw to refill a database?
I have this code in my vb.net program. Me.TickersTableAdapter.Fill(Me.DataSet1.Tickers) It fills the data from the external file fine. However, I'd like to be able to refill the data after it has been changed by an external program. Calling the line a second time doesn't work because I get "datareader already active on this command" error. How can I refill the data from the external file tia hi, i guess the external file is a database , your code retrieve a table to fill a dataset, so you don't need to fill the database back but you need to update it Me.TickersTableAdapter.update(Me.DataSet1.Tickers) hope this helps ...Show All
Game Technologies: DirectX, XNA, XACT, etc. first person XNA camera
I have been searching a free camera component. I have found: "Free Floating Camera Game Component with Mouse Control " here: http://xbox360homebrew.com/content/XNATutorialMasterList.aspx however, it is not available. In the XNA insttaller, in the documentation, there is a first person camera, but it does not use the mouse. Can anybody help Doesn't really matter other than to get a feel for how experienced you are with 3D concepts. More than likely you will have to write your own camera. I assume your effect file takes View and Projection parameters (or ViewProjection). The cameras job is to generate those Matrices. I use a camera with the following interface: public interface ICamera : ...Show All
Visual Studio Express Editions How do I set the fontsize and color of body text using mailto:?
-Visual Basic 2005 Express- I've searched the internet and forums for 2 hours looking for a way to 'programmatically' change an emails font and color in the body. I haven't found anything on either of these. The following code is what I have so far. It works fine but I'd like to change the font size and color. There must be a way... Process.Start( "mailto:" & clemail.Trim & " SUBJECT=Notification%20of%20payment%20recieved&BODY=Payment%20recieved%20" & temp2 & "%0D%0ADate:%20" & Date .Today & "%0D%0A%0D%0AThank%20you%20for%20your%20payment.%0D%0A%0D%0APlease%20retain%20this%20receipt%20for%20your%20records." ) clemail is the customers email address. Any ...Show All
Windows Live Developer Forums Adding over 100 pushpins from a database
I am working with a CRM web app that creates lists. I want to pass this list to a page that has the map. My problem is getting the server side data to the client side code of VE I have tried to use a session array but must be doing something wrong. The code is writen is javascript and I could really use some help. How do people push large amounts of data to VE Thanks all! RedCoat999 wrote: What would the GeoRSS file look like for that example Microsoft's example GeoRSS feed is located at http://dev.live.com/virtualearth/sdk/GeoRSSTest.xml . Using GeoRSS may or may not be viable for you in the current version of the map control since adding a layer will automatically zoom to a best-fit ...Show All
Visual C++ errC2719 formal parameter t with declspec(align(16) won't be aligned??
I have no idea how to fix it. Any suggestions appreciated. typedef union { struct { __m128d xxx,yyy;} __declspec ( align (32)); double a[4]; } vDouble; static inline vDouble vShuffle1dx(vDouble t, int a, int b, int c, int d) { vDouble result; result.a[0] = t.a[3-a]; result.a[1] = t.a[3-b]; result.a[2] = t.a[3-c]; result.a[3] = t.a[3-d]; return result; } If you replace " vDouble t " with " const vDouble & t ", then the error disappears. I hope this is suitable, since the function is inline. ...Show All
.NET Development Create New Table with foreign key's problem
I have the folowing connection string that I am getting an error on saying improperly formated CREATE TABLE command. I don't understand what's wrong with the string can someone please help me. :) string createClientTableString = "CREATE TABLE ClientTable " + "(ClientID INTEGER NOT NULL CONSTRAINT PK_ClientID PRIMARY KEY, " + "Longitude FLOAT NOT NULL, " + "Latitude FLOAT NOT NULL, " + "Description TEXT(200), " + "[Net Promoter Number] INTEGER NOT NULL), " + "ActionID INTEGER NOT NULL CONSTRAINT FK_ActionID FOREIGN KEY REFERENCES ActionSequenceTable (ActionID), " + "ContextTalliesID INTEGER NOT NULL CONSTRAINT FK_ContextTalliesID FOREIGN KEY REFERENCES ContextTalliesTable (ContextTalli ...Show All
SQL Server Parameters in data flow task with Oracle database source
In many DTS packages I have used parameterised queries for incremental loads from Oracle database sources using the Microsoft ODBC Driver for Oracle. Now I want to migrate these packages to SSIS, but the OLE DB connection for Oracle does not support parameters. I cannot use the "SQL command from variable" data access mode because of the 4000 character limitation on the length of string variables and expressions. Am I missing an obvious workaround Can you use a combination of query strings (in SSIS) and views in Oracle to reduce the amount of work you are doing in the one string Another alternative might be to execute a stored procedure that builds a temporary table (passing the p ...Show All
Visual C# Throw Statement?
What happens if I have the following code: try{ .... } catch(exception ex){ throw; } I read that you can just call 'throw' with a parameterless catch block to rethrow the exception, but what happens if you call it with a catch block that has a parameter That is a right way of retrowing exceptions. That way is used when you want to log the exception there but also want to be catched up in the Application. If you send the exception with this code: throw ex; then you will lose StackTrace of Exception. Just executing trow; will be the same as you don't have exception hadler in the source, and whole stack trace will be there up where you catch the exception. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Regarding my Career
Sir, I am doing my B.E Computer science(3rd year).I like to extend my career towards game programming.For this i need information about the basic requirements(like the languages that i should specialise in) and what course to do after my engineering.Can you plaese suggest me some ideas regarding this If we talk about industrial game development C++ is still the language of choice. Lately managed languages like C# gain some interest too. But this is currently more in the systems surround the core game engines. In this area you can find script languages like Lua, too. But the language is only a part and it would be a high plus if you are able to learn the syntax of unknown language in a short time. The other part that is much mor ...Show All
