APIs, .dlls, and controls
Posted on 1999-07-23
I am new to the VB language (and OO languages in general), but not new to programming. I am trying to figure out how to access .dlls, controls, and the such. I have seen (using the APIViewer and similar) some of the items I am looking for, but I do not understand how I reference them. For example, I included the declare statement for the GetComputerName function, then tried to use it - but received the FormName when I referenced the string parameter. This is only one example. I am trying to find out how to declare (how, where, etc) so I can put them in programs, but I also need to know how to reference them to get the results. For this portion, I kind of need a "crash course" in the structure of these statements (declaring, calling, getting the results) - I guess. I understand they are mostly returning Long values, but I think the string parameters (etc.) are the true results - unlike most functions I have ever defined where the function name is the result.
I am also curious about controls. My understanding is that there are several control files out there that might help (but I thought .ocx files held controls and someone mentioned a scrrun.dll file which was suppose to contain some controls to help) - can someone clear this up a little. I would like to know what controls are in a control file (so I know whether I need it or not), how to import it and then I assume I just reference its properties (which should be visible once the control is on the form). Again, in the case of controls, I need a "how to" on controls not included on the standard toolbar (those I have figured out how to use) - I am trying to get to the REST of the available controls so I can use them.
I know this is kind of a long questions, but it should be fairly easy. If you have an answer, please feel free to be detailed. I have a lot of programming experience ranging from COBOL to True Basic to Pascal (and several languages in between). I understand the programming concepts, but not the VB (yet). I have looked in a few books to try and gain information about APIs and controls, but they really don't help (useful book suggestions would be appreciated also). I would really appreciate if someone can give me a definitive "how to" for APIs and controls. If you have some time to give a detailed answer, please help out. Thanks.