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...
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...
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)...
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
Hey all, I am using this to check the status of a service:
ServiceStatus = ""
hSManager = OpenSCManager(computername, SERVICES_ACTIVE_DATABASE, SC_MANAGER_ALL_ACCESS)
If hSManager <> 0 Then
hService = OpenService(hSManager, ServiceName, SERVICE_ALL_ACCESS)...
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...
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...
thanx cclint i do know the path
Set MyObject = CreateObject(MyDLL.MyClass)
MyObject.MyMessage ("Howdy")
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.
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?
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?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.