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 Wanet Telecoms Ltd 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. Ablecken

    reading a reg file

    Brent. You need to read it as binary. Public Function ReadFromText(sFileName As String) As String On Error Resume Next Dim fNum As Integer fNum = FreeFile Open sFileName For Binary As #fNum ReadFromText = String(LOF(fNum), 0) Get #fNum, , ReadFromText Close #fNum...
  2. Ablecken

    Outlook Attachments

    nevermind guys, figured it out.
  3. Ablecken

    Outlook Attachments

    I have some code that will scan the inbox of my outlook for a certain phrase in the subject. What i havent been able to figure out is how to save attachments to a specific location. Below is my current code. I need it to read a specific line off the subject and to read the body. Both of...
  4. Ablecken

    reading a reg file

    Nevermind, I figured it out. I had to read it in as binary. Thanx anyway
  5. Ablecken

    reading a reg file

    If I have a .reg file I cant seem to read it. Just using the simple code : Public Function ReadFromText(sFileName As String) As String 'On Error Resume Next Dim fNum As Integer fNum = FreeFile Open sFileName For Input As #fNum ReadFromText = Input$(LOF(fNum), #fNum)...
  6. Ablecken

    Expanding TreeView

    I was wondering if there was a way to expand a tree without double clicking on it. right now you can click on it and it will select that entry but you have to double click it to expand it. is there any way to make it expand on the single click? Thanx guys
  7. Ablecken

    Service Status

    Oops, spoke too soon. the getlasterror, is that an api?
  8. Ablecken

    Service Status

    paul, That generic read worked, thanx a lot.
  9. Ablecken

    Service Status

    Hey all, I am using this to check the status of a service: ServiceStatus = &quot;&quot; hSManager = OpenSCManager(computername, SERVICES_ACTIVE_DATABASE, SC_MANAGER_ALL_ACCESS) If hSManager <> 0 Then hService = OpenService(hSManager, ServiceName, SERVICE_ALL_ACCESS)...
  10. Ablecken

    DLL file without a Reference

    no, actually i have two simple projects. one is the main project and the other is the dll. i want to use the dll if it is there and not care (no errors) if it isnt. I need to send on command or string to the dll. I have it right now sending a string 'howdy' and the dll is trying to grab it...
  11. Ablecken

    DLL file without a Reference

    i already had the myobject dimmed as an object. what it took was the quotes :). I then had to register the dll. then i got a 429 error active x cannot create object. I actually do tech support for a living and i get this a lot during my day so i added my username to the default com permissions...
  12. Ablecken

    DLL file without a Reference

    thanx cclint i do know the path Set MyObject = CreateObject(MyDLL.MyClass) MyObject.MyMessage (&quot;Howdy&quot;) this gives me variable not defined for MyDLL. I know that i am doing something very simple wrong or that i am missing an important step. Thanx for all the help.
  13. Ablecken

    DLL file without a Reference

    good idea. How exactly would i do that if the path is different then the executable? I guess that is kinda a newbie question so bear with me.
  14. Ablecken

    DLL file without a Reference

    how would you use a dll file without a reference. you could call it a plugin or whatever. I have a dll file that is not needed for everything and if they want it they download the dll file to the same directory. I dont really know how to do it during runtime. any ideas?
  15. Ablecken

    Popup menu

    i have a prog that sits in the system tray and has a popup menu. i have everything working but if i popup the menu and dont want to click on anything it just stays there until i click on something. how do i make it disapear when i move the mouse off the menu?
  16. Ablecken

    String manipulation

    Awsome thanx soo much adoozer
  17. Ablecken

    String manipulation

    Hey guys, I think that I am having some sort of brain fart. I have a string of numbers say 'ACD'. The string can be anywhere from '' to 'ABCDEFGHIJ'. But for right now it is just 'ACD'. I need to parse through the string letter by letter and find the first missing letter. In this case B...
  18. Ablecken

    Windows Services

    thanx guys, strongm, im sorry but i dont know what wmi is. could you explain?
  19. Ablecken

    Windows Services

    I have been fooling around with services for a while and all I need now is to be able to check on the status of a service. I can restart, start, stop and pause services but for the life of me I cant figure out how to get the status. Any ideas? Am I missing something simple?
  20. Ablecken

    How to print contents of text box or rich text box or....

    Search for 'Printing with the Printer Object' in the msdn library or online at the mircorsoft site. Able

Part and Inventory Search

Back
Top