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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. ramass

    Delete a monovalued attribute with adsi

    I try to delete a monovalued attribute with adsi and VBS. Unfortunaly, I have only found the PutEx method but it only works wth multivalued attribute. Do you have any ideas ? Thanks in advance
  2. ramass

    Trap the event "user account locked out"

    Thanks for the answer I have thought about this solution but the company has more than 5000 employees !!... and the event must be trapped 5 minutes maximum after the user account locks out
  3. ramass

    Trap the event "user account locked out"

    Hi, I would like to execute an action each time a user account is locked out in Active Directory. I think that it is possible by trapping an event (perhaps a "userAccountLockedOutEvent") but I cannot find the right event. After browsing the web during hours, two questions...
  4. ramass

    Lock an account with VB6: Authentication and security

    OK, it works if no authentication is needed. But my problem is to authenticate against the PDC. If I try your code, I have an automation error when the getObject function is executed. Matthieu
  5. ramass

    Lock an account with VB6: Authentication and security

    I like to lock an account in a VB Script. I use the getObject functions of VB6 to obtain the account object from a ADSI directory and then, I use the IsAccountLocked property. Here is my code: Set usr = GetObject(&quot;LDAP://<URL>&quot;) usr.IsAccountLocked = TRUE usr.SetInfo Set usr =...
  6. ramass

    LDAP, ADSI and Openldap: only standard schema

    Yes !! Finaly, I have found a solution Dim propList As IADsPropertyList Dim propEntry As IADsPropertyEntry Dim propVal As IADsPropertyValue Dim attributValue As String Set propList = GetObject(<adsPath>) propList.GetInfo Set propEntry =...
  7. ramass

    Return the value of a listbox: pbm

    Hello, I have made a user form with several listbox and I try to access to the text selected in each listbox. First, I create the following array : TAB_ouiNon(0) = &quot;oui&quot; TAB_ouiNon(1) = &quot;non&quot; TAB_Format(0) = &quot;A&quot...
  8. ramass

    LDAP, ADSI and Openldap: only standard schema

    Hello, Is it possible to use ADSI component with openLdap and read non standard attributes ? In fact, the rootDSE provides only the standard schema. Can we force it to provide all the schemas ? Thank you in advance Matthieu A french developper
  9. ramass

    Convert a ASCII String in UTF8

    Hello, Is there a function in VB which convert a ASCII String in a UTF8 String ? Thanks for reply Matthieu French developper
  10. ramass

    Test the Existence of Name of Cells

    In fact, I try to know if there is a description of the cells in an Excel worksheet. This name is define via the Item in the 'Name' Item of the 'Edit' Menu
  11. ramass

    Test the Existence of Name of Cells

    Hello, In Visual Basic, is it possible to know if a cells has a name ? There is the object &quot;Name&quot; for a range but an error occurs when we try to access to it when it does not exist. thanks for replying Matthieu French developper
  12. ramass

    Choose an Application for JPEG

    Internet Explorer ignore this manipulation and open the image with itself... ???
  13. ramass

    Choose an Application for JPEG

    I can't see the Item &quot;Open With&quot;. It can be seen only if I click on a JPG File in the explorer. IE doesn't care the application I Choose even if the option &quot;Open This application next time&quot; is choosen.
  14. ramass

    Choose an Application for JPEG

    Hello Can IE open an other application than itself when we choose to open a JPEG file ? I know that Netscape Navigator can do it. Thanks for replying
  15. ramass

    DLL &amp; ADO &amp; C++: unhandled exception

    There are no queries opened in this connection. The program just opens and closes it, that's all. Moreover, no exception are detected with try/catch or with the control of the HRESULT code returned by Close ; I use the code: hr = CN_seat->close; if ( FAILED(hr) ){ return 2; } and...
  16. ramass

    DLL &amp; ADO &amp; C++: unhandled exception

    Sorry, my first message wasn't enough clear. I explain me: There are TWO programs - The first program is a DLL. For the first point, I agree with you: I should put ::CoInitialize at the right place. - The second program uses the first one. Its pseudo code is or is equivalent to...
  17. ramass

    DLL &amp; ADO &amp; C++: unhandled exception

    Hello ! I want to use ADO in a shared dynamic library. So, I create some methods to open and close a connection. Here is the code of these methods: _RecordsetPtr RS_seat; _ConnectionPtr CN_seat; _CommandPtr CM_seat; CCustomRs champBD; IADORecordBinding...
  18. ramass

    Using ADO in a DLL

    OK. I have just forgotten the line [code]::CoInitialize(NULL)[\code] Thanks Matthieu Turpault
  19. ramass

    Using ADO in a DLL

    I try to use a ADO component and export it in a DLL library. When I run it with an other program with the debugger, the only object returned 'CreateInstance' is a NULL pointer one. Could you help me please ? here below, the function : MYDCLSPEC short _stdcall connectDB() { HRESULT hr =...

Part and Inventory Search

Back
Top