Forum Discussion
Altera_Forum
Honored Contributor
15 years agoQuestion on modifying the JAM Staple byte code player
I am trying to call peek/poke type of function written in C++ from Altera provided JAM Staple Byte Code player C code. In doing so I need to start including stdafx.h and other header files in the C code. But Visual studio errors out in doing so. I need to call these customized get/put functions written in C++ from C code. I am not sure what is the best way to handle this.
Your suggestions will be very helpful to me.2 Replies
- Altera_Forum
Honored Contributor
Not much info to go on, but if you don't already know, try looking up info on:
extern "C" { // code and/or header info here } - Altera_Forum
Honored Contributor
I have patched the jamstub.c file to use InpOut32.DLL.
Posted source & binaries on alterawiki.com