Setting up alike managed addin in 32bit and 64bit Autodesk Inventor

Setting up alike managed addin in 32bit and 64bit Autodesk Inventor

  • Has got to elope computer aˆ“ no construction essential
  • Minimal requirement (.NET structure is fine)
  • It must assist physical files and folders aˆ“ no databases or some this type of required. Essentially, I’d like to work they and have now it immediately accumulate every little thing on drive, enabling us to categorize the things without transferring it around
  • Metadata should be kept with real files/folders. If I move a folder by hand, i’d like they to hold all kinds it belonged to
  • Quick looking by-name, information, category
  • Immediately revise installations as an example, it will connect to Winamp webpages and install modern construction if required
  • Automatically install applications
  • Start visitors for images, PDF, HTML, an such like.
  • Reorganize data and files

An application that fulfill the basic requisite could well be exceptionally useful to me, but i’d eventually wish one that fulfills these additional specifications besides. Im honestly planning on starting this application as an open supply task, but I am presently bogged down along with other problem. Still, i believe i may start they soon.

The rule is actually all C#, created as aˆ?Any CPUaˆ?, as a result it will need to have no problems operating unmodified with both 64 and 32 little creators

I’ve an addin for AutoDesk creator 2009, written in C# and a setup job to go along with it. Being register the addin with creator, I needed to join up the assembly with aˆ?/codebaseaˆ? switch, and so I generated a custom installer action:

The exact subscription signal run of the subscription service modifies some registry tactics under HKEY_CLASSES_ROOT . This worked okay on or windows 7, however when run using my Vista 64, the setup completed effectively, but did not sign up the addin with Inventor. Why turned evident while I discovered that my Inventor installation normally 64 bit aˆ“ meaning it appears to be for the secrets making use of the 64bit view of the registry, whilst installer activity operates making use of 32bit see.

Really the only problem is how exactly to run the installer as 64 bit. I also wished to enable the exact same MSI to be used on all programs, very compiling numerous variations wasn’t a choice. And searching the net, I managed to get the effect which would not resolve the problem anyhow aˆ“ at the least perhaps not without other tools.

The clear answer I came up with is simpler: as opposed to making use of RegistrationServices object, i could manually execute the RegAsm.exe tool to register the construction. On my Vista 64, there’s two models for this device:

The web directories might not be equivalent on other devices, obviously. Thankfully, .NET supplies the RuntimeEnvironment.GetRuntimeDirectory() static approach which comes back the folder regarding the typical words runtime. Back at my maker, they return C:\Windows\Microsoft.NET\Framework\v2.0.50727\ in the installer activity. We can make use of this, combined with RuntimeEnvironment.GetSystemVersion() to create the routes to 32bit and 64bit models on the tool:

Passing C++/CLI delegate to indigenous laws

Recently I must program a C++/CLI system with a local DLL written in C. This will be primarily simple, although C DLL https://datingranking.net/local-hookup/detroit/ could boost an interior event and provided an effective way to have the software notified within this occasion. In order to be wise, the application has to enter a callback function that will be invoked by the DLL if the show is brought up. The enrollment work try proclaimed like this:

Using an ordinary function for your callback would-be smooth, but i needed to make use of a .NET delegate in order that I could change the native celebration into a .NET occasion. This example additionally actually is sustained by .NET. All you have to manage will be avoid the delegate from becoming moved or compiled by rubbish enthusiast.

mustafa zorbey

17.02.2012 tarihinde İstanbul Fatih te dünyaya geldim. Eyüpsultan Halit Derviş İbrahim ilköğretim okulu 4/D sınıfında okuyorum… Deneyimlerimi ve öğrendiklerimi sizinle paylaşmak için bu siteyi açtım..

Bir cevap yazın