Sample Code 1 – VC++ step by step
Code Example Environment : MS Visual Studio 2010. VC++ MFC Dialog based application.
Project Name : neuroNicleAPI_CodeSample1
Step1 : Create VC++ Project.
Menu Click File -> New -> Project, and then Select the Visual C++ -> MFC Application and type the project name as “neuroNicleAPI_CodeSample1” as following figure.
Select Dialog based and then click the next button.
for simplicity, don’t select any style and then click the next button.
also, don’t select any advanced options and then click the next button.
Click the finish button.
The following figure shows the automatically generated codes. Now you are ready to write your own code.
Step2. Prepare the neuroNicle API files.
download neuroNicleAPI.zip ( click here to download ) and then unzip. You can see the files as follows.
You should copy three filess (neuroNicleAPI.dll, neuroNicleAPI_SelfUpdate.exe and Kis,Applife.Udate.Controller.dll) to the folder which has a sample project’s execution file i.e. neuroNicleAPI_CodeSample1.exe. Below figure shows the copied API files in the sample project’s release folder.
You should copy two files (neuroNicleAPI.lib and neuroNicleAPI_DEF.h) to sample project’s source folder. (figure as follows).
Step3. Write codes to use DLL.
In our sample project’s, to use neuroNicle API you should add the some code on the header file neuroNicleAPI_CodeSample1Dlg.h.
Include neuroNicleAPI_DEF.h and implicit linking the neuroNicleAPI.lib. below codes shows the added codes.
Comments are closed