Photon development

I am using PhAB to build a GUI for my C++ application. I have read through
the documentation but I still can’t seem to get it to hook my program into
the GUI I built. My code is quite simple, a few class.h files and one cpp
with main() in it. Can anyone explain to me how I can get it to accept my
code and allow me to access my functions and classes?

Thanks,

DAvin

Davin <davinsufer@hotmail.com> wrote:

I am using PhAB to build a GUI for my C++ application. I have read through
the documentation but I still can’t seem to get it to hook my program into
the GUI I built. My code is quite simple, a few class.h files and one cpp
with main() in it. Can anyone explain to me how I can get it to accept my
code and allow me to access my functions and classes?

Thanks,

DAvin

What does “I still can’t seem to get it to hook my program into the GUI
I built” mean? What specific errors are you encountering?

Is the GUI written in C? If so, are you using Linkage Directives:
extern “C” in your C++ application?

Sorry if I was vague,
I have added my include files into the indHfiles file and my source code
files into indSfiles. However when I try to make, I get a parse error in
init.c. One of my class names is mentioned in the error message as
undeclared. In my include files (.h) I have placed my class declarations
and member function definitions, my cpp file simply includes all the
necessary libraries as well my class files and in main() all I do is
instantiate one of my classes.

I hope I have filled in some of the blanks. Maybe someone could just run
through the general procedure of combining application code with the
generated code. I have read the documentation but I may be missing
something exceedingly obvious…

~~
Davin