Software Development Network Logo
  • Audio and Video
  • SharePoint Products
  • Smart Devicet
  • Visual C#
  • Visual Basic
  • Windows Vista
  • .NET Development
  • SQL Server
  • Visual Studio
  • Windows Forms
  • IE Development
  • Visual FoxPro
  • Game Technologies
  • VS Team System
  • Microsoft ISV

Software Development Network >> KarimRadi's Q&A profile

KarimRadi

Member List

Winkling
xVxObliVioNxVx
Christopher Hujanen
WangJiping
Anand Raman - MSFT
Peter Bernhardt
wirol
R Raghu
agenda9533
Tin Aung Soe
Stephen Westlake
James_Steven
nglow
WoFe
Dan_Brownlow
Menthos
dlharrison
HenryM679
Bill Cumming
kunallen
Only Title

KarimRadi's Q&A profile

  • Visual C# encryption problem

    I have the following code which I would like to use to encript a password. However, I get a 'Specified key is not a valid size for this algorithm.' error on the line that is marked below. How can I solve it= thanks private const string keyString = "193-155-298-97-284-58-100-241"; public static string CreateCipher(string s) { //DES cipher = new DESCryptoServiceProvider(); byte[] sArray = UTF8Encoding.UTF8.GetBytes(s); DES desSP = new DESCryptoServiceProvider(); byte[] keyBytes = MyGetBytes(keyString); error ---------> desSP.Key = keyBytes; desSP.Mode = CipherMode.ECB; desSP.Padding = PaddingMode.PKCS7; ICryptoTransform cTransf = desSP.CreateEncryptor(); byte[] ...Show All

  • Visual C++ __wchar_t and wchar_t

    Greetings, What's the difference between __wchar_t (two leading underscores) and wchar_t (zero leading underscores) Thanks http://msdn.microsoft.com/library/default.asp url=/library/en-us/wcepbguide5/html/wce50grfZcwchar_t-Wchar_tIsNativeType.asp explains the relationship between the two types. ...Show All

  • .NET Development A specialized String.Split but on a location instead of a character

    I am looking to split a string at a specific character count and return an array of strings from that, with the smarts of not splitting on a word.... The functionality would somewhat mirror string.Split which is used to tokenize, but instead of a character it would have a hard minimum line size. Any existing functionality to tap into or thoughts on doing it advTHANKSance You might consider using a Regular Expression... the following is quite short should work as you specified: string test = "this is an example using a regular expression to wrap some text in lines of ten chars." ; MatchCollection matches = Regex.Matches (test, @".{1,10}(\s|$)" ); foreach (Match m in matches) {   Console.WriteLine (m.Value); } Thi ...Show All

  • Visual Studio Express Editions Convert 4 byte String to hex to number

    Hello everyone, I am fresh to VB programming but I find it enjoyable and easy to learn. I have been fighting a small issue with some code that I hope someone can help me out with. I have a 4 byte string variable containing a representation of a 16-bit word value. Each byte contains an ascii character 0000-FFFF I need to convert this psuedo-hex value to corresponding decimal (0-65535). Is their a way to parse this 4 byte string into a Ushort variable and then convert it to a number I would greatly appreciate any tips or advice, Thanks in advance!! Dim s As String = "0000-ffff" Dim hbytes () As String = s . Split ( "-" ) Dim i As Integer = Convert . To ...Show All

  • Visual Studio Team System Forward integrating (parent-to-child) bug fixes always causes conflicts

    Hi everyone: I have the following branching scenario: BranchA - Version 1.0 of the product, currently in production, currently being maintained - Branch B - Version 1.1 of the product, currently under development (child of BranchA) Obviously, bug fixes in branch A need to be forward integrated into branch B. This works, but the scenario below is confusing, and can potentially cause devs to merge incorrectly: Branch V 1.0 into V 1.1 Make changes to code in V 1.1; file class1.cs Check in changes Make changes to code in V 1.0 (e.g. bug fix); file class1.cs Check in changes Merge V 1.0 to V 1.1; latest version Conflict window pops up => understandable, both versions of class1.cs have changed Merge the fil ...Show All

  • Visual Studio Express Editions How would I?

    I have created 2 forms on menu click the original form hides and the other appears I can make the original form hide, but how can I make the other appear Thanks how do you mean "disappear" do you mean closing it or do you mean hiding it you would need to of course have a reference to that form you wish to "disappear" then call the Close() method or Hide() method. ...Show All

  • Visual Studio Express Editions Always Round Up in Visual Studio 2005

    Okay Ive gone threw the forums many times and I have yet to find a clear beginner answer. I would like something that has any number that has a decimal to round up..no matter what the number/decimal is. Sorry if I sound rude Im just a little bit annoyed and not being unable to understand a lot of this.   spotty wrote:     Function RoundUp(ByVal Value As Double) As Long         Return Fix(Value - (Value \ 1 <> Value))     End Function End Module Roundup(8.4) return 9 - Correct Roundup(-8.4) returns -7  - Oops Try     Function RoundUp(ByVal Value As Double) As Long &nbs ...Show All

  • Software Development for Windows Vista Serialize a cookie container

    How would you go about serializing a cookie container so that multiple web clients could use the same session ID to run a stored WF instance Thanks. EM You are so right , sorry but here it really is http://wiki.windowsworkflowfoundation.eu/default.aspx/WF/WorkflowWebService.html Maurice ...Show All

  • Visual Studio Express Editions Question.

    Hey, i got a small question. You know some programs have a feature that wen you're mouse pass on a button lets say it shows a small text next to it like that how can i do that in C# (used to do it in vb6 but didn't found that ops in C#/VB.NET) Hello All. ShadowRayz: Check out the ToolTip class. HTH. ...Show All

  • Visual Basic Programming Languages

    Hi, I'm relatively new to programming, and Visual Basic doesn't seem to be that good of a language, and not that much used in real applications. I want to move onto a different language, one that is very popular, can do almost anything, and can be and IS used in professional applications. Another important factor is platform compatibility. Java provides that, but Java isn't that popular for Windows, and Windows is my primary target. C++ works, but I have a couple of questions: 1) Can C++ be used on any OS Is it a good language to use as my primary language 2) Is C# going to replace C++ Does that work on other OS's C# is newer, and so I'm thinking maybe its the new version of C++ that's going to replace it, as xhtml is probably going to do ...Show All

  • Software Development for Windows Vista How can we control the "Enhancements" page under device Properties page?

    There will be a "Enhancements" tab on the device Properties page if we use APO to add some sound effects.( ex: Speaker or Microphone) And I want to control the checkbox in the "Enhancements" tab. The question is : how can we get the interface of this page I know the "Enhancements" will add a "FxProperties" folder under the device registry. But I can't find the header of this IPropertyStore interface. I have tried SHGetPropertyStoreFromParsingName to get the interface. Like this: IPropertyStore *pProps = NULL; CString string = L"HKEY_LOCAL_MACHINE\\....\\FxProperties"; // The registry path. SHGetPropertyStoreFromParsingName ( string, NULL, GPS_DEFAULT, __uuidof( ...Show All

  • SQL Server Neural Net algorithm

    Hi, Would anyone be able to provide a reference paper on the neural net algorithm implemented in SQL Server 2005 to better understand how it works Thanxs for any info. The Microsoft Neural Networks algorithm is a MultiLayered Perceptron implementation based largely on the conjugate gradient training method described in Christopher Bishop's book "Neural Networks for Pattern Recognition". ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Workaround to make XNA GSE work on Vista RTM?

    It is not supported of course, but since Vista is locked down and shipping, is there a workaround to install Beta 2 of XNA GSE on Vista Repro steps: On Vista RTM Install C# Express Launch XNA GSE Beta 2 When it is "registering templates", an error message about C# Express closing down appears XNA GSE Installation app errors as well, saying that something went wrong Installer reverses all the installation... .msi installation packages don't have the "Run as Administrator" options. I did try to run it while logged in as the main Administrator user name, which should be the same thing (not working). I was able to work around issues in Vista RC1, but it is anothe ...Show All

  • SQL Server Database is read-only.

    Hi I have been learning on how to use the new features of the .NET 2.0, and Well I using VS2005 and everything is pretty straight foward. I did a Membership webform where you log in and create users and roles etc. I installed the SQL Server 2005 express as my Data provider and thats where my Tables are. I used the aspnetsql_reg comand to integrate the server to this application. Anyway my problem started when i decided to copy my project to my IIS server and well when I run the app from the Browser tells me that he Database It's set to Read-Omly and therefore it cant update it. This happens right after log in. but then I open the App. on hte VS and it runs find. This is the error:   Exception Details: System.Da ...Show All

  • Windows Forms Changing DataGridViewButtonColumn's Button Text Per Row

    I have an unbound DataGridViewButtonColumn and I want to change the text on each button(each row) during the load of the grid or on specific event. How can i do that thanks Shaul DataGridViewButtonColumn btnCol = new DataGridViewButtonColumn (); btnCol.Name = "btn" ; this .dataGridView1.Columns.Add(btnCol); for ( int j = 0; j < this .dataGridView1.Rows.Count; j++) { this .dataGridView1[ "btn" , j].Value = "btn" + j.ToString(); } ...Show All

©2008 Software Development Network