From: Jim G. <jam...@gm...> - 2008-04-04 13:37:54
|
Hi Mark Also, in general, you can register for COM interoperability without the source code by using the "regasm.exe" from the commandline. See, for example, http://edndoc.esri.com/arcobjects/9.2/NET/9826f81b-278c-49cc-a912-ab8d86f5e91e.htm You will have to do > regasm.exe <path to>/NPlot.dll /codebase ( the /codebase option is necessary unless the NPlot.dll is installed in the GAC). If you want to generate a type library for NPlot.dll that you can use from unmanaged C++, you can add the /tlb: option > regasm.exe NPlot.dll /tlb:NPlot.tlb This will also register the NPlot.dll for COM interop. If you want only a tlb, you will need to download the tlbexp.exe tool that's available in one of the SDKs (but not by default in the .NET 2.0 Framework). See http://www.microsoft.com/downloads/details.aspx?FamilyID=fe6f2099-b7b4-4f47-a244-c96d69c35dec&displaylang=en Regards, Jim On 3-Apr-08, at 6:49 AM, Jamie McQuay wrote: > > Hi Mark, > > Getting NPlot to work as an interop dll is not to hard to do. > > You will have to get the source version of NPlot from the trunk folder > from svn. > > 1. Open the source in visual studio > 2. Open the properties page > 3. Click on the Build tab > 4. Check the "Register for COM interop" checkbox > 5. recompile > > Now you have a dll that you can access from unmanaged C++ using the > COM interface. > > Jamie > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Jamie McQuay > Scimatic Software Inc. > +1.416.529.9069 > www.scimatic.com > > We build software for scientists. > > > > > On 3-Apr-08, at 6:43 AM, SourceForge.net wrote: > >> Feature Requests item #1933181, was opened at 2008-04-03 03:43 >> Message generated for change (Tracker Item Submitted) made by Item >> Submitter >> You can respond by visiting: >> https://sourceforge.net/tracker/?func=detail&atid=821571&aid=1933181&group_id=161868 >> >> Please note that this message will contain a full copy of the >> comment thread, >> including the initial issue submission, for this request, >> not just the latest update. >> Category: None >> Group: None >> Status: Open >> Priority: 5 >> Private: No >> Submitted By: Nobody/Anonymous (nobody) >> Assigned to: Nobody/Anonymous (nobody) >> Summary: Unmanaged code wrapper >> >> Initial Comment: >> Great tool! Using it in a program to review historical futures >> market trading. >> >> Does anyone have a wrapper to facilitate using NPlot in unmanaged C+ >> +? I'd love to use NPlot in our real time system, but I'm not very >> comfortable with interop yet. >> >> Alternatively, if someone who is comfortable with interop could >> sketch it out for me, I could try to write some chunks. >> >> Thanks. >> >> - Mark >> >> ---------------------------------------------------------------------- >> >> You can respond by visiting: >> https://sourceforge.net/tracker/?func=detail&atid=821571&aid=1933181&group_id=161868 >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> _______________________________________________ >> Nplot-devel mailing list >> Npl...@li... >> https://lists.sourceforge.net/lists/listinfo/nplot-devel > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Nplot-devel mailing list > Npl...@li... > https://lists.sourceforge.net/lists/listinfo/nplot-devel |