DeJaVu1230's Q&A profile
Visual Studio 2008 (Pre-release) Session data or how to implement a client side transaction
I've got a three-tier-setup: 1) Client tier. Using WCF to communicate to tier 2 2) Middle tier. Listens to WCF and uses TSQL to communicate to tier 3 3) SQL Server 2005 as database tier. A client opens a client proxy, sends a command to the middle tier, and closes the client proxy after use. The middle tier, when called, opens a SqlConnection to the SQL Server, does its stuff, closes the SqlConnection and reply to the client using WCF. This is working nicely, transactions in the middle tier work nicely, but how do I start a transaction initiated from the client, across more than one WCF call For this I would need to keep the SqlConnection open and reuse it, but where do I store it How do I recognise the client aga ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Rendering while writing to other vertexbuffer
I have a huge mesh (bunch of indexed triangles, not the d3d mesh) which I need to update often and move to the graphics card for rendering. I have decoupled update and rednering, so that a thread updates the mesh as farst as it can, and when it is done, it will be copied to a vertex and index buffer and then rendered. I have allocated two vertexbuffers vA and vB and two indexbuffers iA and iB. When rendering primitives from vAiA, i am updating the mesh and when i am done, I copy the new mesh into vBiB and then tiggle a switch which will make rendering use the b-bufers the next time. That way I am perhaps rendering ten frames for each update and then a quick switch. It works fine and obviously gives me a higher framerate than if i ...Show All
Visual Studio Tools for Office how to insert an image into word 2003 table cell
How do you insert an image into a table cell in a word document I have the following code that opens a word file and accesses the table. object filename = @"c:\template.doc"; object readOnly = false; object isVisible = false; object missing = System.Reflection.Missing.Value; Microsoft.Office.Interop.Word.ApplicationClass WordApp = new ApplicationClass(); Microsoft.Office.Interop.Word.Document aDoc = WordApp.Documents.Open(ref filename, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ...Show All
SQL Server The parameter is incorrect. (Microsoft OLE DB Provider for Visual FoxPro) after SP1
Having installed SP1, my SSIS packages using the OLE-DB Provider for Visual Foxpro no longer work. Using the latest version obtained from here: http://www.microsoft.com/downloads/details.aspx FamilyId=E1A87D8F-2D58-491F-A0FA-95A3289C5FD4&displaylang=en When attempting to create one SSIS from scratch, the message thrown is: "The parameter is incorrect. (Microsoft OLE DB Provider for Visual FoxPro)." The radio button option of "Copy data from one or more tables or views" and then selecting the "Next >" throw the error. It has to be the SP1 causing the problem because nothing else changed on the Server and everything was working fine prior to this. Microsoft, any feedback on this ...Show All
.NET Development Synchronous HttpWebRequest in MultiThreading (using Delegates)
I am having trouble running a block of code that makes a HttpWebRequest during multithreading. If I call the exact same code without multithreading, I have no problems. Is there a specific reason why this may be happening Could it be a bug in my code Might I need to use Asynchronous Thanks Without seem some code samples anyone would simply be guessing at the cause of these problems. In the title of the thread you mention you're using delegate, do you mean asynchronous delegates ...Show All
SQL Server Pivot transform not putting all values on same row
I have a pivot transform that it believe is configured correctly but is not distributing the values accross the columns on the same row. for example. input: id seqno codevalue 1 A red 1 B red 2 C blue 2 A green 2 B violet 3 A green desired output: id Seq_A Seq_B Seq_C 1 red red null 2 green violet blue 3 green null null what I am getting: id Seq_A Seq_B Seq_C 1 red null null 1 null red null 2 green null null 2 ...Show All
Software Development for Windows Vista State Machine Workflow with Parallel Workflows: How do I signal a particular state?
Context I have a reasonably complex state machine workflow implemented (and it works). Each of the 10 StateActivities in the root StateMachineWorkflowActivity has an EventDrivenActivity, HandleExternalEventActivity and SetStateActivity. In the client application, I've implemented an ExternalDataExchangeService local service and I can use it to signal the StateMachineWorkflowActivity to advance through each of the 10 states. No problem. I now want to add a ParallelActivity to one StateActivity add parallel execution of some new StateActivities in the root StateMachineWorkflowActivity . Questions 1. What do I do in my ExternalDataExchangeService local service to signal a particular StateActivity/EventDri ...Show All
Software Development for Windows Vista HandleExternalEvent activity in Parallel
I have a few activities in parallel that listen for the same event. With the event arguments I will see which one of the parallel activities to execute. It seems though that the event is only fired in the first activity and not in all the activities waiting for this event to fire. I would say, this is the 99.9% bug. When you define an event, you are forced to use "event" keyword (ExternalDataExchangeService) which is actually a MulticastDelegate. What means - several subscribers for the same event... I see no reason, why your workflow does not react properly... Otherwise it must be "delegate" keyword... Second, I have never ever heard that in .NET the source of the event HAS TO ...Show All
Visual Studio 2008 (Pre-release) Change Source of Frame to display different web pages?
Hi, I trying to display different web pages in a frame using timer to change its source but it keeps displaying the same page even when its source is changed.. I am writting following code: string[] webAddressQue ={ "http://gmail.com" , "http://yahoo.com","http://bellset.com"}; public void window_loaded(object sender,RoutedEventArgs args) { dtTimer = new DispatcherTimer(); dtTimer.Interval = new TimeSpan(0, 0, 10); dtTimer.Tick += new EventHandler(dtTimer_Tick); index = 0; dtTimer.Start(); } void dtTimer_Tick(object sender, EventArgs e) { if (index == webAddressQue.Length) { index = 0; } myWebBrowser.Source = null; myWebBrowser ...Show All
Visual Studio Express Editions Mouse movement in C#.
How exactly is mouse movement achieved in C# I know that in VB.net, it can be implemented using the gdi32 MouseEvent library, but what I truly need to know is how to achieve it in C# (along with simulated clicks, for macros). how do you mean mouse movement do you mean for example the mouse moving from the current position to say, the left hand side of the screen if this is what you mean, try this: Cursor.Position = new Point(Cursor.Position.X + 10, Cursor.Position.Y + 10); this will move the mouse from the current position, either way, and add 10 to the co-ordinates Mouse is known as a Cursor when coming to develop with it. To redraw or relocate the mouse, you simply create a new p ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Plane Structure missing (A,B,C,D) fields
It looks like beta2 changed the Plane structure. It no longer has the A,B,C,D fields. Is this intentional or am I missing something The only reason I need these fields is to recreate a function that was removed from MDX1.1 (Matrix.Shadow). Previous thread . I would guess there is another way to flatten geometry to a plane but this was very simple. Regards Sorry to cross post (just posted, possibly in wrong place, in XNA Game Studio Express) . Since this is under discussion here, I'll bring it up anyway. I've found a problem in some code when I run in Beta 2 (worked just fine in Beta 1). It appears that the D value is not computed correctly if I execute the following code: Vector3 p0 = new Vector3( ...Show All
.NET Development Remove white space from ASP.net web page at compile time
Web Pages edited in Visual Studio contain a lot of white space (indentation spaces, line feeds etc). This causes about 35% overhead when the page is sent to the client. Is it possible to remove the white space at compile-time Preferably, all white-space only literal html-objects should be removed, resulting in less objects and a more compact htm-code sent to clients. ...Show All
Visual Studio 2008 (Pre-release) cannot able to open new xaml browser project
hi i hv laptop of Hp Pavillion dv6000..... AMD turion 64 bit processor ,,,, 1 gb RAM,,,,,,,, 40 GB HDD .....running with windows xp 2. i had install .net framework 3.0 but whenever i m going open xaml browser application it gives me warning that " the system can not find specified file "..... then what to do ......... i m working on visual studio 2005 with .net framework 3.0 and whenever i m going to create a new project for xaml application only at that time it will give me error "system can not find specified file". ...Show All
Visual C++ C standard applications in Visual Studio 2005
Hello. Is it possible to develop Ansi C applications in Visual Studio .Net 2005 using standard libraries like <stdio.h>, <conio.h> etc. If yes, how Thanks'. Thanks very much. It's exactly what I want. Before, I've developed C applications using differents IDE's, but .Net 2005 is much better. ...Show All
Connected Services Framework Identity Manager - Tools and Utilities
Hi, IDM Spy and SSOManage utilities was there in CSF 2.5 for Identity Mapping. I want to know about CSF 3.0, either same utilities are available or any any new utilities are included Rgs Vasu We have replaced those tools with MMC for IDM. Using the Management console for IDM you could create an Application as well as Secondary credentails in SSO. This also enforces you indirectly to follow the best practices of having the services registered in Service Catalog. You could use the MMC for AD to perform the rest of the operations like Creating User / Group / Org. Thanks ...Show All
