CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: mwpeck

Page 1 of 4 1 2 3 4

Search: Search took 0.06 seconds.

  1. Thread: DSQuery in C#?

    by mwpeck
    Replies
    7
    Views
    8,148

    Re: DSQuery in C#?

    Any other tips? From what I can understand, I basically need to look up some Active Directory info using something along the lines of DSQuery, is that built-in C# by default or something I would need...
  2. Thread: DSQuery in C#?

    by mwpeck
    Replies
    7
    Views
    8,148

    Re: DSQuery in C#?

    Thanks Silent, using the DirectoryService namespace is sort of what I'm looking for. Ideally, I want to get the same information that the command in my original post gets, but preferably, through C#,...
  3. Thread: DSQuery in C#?

    by mwpeck
    Replies
    7
    Views
    8,148

    Re: DSQuery in C#?

    That looks like a great C# ActiveDirectory resource, however after looking through it myself the only relevant section to what I am trying to do is the "Active Directory Users Tasks" section (last...
  4. Thread: DSQuery in C#?

    by mwpeck
    Replies
    7
    Views
    8,148

    DSQuery in C#?

    How would I convert this command line (from a .bat) into something I could use in C#?


    dsquery user forestroot -samid "%%d" | dsget user -display -upn -office -tel -mobile -dept | FIND /V...
  5. Replies
    2
    Views
    702

    Re: Tap RDP for connection info?

    More or less IF someone is logged onto a remote machine......knowing who it is is just icing on the cake.
  6. Replies
    2
    Views
    702

    Tap RDP for connection info?

    All I wish to do is tap RDP and essentially "ask" a remote machine if a user is logged in. Preferably even fetch user name.

    I cannot use WMI, RPC or anything that needs to be installed on the...
  7. Programmatically add new section to sectiongroup?

    Here is what my config file looks like:



    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
    <configSections>
    <sectionGroup name="Groups" >
    <section name="Group1"...
  8. Replies
    3
    Views
    5,070

    Re: Help with terminal services and impersonation

    Wow thanks man, I'll play around with it some more but as soon as I set that value in the registry (and rebooted) it came through and worked fine, even without resorting to impersonation (as long as...
  9. Replies
    3
    Views
    5,070

    Help with terminal services and impersonation

    In short, I am attempting to check if a user is logged into a remote computer using Cassia to access terminal services, and impersonation for authentication, here's my main code:


    using System;...
  10. Replies
    0
    Views
    1,831

    CSS Menu with transparency breaks in IE

    In short, I have a CSS menu, which supports multi-level menus (1st level is main menu thats always visible, 2nd level is dropdown menu of each main menu item, 3rd level would be pullout menu's from...
  11. Replies
    3
    Views
    871

    Re: C++ Multi-threading

    Ok, got the "OK" to do this in C# instead, much easier to multi-thread in C# IMO, have it showing practically perfect efficiency.....1 thread takes ~1.2 seconds, two threads takes nearly the same...
  12. Replies
    3
    Views
    871

    Re: C++ Multi-threading

    Ok, thinking about what you mentioned led me to this post: http://www.codeguru.com/forum/showthread.php?t=289677

    Implementing that with four threads I get the following results:

    ~ 21.2 seconds...
  13. Replies
    3
    Views
    871

    [RESOLVED] C++ Multi-threading

    What is a good way to show the efficiency of multi-threading in C++?

    I need to show how much multi-threading can help vs single-threaded applications, and here is what I am currently using:


    ...
  14. Replies
    8
    Views
    756

    Re: How would I utilize this function?

    It was actually:

    Power<MatrixM> powM;

    With that, it worked, raising all the elements to the power of 3, the problem though, with normal math (lets say 2^3) you get 8, which is the same as 2 * 2...
  15. Replies
    8
    Views
    756

    Re: How would I utilize this function?

    Tried that and got a different error:



    error C2661: 'YMatrix::Power<MatrixT>::Power' : no overloaded function takes 2 arguments


    Which is kind of odd because looking at the Power function,...
  16. Replies
    8
    Views
    756

    Re: How would I utilize this function?

    Hopefully this is what your looking for:



    //This is all in the main section of my program
    typedef Matrix<double,DenseMatrix,MathMatrix> MatrixM;

    double a1[49] = {1,0,0,0,0,0,0,...
  17. Replies
    8
    Views
    756

    Re: How would I utilize this function?

    I didnt mention the error because I figured I was trying to call it improperly:



    error C2955: 'YMatrix::Power' : use of class template requires template argument list
    see declaration of...
  18. Replies
    8
    Views
    756

    How would I utilize this function?

    Ok, long story short, one of my homework assignments requires us the take a matrix to a power. I am fairly new to programming (not exactly a beginner but not up to the intermediate level yet). The...
  19. Fetch and manipulate elements on a webpage?

    Hello, I was wondering how one can fetch all elements on a webpage, then manipulate those elements (such as "clicking" a specific element)? The catch is the webpage is a .aspx, so there is no source...
  20. Re: How to pad a string with zero's so that "6" is "000006" [C# 2005]

    Just as another option, you can do:



    string x = string.PadLeft(6, '0');


    I personally like PadLeft as to me its a little more clear as to what is happening, but use whichever one you want,...
  21. Replies
    13
    Views
    26,625

    Re: Convert from Base64 to binary string?

    Ok cool, like I said the first half of what you posted earlier seemd to work for it, I didnt go all the way through the string but it seemed correct.

    Thanks, I'll mess around with this a...
  22. Replies
    13
    Views
    26,625

    Re: Convert from Base64 to binary string?

    I think I am misunderstanding how to properly portray what I need across the forum. Basically I'm trying to make a GW utility to handle skill template files......Theres online utilites that basically...
  23. Replies
    13
    Views
    26,625

    Re: Convert from Base64 to binary string?

    Is it possible the program that creates the base64 string doesnt add the padding character?

    "OgNFg4uM25HjWtdaW5GyiPyrDkA" is the full string I have, it has no padding characters in it but it is...
  24. Replies
    13
    Views
    26,625

    Re: Convert from Base64 to binary string?

    Here an oddity I cannot figure out, If I use an base64 string thats already encoded in the first part of your code (with output being the binary variable), it works fine and gives me the correct...
  25. Replies
    13
    Views
    26,625

    Re: Convert from Base64 to binary string?

    How would I manage that? What I'm trying to do is find the binary equivilent of the Base64 string......the purposes I need it for I actually with 6 places not 8 that typical binary uses, changing the...
Results 1 to 25 of 84
Page 1 of 4 1 2 3 4





Click Here to Expand Forum to Full Width

Featured