Hi
Back here again, 6 years later, as I am revising some of my API related stuff.
I was not quite sure what or how to word the question back then. Probably something with more emphasis on something like
VBA Windows API or
VBA Excel Windows API is better: I am finding with hindsight that is better for searching the internet for what I was after.
That Dan Appleman book seemed to be something of a bible for a lot of people, so I forced myself to have it on the bed time reading list for a few months. I spent many hours / days on it, but sadly got next to nothing out of it, :( - Perhaps partly due to my failings, but also I expect it might be one of those fantastic reference books for once you have some knowledge and experience with API stuff, but it doesn’t really help much in early learning in the area of VBA Windows API. I could not navigate that book easily to find any useful info either. But if I find it, I will take a fresh look in the book. (I think I recall it finding its way into doing something structurally useful, either propping something up, or as a well-fitting Spacer somewhere)
In the meantime a few things like YouTube tutorials have popped up. I have gleaned a bit of info from them reecently, but I did not find any good enough that I would recommend them further for a list of learning materials for Excel or VBA.
ActiveVB ( .de )
I did stumble on something just recently, ( a free software to download and install ), that I thought could be a good addition to this Thread. I missed it at the time. It is German, and quite old. It pretty well gets the
sort of list I was looking for. I say
sort of as I am thinking it may not be complete because: it is 20 years old
***; does not seem to have been maintained or updated much; and I think it has mostly for those,
"user__.dll" things, which typically on your computer are in some
user__ Folder, where most of them API things are, but I think a few are in some other obscure places?
(
*** I think its old VB6 stuff or similar, so might be one of the things Hans mentioned )
Perhaps because it is so old, I found it initially a bit quirky in downloading and installing, especially on my newer machines. After a bit of playing around, I ended up with something that seemed usually to do the job across all my computers…….
To get this software, there is a couple of files to download and run to get the thing installed on your computer: (I think only the second file is important):
(_1) If you download and install from
this , you get some small help file, with technical detail relevant to the thing, but that means nothing to me. )
_2) If you download and install from
this , and run
* it you should get something
looking like this
ApiViewer2004 Main menu.JPG
(
* If you can’t find it after install, then look somewhere like this,
C:\Program Files (x86)\ApiViewer 2004
C:\Program Files\ApiViewer 2004
Then double click on something like ApiViewer2004.exe )
If you get the thing finally running, then
_The
main menu should come up
_ Use the
top left drop down explorer thing to get a file , such as, for example, the
user32 dll stuff ( Note: I think its getting the info from a data bank that comes with the install - I don't think it grabs them from anything on your computer, but I am not 100% sure, perhaps it does during the install??? Maybe I will know for sure as time goes on and I am using it in anger on different computers)
_
Click on something , then you get the line you need typically at the top of a code module, and you can copy that
*!!.
Click on something, to get the stuff.JPG
_ when you are selecting it, like in that last step, if you hit key
F2 , a
window intended to give some info about the thing comes up. So far I have only seen that empty. Shame. My guess is that it was intended to update to fill those in, but perhaps for some reason the whole thing has been forgotten and abandoned since about 2008. There is in that Help window an extra tab, and after selecting it you can
add your own notes . I have not seen any specific way to save those, but so far, it seems they stay there, that is to say, they reappear if you close and restart the software. I am not sure if I would rely on that for anything other than a few temporary notes, ….
_.___________________-
…… I am thinking that as a VBA or VBA Excel person, if you want to get into these API things then the only option is probably just to collect working examples, then you might get some instinct for guessing how to tweak them and/ or cobble them together to do other things. My guess is that the
VBA API Gurus do that and they don’t have any real knowledge to be able to develop coding. I might be wrong, and I definitely don’t want to insult them, - they will all know infinitely more API and VBA API stuff then I ever will. I am just suggesting perhaps that you would need to be a computer expert across the whole Windows area to have real knowledge about these things, so as to develop a coding with them from scratch, or easily modify an existing coding in any way other than trial and error, ( and if you were a full computer expert across the whole Windows area, then
that book probably would be great for you. )
Alan
*!!P.S. The
Declareations you get from that old software might need the
PtrSafe thing added between the words
Declare and
Function.
It might be betetr so as to keep backward compatibility, to be taken care of with something like this at the top of your code module, instead of the single
Declareation line
Code: Select all
#If VBA7 Then ' The next line turns red for Excel versions under 2010, - nothing to worry about
Declare PtrSafe Function ……………………………..
#Else
Declare Function …………………………
#End If
You do not have the required permissions to view the files attached to this post.