Click here to Skip to main content
15,881,801 members
Home / Discussions / C#
   

C#

 
QuestionMove a Webbrowser to a new window? Pin
Bog19-Feb-03 7:53
Bog19-Feb-03 7:53 
AnswerRe: Move a Webbrowser to a new window? Pin
Stephane Rodriguez.19-Feb-03 11:07
Stephane Rodriguez.19-Feb-03 11:07 
GeneralRe: Move a Webbrowser to a new window? Pin
Bog20-Feb-03 6:55
Bog20-Feb-03 6:55 
GeneralSearching a C# String Pin
vlusardi19-Feb-03 7:29
vlusardi19-Feb-03 7:29 
GeneralRe: Searching a C# String Pin
Chris Austin19-Feb-03 8:19
Chris Austin19-Feb-03 8:19 
GeneralBefore Delete File Event Pin
nissiml19-Feb-03 7:11
nissiml19-Feb-03 7:11 
GeneralRe: Before Delete File Event Pin
Chris Austin20-Feb-03 3:51
Chris Austin20-Feb-03 3:51 
GeneralMaking GetObject work for LDAP Pin
Atul Kale19-Feb-03 7:00
Atul Kale19-Feb-03 7:00 


Hi guys

I am wkg on a C# Component which retrieves information from the ADS on Win2k Domain. For some reason, instead of using the System.DirectoryServices namespace, I have to go for the ADS Library (a COM DLL).




To write the code in VB.NET I can go ahead and use the GetObject Global method of VB. as following...


<br />
Dim objLDAP as ActiveDS.IAdsOpenDSObject<br />
objLDAP = GetObject("LDAP:") 


' Here it uses the Global GetObject method,

' that specifies the First param as path and...

' NO ProgID as it is Optional Param.



In C#, I cannot use the same global function, hence the alternative, Activator.GetObject can be used. But it does not retrieve the reference at all.

I even tried, Specifically giving the Type param to the Method as...




<br />
IAdsOpenDSObject objLDAP;<br />
objLDAP = Activator.GetObject(typeof(ActiveDS.IAdsOpenDSObject), "LDAP:");



This ends up in giving error message saying that,

A Proper link to the Service may not have been established correctly. How can I make this work, as I must have all my Components in C# only. Porting this part in VB.NEt only for this reason would be infeasible.



Please help me out in this.




Atul Kale
Sr. Software Engineer.
XcelVision Technologies Ltd.
GeneralRe: Making GetObject work for LDAP Pin
Richard Deeming20-Feb-03 0:03
mveRichard Deeming20-Feb-03 0:03 
GeneralRe: Making GetObject work for LDAP Pin
Atul Kale20-Feb-03 20:23
Atul Kale20-Feb-03 20:23 
GeneralDisk Quotas C# Pin
daaaaave19-Feb-03 6:32
daaaaave19-Feb-03 6:32 
GeneralCrystal Reports newcomer and Visual Studio Pin
Braulio Dez19-Feb-03 6:07
Braulio Dez19-Feb-03 6:07 
QuestionHow can I save GDI drawings on a form to jpg or gif Files Pin
mosessaur19-Feb-03 5:35
mosessaur19-Feb-03 5:35 
AnswerRe: How can I save GDI drawings on a form to jpg or gif Files Pin
Aboelkhair20-Feb-03 12:45
Aboelkhair20-Feb-03 12:45 
GeneralHelp Please: ComboBox Control in WinForm Datagrid Control Pin
DionChen19-Feb-03 5:08
DionChen19-Feb-03 5:08 
Generalc# and win CE Pin
Roger Alsing19-Feb-03 2:55
Roger Alsing19-Feb-03 2:55 
GeneralRe: c# and win CE Pin
Stephane Rodriguez.19-Feb-03 3:10
Stephane Rodriguez.19-Feb-03 3:10 
GeneralRe: c# and win CE Pin
Roger Alsing19-Feb-03 23:09
Roger Alsing19-Feb-03 23:09 
GeneralRe: c# and win CE Pin
Stephane Rodriguez.19-Feb-03 23:18
Stephane Rodriguez.19-Feb-03 23:18 
GeneralRe: c# and win CE Pin
sunnytyra7-Oct-09 17:52
sunnytyra7-Oct-09 17:52 
GeneralRe: c# and win CE Pin
TigerNinja_20-Feb-03 4:57
TigerNinja_20-Feb-03 4:57 
GeneralRe: c# and win CE Pin
Furty20-Feb-03 17:45
Furty20-Feb-03 17:45 
GeneralC# Call VC DLL Pin
aoyee19-Feb-03 1:31
aoyee19-Feb-03 1:31 
GeneralRe: C# Call VC DLL Pin
Stephane Rodriguez.19-Feb-03 3:00
Stephane Rodriguez.19-Feb-03 3:00 
GeneralRe: C# Call VC DLL Pin
Anonymous19-Feb-03 11:41
Anonymous19-Feb-03 11:41 

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.