vinclaro001's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Rants on XNA 1.0
This is my first reaction when I installed and tried the 1.0 of XNA. To summarize my feeling: it's still 95% for XBox and no nearer to replace the old MDX 1.0. So I decided not to migrate from MDX to XNA though I want to do that very much. I feel like MDX 2 more; amen to MDX 2. The hardest issue for me is the content pipeline, which is very necessary, but the workflow is fixed and it assumes the contents are only built before the program runs. The helper functions wrapping D3DX can only be used with types in the content pipeline. I have to utilize the full content pipeline just for generating something dynamically, of course with significant performance cost. Or I have to write those D3DX utilities my self. Currently I don't have a good id ...Show All
.NET Development XML and GridView
Hi all! I have xml: <BOM> <BO> <AdmInfo> <Object>oRecordset</Object> </AdmInfo> <ORDR> <row> <DOCDATE>20060426</DOCDATE> <DOCSTATUS>O</DOCSTATUS> <DOCTOTAL>8161889.170000</DOCTOTAL> </row> <row> <DOCDATE>20060523</DOCDATE> <DOCSTATUS>O</DOCSTATUS> <DOCTOTAL>12298629.600000</DOCTOTAL> </row> </ORDR> </BO> </BOM> and gridview: < asp : GridView ID ="gvPedido" runat ="server" Width ="90%" Visible ="False" AutoGenerateColumns ="False"> < Columns > < asp : BoundField HeaderText ="Da ...Show All
Visual C# Passing properties as delegates
Let's say I have the following: class Foo { private int myInt; public void SetInt(int i){myInt = i;} } And then somewhere else, I have this: delegate void MyDelegate(int); // Define a delegate that matches the signature of the Foo.SetInt function class Bar{ void DoStuff(MyDelegate someDelegate){ .... } // A function taking the delegate as an argument } Now I can easily pass SetInt as a delegate to the DoStuff function, no problem there. But what if I'd used a set property instead of the SetInt function, like so class Foo { private int myInt; public int MyInt{ set {myInt = value;} } } Is there any way I can then pass the MyInt property as a delegate to another function I suppose I could do it by wrapping it in an ...Show All
Gadgets We're sorry but we won't be able to host your submission ?
Hi i just got this email can anyone tell me why ps its still there http://gallery.live.com/liveItemDetail.aspx li=7e4ba3f8-29db-42db-8fb5-2ba61e67c08c&l=1 Hello, We're sorry but we won't be able to host your submission of BBC Radio Player on the Windows Live Gallery website. There was a problem and we need to ask you to resubmit it. We hope you'll give it another shot - just modify your submission, send it back to us, and we'll take another look. If you have any questions or comments, please send them through the support link on the gallery website. This is an unmonitored mailbox, please do not reply to this email directly. Sincerely, The Windows Live Gallery Team I just got o ...Show All
Windows Forms Problems with "Show Dialog" and Large amounts of data
I have an inventory lookup form, called from many different user controls, that could easily be loaded with large amounts of data (150000+rows). My problem is that with only 22000 test records it takes about 35 seconds to load. This would be acceptable if I could load it up the first time and then simply hide it. The problem is that the ".showdialog " method of the form, while it works and allows me to pass the selected ID to the calling form, brings up a new instance every time causing the delay reloading every time. In VB6 you could hide the form then show it again and pass a global variable containing the selected ID from one form to another. In VB.net 2005 the Only way to pass the variable from the one form to the other, ...Show All
Visual Basic null reference in passing array between procedures
Hi, I'm trying to write a program that grabs data from a text file and populates the array of a structure, but I've been getting a "system.nullreference exception: object reference not set to an instance of an object. at A.Readfile(string file, schedule{} & flight) at A.Main(String{} arg) Sample code: Public Structure Schedule 'members of the structure Dim Airline As String Public Sub Main(ByVal arg() As String) Dim flights() As Schedule 'a structure previously defined Dim response As String ReadFile(arg(0), flights ) 'i think flights is causing the problem, but not sure how etc, Sub Readfile(B ...Show All
SQL Server AS 400 data being interpreted as unicode strings (DT_WSTR) datatype
I am building a data warehouse. Some of the data comes from an AS 400 EPR system. I used the OLEDB connector when first pulling the data into SQL Server doing simple import data from table option. That worked great for getting the initial data load into SQL Server and creating the base SQL Server tables although it was excruciatingly slow (that was probably due to the transport from the AS 400). Now, I need to get new records that are added to the AS400 side of things on a daily basis. For that, I was trying to use the OLEDB AS400 connector. However, I found that the OLEDB connector wouldn't work when I was trying to specify an SQL Statement for what to get; i.e., a simple query like Select * from TWLDAT.STKT where BYSDAT >= '2005-01 ...Show All
.NET Development Error using FTPWebRequest
Hello, I want to upload a file through ftp, and I have a simple code like this: filename = "ftp://e-breadmaking.izr.com/Ebreadmaking/VR2/" + filename; Uri u = new Uri(filename); FtpWebRequest f = (FtpWebRequest)WebRequest.Create(u); f.UsePassive = false; f.Method = WebRequestMethods.Ftp.UploadFile; f.Credentials = new NetworkCredential("user","password"); Stream requestStream = f.GetRequestStream(); // upload file.... requestStream.Close(); but it raises an exception in the line Stream requestStream = f.GetRequestStream(); saying "Remote server error (550) ... " What is the problem Thanks ...Show All
Software Development for Windows Vista "WORKFLOW FAILED VALIDATION ERROR" in XOML WORKFLOWS!!!!
Hi Gurus, Pls Help..I got stucked with this error while running the XOML State machine Executable Workflow.Here is my Code where it showing error XmlReader reader = XmlReader .Create(xomlpath); WorkflowMarkupSerializer wms = new WorkflowMarkupSerializer (); Activity wf1 = wms.Deserialize(reader) as Activity ; //HERE I GET ERROR SAYING WORKFLOW FAILED VALIDATION!! NewInstance = WFRuntime.CreateWorkflow(wf1.GetType()); NewInstance.Start(); 'xomlpath' is the path of the Xoml workflow. I tried other ways of creating workflow passing (xomlreader,rulereader,parameters).That also is showing the same error. Pls help..Its soo urgent Thankz in advance Sunath Thanku so much Sir.. ...Show All
.NET Development GetHashCode and Equals once again
I do not see how GetHashCode() and Equals() can ever successfully be implemented given the guidelines. I am assuming that one of the guidelines, apart from the well-known one of two objects being equal ( Equals() ) returning the same hash code ( GetHashCode() ), is that GetHashCode can not change during the lifetime of an object. Given this assumption it appears to me that GetHashCode must either be implemented on a totally immutable class, or that it must only use immutable data members of a class. Since this is the case, the Equals() function must also depend on either a totally immutable class or only use immutable data members of a class. To me this need to rely only on immutable data in a class defeats the entire purpose of object eq ...Show All
Windows Forms Tables structure
hi i want to list all the tables names ina combo box and get thier structure using code can u tell me how i can do that thanx ...Show All
Visual C++ VC++ won't run from source control: "The system cannot execute the specified program"
Hi, I've installed VS 2005 C++ Express into source control and it won't work. I've wasted the better part of a day so far trying to get it to work. The error message I get when trying to run something as simple as lib.exe is: "The system cannot execute the specified program." When I load up the .exe in the dependency walker (depends.exe), it says: Error: The Side-by-Side configuration information in "y:\compilers\Microsoft Visual Studio 8\VC\bin\LIB.EXE" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001) . The only dependency shown for LIB.EXE other than KERNEL32.DLL is MSVCR80.DLL. I've tried copying all t ...Show All
Visual Studio 2008 (Pre-release) Finding Height of a chid control in a custom control
Hi, I am writing a customControl which is inherited from framework element, and has a Grid, this Grid in turn host some canvases, and the canvases show a custom drawing depending over some prooperties' exposing data. Now, to get the height and width of these canvases is not being possible for me, at ay point of time if i need height and width of them, i have some private variables, and i update them in the measureoverride, with the help of availablesize.width, and availablesize.height and dividing this available size with some constants say 6 (My grid is based on star sizing so it's possible) but isn;t there a way to get the size of a child control. thanks and Regards brij ...Show All
Visual Basic Displaying Text boxes in page header
Hi i am new to the forum.I wanted to know can we add text boxes in page header of vb data report.If yes please can any one give me the details of how to insert it. Thanks in advance. ...Show All
SQL Server How to process partition as processReaggregate in SSAS 2005
processReaggregate in MSAS 2000 only rebuild map, index and aggregation for a partition. It is fast to process a partition after redesign the aggregates. Could anyone tell me how to process a partition as processReaggregate in SSAS 2005 ProcessDefault Thanks. It is one of the cases where the answer is really short :) In AS2005 you use ProcessIndex command to do exactly that: Rebuild aggregations and indexes for partition. Edward. -- This posting is provided "AS IS" with no warranties, and confers no rights. ...Show All
