Meng CHew's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. CustomUI SDK sample is gread BUT ...
I would like to use the Custom UI as shown in the SDK sample. I like the look and feel of the futtons checkboxes etc. Problem - I tried to plug in a simple teapot and see it - but I could not. I know I am putting it at location (0,0,0) . I know it is the right location because the box that comes with the sample is in this location and I found the place where I can turn it off - inside OnFrameRender(...) in CustomUI.cs I try to render there my teapot but no luck. Rendering a teapot or a cylinder takes 2-3 lines - where do I put them. Did anybody succeed in using this sample for own purpose. To the MS gurus - if there is a way to convey this to the DirectX team - I do like the sample, I do like to use it - but my gosh, ...Show All
Visual Studio How to generate Hashtable like collection?
Hi, Is there any way to generate a collection with an access by some key For example, I have Embedding reference with "allow dublicates" property equal to "False" , the target role player has element name attribute. I want to get elements not only by index but by element name, for instance. Evgeny Hi Evgeny, Really, at present it's not possibly to do this effectively. You can simulate the API of a hastable to some extent by using a custom collection type of a role and deriving your own collection from LinkedElementCollection. This collection could add indexed accessors. However, making those accessors anything other than brute force searches is pretty painful as you can't c ...Show All
SQL Server Calculating a percentage using aggregate task
Hi, I have a column called QTY and I need to calculate the percentage for each row based on the total sum of the column. They are all decimals. I have an OLE DB source that is reading the table used an aggregate task using the QTY column with operation SUM and called the output SUM OF QTY. Then I have a Derived Column task that takes the QTY column / SUM OF QTY * 100 to create the percentage. My numbers are not coming out correctly and when I put a data viewer from the aggregate task, it shows the same number for both columns: QTY SUM OF QTY 0.01833 0.01833 (this should be the sum of all the decimals in the QTY col) What am I doing wrong Thanks in advance! Isabelle Thanks for y ...Show All
Visual Studio 2008 (Pre-release) ADO.NET vNext Installation problem
I attempted to install ADO.NET vNext today, but upon starting the install wizard, I was prompted with a message box stating: "Could not access network location VisualBasic\ADO.NET vNext CTP\1033\." I have previously installed the .net 3.0 framework, Visual C# express 2005, Visual Web Developer 2005, and the May 2006 Linq CTP. I'm logged in as administrator on my box, so I couldn't imagine it would be a security issue". Does anyone have any thoughts on this, or any suggestions where I might look for answers I didn't have any luck googling on Ado.net vNext installation problems. Thx for any help. Thanks for the reply. That was definitely a good idea (based on the error mess ...Show All
Windows Forms One combo box selection changes the other combo box index
He fellows, I am having this two combobox in my windowform. One called applicantlawyer and the other one called spouselawyer. this is how i generate the comboboxes applicantlawyer.DataSource = data.Table["Lawyers"]; applicantlawyer.DisplayMember = "FullName"; applicantlaywer.ValueMember = "ID"; //now spouse spouselawyer.DataSource = data.Table["Lawyers"] spouselawyer.DisplayMember = "FullName"; spouselawyer.ValueMember = "ID" now when i load the form I see those two comobs are generated but when I change the selectedItem in one combo..the second combo changes accordingly WHY please help me. The currency manager will keep controls bound to the same datasource in sync. To o ...Show All
Internet Explorer Development How can post file from BHO?
How can I post/upload file using BHO I tried using WebBrowser.Navigate2, but it didn't work. Is it supposed to work or is there another method for that You might try looking into the HttpWebRequest class: http://msdn2.microsoft.com/en-us/library/system.net.httpwebrequest.aspx It's probably a lot more useful for that sort of thing than the WebBrowser control is =] ...Show All
Visual Basic Networking
Hi, This is my first time writing in this forum and I hope I'll get the answer for my questions . I'm developing a complicated system using VB.Net and I'm facing a big problem, how can I connect two or more applications which I've developed using VB.Net Please if you have an answer for my question or a link to a page that has it write it . Thanks . Magic PC General Manager Abd Allah Diab Hello and welcome to the forums. Your question is kind of vague, so could you specify a little more what you are trying to accomplish Do you want to send data between application or do you want to use the functionality of one application in the other Will the application run on the same computer or ...Show All
Software Development for Windows Vista How to create default fault handler for state machine workflow
Dear all, A few months back, I asked the question: Trevor E Hilder wrote: 1) It is a major irritation that I cannot apparently define a fault handler for the whole state machine workflow (which can be done in a sequential workflow). Is there any way to provide such a global fault handler, which can then be overridden by local ones inside the states Paul Andrew kindly replied: You can create a super state that contains all of the states in your workflow. This superstate can have a fault handler which applies to the whole workflow. I asked him for clarification of how to do this, but he didn't reply and I got involved in other issues. I have just tried to do what he suggested, b ...Show All
SQL Server Secure Replication from Cluster to Workgroup
I am trying to set up replication (transactional with updates) from a 2-node Active/Passive SQL Server 2005 Cluster to a SQL Server 2005 server in a Workgroup. When configuring the Snapshot Agent, Log Reader Agent and Queue Reader Agent from the Publisher (Cluster) we are advised not to use the SQL Server Agent Service Account for security reasons. When I specify a Domain Account I get an "unknown security error" staring the snapshot agent. When I select the option to run under the service account all works well. Strange thing is when I specify the service account I still get the "unknown security error" message. Anyone got any ideas Hi, Looks like it is pretty hard to find the root ...Show All
Visual Studio Express Editions Check Database for category name
I am trying to figure out how I can make an if then that will check to see what the name of the category is inside my database. if categoryname = "cat name1" Then something will happen End IF Sorry for the lack of detail. I was thinking that this would be an easy question with a one line answer. I am using a standard SQL database (SQL Express 2005) Right now I am using one table ------------- maintable ------------- ID INT ------------- eq varchar(MAX) ------------- catname varchar(MAX) ------------- data1 - data 50 varchar(MAX) ------------- I am using an SQL query (Select from maintable where eq = eqvar) eqvar is from user input and selects the correct table. Everything is working, b ...Show All
Windows Forms Combo Box - Select One Value Return Another
Thanks in advance I have a combo box that I fill using: combo.valuemember = "Investor_id" combo.displaymember = "Investor_sht_name" combo.datasource = Dataset_2.tables(0).defaultview I want the Investor_sht_name field to give the value to the user for selection but what to get the Investor_id value to be added to an INSERT statement. I am getting the Investor_sht_name value returned. Any ideas Hi, you're probably getting your displaymember's value because you're binding your combobox's Text property to the underlying table. Try binding SelectedValue property instead. If this is not the case, please post some more of your binding code... Andrej ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What is the XNA substitute for Microsoft.DirectX.Direct3D.Line?
I was just looking through some of my old Managed DirectX projects trying to convert various parts to XNA and figuring out how to draw a line in XNA was one thing that I'm not having an easy time converting. I started to go down the path of using DrawPrimitives and was able to get a line drawn on the screen but I had no control over. It seemed like the fact that I got a line at all was more of a fluke than anything because I was just setting parameters to see what they changed without really understanding what each one meant. Has anyone else been playing around with drawing lines to the screen and want to share the method they used I'm going to keep playing with it, but I've gotten about as far as I'm going to without discovering some new ...Show All
Visual Studio Team System How do you restrict specific groups from closing a bug?
I'm trying to only allow specific groups to change the state of a bug from 'Resolved' to 'Closed'. I currently have a global list which displays : < xml version="1.0" encoding="utf-8" > <gl:GLOBALLISTS xmlns:gl=" http://schemas.microsoft.com/VisualStudio/2005/workitemtracking/globallists "> <GLOBALLIST name="Development"> <LISTITEM value="Dev1" /> <LISTITEM value="Dev2" /> </GLOBALLIST> <GLOBALLIST name="ProductManagementAndQA"> <LISTITEM value="QA1" /> <LISTITEM value="PM1" /> </GLOBALLIST> <GLOBALLIST name="Support"> <LISTITEM value="Support1" /> <LI ...Show All
Connected Services Framework Stock quote sample not working
Hi, I'm trying to get the stock quote sample up and running, but I always get this error message: "The remote name could not be resolved: ws.cdyne.com" As far as I know the resolve should work just fine. I manually verified that the webservice at http://ws.cdyne.com/delayedstockquote/delayedstockquote.asmx exists, is reachable and works perfectly. Can it be that CSF isn't using the proxy server settings from Internet Explorer Greetings, Leon Zandman SenthilN and Tirath, Thanks for your answers, but as I already said in the opening post: "I manually verified that the webservice at http://ws.cdyne.com/delayedstockquote/delayedstockquote.asmx exists, is reachable and w ...Show All
Software Development for Windows Vista MS .NET SDK *.img download - install problems
Running XP2 I burned 6.0.6000.0.0.WindowsSDK_Vista_rtm.DVD.Rel.img as an .iso onto a DVD but under XP2. All I can see is one file ReadMe.T which says This disc contains a "UDF" file system and requires an operating system that supports the ISO-13346 "UDF" file system specification. I tryed ISOBuster, MagicISO, Nero Backup, DeepBurner and other tools to get a DVD created but to no avail. I also tryed coversion from *.img to a *.iso format file to no avail. This identical problem happend to other SDK users in the last (October) release. Same problem set but for this current release. I have some suggestions to the MS SDK release team. [1] Release an *.iso image not a *.img file (recent tools will work wit ...Show All
