pinoyz's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. SpaceWar Memory Usage
Hi all, I compiled the SpaceWar demo without any problem, and was able to get the keyboard to respond. My concern is on memory usage. When running the game from the Release folder (and even closed Visual C# editor), SpaceWar uses about 165Mb of memory. Now, what is it with the .Net Framework that always eats up so much memory It is just on my computer, or do others out there use that much memory that seems a bit extreme. any here have base memory requirements for a XNA peice of code with say just a single 3D object with one plane spinning ...Show All
Visual Studio Display tiff in Report Viewer
Hello, I am not able to display tiff images in the report rdlc file. I can only display gif, jpeg, and other, but I need to display tiff. Can anyone please help me out Sorry, only the following image types are supported: image/bmp, image/jpeg, image/gif, image/png, image/x-png You would need to convert the tiff image resource into one of the supported formats. -- Robert ...Show All
Software Development for Windows Vista Cannot create more than one WorkflowRuntime per AppDomain????
I have a webform with a button. On the button click i am calling the workflow and getting the response for the first time. The next time i click i am getting the exception "Cannot create more than one WorkflowRuntime per AppDomain" public partial class _Default : System.Web.UI. Page { WorkflowRuntime wr; private string _returnValue= string .Empty; private string _returnMessage= string .Empty; public string ReturnValue { get { return _returnValue; } set { _returnValue = value ; } } public string ReturnMessage { get { return _returnMessage; } set { _returnMessage = value ; } } protected void Page ...Show All
Visual C++ Remove a given value from a list
Hello all: Is this solution correct void remove(Node **node, int v) { while (*node) { if ((*node)->value = v) { Node *tmp = *node; *node = (*node)->next; free(tmp); } else node = &(*node)->next; } } If this code is correct, I have the following question: why can we just free(tmp) without making the collection between the previous node of tmp with the node after tmp Thank you Are you jocking when you say it's an uncommon implementation and probably not a good idea for production Then we must be in agreement and we're both jocking. ...Show All
Visual Basic Help - How can I runa VB program without runtimes installed
Hi, I'm new here and I was wondering, is it possible for me to run a VB 2005 program using the Framework 2.0 on a computer without the runtime I want to do this because for a project I've decided to make a program but the computer I wnat to run it on and show teh class does not have the necessary runtimes installed. If I'm running it off a USB Flash Drive is it possible for me to do something such as install the runtimes to my USB Flash Drive and have the program use the files from the Flash Drive As you know, this is a school so I'm not allowed to install any software and this is the reason I ask this question. Thanks. Simply create your application and use a click once deployment - this will install the ...Show All
.NET Development CLR profiler - StringCollection
Hi I have profiled one of my apps using the CLR profiler and it seems to indicate that a StringCollection was converted to an ArrayList which was in turn converted to an object array which then got converted to strings. Why does it behave so.. Does the StringCollection use an arraylist internally Thanks Well, if performance is a concern and you don't need to add/remove strings you can use a string array. Or, if add/remove is needed and you are using .NET 2.0 then it is better to use List<string> instead of StringCollection. ...Show All
Visual Studio Cannot install on Vista, needs Office 2003
New system with Vista Ultimate, attempted to install Vs2005, install stops and fails with message that Office 2003 SP1 is required. This new system has Office 2007 Pro installed. Is there a way around this error Thanks ...Show All
Internet Explorer Development IE7 HP Director Problem
I can't use HP Directors or Solution Center after install IE7. I installed fresh HP software and updates. But problem persist. When reinstall IE6 back, problem solved. who knows anyway or have ideas Please help me. Thank you, I tired the two work arounds that have posted around the internet as HP was CLUELESS how to fix the issue and MS says it's not their problem. I have a PSC 2410xi, and now MS is force feeding me IE 7.0 via auto-updates, and I would LOVE IT if HP and MS could stop playing the blame game and get a solution that would fix the problem correctly. Sorry I don't have anything more to report but hey, I gave it my best shot. If anyone hears anything about a permanent fix could you reply to this thread ! Thanks ...Show All
Visual C# what is Impersonation
can someone expain me what is Impersonation from an ASP.NET side and when it can be used. If you have any simple examples, please share. Thank you, Hi I don't believe that using code-based impersonation is even necessary... as long as you can retrieve the windows id (which you can by using impersonate = true + asp.net windows authentication) you code will impersonate the right user The example you gave is valid for applications where you need to impersonate specific admin credentials... ...Show All
SQL Server create new table format
Im new / novice user to writing SQL scripting. I have two tables and table1 has two columns uslid and groupid, uslid1, group1 uslid1, group2 uslid1, group3 uslid3, group1 uslid3, group3 etc the second table2 has three columns uslid, name, and location uslid1, john, bldg 4 uslid2, jane, accounting uslid3, joe, mail room . I am trying to do a inner join but not working and not sure if this will work to create new temp table. example of what i am trying to get in new temp table on one row: uslid, name, location, groupid1, groupid2, groupid3 uslid1, john, bldg 4, group1, group2, group3 uslid3, joe, mail room, goup1,& ...Show All
Smart Device Development launch an exe from code
Can someone tell me how I can launch a different program (the exe) from my smart device application I want another program to run when the user clicks a button on the screen. You can launch an exe by using the ShellExecuteEx function. You can see details about it here: http://msdn2.microsoft.com/en-us/library/aa453684.aspx ...Show All
Visual Basic How could I replace double quotes with single quotes in a string?
Thanks in advance for that, I'm stuck with it. I vb6 I used to have a function on demand which did such stuff: For i = 1 To Len(cad) If Mid(cad, i, 1) = Chr$(39) Then Mid(cad, i, 1) = "`" ' End If Next ...Show All
Visual Studio Do we have to wait for the VS 2005 Prof. SP1 edition or use the Team Suite SP1 edition ?
I've noted that following VS 2005 SP1 are available : Visual Studio 2005 Team Suite SP1 Visual Studio 2005 Express Editions SP1 Since my edition is VS 2005 Professional, I am wondering whether I should use the Visual Studio 2005 Team Suite SP1 version or I should wait for the specific VS 2005 Professional SP1 edition. you can use the team suite edition as it states: http://msdn.microsoft.com/vstudio/support/vs2005sp1/default.aspx Visual Studio 2005 Team Suite SP1 (includes SP1 updates for Standard, Professional, and Team Editions of Visual Studio 2005) ...Show All
Visual Basic Web Application with 2003.net and MS SQL2000 view report for multiple user problem
Dear All, i have facing with the View Report for multiple user problem. the Error message is "there is already an open datareader associated with this connection which must be closed first" I have search this problem in net. but can't find a solution for my case. My Web Application is done using 2003 .net with MSDE database. When i log in the Web Application alone without the second ppl login, i browse the report with more then two explorer at the same time, i won't face this error problem. But when more then two user log into the web application and browse the report at the same time. The error pop up for either one of the user. the application is running under dot net 1.1 version. any way can solve t ...Show All
.NET Development Releasing dBase (OleDB) resources
Hello all. I've digged Inted and found no answer for problem I found. When I connect the dBase files, the directory where dbf files are stored cannot be removed anymore untill the process (application) is closed completly. Closing datareader, connection etc doesn't help. a bit of code: OleDbConnection conn_batch = null; OleDbCommand cmd = null; OleDbDataReader dr_batch = null; conn_batch = new System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + data_dir + ";Extended Properties=DBASE IV;"); conn_batch.Open(); // here the data_dir directory can be still deleted cmd = new System.Data.OleDb.OleDbCommand(); cmd.Connection = conn_batch; cmd.CommandText = "SELECT * FROM BATCH" ...Show All
