J1mlad's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Buying Pre-made models for XNA
What is the best source to buy pre-made models for XNA Does anyone know of companies out there that will make custom models on demand I would also like to know what the best meshing/modeling tool for XNA. We have been playing with Blender 3D. I have tried incorporating pre-made models from turbosquid.com and not all of them work. The ones in .x and .fbx format work fine, but most of the texture size are not in the factor 2 scale, and we might need to manually resize them. My e-mail is dallascomputerguy@hotmail.com ...Show All
Visual C# reference object not updated
i send a class variable string into a nested class by "ref" ( using a constructor). inside this nested class i operate a thread and change the string variable value inside the thread. from this thread i call a delegate function which points into the main (not the nested) class function, why can't i see the change in the string there why didn't the variable string changed in the thread but the class variable string itself didn't i passed it by reference! example : // main class sealed public class TCPIPComm { private String outStr = "Out"; clientSearch = new ClientSearch(ref outStr); // base nested class abstract class ConnectionSearch { protected String MainString = ""; // constructor protected ...Show All
.NET Development How to pass the command to the other executable file?
Hi, I'd like to make a gnuplot to load a file and do some commands in the file. I would like to use C#. I found that I could use in C#: Process.Start("wgnuplot.exe"); to call and run gnuplot, but I don't know how to pass the command for the gnuplot. The command I'd like to pass to gnuplot is: load 'command.gp' where command.gp contains some commands for the gnuplot. There are qestions: Is it possible to pass the command to the other executable file If it is possible, how to do it Thank you very much, Komomomo So in a dos window on your system the command: wgnuplot.exe load 'command.gp' works just fine... even when exactly like what is above, complete with single quotes If it is ...Show All
Visual Basic Moving projects
Hi there, This might be a really stupid question but I'm having trouble saving VB.NET projects in other locations as backup. What I want to do is save the project somewhere (eg memory stick) so that if something bad happens I've got a copy somewhere. However, when I choose save as a message box pops up stating that the project must be saved in the original location. I can save the forms and module elsewhere individually. Thats fine for this project as there are only a few things in it but what about larger projects I can save the solution elsewhere but then it can't find the project because it's expecting it in the original location. What I need to know is, is there a way to save the project, taking the forms with it, in another l ...Show All
Windows Forms bindingnavigator with custom list - position and count not displaying
I am using Visual Studio 2005 C++. I have a class inherited from CollectionBase as follows: I do not see how a bindingList will solve my problem. A bindingList is an IList and I would still have to associate it with the bindingSource in order to the the bindingNavigator toolbar. Example that I provided, the Count property of MyList shows the proper number of entries in the list (the number that I called MyList.Add() for). Per the Visual Studio 2005 help, the Count property of the BindingSource gets its value from the underlying list; but, executing BindingSource.Count results in a zero being returned (even though MyList.Count returns a nonzero value). So, I guess better stated, my question is, what do I need to do in the MyList c ...Show All
Software Development for Windows Vista How to use KSStudio to test the property supportied by USB Camera Driver?
Hello Everybody!I'm now using the KSStudio to test the API of my USB Camera's driver. The step is as following:1. Open KSStudio and double-click the device name under "KSCATEGORY_CAPTURE Filter Factories" in Filter Factory view.2. Click "Misc. Supported PropertySets" in Object Details view. Right-click on a property, like KSPROPERTY_VIDEOCONTROL_ACTUAL_FRAME_RATE, and click Refresh. Then the Logging Window output:Getting property KSPROPERTY_VIDEOCONTROL_ACTUAL_FRAME_RATE KSPROPERTY_VIDEOCONTROL_ACTUAL_FRAME_RATE get failedI'm not sure if this means my driver is incorrect or my operation is incorrect. Any one who can help me will be greate appreciated! ...Show All
.NET Development Using FtpWebRequest in .NET 2.0 via C# - how to get progress bar on upload?
We had our own version of FtpWebRequest in .NET 1.1, based upon the 1.1 version of base classes such as WebRequest. Since classes such as WebRequest have chganged for .NET 2.0 such that you can no longer, for example, use WebRequest.Method = "put", but need to use WebRequest.Method = WebRequestNethods.Ftp.UploadFile, we decided to rip out our FtpWebRequest and use the ine in .NET 2.0 We need to display a progress bar when uploading a file. Our old FtpWebRequest had a method GetFtpResponse which called SendData() to upload the file. SendData would call a delegate we passed in to the ctor to update a progress bar. Is anything like this implemented in .NET 2.0 You haven't yet gotten an ans ...Show All
SQL Server can't connect to local user instance
Just when I think I have this stuff figured out, it bites me back everytime. I'm trying to deploy an mdf out to a different machine, and attached to it with local user instance. I connect without problem from my development machine with a local user instance, which also has Express Manager resident, and I can connect to a server instance without problem. What I can't do is copy the .mdf database over to another workstation, which has Sql Native Client installed, and connect to the database using a local user instance! I can connect to a server instance without problem from this other workstation. Here's my connect string for local user instance that works fine from my dev machine: Provider=SQLNCLI.1;Persist Security Info=False;In ...Show All
SQL Server Many-to-many dimension processing performance
Hello, I have a problem regarding M2M dimension processing performance that I would like some help with please. We are using SSAS 2005 SP1 Entreprise Edition x64 bit The main fact table has over a 100 milliion rows. The entire SSAS database, both dims and facts, are MOLAP. We have several many-to-many (M2M) dimensions connected to the main fact table via an intermediate measure group (IMG). The M2M dim and the IMG are using the same database object as their source and are thus linked as fact relationship. This shared object is a 'normal' view not a table or indexed view. We need to be able to process the M2M dim on a regular basis as user defined members change - sometimes every few minutes. To do this we need to 1. Process Update the M2 ...Show All
.NET Development search words sequence in a string with regular expression
HI, I've got some strings that contain the following text: 1) "That film is very beautifull". 2) "How much beautifull is the film ". 3) "The film is boring". I need, if it is possible with RegEx, to search if the string contains "film" AND "beautifull". I've tried with the following pattern: "film.*beaut.*", but IsMatch method returns only 1) I'm not interested in the exact sequence of the words. Can I achieve this with regex I know that I could do "(film.*beaut.*)|(beaut.*film.*)" but the number of the words to search is variable, so i don't want to perform all the possible combinations of the words in the search pattern. Thanks in a ...Show All
.NET Development SQl server authentication issue in C#
Hi Guys, I have a tool written in C# which connects to a remote SQl server 2005. Its working fine while I use "Integrated Security". However, I want to login the database using another credential instead of using the currently credentials associated with the tool. The reason for this was because not all the users using this tool have permission to access the database. So, I need sort of impersonation to allow any user using this tool to connect to the database. I tried using a connection string as below: Data Source=localhost or address of the machine;Initial Catalog=NameofDatabase;User Id=username;Password=password; But an error occured while the connection was being openned. I checked the server error log and it g ...Show All
Visual C++ "Go to definition" is freezing the IDE!
I rely heavily on the "Go to definition" context menu command to speed navigation through my code. However, on one of the development systems, using that command consistently freezes the IDE. When I open the Task Manager, devenv.exe is consuming 50% of my CPU, but isn't doing anything. It just sits there with the waitcursor endlessly. I've let it sit for up to an hour before... I've already uninstalled and reinstalled VS 2005, but I am still seeing this annoying behavior. I figured that I'd apply for the SP1 beta, but that form is no longer working. Can anyone on the MS team send me a hotfix for this, if it exists Thanks, Dave Here are some more links http://blogs.msdn.com/jasonz/archive/200 ...Show All
Windows Forms Need Help getting image to show up in PictureBox
I have a program that has an openFileDialog and some pictureboxes that I want pictures to show up in according to the images you choose in the openfiledialog from the local harddrive. But I don't know what to type in the GetThumbnailImage(); private void openToolStripMenuItem_Click( object sender, EventArgs e) { if (AddPic.ShowDialog() == System.Windows.Forms. DialogResult .OK) pictureBox1.Image.GetThumbnailImage(); } Hi, Please try this. private void openToolStripMenuItem_Click( object sender, EventArgs e) { if (AddPic.ShowDialog() == System.Windows.Forms. DialogResult .OK) pictureBox1.Image =Image.FromFile(AddPic.FileName); } ...Show All
SQL Server Limit number of rows when importing a flat file
Hello, Using ssis, how can I limit the number of rows I wish to import from a flat file thanks in advance mistys77 wrote: Hello, Using ssis, how can I limit the number of rows I wish to import from a flat file thanks in advance Use the Row sampler transforms or Conditional Split. -Jamie ...Show All
SQL Server Auto hiding blank space
Hi All, I have 2 display tables in my report. I want to hide either tables based on some conditions and if the condition is satisfied then the respective table will be hidden and the blank space generated needs to be hide. I can able to hide the tables based on the condition but can't hide the empty space generated. Can any body give me some tips how to do that . Waitig for your kind help Regards, ...Show All
