07-26-2018 08:09 AM
Greetings ... I tell you that I am new to the CVI environment and I am trying to add a dll library that I did in C++ to be able to call a function inside the library that executes windows commands to record the bootloader in an ATMEGA328P. I have included the dll library in my project, but it does not work for me and it gives me an error. Someone who can help me with this problem please, thanks in advance (I leave attached an image of the error I get and the dll library project I did in Visual Studio 2015).
07-27-2018 02:13 AM
Hello Cesar,
The error you are seeing is because burn_bootloader() is not declared. Just #include "BurnBoardSetup.h" in your c file
07-27-2018 08:45 AM
Thanks for answering ConstantinP ... I commented that I added "BurnBoardSetup.h" but I still got the same error. I found a way to compile my project and it is disabling the option "Require function prototypes" that is the Options>Build Options section, although I do not know if it is the best solution.
07-27-2018 09:26 AM
Cesar,
What do you mean by adding "BurnBoardSetup.h"?
Do you have at the beginning of CVISrcFile.c the following line:
#include "BurnBoardSetup.h"
07-27-2018 02:05 PM
Yes, I told you to add it to the start of my CVISrcFile.c file, and I still had the same error.
08-01-2018 12:59 PM
Are you sure that the function that you want to use, is inside of BurnBoardSetup.h ?
08-03-2018 11:17 AM - edited 08-03-2018 11:18 AM
Yes, the functions that I need are described in BurnBoardSetup.h, you can check it by looking at the project that I have attached at the beginning. As I mentioned before, I managed to compile my project, but now the problem I'm having is that when calling any of the BurnBoardSetup.h functions that execute the cmd, this cmd window opens and quickly closes, and it's something that It should not happen, since it should show the entire ATMEGA328P recording process as shown in the following images in the case of recording the bootloader.