Software Development Network Logo
  • Smart Devicet
  • Microsoft ISV
  • VS Team System
  • SharePoint Products
  • Visual Basic
  • Audio and Video
  • Windows Forms
  • Visual FoxPro
  • IE Development
  • Windows Vista
  • Game Technologies
  • .NET Development
  • Visual Studio
  • Visual C++
  • SQL Server

Software Development Network >> Toby Broom's Q&A profile

Toby Broom

Member List

Orbenin
shafiqm
Jerry Hung
Reshmi Singh
shakalama
RPagels
Magannahan Skjellifetti
Ian MG Smith
Deepa7476
JoneLee
julial77
jaxDeveloper
explode
REspawn
daxu
a9192shark
EileenWin
Wendell G
AnnNeedsHelp
dellthinker
Only Title

Toby Broom's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. I need Path-Finding

    I am currently working on an RPG using XNA and I was wondering if anyone has implemented a shortest path algorithm on XNA. I need some shortest-path collision-avoiding code that I can use on a grid. I have looked at A* and Dijkstra's algorithm, but I think both may be outside my capabilities as a programmer. Any help is greatly appreciated. Jon Watte wrote: Pos p = startPos; Pos g = theGoal; PriorityQueue<Pos, Cost> open = new PriorityQueue<Pos, Cost>(); Set<Pos> closed = new Set<Pos>(); while (!open.Empty) { closed.Add(p); if (p == g) { Success(); break; } foreach (Pos n in p.Neighbors) { if (!closed.Contains(n)) { n.ActualCost = p.ActualCost + CalcCost(p, n); open. ...Show All

  • Visual Studio 2008 (Pre-release) 3-Tier Application

    I currently have a prototype 3-tier app based on the following architecture: WPF for the smart-client app SQL 2005 on the back-end WCF service on the middle tier The WCF service currently retrieves SQL data using an OleDbDataAdapter with a SQL string, and fills a DataSet. This is then mapped into a generic list collection and returned to the WPF client app via WCF. The WPF app then obtains the generic list collection object via WCF magic (both the client app and the service app share the same assembly that defines the class with the [DataContract]). Now that the latest Orcas CTP is out, I am wondering how LINQ to SQL (and possibly LINQ over DataSet) fits in. I would assume that LINQ to SQL would be used to replace the Ole ...Show All

  • Visual C# DLL and Namespace question

    I am trying to publish a (my very first) dll for one of my C# applications and am a bit confused about the need for my customers to include MY namespace in their applications. Specifically, when I developed my dll (project output = class library) I generated a namespace called "mynamespace". So, when one of my customers uses my dll, would the customer need to rename his namespace "mynamespace" to access the methods in the dll I ask this because I have tried creating a test project that includes my.dll in its references folder. However, unless I change my test.cs program's namepace to "mynamespace" I cannot access the methods inside the dll. I have also tried "using mynamespace" but cannot access the dll. Can someone enlig ...Show All

  • Smart Device Development Delegate and event handler to change the focus of dynamically created textboxes

    I am working on pocket pc. I have created the number of textboxes dynamically. Now I want's to change the focus on keydown and key up event to the next textbox I know I have to create a delegate and event handler to achieve it.Can any body help me regarding this. I would have thought this would be done automatically even if you programmatically create the textbox and add it to the form controls collection. You can implement the form's keyup/keydown event and then check the keypress event to see if they moved up/down using the Keys Enumerator, then focus on the next textbox ...Show All

  • Smart Device Development Deleting Folder

    Hi, I am newbie. i want to delete the folder. suppose folder contain subfolder and files. when i use the RemoveDirectory function it delete the folder when it is empty. and DeleteFolder function need namespace IStoreNamespace. how i use namespace in MFC windows device application (C++.2005). is there any other Method for deleting the fill folder Thanks -Salman hi, how to use rmdir _rmdir( \\My Documents\\abc\\ ); i wrote this line in the code and include direct.h file but it give the linker error like test.obj : error LNK2019: unresolved external symbol _rmdir referenced in function wmain Windows Mobile 5.0 Smartphone SDK (ARMV4I)\Debug/test.exe : fatal error LNK1120: 1 unreso ...Show All

  • Windows Forms TypeConverter - Exception - Unable to cast type x to type x

    All: I have a VS.Net 2005 solution containing 2 projects. A Windows Control Library A Windows applicaiton test client Whenever I make changes to the objects in my custom control library and return to the test client application...The TypeConverters for my custom controls throw exceptions when I access the custom object properties of the controls... Unable to cast type 'MyLib.Namespace.Object' to type 'MyLib.Namespace.Object' This error is driving me crazy! I have to restart the IDE after each change to my control library...This is making development slow and painful to say the least... Any insight will be greatly appreciated! -------------------------------------------------- TypeConverter code ------------------ ...Show All

  • Windows Live Developer Forums Recording the start and end location of a route.

    I am trying to record the start and end location of a route. I see that the GetRoute method is supposed to return a VERoute object, and I know that i have to get this information from this object. The question I have is how to actually store the VERoute object that is returned. From the documentation I tried two options, but neither of them work: Option 1: var myRoute = map.GetRoute("Space Needle", "Microsoft", null, null, null; var start = myRoute.StartLocation.LatLong; var end = myRoute.EndLocation.LatLong; Option 2: ... map.GetRoute("Space Needle", "Microsoft", null, null, "onRouteReturned"); ... //later on in the code function onRouteReturned( myRoute ) { var start = myRoute.StartLoca ...Show All

  • Visual Studio Express Editions Programs using different versions of excel and outlook

    I built an application using references to Outlook and Excel. On my machine I have Excel and outlook 2003 and the other people in my office have version 2002. How do I fix that to make the applicaton work on all the computers. I'm using the office 11 object library. You could do it using late binding. In order to do this you will not get the intellisense experience when you are developing but with late binding everything is evaluated at runtime - so as long as you are detect which version of the applications are installed on the machine - you can then calling methods / parameters etc. appropriate to the version. I'm not saying this is the desired option but its possible - the reason you have to ...Show All

  • Visual Basic Packet Sending?

    Hi, I really want to learn how to make a program in visual basic that can send and receive packets to transfer data from one user to another. I don't know where to begin and it would be really helpful if i could see some sort of example of how it is done. Also if you can, i would prefer an example with a remote connection between two computers. Thankyou. You need the Socket class. Start with the example shown on that page, then google for examples of the TcpListener class. ...Show All

  • .NET Development Design problem on record with co-existing modes (draft and published)

    I don't know which forum should I post this question. Please forgive me if this seems irrevalent to this forum. I am developing a system that need an approval process. The record is started from the draft status and then turned into request status. After supervisor approved the record, the status changed into approved. If user want to change this record, the approved copy should be preserved and a new draft is created. Once this draft has been gone through the approval process and become approved again, the existing approved record should be updated. I would like to know what is the best practice to implement this behavior How should I store the record With an additional status field Or something more. Please advise. ...Show All

  • Visual Studio 2008 (Pre-release) I Want to know that how to Add Subitems in ListView (Without Databinding)?

    Hi, < ListView Margin = " 10,10,10,10 " Name = " lvwEmployee " ToolTip = " Employee Info " > < ListView.View > < GridView AllowsColumnReorder = " True " ColumnHeaderToolTip = " Employee Column Header " > < GridViewColumn Header = " Employee Id " /> < GridViewColumn Header = " Employee Name " /> </ GridView > </ ListView.View > </ ListView > I am able to add listitems using the following code. lvwEmployee.Items.Add("1033"); // Employee Id But How to Add SubItems (In this case Employee Name) after the above statement without using Databinding. ...Show All

  • Software Development for Windows Vista Markup with ComposityActivities

    Hi, I have the following scenario: I have a custom activity named BaseActivity. This acivity has a DependencyProperty string name. I have a custom activity named ComposityActivity. This activity is a sequential activity which has two child activities: BaseActivity and CodeActivity. I create an instance of ComposityActivity and I set the property name to "Test", then I create an instance of SequentialWorkflowActivity and I add the instance of ComposityActivity. When I use WorkflowMarkupSerialize to write a XOML representation of the instance I lost que value of my string because it write something like: <SequenceActivity x:Name="SequenceActivity" etc...> <ns0:ComposityActivity:Name="composityActivi ...Show All

  • Windows Live Developer Forums Due to a connection problem, changes you make might not be applied to other computers you use

    Hi, Due to a connection problem, changes you make might not be applied to other computers you use I am getting this error in Live Messenger for last few days... As a result, my contact list is not appearing correctly and all the contacts are missing. Anyone having same issue Thanks Fahad Contacts are still intact... if u sign on using http://webmessenger.msn.com ... (nice interface i must say... mini old Windows Messenger type)... you can see all your cotnacts... but obviously this Live Messenger problem should have some solution.... bcuz i am unable to do voice calls or web cams ... ...Show All

  • SQL Server Can we order data in drill through?

    Hi, I used the analysis services 2000. And I want to order the data when used the drill through to my data in SQL Server 2000. But I don't know how to do this and not sure can do this in drill through option rgds., ...Show All

  • Visual C# database DSN

    how to make a dsn to a database you made in sql server 2005 express. You can creat either by notepad and writing manualy all paramaters, or copy that file content from some other dsn file and modify it. Or you can do that with dsn file wizard: Go to Control Panel\Administrative Tools\Data Sources(ODBC), go to third tab "File dsn" and click add, browse for file location and create a standard connection. After you finish with all settings about connection, file will be created with all that parameters. Is there a good reason to still in these days of using dsn files If you work with .NET there is many new ways, but more important better and easy to access storrage posibilities. ...Show All

©2008 Software Development Network