Tamim Sadikali's Q&A profile
Windows Forms Localize messageboxbuttons
Is there a way that i can localize messageboxbuttons meaning if my form is frensh: messageboxbuttons instead of "Yes" and "No" should be "Oui" and "Non" and so on Thank you .NET uses Windows to generate and display the message box. Windows localizes it to the installed language so all message boxes in every app use the same language. So, to get Oui or Non, you need to run the French version of Windows. If that's not good enough, you'll have to make your own. That's not as easy as it looks... ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Drawing 2D primitives?
I already asked Derek this question, but as request- I'm reposting the question publicly so we all can learn anyway- the question is how to draw lines/2D primitives in XNA. essentially- how would i construct a series of lines from point a to b to c to d to etc... ive read solutions from back in beta1 here that stated its a very long/tedious amount of code compared to textures that take only about 3-4 lines to draw. i was wondering if by now they added somethign like the simplicity in Java where its just graphic.drawLine(x1, y1, x2, y2); and theres a line from (x1, y1) to (x2, y2) i checked the documentation and only found primitives in 3D what would be the closest in XNA ...Show All
Visual C++ I am sorry to ask a question about 16 bit vc++ compiler
I know Microsoft is not supporting 16 bit version of vc++. But I have a problem which I need to escalate any way. My question is Is it possible to install vc++ 1.52 (16bit compiler) in a 32bit operating system(Windows XP) and compile or build programs I would appriciate if anybody can extend some help to me. Once again I am sorry to ask question on a non supported compiler You can still use the 16-bit VC compiler on 32-bit versions of Windows. Cheers, Kenny Kerr http://weblogs.asp.net/kennykerr/ ...Show All
SQL Server SQL Server CE Replication: Integrity error, but not at all
Error information: NativeError: 28549 HRESULT: -2147217873 Message: OrdersHeader,Delete,{0503BF00-BB05-11C6-8000-36BC4ADEE342} Description: The row update or insert cannot be reapplied due to an integrity violation. Server side: SQL Server 2000 or MSDE Client side: SQL Server CE or SQL Mobile This error is usually caused because of an error on the filters. But not in this case, i think. I assume it's not a filter error because if I delete the SDF and run the sync it works. The error occurs when I delete some rows in the server (parent( OrdersHeader ) and child( OrderLines ) tables) and the PocketPC stills have this rows. On the next synchronization It seems that replication process tries to delete the OrdersHeader rows before the OrderLin ...Show All
Software Development for Windows Vista Error in Beta2
I'm getting the following error when I click on the "create order" button in the "OrderStateMachine" sample application. System.Workflow.Activities.EventDeliveryFailedException was unhandled Message="Event \"OrderCreated\" on interface type \"Microsoft.Samples.Workflow.OrderApplication.IOrderService\" for instance id \"c9b23d5e-9855-428d-9bd4-e0aa903a96bf\" cannot be delivered." Source="System.Workflow.Activities" StackTrace: at System.Workflow.Activities.WorkflowMessageEventHandler.EventHandler(Object sender, ExternalDataEventArgs eventArgs) at Microsoft.Samples.Workflow.OrderApplication.OrderService.RaiseOrderCreatedEvent(String orderId, Guid instanceId) in ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Registering user GameComponent with GameServices
I'm finishing up work on porting some of my libraries as XNA GameComponents and I'd like to register some features with Game.GameServices . I've tried looking at the IGraphicsDeviceService definiton but came up short. Does the GraphicsDevice actually implement this or is it a separate object the GraphicsDevice privately creates and registers Can someone provide me with an example on how to do this I'd like to see creating the Service Interface and/or object When to call GameServiceContainer.AddService Any events I should create/use Thanks I have create a service to share the sprite batch of my game with its game components. I've created a class called SpriteBatchService, whi ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Files and endianness
Hello, First I'd like to say thanks to the guys at MS for being so open about the development of the XNA Framework and associated tools. The recent blog posts have been really excellent. At the moment for opening files I use File.OpenRead(). To read the data from the Stream it returns, I use Stream.ReadInt32() and so on. Obviously on my little endian PC platform, reading little endian data, there is no problem. But on the Xbox, does System.IO.Stream exist And if so, does Stream.Read*() do endian conversion on the fly Thanks again, Peter Shawn Hargreaves wrote: The main thing that changes when you go from a 32 bit to a 64 bit CPU is the size of pointers. But that rarely affects your code because .NET code doesn't tend to ma ...Show All
Visual Studio Regarding other debugger support(addin) to VC++
Hi All, I am new to VC++. Actually I have to debug java, JNI, and c codes using VC++ 6.0. Does anybody knows is there any way to do this . Could you suggest me the ways to do/add the debug engine which is written in Java language to VC++ . Thanks in advance. Regards, Kumar.P ...Show All
.NET Development regular expression
Regex regex = new Regex( "^ \d +$"); this code gives an error pointing \d . error message is "invalid escape character" , but in fact \d is not escap character , \d means 0 to 9 digits. how can i fix this thnx It is an escape character to C#, not regex try this: new Regex( @ "^ \d +$"); The @ tells the C# compiler to treat all within quotes as a literal and not do escapes . ...Show All
Visual Studio 2008 (Pre-release) Systray icon with WPF
Hello, I'm writing a application in C# that uses WPF and I need a systray icon for it. Is there a way to do this in XAML or C# (without using the System.Windows.Forms namespace) Thanks! No http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1076306&SiteID=1 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can I order DirectX 9 sdk on CD?
Hi, my problem is I have dial up and it takes too long to download 500Mbs, my ISP drops me after 8 hours. Is it available on CD or is there a way to continue the download. Ive tried to continue the download but it starts the file from the beginning. ...Show All
SQL Server Error executing Packaga from job
Hello, I finally could upload the package, and from the management studio interface I ran the package and it worked perfectly. When I created a job, with one step only to execute that package, the job fails. When I go to history it doesnt give me any details of what failed on the package or in the job Date 24/01/2007 12:30:28 Log Job History (Carga datos ACH) Step ID 1 Server ATLANTE\SQL2005 Job Name Carga datos ACH Step Name Carga de datos de ach Duration 00:00:02 Sql Severity 0 Sql Message ID 0 Operator Emailed Operator Net sent Operator Paged Retries Attempted 0 Message Executed as user: ATLANTE\SYSTEM. The package execution failed. The step failed. Maybe is the user that it tried to execute the package as ...Show All
SQL Server Plug-in Algorithm in data mining using SQL Server 2005??
Hi, actually i want to implement a c# component that can help third party data mining algorithm and i want managed plug-in algorithm (without wrapper),. is it possible to write whole application in c# as Analysis servisce is in c++ , can we implement it in c# thanks in advance ~Chinmay If you're trying the re-implement the COM interfaces in C#, it will be much harder than the managed C++ wrapper we've provided - you'll need to do your own research in that case. Testing the wrapper would be a combination of whitebox testing and a sample plug-in written using your custom wrapper methods (similar to the one we supply with our Managed Plug-in API Framework). ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Video/Animation Playback
Hi, I'm currently writing a library (for XNA/DirectX) for animation/soundless video playback, and I have a few design questions for the pros out there if you don't mind answering them : I'm having my animation class inherit from game component, and update the frame depending on game time in the overriden Update method, and render it in the overidden Draw method, but even when I preload my textures to render, playback is choppy. Not sure exactly why, but I notice this only when I have significant number of frames (I noticed it with 100 frames, but *not* with 10/15). This problem may be linked and solved by the 2nd point, so please read on. When I preload all the textures for the frames in the animation (and the no. of frames ...Show All
Visual C++ C++/.net interface
Hi all, How can I call functions in a .net DLL from a native, unmanaged C++ application If this is non-trivial, can someone at least give me hints pointing me in the right direction of what topics to learn and research Thanks, Brennan Vincent I've done this recently. First you have to go to your project properties and set it to use CLR. /CLR. And then in your header file add. #using "System.whatever.dll" and then add your namespace using namespace System::whatever; ohh... but first you have to add references. right click your project and add reference to whatever you want. but seriously.. read up on interpoyadda... cause you have to know about the gc heap and whatnot.. ...Show All
