Alex72's Q&A profile
Audio and Video Development Can XPath variables be used in <styling>
I wonder if the xpath variables can be used like : style:x="$style_x" in <styling> in .xmu , and style_x is from document.setXPathVariable("style_x","200px"); in .js . I know the xpath variable can be used in <timing> and <body>. Anybody can help me Thanks in advance. HI there Xpath variables are meant to be used only inside Xpath Expressions (that's why they are called Xpath Variables :) ). I guess at least pre-defined Xpath variables can be used in XMU (inside Xpath Expressions). Author can define her own Xpath Variables in a js file.I am not sure whether author-defined variables can be used in XMU ( inside Xpath Expressions). ...Show All
Visual Basic System.IO.StreamWriter hanging program execution
Hi all.... I have code that does lots of work, and I log progress using the following code text. I've noticed some unusually long times for the code to complete, and when I break the execution always hangs at the same line Public Shared Sub sub_WriteToFile( _ ByVal What As String, Optional ByVal ReportPath As String = "") Dim strReportPath As String = _gstrReportPath If ReportPath <> "" Then strReportPath = ReportPath Dim objReader As System.IO.StreamWriter Try objReader = New System.IO.StreamWriter(strReportPath, True) objReader.Write(What & vbCrLf) objReader.Close() Catch Ex As Exception Err.Raise(Ex.Message) End Try Console.WriteLine(What) End Sub What might ca ...Show All
.NET Development Serialization?
Can someone give me a slightly "dumbed-down" explanation and example of serialization Where might one use serialization when developing well serialization is a way you can store a collection of objects into an Xml format then reconstruct them again either at say, load time of an application or perhaps stream it down the wire (network communication) Take a look at this: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=590301&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=724142&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=837396&SiteID=1 basically you can think of it as a way of storing data into an xml format which late ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Only 32 primitives drawing correctly.
I've made a program that draws multiple triangles on the x-z plane. My eventual goal is a hight map but I'm having a problem with the DrawUserPrimitives call. It works fine if I set the number of primitives to draw up to a maximum of 32, but any greater number and I get some very strange random triangles all on top of one another. I looked through the API and found that there was a MaxPrimitiveCount method but that returns 1048575 so I don't think thats a problem. All the values in my array seem fine, if I copy the end triangles to the beginning of the array they display fine (until 33). If I put the loop that fills the array in my draw method and draw one primitive at a time (by just writing to position 0, 1 and 2 of the array) it works ...Show All
.NET Development .net error on application startup
I have written a .net 2.0 application that a customer is trying to run on Windows 2000 pro, they have .net installed, msxml 4. And get the following error (wanting to report the error to microsoft). Eventtype:clr20r3 p1: my exe name p2:1.0.7.0 p3:45be80fa p4:system.xml p5:2.0.0.0 p6:4333ae70 p7:276f p8:123 p9:system.invalidoperationexception They are in sweden and are running 2000 with swedish regional settings. I cannot replicate in a fresh install of 2000 with .net2, MSXML 4 or 6 installed. They tried upgrading to msxml 6 but it did not fix it. Has anyone come across something similar or have any ideas of a possible cause. Matt ...Show All
Visual C++ Compiler selecting template function in error?
class A { ... A operator =(A &rhs); A template<typename T> operator =(const T &rhs); A operator -(A &rhs); } int main(void) { A number; A otherNumber; A result; number="123"; //calls templated operator = as expected otherNumber="321"; //calls templated operator = as expected result=number - otherNumber; //calls templated operator = in error } I don't not understand why the templated version of the assignment operator is being called when minus operator returns an object of type A. The last line should resolve to: A = A After the call to the minus operator which should have the compiler c ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How can i obtain extra information from a File using Content importer?
How can i obtain extra information from a File using Content importer Now i already have made a content importer for my ownfile format, that is ok because i se the importer to extract the texture Infromation from my file... But the problem Is that i have very valuable information in my file format in addition to the texture infromation, This is the code that i use to import the texture content from my files (jki Files): /// <summary> /// Importador de archivos JKI al XNA Content pipeline /// </summary> [ ContentImporter ( ".jki" , DisplayName = "Imagen De Multiples Frames JKI" , DefaultProcessor = "Procesador para arc ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Help me on How to fire a sprite to a mouse position from another Sprite
Hi again, this time i need some major help. I'm creating a shooter arcade, and the biggest problem i ran into so far was getting the sprite to fire towards my mouse positioned reticule. Could I please get some information on how to tell the game code that i want the sprite to move towards the mouse x,y from it's fixed positions. Thx for your help. What you are describing is Bresenham's algorithm. Check out this article: http://en.wikipedia.org/wiki/Bresenham's_line_algorithm You'll have to do a little work by reading the article, maybe even a few times over to get the idea of it but it describes exactly how to do what you want. You'll probably be better out in the long run if you understand it ...Show All
SQL Server Is it reasonable that a table has 240 fields
Hi, I have 240 sensors to sample one time per second,then store the data in sql server. Is it reasonable that the table has 240 fields If do,it will generate about 70,000 records every day.One month records will be 2,100,000. If I divide the 240 sampling data into 10 records,every record has 24 fields.Then every day 700,000 records will generate.One month the record number is 21,000,000.It is terrible. Which method is better,or who can give me another better method or some suggestions. I need your help.Thank a lot. Yes,most of fields should be filled. I store these records just for query history records and display every sensor's line. But I have heard that many fields will lead the database system low efficiency ...Show All
Visual Studio add costum MSHelp:Attrib to Sandcastle generated hxS content...
Hi all, is there a possibility to add costum "MSHelp:Attrib"'s to Sandcastle generated HxS content The main reason, I want to do this, is to generate a costum filter, to display only sandcastle generated help topics after integration into vs studio help. Any information if this is possible would be appreciated. Thanks, Stefan I've got stuck with this as well. I've generated my help files but get an error when I try to filter my integrated help files in VS. I placed an attribute directly below the locale example like this <MSHelp:Attr Name="FriendlyName" Value="MyAssemblyName.Help" /> then when I use the help integration wizard I create a filter to search for N ...Show All
Visual Studio 2008 (Pre-release) Shrink AND move a control in a canvas using animation (easy?)
All I want to do is be able to scale the X and Y of a usercontrol (in a canvas) both to 0 AND move the control to Canvas.Left=0 and Canvas.Top=0 no matter where the control is currently. I have the following so far... it does the scale X and Y ok, but crashes on the canvas-related calls... says "cannot have NaN as an origin in a DoubleAnimation": .......... <UserControl.RenderTransform> <TransformGroup> <TransformGroup.Children> <TransformCollection> <ScaleTransform x:Name="MinimizeScaleTransform" ScaleX="1" ScaleY="1" /> & ...Show All
Game Technologies: DirectX, XNA, XACT, etc. debug XNA importer
I'm starting testing XNA importer. I've a question for you: How can I debug an XNA importer See Shawn Hargreave's post about debugging the content pipeline . Searching the forum should show some other threads that have discussed this. Cheers, Leaf. ...Show All
Visual FoxPro Report strategy
Hi everyone; I am going to develop quite a few reports for a customer. They want to develop a report engine that would let them customize reports both in the scope and in the format of the report. I am wondering if I should use a third party product like CR. Can someone give me some pointers ergarding the benefits of using CR or other reporting engine, and also how difficult is it to incorporate such reports into my application, and letting users customize reports Thanks. You can do both within VFP. Scope: just add a form to let the user choose the scope and create the cursors before running the report. Format: exclude the reports from the exe in the project, include them in a folder ...Show All
.NET Development How to make http connections to an MS SQL server and retrieve data from a data base this way?
Hi, I want to be able to use an http connection to connect to a MS SQL server and take data from a database this way. What is the easiest way to do that I was looking for some way to do that directly by connecting my application to the sql server through http but I couldn't find anything. Or maybe some proxy-like app must be used to work between my application and the sql server which transfers data Thanks beforehand, Anton Is the port number 1433 or something else Is it the same number that the entire TCP/IP traffic to you SQL Server uses I don’t see what version of SQL Server you are using – 2000 or 2005 Zlatko ...Show All
Visual Basic Shared property works in VS2003, does not in VS2005
I'm moving an asp.net program made in Visual Studio 2003 over to VS2005. I'm just creating the pages in VS2005 and copying & pasting code. I'm finding my Shared variables are not working in VS2005, as I get the error "Name 'Errors' is not declared". In the example below, I have the Class "Errors" (a web page, "Errors.aspx") which sets the property. Then I show the Sub addFootnoteToPDF() which is on another page (open.aspx); this makes a reference to the property in Errors.aspx. Can you see why this works in VS2003 and not in VS2005 Thank you! Partial Class Errors Inherits System.Web.UI.Page Private Shared m_ReferringURL As String Public Shared Property ReferringURL() As String Get Return m_Referri ...Show All
