How to make a Multi-Profile supporting application with VB 5/6.
By DrNo
This tutorial is for intermediate developers. That is developers that understand the whole basis of programming. Variables, structures, modular-oriented programming, procedures vs functions, etc.
Ok, we are going to make a very simple application that saves data input by the user, on the userīs profile area, if possible.
If we fail to retrieve the current user name, it must be because thereīs no multi-user support on the running system, or because the current user is not profiled. So we will fall back to the Windows default directory.
I understand that some developers donīt like or understand API programming, but in this case they are totally indispensable. And by the way, the two APIs weīll be using are so simple, you might get a clearer idea of how apis are used and how to code your own functions to manage them.
So letīs get on it: To Chapter #1