RainMaan's Q&A profile
.NET Development Shutting down network computers?
I suspect that I once again have someone leeching of my Wireless router again and I can't connect and lock it for some reason. So I thought perhaps I could shutdown the computer who is leeching off my network As a lesson :P There are probably a lot of software out there that could do this but it would be nice to learn how I could create such software. really you need to implement security on your wireless router, such as disabling SSID and adding encryption as well as MAC Address filtering. This would all be done on your wireless router configuration page. In terms of developing it in C#, not entirely sure. you can shutdown a computer by using the Windows 2000 (I think or at least XP) and highe ...Show All
Visual Basic Get/Set File Attribute
I need to get a file attribute of a specific file, then set it to another value. Specifically if a file is -r I need to be able to set it to +r Thanks, Robert Hello Robert This is not work when You want to clear some of attribute for example: - You have a file with ReadOnly , Archive and Encrypted attribute, to clear only ReadOnly , you must do this: ' Get the file attribute Dim FileAttrib = File.GetAttributes(strFile) ' Clear the ReadOnly attribute leaving existing others FileAttrib = (FileAttrib Xor FileAttribute.ReadOnly) ' Set new attribute to file File.SetAttributes(strFile, FileAttrib) Regards ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Redistributing XNA executables
I have a question is the result of the Release build folder (bin\Release) sufficient if I want to distribute an XNA appplication to another computer. The folder contains an XNAFramework.dll, but the other computer doesn't have XNA Framework installed. Is there an XNA redist executable What other dll's should I include. I tried as it is, (with only the xnaFramework.dll) but it doesn't seem to work please help I've had a little luck with including the dlls in: < .\Program Files\Microsoft XNA\XNA Game Studio Express\v1.0\References\Windows\x86\ >, namely, Microsoft.Xna.Framework.Design.dll and Microsoft.Xna.Framework.Game.dll and their corresponding .xml files ( Microsoft.Xna.Framework.dll ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Coding DirectX with C++
Hi, I recently started coding with C++, mainly to get into game programming, but I have a few questions about DirectX (I haven't downloaded the SDK). 1. I'm using Visual C++ Express, which I downloaded off the microsoft website. Is C++, and this compiler, good for coding games in DirectX 2. I assume I need the DirectX SDK to code DirectX, but it was a bit of a turn off when I saw it's size - a whopping 500mb! Is there a 'slimmed down' version for those only wanting to code in C++. Alternatively, is the DirectX SDK actually what I need I'm a little lost here. 3. If I was to code a game and sell it commercially, would I need a license (or something similar) to use DirectX Alright. I downloaded the SDK, and ...Show All
Smart Device Development File Version Info On Windows Mobile 5.0 for PocketPC...
Hello all, I am currently working on a C++ project for a PocketPC with Windows Mobile 5.0 in Visual Studio 2005. I am currently looking for a way to get file version information, i.e. file version, product version, file modified date, file creation date, etc. The only way I could find was using the functions GetFileVersionInfoSize, GetFileVersionInfo, and then VerQueryValue, but when I ran it, it gave me an error saying: "The specified resource name cannot be found in the image file." I noticed in the documentation that these functions do not work for 16-bit file images, which may be why I am getting the error. Is there another way to get this information (i.e. one that works on 16-bit file systems) If not, what infomation ...Show All
SQL Server spreading data choosing a determined NDF???
Hi everyone Primary platform is 2005 on 64-bit. I've got a couple of questions linked to partitionating tables. -What sort of criteria follows Database Engine when you have two NDF assigned to one filegroup and this filegroup is part of partition What's more: Could I force that Sql will use one by default I mean, my first partition encompass from 20020101 till 20030101. When I add data for example March or June, could I decide that these months belong to NDF1 rather than NDF2 Let me know if you need further details. Thanks in advance for your time, The answer is no. The smallest granularity that you have control over data placement is a filegroup. Within a filegroup, SQL Server d ...Show All
SharePoint Products and Technologies Changing applicaiton pool account
A mistake was made during setup and an actual user account was used for the application pool acount. If I simply go to SharePoint application pool and change the identity to Network Service the SharePoint web site show "Cannot connect to the configuration database." How can it be changed now Which account should be used for administration application pool Your help is appreciated. You should run the application pool with a user account - create a system user (for example sys-SharePointAppPool) and use it for the application pool. But since that account needs access to the databases, you should also go into SQL and give it security permissions to the database manually. ...Show All
Visual Studio How to filter data in Table Data Region
Hello Report Masters, My stored procedure fetches Multiple record of Different type. I want to Filter a Specific Type by the Filter property of Data Table for example, Strored Procedure Generate 2 rows one for Male and Other for Female and I want to filter on the Basis of Gender Field that ,The row which contain Gender=Female ,only that data is shown in my table. I've tried hard with filter but either it dosent show any data or it shows all data. I also want to know that It restrict the criterion data or it allow only the criterion data in to the control. help me. vijayTooly Let's suppose you have a dataset field called Gender. The filter on the table would need to be setup like this: Filter Expression: =Fields!Gender.Value Filte ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to import a 3d Model in XNA framework?
Can anyone explain me howto import a 3d model in an XNA project In which format I have to export my model from 3ds max 7 Hi, thanks for posting this converter. Now, I don't like to look a gift horse in the mouth and all that, but would it be possible for you to post this as source I understand if you are restricted by work or such but you will appreciate we have to be very careful about downloading .exe files and such. cheers, Joc ...Show All
SQL Server Connection Manager Deployment with master/detail package
Hallo, I'm currently strugling with the setup of our packages for deployment to a new environment. We are working with a master/detail package setup. One master package is created that will call all child packages. In the master package we don't have any connection towards our source and/or target databases/sourcesystems. Everything works fine, however, starting to deploy the whole set of packages, it seems that we don't have the option to set specific properties of our detailed packages, e.g. connection properties. But this is just what we need. When we are adding a job in the Job Agent for our master package to be scheduled, we want to be able to set all different connection manager properties, not only the one from the mast ...Show All
SQL Server whilst stuck in a land of 6.5 compatibility
is there an alternative to a user-defined function, short of an extended stored procedure we have a DTS process exporting a series of records. we're using an extensive, older vendor codebase, operating against a DB in 6.5 compatibility mode, that includes a lot of complicated stored procedures. we'd like to filter out certain values in one field before exporting to text, as the information is irrelevant to the mainframe we're feeding it to -- which is consuming fixed length files, of a limited size, so anything we don't need, we don't want to end up in the export file. we can't just rewrite the existing stored procedures. is there anything analogous to a scalar UDF, that is, like I said, not an e ...Show All
Software Development for Windows Vista designerHost uses the wrong activity designer
I have the code shown below to assign a custom designer to my custom activity. The activity type shown is the type I use as the root activity type in my workflow. When I later look at the rootDesigner using the following code IRootDesigner rootDesigner = designerHost.GetDesigner(designerHost.RootComponent) as IRootDesigner ; then I can see that the RootComponent is of type SequentialWorkflowDesigner and NOT of my custom type WorkflowActivityDesigner. The constructor of WorkflowActivityDesigner is not being called. Why does the designerHost not use my custom designer or How can I change the designer used for the root component ----------------- [ Designer ( typeof ( WorkflowActivityDesigner ))] ...Show All
Visual C# How to enable "New Data Breakpoint" in C#.Net
I am using MS team edition of 2005. I have developed a C# Windows application project. When I am running the project in Debug mode and try to set a break point in 'New Data Breakpoint', it is disabled (grayed out) in both the main debug menu and the break points window. Could any one help me how to enable this Thanks in advance. Regards, Santosh. I'm pretty sure that feature isn't implemented in the debugger. Tough to do with the garbage collector moving stuff around. Maybe in next version. Moved to C# IDE forum. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Combining a Roatation and Translation matrix properly...?
I am trying to set up the world matrix for an object. What I am trying to do is rotate the mesh and then translate that mesh, but I do NOT want the rotation to affect the direction in which it is being translated. What I have is two seperate matrices: One is the translation matrix, the other is the rotation matrix. Here is what I've been trying (pseudo code): Vector3 vTranslation(3, 2, 1); Matrix rot = Matrix.RotationY(180); Matrix trans = Matrix.Translation(vTranslation); Matrix world = trans * rot; // or rot * trans, same effect The problem is, since I rotated around the Y axis, the multiplication with the translation matrix does not do what I want it to do. What ends up happening is the translation is applied ...Show All
.NET Development Using VB2005 Express to add new rows to database
Please, forgive my ignorance, but I need help with VB 2005 Express edition. I'm trying to make an employee database for work to store when someone signs in or out of the office. I have the form almost done, the signing works perfectly, but I can not figure out how to add new records to an existing database. Basically, whenever someone signs into the form, a new record should be saved onto the database with their name, time in, and date on it. I've created the database, but I'm not having much more luck here. This is my code: Public Class Form1 Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Me .Employee_TableTableAdapter1.Fill(SteadlandsInfoDataS ...Show All
