Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
B

BrcKcc

@BrcKcc
About
Posts
16
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • 32 bit integer from sbyte array
    B BrcKcc

    I have an sbyte array with a length of 4. What these four bytes represent is a single 32-bit number. I don't know how to convert the 4 sbyte elements into a single 32-bit number in C#. I could do this easily in C or C++ by casting a pointer to the first element as a pointer to Long and then dereferencing the pointer to get at the long. How do I do this in C#? BRCKCC

    C# question csharp c++ data-structures tutorial

  • Editing the Registry
    B BrcKcc

    Look at the Microsoft.Win32.Registry class. This has all the functionality you need to create keys and modify them. BRCKCC

    C# csharp windows-admin help question

  • Account Property of Active Directory/Win 2k users
    B BrcKcc

    Sorry. Try this link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adschema/adschema/a\_useraccountcontrol.asp Sorry, the other link was bad. - Bruce BRCKCC

    C# question sysadmin windows-admin

  • Account Property of Active Directory/Win 2k users
    B BrcKcc

    This 'flag' is actually part of a MS defined enumeration that is the value of the userAccountControl attribute. More documentation is available at: http://msdn.microsoft.com/library/default.asp?url=/library/en-s/adschema/adschema/a\_useraccountcontrol.asp Try this and see if it helps. - Bruce BRCKCC

    C# question sysadmin windows-admin

  • Account Property of Active Directory/Win 2k users
    B BrcKcc

    This 'flag' is actually part of a MS defined enumeration that is the value of the userAccountControl attribute. More documentation is available at: http://msdn.microsoft.com/library/default.asp?url=/library/en-s/adschema/adschema/a\_useraccountcontrol.asp Try this and see if it helps. - Bruce BRCKCC

    C# question sysadmin windows-admin

  • Escape characters in text box
    B BrcKcc

    I'm converting a C++ application to C# (yes - I know, dumb thing to do). The issue I've run into is when I put text into a text box, in C++ I could just add a \n to get a new line. Now, in C# text boxes, I have to add \r\n to get the same result. Why? Is there anyway I can get around this? - Bruce BRCKCC

    C# csharp c++ help question

  • Converting .rc files to .resx
    B BrcKcc

    Is there any easy way to convert .rc (C++ resource) files to .resx (C# resource) files? I have a C++ project which I'm converting to C# and don't want to have to write my own utility to convert the old resource files over. BRCKCC

    C# csharp c++ tools question learning

  • Casting problem
    B BrcKcc

    I have the following code: /* In myprog.exe - I get an exception here */ catch (LdapException e) { string port = String.Format("{0}", ldapPort); m_log.LogMessage("strCantConnectToLdap", "strCantConnectToLdapTitle", e, ldapHost, port, loginDN); return false; } /* which calls this in my.dll */ public DialogResult LogMessage(string headerTag, string messageTag, LdapException e, string sub1, string sub2, string sub3) { string [] subParams = new string[3]; subParams[0] = sub1; subParams[1] = sub2; subParams[2] = sub3; return FullLogMessage(headerTag, messageTag, MigError.ErrorLevelE.ERROR, e, subParams); } /*which call this in my.dll */ public DialogResult FullLogMessage(string messageTag, string headerTag, MigError.ErrorLevelE level, Exception exception, string [] subParams) { // Rework for different types of exceptions if (exception != null) { if (exception is LdapException) /* should succeed but doesn't - why?*? :confused:*/ { LdapException e = exception as LdapException; format = LoadString("strLdapExceptionFormat"); string ldapErrorString = MapLdapError(e.ResultCode); exceptionMessage = String.Format(format, e.LdapErrorMessage, e.resultCodeToString(), ldapErrorString, e.StackTrace); } else ... } } Any ideas? BRCKCC

    C# help question

  • Calling Java from C#
    B BrcKcc

    Anyone have some good example code for calling Java routines from C#? - Bruce :confused: BRCKCC

    C# csharp java tutorial question

  • memcmp in C#
    B BrcKcc

    Thanks very much. - Bruce :) BRCKCC

    C# csharp

  • memcmp in C#
    B BrcKcc

    Do you have a snippet of code on how to do this "casting"? BRCKCC

    C# csharp

  • memcmp in C#
    B BrcKcc

    I'm using the for loop and since I don't want to sacrifice portability, I'll stick with the for loop. Thanks. - Bruce BRCKCC

    C# csharp

  • memcmp in C#
    B BrcKcc

    I want to compare two byte buffer quickly. I used to do this with memcmp in C. I can't find a function to do that in C#. I'm sure there is one, but I can't find it. BRCKCC

    C# csharp

  • Simple (I think) Inheritance question
    B BrcKcc

    By the way, if you are going to be doing a lot with tree controls, you might look at the Infragistics tree control. It's a bit expensive, but it has a lot more flexibility than the Microsoft standard tree control. - Bruce BRCKCC

    C# question oop

  • String formatting question
    B BrcKcc

    It was in the debugger. It turns out when I displayed the string via MessageBox.Show(), it only had one backslash. So thanks for that clarification. The @ symbol has been confusing. How do I convert a string defined with the @ symbol to a string without the @ symbol? Do you know where Microsoft documented this capability? Thanks. - Bruce BRCKCC

    C# question hardware

  • String formatting question
    B BrcKcc

    I want to format a string with embedded backslashes. The string that I want is as follows: This is John I\. Smith. Here's the code snippet: string temp1 = "John I\\. Smith"; string temp2 = String.Format("This is {0}.", temp); What I get in temp2 is: This is John I\\. Smith. instead of This is John I\. Smith. How do I get rid of the extra backslash? BRCKCC

    C# question hardware
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups