DQM's Q&A profile
Visual Studio 2008 (Pre-release) WPF = 50% C# + 50% XAML?
for the past 6 weeks ive been working with wpf applications and i still cant quite get my head around what i should and shouldnt be doing with xaml ! i think my point is best explained with the project i'm working on at the minute - a graphs package. from my understanding xaml is essentially the UI, ie how pretty and nice it looks, correct or is it much more than this i'm using polylines to draw each line. now i'm using them in xaml because the binding works lovely :-) however although they are part of the UI in the sense of being visible they are not part of the UI in the sense of how nice it looks (the look and feel) of the application. I feel as though i am spending alot of time 'trying' to create as much as possible of my application ...Show All
Audio and Video Development A major Bug in Sonic Premastering...IMPORTANT READ
Just got a grasp on what is happening when I premaster... In Standard Content I take my advanced content and hvdvd_ts folders and burn them but I just realized it is making my hvdvd_ts subdirectories dissapear! I have hvdvd_ts\background\pevob01.map and when I burn through Standard content all that shows up on my disc is the root of the hvdvd_ts folder. So any subdirectories in hvdvd_ts are gone! Major issue. It should burn my project as it is and not be removing folders! I am burning 2 folders ADV_OBJ and HVDVD_TS this is advanced content...the only way to premaster with the sonic tools is to open Standard Content and select premaster, then select advanced folders, then burn...but you should be able to burn an advanced content disc ...Show All
.NET Development How could I give parameters to my Windows Service?
hi everyone, From my Service Manager built-in in MMC no problem at all because I can perfectly allocate both parameters in "start parameters" box but how do the same from NET START command Or even better, how from another VB application I've tried to do this: NET START "MyService", "sql1","Bd1" but it did not work. Let me know if possible do (at least) from DOS session. Thanks in advance for your time. ...Show All
.NET Development Listing methods using reflection in c#
Hi, I am using reflection to get all methods defined in an interface.My interface is having a set of methods and properties.By using GetMethods function, it returns all methods in the interface including get and set of each property as functions.Is there a way to get only the functions wriiten by me in the interface Thanks in advance. Eby What i have done is shown here Assembly a = Assembly.LoadFrom(dllname); Type[] type = a.GetExportedTypes(); MethodInfo[] mi = t.GetMethods(BindingFlags.Instance | BindingFlags.Public); foreach (MethodInfo m in mi) { Methods.Items.Add(m.ToString()); } PropertyInfo[] pi = t.GetProperties(); foreach (PropertyInfo p in pi) { Properties.Items.Add(p.ToString()); } ...Show All
Visual Studio what the meaning of collection of PrinttoPrinter method
please someone tell me the meaning of collection of printtoprinter method There's some information in the documentation about the PrintToPrinter method . Does this help - Dave ...Show All
Visual C# Stopping applications from running
I need to write a small application that will stop other applications from running. For example, I dont want NotePad to run on a specific machine. How can I chain in the OS to find out what is being run, and then abort it Thanks Ralph Krausse Thanks, that is good but I didn't make my previous post clear enough. Is there a way hook into the process list (like a mouse hook or a keyboard hook) and have the OS notify me of a starting process r- ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Game AI
Hi, i am currently working on a simple first person shooter game and this is the first time i am at it. I am actually working on the AI part where the enemies must find the correct player and attack, I have seen some shortest path algorithms like A* and it's variants I want to know in which manner or format the MAP must be stored and conveyed to the CPU players so it is efficient.I want to know this because in a complex map there may be a lot of crucial points and terrains.. Didn’t say this before, but when accesing the Map, you cannot of course just plug player’s position into the array indexers. You have to search for the closest point in the map. For example: Player’s position = (0 ...Show All
.NET Development Can you push files onto a server in c#?
I am trying to upload a file using the HttpWebRequest class and the put command but I must admit I am a little new at it so I am not even sure if I am going about this the right way or not here is some code that I have written to try and get the file up to the server try { HttpWebRequest uploadRequest = ( HttpWebRequest ) WebRequest .Create(uploadUri + @"/" + fileName); uploadRequest.Method = WebRequestMethods . Http .Put; requestStream = uploadRequest.GetRequestStream(); fileStream = File .Open(fileName, FileMode .Open); byte [] buffer = new byte [1024]; int bytesRead; while ( true ) { bytesRead = fileStream.Read(buffer, 0, buffer.Length); if (bytesRead == 0) { break ; } ...Show All
Visual C# Types and Variables
Is it possible to make a Type into a Variable Try this: public string TheURL { get { return this.theURL; } set { this.theURL = value; comboBoxName.Text = this.theURL; } } I hope this is what you need! Best Regards, ...Show All
SQL Server NoLock vs ReadPast
I have been experiencing deadlock errors with two stored procs that I am using. SP1 is a read query that gets all unprocessed orders (status = 0) SP2 is an insert query that inserts new orders (Status = 0) uses a transaction. I have a multithreaded application and once in a while the read query (SP1) will try to read a new row that has just been inserted but not committed yet hence the deadlock arises. If i use a hint "With(NoLocks)" this will be a dirty read and still read the uncommitted insert from SP2 - is this correct Where as if I use hint "With(ReadPast)" this will now only read committed rows and hence the deadlock should not arise - it will not read any uncommitted rows - Correct So I think th ...Show All
SQL Server split string using Delimiter
Hi, I get a string whihc looks like 'Q306/Q406 Version1/Current/Q108 Version2' I need to split the above string and get each of those values... ' / ' delimiter Can some one please help on this. Thanks Hi Rob, Thanks a lot for your reply...I am using SQL Server2000 Do you have a solution fro the problem in SQL Server2000. Please get back Thanks ...Show All
Visual Studio Generating xml output using Sandcastle
Please see http://blogs.msdn.com/sandcastle/archive/2006/09/21/765012.aspx Anand.. ...Show All
Visual C# probem with generics
Hi, I've written the the code below: static public void Test<T>(T arg) { write(arg); } static public void write( char c) { Console .WriteLine( "char" ); } static public void write( int c) { Console .WriteLine( "int" ); } It should be possible to write like this: Test('c'); or Test(10) and the appropiate write methods should be called. When I try to compile it I get two errors: Error 1 The best overloaded method match for 'tester.Program.write(char)' has some invalid arguments. Error 2 Argument '1': cannot convert from 'T' to 'char'. Is there another way to make the templated method call the appropiate methods. It seems to me that writing some ...Show All
.NET Development Webservice migration from .Net 1.1 to 2.0 --> Output Changes?
Hello, can anybody tell me if the repsonse of a webservice created in .Net 1.1 and migrated to .Net 2.0 is exactly the same Are there differences I need to know this, because a lot of different people accessing my service are using different technologies to consume the service HarCore-Parsing and so on. So are there any changes Maybe DateFormat and so on Thank you! .Net 2.0 still creates Web Services SOAP complient XML just like 1.1. Other clients shouldn't be able to tell the difference. The biggest change I saw from 1.1 to 2.0 is 2.0 supports nullable types and can serialize and deserialize them. ...Show All
Visual Basic Need help exporting VB.Net variables/data to VBA macro
Hi I'm using VBA AutoCAD for drawing, but instead of defining parameters in VBA, I would like to take those parameters from VB.Net codes. Here is an example Sub CreateCylinder() Dim CylinderObj As Acad3DSolid Dim center(0 To 2) As Double Dim radius As Double Dim height As Double ' Define the cylinder parameters center(0) = 5#: center(1) = 5#: center(2) = 0 radius = 10#: height = 20# ' Create the cylinder in model space Set CylinderObj = ThisDrawing.ModelSpace.AddCylinder(center, radius, height) End Sub This VBA code will create a cylinder at co-ordinates (5,5,0) with radius = 10 and height = 20. I would like to know how to link or export these parameters from VB.Net to VBA AutoCAD for plotting. Many t ...Show All
