breceivemail's Q&A profile
Software Development for Windows Vista State Machine & Replicator Activity
I have state machine with two states: Initial State and Completed State, Initial State looks like that: eventDrivenActivity | delayActivity | ----------------------------- | replicatorActivity | | | | | codeActivity | ---------------------------- | setState public sealed partial class Workflow1: StateMachineWorkflowActivity { private int _index; ............. private void codeActivity_ExecuteCode(object sender, EventArgs e) { Console.WriteLine(replicatorActivity.CurrentChildData[_index++]); } private void replicatorActivity_Initialize(object sender, EventArgs e) { Console.WriteLine(sender == replicatorActivity); replicatorActivit ...Show All
Visual Studio 2008 (Pre-release) Application.GetRemoteStream() break in RC1
just moved an XBAP app from June CTP to RC1. the app is making an Application.GetRemoteStream() call to download a file to parse on the client (with a relative Uri). this used to work in June CTP, but RC1 returns a null (not a SecurityException). in fact, it fails in both partial trust and full trust. any idea what has changed Thanks, casey what i've found is that i can load the resource from the main XBAP assembly in our app, but the call fails from any other referenced assemblies. it always returns a null StreamResourceInfo for the other assemblies. i tried different ways to reference the path (e.g. /doc.xml vs doc.xml) ... still null. Uri uri = new Uri ( "doc.xml" , Ur ...Show All
SQL Server SQL Server Error 15404
I am trying to learn replication and using Agent jobs while attached to my corporate domain. Trying to use my personal domain account to run jobs or replication, I keep getting: SQL Server Error 15404, Could not obtain information about Windows NT group\user 'MyName\MyDomain', error code 0x5 [SQLSTATE 42000] (ConnIsLoginSysAdmin) What might be preventing SQL Server from getting my account information from the domain Group ploicy Thanks in advance, Richard The distributor/publisher are one instance on one box, the subscriber is on a second machine. Both instances are configured for mixed mode authentication, but agent security is running under my domain account. One thing I'm wondering about - t ...Show All
Architecture Video Streaming..
hi.. im developing a client-server application.. its very close to a video conference application with some extras.. i have done the extras and now reached a point where i will start working on the video... i need to send live video from one client to all others.. quality is not a very important issue to me.. but performance is.. which is best for my application.! DirectX or DirectDraw or other ! please forgive my ignorance.. im new to video and multimedia in general. thnx.. You can program this using DirectX or you can use existing components like windows media server SDK or Helix Arnon ...Show All
SQL Server Autoexist behavoiur
Hi - I have a caluclated measure like this: CREATE MEMBER CURRENTCUBE .[MEASURES].[Total Value Base] AS (([Measures].[Fund Value Base], [Client].[Client Type].&[External]) + ([Measures].[Value Base], [Client].[Client Type].&[External])) NON_EMPTY_BEHAVIOR = { [Value Base], [Fund Value Base] }, this works fine but when I use Client dimension in my query ... it gets very slow and we have change the formula to: CREATE MEMBER CURRENTCUBE .[MEASURES].[Total Value Base] AS IIF ( [Client].[Client Type]. CURRENTMEMBER is [Client].[Client Type].&[External], [Measures].[Fund Value Base] + [Measures].[Value Base], IIF ([Client].[Client Type]. CURRENTMEMBER is [Client].[Client Type]. ...Show All
SQL Server Determinism of UDF
I'm having a problem getting SQL to recognize a UDF as deterministic so I can use it in a persisted, computed column. I'm using INFORMATION_SCHEMA.ROUTINES to check the IS_DETERMINISTIC value and it is always NO. Why isn't the following UDF deterministic ALTER FUNCTION [dbo] . [SecondsToTimePart2] ( @part CHAR , @seconds INT ) RETURNS INT AS BEGIN DECLARE @hours INT , @minutes INT SET @hours = @seconds / 3600 IF @part = 'H' RETURN @hours SET @seconds = @seconds - ( @hours * 3600 ) SET @minutes = @seconds / 60 IF @part = 'M' RETURN @minutes SET @seconds = @seconds - ( @minutes * 60 ) RETURN @seconds END It does not use any DB objects, flo ...Show All
Visual Studio Express Editions Windows Classic themes
In many applications, the style looks like the old Windows Classic theme, even when run under Windows XP. How can I do this in my application Is it possible Thanks, James. Hi, Vampire Using Microsoft Windows XP, you can define the visual style or appearance of controls and windows from simple colors to textures and shapes. You can control each defined part of a control as well as each part of the non-client (frame and caption) area of a window. The user can then use the Appearance tab in the Windows Control Panel to switch between the classic visual style and other available styles. A visual style is included with the Windows XP release. Using helper libraries and application programming inter ...Show All
Visual Studio Location of the assembly (.dll) for a web project in VS 2005(C#)
Hi, Where does the assembly file of the webproject gets stored while building it Currently I am using VS 2005. But when i was using VS 2003 for my previous projects the assembly file used to be in the bin folder for a webproject. I am trying to use NDoc tool, but it requires the dll assembly which is created. Is there any way to get NDoc work Also the FxCop tool needs the dll assembly to generate the report. Can someone please help me with these The compilation/build model has changed for Web Site Projects in Visual Studio 2005. If you are using a Web Site Project, when you build, your assembly (or assemblies) get created in the Temporary ASP.NET folder by default. If yo ...Show All
Visual C# toolStrip with Database connection
i have a combobox on my toolStrip How can I populate with data from a database its not available for the toolstripcombobox I'm afraid. The only thing you can do in this situation is once you have filled a dataset, to go through each row/column of data and add it to the toolstripcombobox. ...Show All
Software Development for Windows Vista What happened to the HelpDeskSupport sample app in .NET RC1 and WinWF CTP5?
Dear all, The HelpDeskSupport sample was in the SDK up until Beta 2.2, but it seems to have vanished. It looks like it exists on the web, but the links to the source code from the documentation are broken. I used it to obtain classes for "simple" communication between asp.net and a state machine workflow. This seemed to work ok, so I didn't look into it to any degree, but under RC1, using manual scheduling, it crashes because the communication interface uses a class global static to keep track of the DataPipeList and this does not persist across re-starts. The idea of a class that abstracts to data pipes with defined message formats is a good one, although the implementation of it here is a bit clumsy. Is there a samp ...Show All
Visual Studio VSIP package load failure
hi, i have developed a VSIP package for 2005. I got the PLK also. i deployed it on my machine on my machine if i run devenv with the /novsip argument, it works fine, but on any other machine,if i deploy and then run devenv with the /novsip argument, the package load failure for my package happens. I am confused about this behaviour. any help is kindly appreciated thanks in advance hi, all the other tests in the doc (in that link)seem to work fine. this is very strange behaviour.... thankx. ...Show All
Visual Studio Can a build ever end without a OnBuildDone event?
I currently have some code in my Addin that relies on a build ending with a OnBuildDone event. Does anyone know of any situation that may cause a build to end without a OnBuildDone event It seems like most of the typical exceptional situations (user cancels build, build fails, I kill build process) throw a OnbuildDone event. However I am starting to suspect there are situations where this isn't the case... Any info or pointers on where to find the documentation on this sort of stuff thanks! ...Show All
Visual Basic text input matching label question
My problem is that I can't figuire out how to code this simple situation:( I have one textbox and a label that displays a random letter. I want a if,then statement when a key pressed in the textbox to check if the two are the same letter without having to hit enter. I have it working with the user having to to hit the enter key after they type the letter but I want to get rid of the enter key step. Thanks for the help in the textbox, simply implement a keypress event. In your designer view of the form, select the textbox, then in the properties of the textbox, choose the events icon "lightning" symbol and double click the keypress event to create this event handler. Now in here you will compare the k ...Show All
Windows Forms Creating a Table Adapter from Access DB wrong date format
Hey all. In my Access database the date format is dd/mm/yyyy but when I create a table adapter from my access db table it loads the date as a full time + mm/dd/yyyy format. An example from one of the rows: In my database the row has a date column which represented as 14/1/2007 and at the table adapter it returns the date as 11:07 AM 1/14/2007 and all the controls which are binded to this tableAdapter return this format. Where do I specify the date format for the table Adapter (Maybe in the select statement of the TableAdapter And if so, how do I accomplish this) Thanks in advance :) Thanks for the reply but its not working :/ My control is DataGridView and it is connected to &qu ...Show All
Visual C++ Trouble with scrollbars and mfc sliders
Hi everyone. I am making an application and using the dialog design with common controls for it. I put a slider in, but to use it I needed to include afxcmn.h and when I do this i get three link errors: 1>Linking... 1>nafxcwd.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" ( 2@YAPAXI@Z) already defined in LIBCMTD.lib(new.obj) 1>nafxcwd.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete(void *)" ( 3@YAXPAX@Z) already defined in LIBCMTD.lib(dbgdel.obj) 1>.\Debug/CharICS.exe : fatal error LNK1169: one or more multiply defined symbols found So next I put a scroll bar in instead but whenever you scroll the bar it just resets to the far left. If anyone can help me with thes ...Show All
