How Do I Create a DLL In Visual Studio 2005

How Do I Create a DLL In Visual Studio 2005

Anonymous
Not applicable
671 Views
12 Replies
Message 1 of 13

How Do I Create a DLL In Visual Studio 2005

Anonymous
Not applicable
Hello, I am trying to create a DLL using Visual Studio 2005 and would be grateful if someone could explain in simple terms the steps involved. From file creation, creating references, registering, through to producing and running the DLL. It could be based on a very simple example such as entering the width of a cube.

I have tried to follow the Inventor API Help but it seems to be based upon an earlier version of the software and as a beginner I am finding it difficult to follow.

I understand that Inventor does not officially support Visual Studio 2005 or .NET 2 but believe Inventor can be tweaked to run in this environment.

I'm sure once I have grasped the principle of setting up the file I can then develop my own code to perform different tasks.

Many thanks.

Chris
0 Likes
672 Views
12 Replies
Replies (12)
Message 2 of 13

Anonymous
Not applicable
In the SDK folder there are a few .net samples available. Unfortunately it is very hard to debug with the express version of Visual Basic 2005. I finally found a way to do it, by editing the .vbproj.user file. After reloading the project, Inventor will start when you hit 'debug' in VB. When you stop debugging, Inventor is ended as well ;-(
This would be OK for your final check before build, but since I am not a full time programmer, for me it's more or less 'trial and error' to get a plugin to work properly.

Therefore I also would like to know a proper way of debugging with Visual Studio 2005 express!!!
0 Likes
Message 3 of 13

Anonymous
Not applicable
If you want some templates to help with AddIn creation, the following is a
link to the posting on the customer-files newsgroup that has an installer
attachment:

Message link: news:<5524619@discussion.autodesk.com>...

This installer will be available in SDK when Inventor 2008 is released.

-Venkatesh Thiyagarajan (Autodesk).

wrote in message news:5523937@discussion.autodesk.com...
In the SDK folder there are a few .net samples available. Unfortunately it
is very hard to debug with the express version of Visual Basic 2005. I
finally found a way to do it, by editing the .vbproj.user file. After
reloading the project, Inventor will start when you hit 'debug' in VB. When
you stop debugging, Inventor is ended as well ;-(
This would be OK for your final check before build, but since I am not a
full time programmer, for me it's more or less 'trial and error' to get a
plugin to work properly.

Therefore I also would like to know a proper way of debugging with Visual
Studio 2005 express!!!
0 Likes
Message 4 of 13

Anonymous
Not applicable
Hello Venkatesh

Would you please send the link again, it doesn't seem to work for me.

Thank you.
0 Likes
Message 5 of 13

Anonymous
Not applicable
Sorry, could you try this link:

news:<5524619@discussion.autodesk.com>...

wrote in message news:5524655@discussion.autodesk.com...

Hello Venkatesh

Would you please send the link again, it doesn't seem to work for me.

Thank you.
0 Likes
Message 6 of 13

Anonymous
Not applicable

Yet another attempt to get the link
right:

 

0 Likes
Message 7 of 13

Anonymous
Not applicable
At the moment I am running the pre-release version of Inventor 2008 and in contrary of the installer for VB6, it only seems to install a template, not the debugging/registering stuff that is installed in VB6. This makes debugging with 2005 express very hard.
0 Likes
Message 8 of 13

Anonymous
Not applicable
Hello Jake
Out of curiosity does the documentation/help in Inventor 2008 step through the process for creating an Add-in? I am using Visual Studio 2005 (not Express). I would be grateful for either the new template (though this doesn't help understand the process) or any documents which take you through the steps from creating a new VB project, through developing the code, registering the DLL with Inventor and running it.
It can't be that difficult. Can it?

Thanks
Chris
0 Likes
Message 9 of 13

Anonymous
Not applicable
Is it hard because you have to modify the .vbproj file to specify the debug
executable for every addin that you create? This seems to be a limitation of
the Visual Studio Express editions.

wrote in message news:5525110@discussion.autodesk.com...
At the moment I am running the pre-release version of Inventor 2008 and in
contrary of the installer for VB6, it only seems to install a template, not
the debugging/registering stuff that is installed in VB6. This makes
debugging with 2005 express very hard.
0 Likes
Message 10 of 13

Anonymous
Not applicable
Unfortunately, most of the help is still based on VB6. The templates are JUST the templates, no other help as in VB6
0 Likes
Message 11 of 13

Anonymous
Not applicable
Hi Venkatesh,
I just wanted to thank you for providing the link to the template installer. I shall install it later today and have a look at what it provides and how it works.

Regards

Chris
0 Likes
Message 12 of 13

Anonymous
Not applicable
I've attached a document that walks you through the steps needed to create
a VB.NET based Inventor-AddIn. Brian Ekins initially authored this for
Visual Studio 2003. I've updated it for Visual Studio 2005.

Sanjay-

wrote in message news:5525154@discussion.autodesk.com...
Hello Jake
Out of curiosity does the documentation/help in Inventor 2008 step through
the process for creating an Add-in? I am using Visual Studio 2005 (not
Express). I would be grateful for either the new template (though this
doesn't help understand the process) or any documents which take you through
the steps from creating a new VB project, through developing the code,
registering the DLL with Inventor and running it.
It can't be that difficult. Can it?

Thanks
Chris
0 Likes
Message 13 of 13

Anonymous
Not applicable
Hello Sanjay
Thank you very much for the document you attached. It is exactly what I was looking for.

I am looking forward to having a go at creating my own Add-In now.

Regards

Chris
0 Likes