JRuggs's Q&A profile
.NET Development RijndaelManaged and Base64 - overflow characters after decryption.
Hello fellow developers! I have a problem in two routines for encrypting and decrypting text files, it works fine except the decrypted file contains 3 extra characters " i ". Is there anyone out there that has experienced the same problem or has an idea for a solution I have tried using different PaddingMode settings but without getting closer to a solution. PaddingMode.None - Exception during encryption, "Length of the data to encrypt is invalid." PaddingMode.ANSIX923 - Ok but "i " at end of file. PaddingMode.ISO10126 - Ok but "i " at end of file. PaddingMode.PKCS7 - Ok but "i " at end of file. PaddingMode.Zeroz - Exception during decryption, "Invalid character in a Base-64 st ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Animating Billboards Using A Single Texture
I just finished a basic billboard class that is capable of reading in multiple textures and animating. However, I would like to read in a single texture file and be able to simply change texture coordinates to change the appearance of the billboard. Now, I could recreate my VertexBuffer each frame, but that would be a lot of wasted processing. Is there a way to dynamically alter the texture coordinates for VertexBuffer objects each frame Edit: As a bonus question, how do I enable the alpha channels in my textures Right now it shows up white. I am using the BasicEffect. Would I have to write my own effect just for that Seems rather silly but I will if I have to. Edit 2: As bonus question 2, how can I disable antialiasing of my textures I'm ...Show All
Windows Forms UserControl with ComboBox
My aplication needs a usercontrol consisting a combobox. So I have to provide the commonly used propertiesfor the comboBox for this usercontrol as well. I build this UserControl DLL and using in some other Windows Forms, but then some problems arises. I have few problems in that: 1. There is a property called "FormatString", I have attached the editor "FormatStringEditor" also with this while declaring this property. But when I try to use this property in the "property-pane" I am getting an error Object Reference not set to an instance of an object" 2. I have also exposed the property for "Text" and "Items" and attached these properties to the ComboBox corresponding prop ...Show All
Visual Basic Word border problem (declaration
I want to set: WordApp.Selection.Borders = wdBorderBottom But problem is, that it says that wdBorderBottom is not declared. How can I declare it where are you obtaining the code from Of course if you get an error stating that the variable is not declared, then you need to declare it of course in order for it to work but I am guessing (unsure) that you are using COM Interop to access Word instance If so, you need to give it the correct parameters/properties/values etc... would help if you can supply where you are obtaining the code from so we can help ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How I get the skin weights?
Hey, I am trying to understand how animations works in XNA. I have modified the content processor to get the vertex buffer of a mesh from a model in a raw data, and I believe that it is in the vertex buffer where the skin weights indices of each vertex for each bone is stored. Does anyone has some clue how to get the skin weights or how they are stored in the vertex buffer Or even better, does anyone know the proper way to retrieve the vertex buffer, index buffer and skin weigths from a model I am not sure if I undestand completly, but I promise I will take a look on what you suggest. My big problem is just I don't have direct access to the vertex information o ...Show All
Visual Studio VS 2005 stalls/freezes when adding multiple DataGrids bound to a DataSet
Hello, I have a form that has a main DataGrid bound to the parent side of the DataSet. There are 15 child tables to that DataSet, and for each child table I have a DataGrid on that form (most are really small, but do show related records when I scroll through the main DataGrid). When assigning the datasource for each DataGrid (in the designer) to its appropriate child table (and modifying each DataGrid) everything goes ok until I get to about the eighth one, then VS starts to slow down like it is running out of ram. I very seldom get to assign the datasource for the eleventh DataGrid. I thought it was a RAM issue, and bought a new computer (2.66 Core 2 Duo - 2 gigs of RAM) and it still does the same thing. Reboot and it comes right back to ...Show All
SQL Server Problem Doing SQL 2005 DB Restore
I did a full DB backup that I am trying now to restore via the SQL Server Management Studio. I select "Restore" and then "From Device" and point to the bak file that I want to restore from. I then go into the Options page and check "Overwrite the existing database". Below that, shows the Restore the database files as RB_Data_Services_MSCRM RB_Data_Services_MSCRM_Log sysft_ftcat_documentindex When I then click OK I get the following error. The Media Set has 3 Media Families but only 1 are provided. All members must be provided. Any ideas as to what I did to do to be able to complete this restore Thank Rick Bellefond Michael, I did not i ...Show All
Visual Basic Help to a form
Maybe this is the wrong forum I have a form there show data from a DB i made by a navigation so i only see one record at time In a record i have the number on a client this works fine but it is the name of the client i want to see not the number, the name is in another table. I have make a view where i can see the name But how to show the right name to the record i see regards alvin Use a SQL query with the JOIN keyword to retrieve the name. Something like SELECT Customers.Name, Orders.Number FROM Orders INNER JOIN Customers ON Orders.CustomerID = Customers.CustomerID. ...Show All
Smart Device Development How to bound DataGrid to datatable/dataset and create ComboBox Grid colums
I have a requirement to add, edit, and delete data displayed on datagrid in pocket pc application. But, I do not see the dataGrid allowadd, edit, delete properties (like win app). it seems those propertiess will not be supported in pocket pc application, not sure . How can I bound dataset to datagrid how can I replicate changes to dataset, made from datagrid Is there any round about way to achieve this I would also need to set some columns as combox columns. Please suggest any one. Thanks, I am able to run the application by resetting Hard under file options, emulator - File - reset - Hard. I hope the probelm was application directory files (exe etc) was not cleared till I reset it back. that may cause ...Show All
SQL Server SSIS advantages
This may be too general a question but I'm going to ask it anyway. I'm moving data from a source DB (say A) to a target DB (say B). On A I need to join 3 tables and, after some lookups etc., I need to populate several tables in B. Inserting into B's tables involves sequential operations because in many cases I have to get back the value of an Identity column to use as in input value in a another table 'downstream'. Additionally, the tables in B are populated as a group i.e. if the insert on any one fails the entire group's insertion needs to be rolled back. I set up a set of stored procedures to do this. The master Stored Proc opens a read-only cursor and for each row of the cursor executes the other SPs in proper sequence. Some of t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Confused About XNA and DX10
I am confused about the differences between XNA and DX10; is that correct: 1- XNA will have both fixed function and shader programming and effects also 2- DX10 will have only shader programming with no assembly, no fixed function and no effects. 3- DX10 will be on Vista only, since it is shader programming will Shader 3.0 (DX9.0 C and L) is compatible with Vista shader 4.0, so a program written on Windows XP DX9.0 C will run on Vista DX9.0 L but will not run on Vista DX10 shader 4.0 But why it will not run on DX10 Vista runtime if the program is only shader with no effects is that because shader 4.0 will not be compatible with shader 3.0 or it will run regarding windows controls with DX: 1- can we build application ...Show All
Visual C# Capturing the up/down arrow key in a child form
Hi, Recently, I was trying to capture the UP arrow key from my window forms application. I was able to capture the key in the parent form but once i open a child form, I would not be able to capture all the arrow keys but the rest of the keys like 'a', 'b','+' and etc are ok. I have searched the web but did not find any solution. Does anyone know how to overcome this problem Thank you. Soh Hi Here is the code in the KeyDown Event. private void frmGraphical_KeyDown( object sender, KeyEventArgs e) { MessageBox .Show( Convert .ToString(e.KeyCode)); } The Message box did not pop up when i press the arrow key but it did pop up showing "U" when i pressed t ...Show All
.NET Development Controlling values from a Combo box
Hello, I am very green at this and I'm hoping for a bit of help. I've created a very basic program that creates some html code based on what a user enters. One of the fields they complete is "DIVISION" (I've called the combo txtDivision). There are four pre-defined selections - but you have the ability to enter in others. The combo simply displays the company division. I also have four company logos, one for each division. "FGSig.gif", "FSSig.gif", "FGSig.gif" and "FHSig.gif". If the user enters their own division, or leave division blank, "FGSig.gif" should be used. I have declared the logo as image and the company sub division as division Each logo is located on a web server. ...Show All
.NET Development Can't figure out this error message
Good Day all, I seem to have hit a dead end. I am "attempting" to write a web application to retrieve, insert and update information in a SQL2000 database. I can retrieve information just fine but when I try to update it I keep getting the following message: System.Data.SqlClient.SqlException: Line 1: Incorrect syntax near 'UDPATE'. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataS ...Show All
SQL Server Help with SQL
Hi, i hope i posted int he appropiated forum. I hope you can help me with an sql sentence i dont know how to do,... The problem is that i have a database with fields like this: name, adress, etc.... , phone number but sometimes, i get them like this: paul, ... street... , etc... , 776509332 paul, ... street... , etc... , 234536445 paul, ... street... , etc... , 567847345 The client si the same, but he has more than one phone number.... I need to do, somehow, another table that makes this kind of duplicates to dissapear, and joins the phone numbers in an unique field for that person, so it will in the end look like this: paul, ... street... , etc... , 776509332 234536445 567847345 Can anybody help me Thanks ...Show All
