دسته‌بندی نشده

Setting up exactly the same managed addin in 32bit and 64bit Autodesk creator

Setting up exactly the same managed addin in 32bit and 64bit Autodesk creator

  • Has got to elope disk aˆ“ no installation essential
  • Little criteria (.NET platform is fine)
  • It must utilize real data and files aˆ“ no database or some these required. Basically, let me work they and get they immediately gather every little thing on drive, enabling me to categorize the material without mobile they around
  • Metadata ought to be stored with real files/folders. Basically go a folder by hand, i’d like they to hold all of the groups they belonged to
  • Quick looking by name, details, category
  • Instantly revise installations including, it must connect with Winamp site and down load modern setting up if necessary
  • Automatically install programs
  • Start people for pictures, PDF, HTML, etc.
  • Reorganize data and folders

An application that fulfills the essential demands might possibly be incredibly beneficial to me, but i’d ultimately desire one that satisfies these added specifications also. I’m really planning on beginning this application as an unbarred supply venture, but I am currently overloaded together with other dilemmas. Nonetheless, i do believe I might begin they soon.

The signal is actually all C#, put together as aˆ?Any CPUaˆ?, as a result it must have no troubles running unmodified with both 64 and 32 little bit Inventors

You will find an addin for AutoDesk Inventor 2009, written hookup bars near me Geelong in C# and a setup venture to go with it. To be able to sign up the addin with Inventor, I had to develop to register the construction with aˆ?/codebaseaˆ? turn, so I produced a custom installer actions:

The particular registration rule operate from the enrollment services modifies some registry secrets under HKEY_CLASSES_ROOT . This worked fine on Windows XP, nevertheless when run-on my personal Vista 64, the set-up finished effectively, but neglected to register the addin with creator. The reason why became obvious when I discovered that my creator installation can also be 64 little aˆ“ which means it seems your keys making use of the 64bit view of the registry, although the installer motion runs utilizing the 32bit view.

The only issue is how to manage the installer as 64 bit. In addition wished to permit the exact same MSI to be utilized on all programs, therefore compiling several forms had not been an option. And looking around the net, i obtained the impact so it will never resolve the problem anyway aˆ“ at least maybe not without some other methods.

The solution I developed is very simple: as opposed to making use of RegistrationServices object, I’m able to by hand execute the RegAsm.exe software to register the installation. To my Vista 64, there are 2 variations of your instrument:

The sites might not be exactly the same on more devices, needless to say. However, .NET supplies the RuntimeEnvironment.GetRuntimeDirectory() static approach which return the folder associated with common words runtime. To my machine, they return C:\Windows\Microsoft.NET\Framework\v2.0.50727\ inside installer motion. We could utilize this, coupled with RuntimeEnvironment.GetSystemVersion() to create the pathways to 32bit and 64bit models of the means:

Moving C++/CLI delegate to native signal

Not long ago I was required to program a C++/CLI construction with an indigenous DLL written in C. That is mostly simple, nevertheless C DLL could increase an interior event and given a way to have the program notified for this event. In order to be aware, the program must enroll a callback work which will be invoked because of the DLL if the event is elevated. The subscription features is actually proclaimed such as this:

Using a typical features for any callback might be simple, but i desired to make use of a .NET delegate to ensure I could convert the local show into a .NET event. This situation in addition turns out to be supported by .NET. Everything you need to look after will be prevent the delegate from being relocated or amassed by garbage enthusiast.

دیدگاهتان را بنویسید