How about to Create a DynamicWrapperX instance.
(setq DWX (vlax-create-object "DynamicWrapperX"))
if the return value is not nil, then ,you needn't to run RegisterDynWrapX.
copy dynwrapx.dll to your windows\system32\
then run : regsvr32.exe dynwrapx.dll
Register the component in one of these two ways:
regsvr32.exe path-to-the-component\dynwrapx.dll - for all users.
regsvr32.exe /i path-to-the-component\dynwrapx.dll - for the current user.
If dynwrapx.dll is located in the System32, System, Windows directory, the current directory or one of those listed in the PATH environment variable, the path is optional. After registering dynwrapx.dll for the current user, the DynamicWrapperX object will only be available to this user.
Unregister the component as follows:
regsvr32.exe /u path-to-the-component\dynwrapx.dll - for all users.
regsvr32.exe /u /i path-to-the-component\dynwrapx.dll - for the current user.
On Windows 98 you will possibly have to specify the full path to regsvr32.exe (the System folder). Also, registration for the current user makes no sense here because the component won’t work.