Roto's Q&A profile
Visual Studio 2008 (Pre-release) Follow PolyBezierSegment using CompositionTarget.Rendering event
Hi! I want that an ellipse to follow a PolyBezierSegment on a frame-by-frame basis using the CompositionTarget.Rendering event. I know the duration of the animation and I need to know at which position (x,y) the ellipse is located based on the time progress. I need to do exactly the same thing WPF does when animating an object using a PathAnimation. Thank you Have a look at the PathGeometry.GetPointAtFractionLength() method: http://msdn2.microsoft.com/en-gb/library/system.windows.media.pathgeometry.getpointatfractionlength.aspx This should give you all the information you need to perform that PathAnimation yourself. ...Show All
Visual C++ STL iterators in VC++ 8.0
I am trying to port an application from VC++ 6.0 to VC++ 8.0 (VS 2005) and i am facing a problem with stl iterators. The code that gives the problem is ... void SomeFunction() { set<int*> mySet; ---------Added some items into the set setMibt*>::iterator myIterator; myIterator = NULL; //This line gives the problem saying no operator = is overloaded ------------//Some more tasks } The iterator is no longer a pointer i guess but now how should i check the validity of the iterator before deletion or some other functionality. For example.. this also now gives an error if( myIterator != NULL) //This lines also give an error... What should i do to check this { //Free resources... } So now how to check the valid ...Show All
Windows Forms 3 keys pressed code?
Hey, I am trying to make it so if you press 3 keys at the same time then somthing will happen, this is all I can get: private void Form1_KeyPress ( object sender , KeyPressEventArgs e ) { if (e.KeyCode == Keys . ControlKey { } } So it will be Pressing Ctrl+Shift+V But I cant get it to do all 3... Thanks :) It got erros, it dose dose contain a definition for Control, Shift, or Keycode... Error 1 'System.Windows.Forms.KeyPressEventArgs' does not contain a definition for 'Control' Error 2 'System.Windows.Forms.KeyPressEventArgs' does not contain a definition for 'Shift' Error 3 'System.Windows.Forms.KeyPressEventArgs' does no ...Show All
Game Technologies: DirectX, XNA, XACT, etc. F14 XNA Game with Full Source
Well here it is. I finally got my first game into a releasable state. Screenshot, video, and full source available after the jump. http://aroganworld.blogspot.com/2006/09/f14-xna-game.html I couldn't have done it without the great help from this forum (and all those xna sites). Let me know what you think. Yeah let me know if you have any issues. I did d/l the zip, unzipped it to a new directory, compiled and did a test run so I think it should work. Also, I just remembered I forgot to hook in the game over voice clip. Oops. It's in the sound bank, I just forgot to trigger it so I'll probably update the zip tonight when I get home. It was a late night last night. Damn you Microsoft for making this time si ...Show All
Visual Studio 2008 (Pre-release) Security Validation with Operation Attributes
Say I want to place attributes on the interface for a services operation or on the concrete implementation of the services operation. [OperationContract()] [MyAttribute("This is the sample attribute on an operation")] void MyOperation(); Now, during the authorization process, I want to be able to get the attribute off that operation for the current operation. I can't find the OperationDescription nor can I find how to get the type that will be instantiated and the method it would call so I can find the attributes that are applied to that method. Should I be using an IOperationBehavior instead and where should I put the info I'll need to extract so that the ServiceAuthorizationManager can get access to it to do a retrieva ...Show All
Visual Basic click and drag, howto?
How to click and drag a component, such as textbox for windows application and smartdevice app Drap and Drop is a pretty big subject, can you give us more detail as to what you want to do Here is a link to a FAQ on how to implement basic drag and drop functionality in a control. It's a good starting point. http://www.windowsforms.net/FAQs/default.aspx PageID=2&ItemID=556&CategoryID=3&tabindex=302 ...Show All
Windows Forms How to sign app.config file
Hi together, I am wondering if it is possible to sign the app.config so that I notice if someone has tampered the data. I know about the new ProtectSection method, but this is not what I am looking for. I don't want to encrypt sections - I want to sign them. Any ideas Cheers, Franz ...Show All
SQL Server EASY! Trim string?
I have values in a matrix takin too much space. Since they are just used as the matrix column header, cant i trim it or something. To display just the first 3 letters of the the attribute, and not the whole string Whats the code for that =Fields!Collision_Type.Value thats my field right now. Please help! thanks! There is no difference really, the Mid function allows you to give it a starting position and how many characters to return. Jarret ...Show All
Visual FoxPro Programmers out there Pls Help
Please Help me... I really need a Sample Program its because We have Project and I don't know how to create a Form Program using Foxpro 6 can someone please Help me... Any Program will do... just a simple Program using Foxpro 6 Please I really need some Help anything... just a Simple one... please please just send it on my Email mobidest6600@yahoo.com Thank you Please I really need some Help... I don't know how to use foxpro CodyPasspied wrote: I really need a Sample Program its because We have Project and I don't know how to create a Form Program using Foxpro 6 Please I really need some Help... I don't know how to use foxpro In that case, I will ...Show All
Smart Device Development timeGetTime() on WM5
Met some link errors of timeGetTime() on WM5. I can not find the winmm.lib on WM5 SDK, which lib should I link with I tried to build a directshow filter on WM5, which has the "strmbase.lib" avaiable. But there are some link errors related to "CTransformFilter". I guess this is because the lib does not include all the classes defined in the baseclasses sample codes. Then I tried to recompile the baseclasses. This link error occured when I tried to build my filter linked with the "strmbase.lib", which is compiled by me previously. ================ ERROR MSG ================ lib(amfilter.obj) : error LNK2019: unresolved external symbol IID_IPinFlowControl referenced in function "public: virtual long ...Show All
Visual Basic How to implement createevent() old api function in .NET?
Any link would be very appreciated. TIA ...Show All
.NET Development Is the XMLDocument thread-safe?
Hi , I wound if it is safe to call XMLDocument.CreateElement in parallel (by multiple threads) seems to me, CreateElement will do some nametable operations, which is likely unsafe for threads. Thanks Hi, CreateElement is not thread-safe. As well none of INSTANCE methods are thread-safe in any of .Net APIs almost. All Static members are considered to be thread-safe. But, IMHO, When you are doing some kind of read and write operation parellel (using multiple threads) then its important to synchronize the operations making it thread-safe but when you are doinng parellel write operations ONLY -OR- read operations ONLY and not read and write together then its not a matter of worry to make it thread safe. ...Show All
SQL Server sync to Oracle
Our backend database is Oracle 9i, and now I need to write an application for PDA, which is SQL Server Compact Edition powered. Here is my question: Is there any way I can sync data between PDA and backend database Can Sql server compact edition do this Any resource Thanks in advacne. There are two options other than some technology that Microsoft is still working on (a new synch framework) and not due for a while. The most common approach is to put some web services together that can get and put data - ADO.NET 2.0 code in the web methods can access Oracle. A typical design for this involves some web methods that GetTable(name), GetTables(), etc and use a drop and replace on the device database (much like RDA). The most important ...Show All
Windows Live Developer Forums Saving pushpin into database
How do I save push pin into database http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1060253&SiteID=1 Its a pretty generic question, there are so many possible answers. If we assume you have some interface already to allow users to create pushpins then you need to save that data into a database. Design a table to store the data Build server side code to retrieve the data and send to client page Build server side code to accept new pin data from client and save to database. I would take a look ASP.NET and create webservices, then look at ASP.NET AJAX to call the webservices directly from javascript. John. ...Show All
Visual Studio Express Editions Vc.net2003 to Vc.net2005 confuses
Hello everyone I've just installed vc++ 2005 Express Edition,with the new interface I wrote a very simple test code to know exactly how it works,I have learned some .net programing in vc 2003,but find it can't build the test paper,error tip show:"use of this keyword requires /clr:oldSyntax command line option".what's the new sytax of vc2005 I also installed the msdn,where can I get help,where can I get all the new features of vc2005,eagly looking forward your help.thanks the followwing are my test code and error tips: #include "stdafx.h" #using < mscorlib.dll > __gc class Point { private: double x; double y; public: Point(double xx,double yy) { x=xx; y=yy; } ~Point() {} __property void set_X(do ...Show All
