Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by jjknack

  1. jjknack

    Querying Active Directory

    Ok, everything is working just fine now (I had to use IPC [inter-process communication] to get it working, but it does work fine now). My next question now is: the memberof property. It has many entries because a user can be in many groups. Whenever I query for the memberof property, I only...
  2. jjknack

    Getting current windows user name

    Is there a way to get user name for the current user other than getenv("USERNAME"); ? More specifically, who the current application is running as.
  3. jjknack

    Querying Active Directory

    I "got it working"... I am trying to put this code into an interface that I am writing for a 3rd party application. I tested this code in a stand alone EXE and it works. It continues to not work in the 3rd pary app. I will continue with their support. Thanks for your help.
  4. jjknack

    Querying Active Directory

    Yes, that was an invalid comment... I still cant get it to work... here is the function in its entirety: #include "stdafx.h" #include <stdio.h> #include <Iads.h> #include <Adshlp.h> #include <activeds.h> #include <comdef.h> extern "C" { #include "UtilityFunctions.h" } #ifndef __IID_DEFINED__...
  5. jjknack

    Querying Active Directory

    All, I am having a problem getting attributes of a user out of active directory. When I execute my query, I get a profile back (mine), and it tells me the attribute that I queried for, but the value is always null. Any ideas as to why this is? // Open a connection with server. hr =...
  6. jjknack

    Managed class to unmanaged class

    Found it: //using namespace System::Runtime::InteropServices; System::String * str = S"Hello world\n"; char* str2 = (char*)(void*)Marshal::StringToHGlobalAnsi(str); printf(str2); Marshal::FreeHGlobal(str2); Thanks
  7. jjknack

    Managed class to unmanaged class

    I have a class that is using a managed object to get information from a database. Specifically OracleClient and DataTables/DataRows. I am able to get the information through this class ok, but I must pass it back to a C application that has an unmanaged C++ interface between the two. Long...
  8. jjknack

    Accessing Oracle Database

    Can any one recommend a way to connect to an oracle database? I am looking around and am banging my head against a wall trying to find something that works well. Thanks.

Part and Inventory Search

Back
Top