A few factors come into play in making this decision. You may optionally configure your component to be 64-bit. Once you press Finish, your initial project is created. The other Application types can also be used, but if you aren't sure why you'd want them, stick with EXE. The proxy/stub is for convenience, eliminating an extra DLL that would otherwise have to be distributed with your final solution. On the next screen, set the application type to Executable (EXE) and check Allow merging of proxy/stub code. Launch VS and select File / New / Project… / Templates / Visual C++ / ATL / ATL Project.Įnter a name for your project - my project is named Rainfall. Start by creating a Visual Studio project. The methods of this class accept a one-dimensional array as input and return a one-dimensional array as a result. Once completed, the component is used from Analytica by first instantiating the object in an Analytica variable using.Īnd then calling its methods from other within the Definition of other variables. Your own component name will differ, so make the substitution with your own component name where appropriate. In this introduction, I create a component named Rainfall.Counter. The steps may vary slightly in different Visual Studio releases. The instructions here use Visual Studio 2013 Update 5. You may want to do this when you have an algorithm that you want to make really fast, have pre-existing and complex C++ code that you want to call, or want to create a wrapper to integrate with some other existing component, service or program. This provides a mechanism to call your own C++ code from Analytica. This article leads you through the steps to create your own COM component in VC++ that can be called from your Analytica model. 6 Creating a method with Array parameter and result.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |