Click here to Skip to main content
15,894,313 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Shades of a color Pin
Stephen Hewitt25-Feb-06 4:09
Stephen Hewitt25-Feb-06 4:09 
QuestionMultiple instance like MS Word Pin
Anilkumar K V15-Feb-06 1:54
Anilkumar K V15-Feb-06 1:54 
AnswerRe: Multiple instance like MS Word Pin
David Crow15-Feb-06 3:47
David Crow15-Feb-06 3:47 
GeneralRe: Multiple instance like MS Word Pin
Anilkumar K V15-Feb-06 17:04
Anilkumar K V15-Feb-06 17:04 
GeneralRe: Multiple instance like MS Word Pin
ThatsAlok16-Feb-06 2:38
ThatsAlok16-Feb-06 2:38 
GeneralRe: Multiple instance like MS Word Pin
David Crow16-Feb-06 2:50
David Crow16-Feb-06 2:50 
AnswerRe: Multiple instance like MS Word Pin
Michael Dunn15-Feb-06 12:08
sitebuilderMichael Dunn15-Feb-06 12:08 
QuestionListing OUs in Active Directory Pin
CarpetPants15-Feb-06 1:37
CarpetPants15-Feb-06 1:37 
Help! Im trying to figure out Active Directory and the C++ interface that microsoft provides. I need to return to a list box all the OUs in a domain. The application Im writing should eventually allow a user to create a new user in a domain and an OU selected from it. The problem I have is, what to do after binding to the object. Here is what I have so far........

CoInitialize(NULL);

IADsOU *pObject = NULL;
HRESULT hr;

hr = ADsOpenObject(L"LDAP://OU=yyy,DC=XXX,DC=xxxx,DC=co,DC=UK", NULL, NULL, ADS_SERVER_BIND, IID_IADs, (LPVOID*)&pObject);
if (hr == S_OK)
{
// need to get all OU's here somehow?


pObject->Release();
}

CoUninitialize();

This doesnt work though and I could really use some help with this Frown | :( Our AD structure is as follows:

DC=XXX.xxxx.co.uk
--OU=yyy
----OU
------User
----OU
------User

Hope this helps.

regards,
QuestionFlash Decompiler ... Is it possible ? Pin
llp00na15-Feb-06 1:26
llp00na15-Feb-06 1:26 
AnswerRe: Flash Decompiler ... Is it possible ? Pin
toxcct15-Feb-06 2:27
toxcct15-Feb-06 2:27 
GeneralRe: Flash Decompiler ... Is it possible ? Pin
llp00na15-Feb-06 3:29
llp00na15-Feb-06 3:29 
GeneralRe: Flash Decompiler ... Is it possible ? Pin
toxcct15-Feb-06 3:31
toxcct15-Feb-06 3:31 
GeneralRe: Flash Decompiler ... Is it possible ? Pin
llp00na15-Feb-06 4:10
llp00na15-Feb-06 4:10 
GeneralRe: Flash Decompiler ... Is it possible ? Pin
Chintoo72315-Feb-06 7:15
Chintoo72315-Feb-06 7:15 
QuestionPlay Movie from URL Pin
Anilkumar K V15-Feb-06 1:26
Anilkumar K V15-Feb-06 1:26 
Questionhow to diplay the contents of the file on the MFC window? Pin
Akkibaba15-Feb-06 0:37
Akkibaba15-Feb-06 0:37 
AnswerRe: how to diplay the contents of the file on the MFC window? Pin
Cedric Moonen15-Feb-06 1:00
Cedric Moonen15-Feb-06 1:00 
GeneralRe: how to diplay the contents of the file on the MFC window? Pin
Akkibaba15-Feb-06 1:19
Akkibaba15-Feb-06 1:19 
GeneralRe: how to diplay the contents of the file on the MFC window? Pin
Cedric Moonen15-Feb-06 1:25
Cedric Moonen15-Feb-06 1:25 
AnswerRe: how to diplay the contents of the file on the MFC window? Pin
toxcct15-Feb-06 1:03
toxcct15-Feb-06 1:03 
GeneralRe: how to diplay the contents of the file on the MFC window? Pin
Akkibaba15-Feb-06 1:23
Akkibaba15-Feb-06 1:23 
GeneralRe: how to diplay the contents of the file on the MFC window? Pin
toxcct15-Feb-06 2:03
toxcct15-Feb-06 2:03 
GeneralRe: how to diplay the contents of the file on the MFC window? Pin
David Crow15-Feb-06 3:50
David Crow15-Feb-06 3:50 
GeneralRe: how to diplay the contents of the file on the MFC window? Pin
ThatsAlok16-Feb-06 2:37
ThatsAlok16-Feb-06 2:37 
QuestionGraphic format Pin
Hamid_RT14-Feb-06 23:28
Hamid_RT14-Feb-06 23:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.