Jim,
Run REGSVR32 /? to see it's list of options. Unregister the old server to get rid of it then delete the .dll.
After that the server name ProjectName.OLEPublicClassName, the dll name will be ProjectName.DLL. Where ProjectName and OLEPublicClassName are whatever you happened to name them.
You have the correct syntax for instantiating the COM server you created in the DLL. Note you are
NOT creating a DLL that has functions and an API like the Win32 API calls you can make via DECLARE DLL command.
>I am changing the name because the first dll I made was just a test. Now we want to use dlls in one of our projects. The line that is giving me the error is as follows: oObj = createobject("dlltest.aeclass"). Creating an object is the only way I have found dlls to work. Is this not correct?