foom wrote:
I like it that you create wrappers around the dll calls but please name the functions the same as the wrapped functions. Having to remember 2 different names for 1 function is a PITA. It would be much better if you could read on msdn and start typing the functions names out as they apear on msdn rather than have to look what the wrapper function is called in your lib.
I understand. But I'm doubtful how many users would take the trouble to go to MSDN before using the helper functions.
They may ask: what kind of name are these, MultiByteToWideChar and WideCharToMultiByte? They really don't mean much. So, I chose Ansi2Unicode etc, even if they are ambiguous: Ansi, it's not only ANSI, it can be OEM, or even MAC codepages or UTF-7 or UTF-8. And UTF-16 is not the only Unicode encoding. However, it would convey the actual purpose of the function more clearly. (As you probably guessed already, 2 for To, 4 for From here) BTW, I was tempted to use Ansi2Wide etc, but I decided not.
Regarding CreateObject and GetObject, as a matter of fact, I hesitated a little between them and CoCreateObject (:not CoCreateInstance) and CoGetObject. The reason was that I was afraid of that it could lead name collisions when AHK implements COM fully. AHK would want to use the names after VB like I did. But, after surveying the naming conventions of AHK, I concluded it's rather unlikely. It's likely to use the names like ObjCreate and ObjGet as AutoIt did. So, I took the names from VBS.
Anyway, if you have better names, please let me know.