Solidworks API problems with VC++ (Sample)

Hello. I have a problem about SilidWork API with VC++.

I already have read some issues in this website to solve my problem. But, it is not possible to know what is the problem to connect with SolidWork by the API.

(I attached my project file.)

I did five steps to connect with SolidWorks by the VC++ API like below procedures.

Please let me know what is the problem. (I attached a project file)

My environment is Win7(64bit) / Visual Studio 2010 (not express) /SolidWorks x64 Edition

Step.1: To build the generated project, I put three files to the folder including .sln.

= sldworks.tlb / swconst.tlb/ swpublished.tlb

But I did not handle any other settings of the project.

Step.2: I made a ".dll"file using the given template.

As a result of this step. I could get a dll file (SwAddinVF.dll) successfully.

= Result: Success!.

Step.3: I registered the .dll to the registry in the administrator account.

-> Type : regsvr32 SwAddinVF.dll /codebase

= Result: Success!.

Step.4: I registered the key to the registry like below;

->Type:

      [HKEY_LOCAL_MACHINE\\SOFTWARE\\SolidWorks\\AddIns\\{E7CEE35C-E504-4AD3-824A-5702D4D61A3B}] // My API KEY in SwAddinVF.rgs :

     @=dword:00000001

     "Description"="SolidWorksAddin"

     "Title"="SwAddinVF"

Step.5: I ran the SolidWorks2011 and open the Add-in Dialog.

= Result: Success to the add-in list my add in to the Dialog.

But, my add-in's file location is wrong. It indicates the Autotrace's dll. "~\\SolidWorks\\sldautotraceu.dll".

Actually, it has to indicate the my dll "SwAddinVF.dll" in my folder location. (I did not put my dll to the "~SolidWorks\\"

Please let me know what is the problem. And the Solution or Referecne Comments.

It will help to the other users including me.

sebastianminsuk@gmail.com

Thank you So Much.

SolidworksApi macros