Tigerwood2006's Q&A profile
Software Development for Windows Vista batching : IPendingWork.Commit
MSDN Says : " The workflow runtime engine calls the Commit method when its semantics dictate that the pending work in the work batch should be committed . When it reaches a commit point, the workflow runtime engine calls the Commit method on each IPendingWork object in its work batch; the workflow runtime engine passes the Commit method the collection of items associated with that IPendingWork object. Either all of the work in a batch succeeds or none of it succeeds. You should throw an exception if any of the work items passed to the Commit method in your implementation cannot be committed. Depending on your implementation, you may want to perform some rollback in your Commit method if it cannot commit its work items. If th ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problem with rendering lines in DirectX 8.1
Hi, Im using Visual Basic 6 with DirectX 8.1 to develop our software. In our program the user can choose to display graphics in 3D or 2D mode. 3D Mode works great without any problems. We have around 400 custumers and of them there been about 5 bug reports about 2D Mode. The problem for those few is that, when the model is loaded in to 2D mode, some of the line is not rendered. If the user using the zoom control or pan control it might come back. This is just happening for some few of the models. Other and maybe more advanced models are loaded and rendered correct. Its very hard for me to figure out what causes this problem, especially so few have reported this bug. I have a feeling that its might be something wrong with the displ ...Show All
SQL Server Data Conversion Errors on Excel Import into existing table
Recently installed Sql Server 2005 client and am now attempting to import data from a spreadsheet into an existing table. This works fine with Sql Server 2000 but I am getting data conversion truncation errors that stop the process when this runs using import utility in Sql Server 2005. Any help would be appreciated. More information needed. Why is it failing What does the error message say You will need to open up the package and edit it to do the conversions that you require. -Jamie ...Show All
Visual Studio Team System Building BizTalk 2006 Project on TFS
I am setting up TFS for the first time. We are going to do a single server setup for SQL, TFS, Team Explorer etc. The build server will be a separate server. I am planning on installing Visual Studio Team System for tester on the build server. I wanted to confirm if I also need to install BizTalk 2006 on the build server. I am assuming this is need to be able to build BizTalk Projects. Are there any instructions for installing BizTalk on the build server Does the install order matter Thanks Raj Sorry for the long delay in answering - I am not aware of any instructions for installing BizTalk on the build server, any gotchas in doing so, etc. If you have not already discovered this, however, MSBuild does not support building ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Highly Optimized 2D Drawing
With the trends in hardware today, would it be worth the effort to render groups of sprites to offscreen surfaces For instance, we have an gui window composed of 9 sprites (All stored in 1 image, and will be rendered in a batch). 5 Of these sprites will every need scaled or tiled to draw the window every frame. Assuming that during the gui windows lifetime it's size and appearance will remain relatively constant, we can render it to an offscreen surface. This would allow us to minimize the scaling and vertex buffer operations to a single blit in future redrawings of the window. Or is it best to constantly push new quads to the GPU for processing like the Spritebatch object currently does The constant pushing of quads would only requir ...Show All
SQL Server Mdx Running Total
Is there any way to achieve the following: PeriodStart TimeCharged CumulativeTotal Oct-07 10 10 Oct-14 15 25 Oct-21 25 50 Oct-28 5 55 I am not an advanced MDX user so forgive me if this is a dumb question. Since TimeCharged clearly changes with respect to PeriodStart, why can't you make PeriodsToDate returns different sets based on PeriodStart ...Show All
Visual C++ Good WinAPI Tutorial?
Hello. I have learnt to create a basic window in C++ using the WinAPI. But, how do i create Text boxes, controls and things like that Can someone please point me towards a good tutorial on this - Cheers, Daniel There are many excellent tutorials and articles at www.codeguru.com and www.codeproject.com . Also, you could consider reading the book "Programming Windows" by Charles Petzold ( http://www.amazon.com/exec/obidos/tg/detail/-/157231995X v=glance ). ...Show All
Visual C# What's the difference ?
Hi! I have SortedList implemented as a generic one like this: SortedList<int , string> myList = new SortedList<int ,string>(10); What's the benefit of having int instead of just int as a key Key can't be null so if I set: int a = null; myList.Add(a, "foo"); It will compile but still won't work. So should it be int I found it in a code but don't get why is there. Jedrzej Hi, When you set null as a key it will generate a error at compile time if you don't use nullable type, otherwise error will occur at run time if you use nullable type. In the case, it's no definite answer to decide which should be better. So, we cannot discuss the advantages or shortages ...Show All
Smart Device Development Two Tabpages 'Syncronized'
Hi, I have two tabpages and I want to make them move simultaneous, this is if I move tabpage1 down with the ScrollBar the same must happen in the tabpage2. The following code doesn’t work: private void doSyncTabs() { this .tabPage2.AutoScrollPosition = this .tabPage1.AutoScrollPosition; this .tabPage2.Refresh() ; } private void tabPage1_Paint( object sender, PaintEventArgs e) { doSyncTabs(); } Regards Mario You need to assign the negative of tabPage1.AutoScrollPosition to tabPage2.AutoScrollPosition. private void doSyncTabs() { Point point = this.tabPage1.AutoScrollPosition; point.X = -point.X; point.Y = -point.Y; this. ...Show All
Community Chat Question with Vista
Sorry this might be misplaced Will Vista be able to run Xp programs such as games and files Another thing is would you suggest having 2 opperating systems and if yes should I have a seperate drive Will this affect my computer by slowing it down having 2 OS's thanks the current vista (rc1) is compatable with most applications. however, because it isn't in retail or even rtm yet we can't say for sure.because 2 os's cannot run simultaneously (unless one is emulated in the other) your computer would experience no negative affects from dual-booting.A tip for dual-booting xp and vista: take a long time to think about which os you will use most. allocate more drive space to this os. like right now, i'd give vi ...Show All
Visual C# Generic: how to cast to the type specified by a type parameter?
Hi, If I have a generic class like this: public ClassA<T> { private T val; ... } The T can be some numeric types. Now, if I want to add a constructor, which contains: val = Math.Pow(2.0); The compiler will complain "can't implicitly convert 'double' to 'T'". So how to do it correctly here Thanks in advance, Shu ...Show All
SQL Server Simple Workgroup (Like Access) use of SQL Express ??
Hi all, In the past if we wanted to provide an application with simple (multi-user) database facilities, we would use an Access mdb database which we could basically xcopy deploy to the client. Share the folder across the network and apart from the limitations of mdb databases it would work !!! With all the advancements in databases ! we have moved on to SQL Express - touted as the thing to use and the replacement for MSDE and MDB databases. But hang on a minute !! It doesn't work like that ! You can't deploy Express like we used to with MDB databases - the default Express database doesn't allow multi-access and if you can't xcopy deploy the Express database. The 'user Instance' thing is useless - basically every user gets their own ...Show All
.NET Development streaming video
hi, how can i make streaming video using asp.net & C#. instead of dowloading the content, user should be able to watch the video or the live content in the website itself. The thread was in the .Net Data Access and Storage forum (which is focussed on ADO.Net) when I posted the "off-topic" message. I've unmarked that post as answer and will delete it. ...Show All
Software Development for Windows Vista change the text shown when a toolbox item is dragged
In an earlier thread I have asked this question but nobody could help. I am using the designer rehosting example from http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnlong/html/WFDsgnRehst.asp How can I change the text, that is shown, when dragging activities over the designer surface I have tried to change Name, TypeName, DisplayName, ComponentClassName, QualifiedName but none of them helped. If you think, you know the answer, please provide some example code. Which name du you mean The name of the activities that appears inside the boxes The name of the workflow that appears above the activities ...Show All
Visual C# C# no header files. All code is written inline - why?
Hi, Can someone explain "C# code does not require header files. All code is written inline" what is the advantage in going for inline how does it affect dynamic linking why dont we have header files as in C++ Thanks, Benin. I'm not a C/C++ expert, but I think it's because the header file is used to explicitly export the visible interface, whereas in C# this paradigm has been *corrected* because every public function is naturally part of your interface (or else you would never declare it public, rather internal (the C# context)). MSIL/CIL or managed code compilers automatically build metadata to describe the interfaces so that there is absolutely no doubt about how to link libraries at startup-time. Because it ...Show All
