I'm new in C ++, I'm using VC ++ 2008, I have a guitar Designed to form a form in Form1.h
For code stability, I am trying to isolate between Gui and processing classes, so I have created a new class in process.h, in which The image box contains the code to change the image, the problem is that I can not use it PhotoBox object Cess.h because it is located in a different class.
Note: The classname of the form is within format 1 names, the classname process of the process is IMEAGE
I set a setter function called setImage () to class in Form 1 Have tried the ImageBox path of obj, but I can not make the object of Form 1 to call that function because form1 orbit is not known for note I have tried to include "form1h" but it Still unknown.
Is there a solution to my problem?
Thank you for your help.
Create a class process image and this class Create a member variable of an object form 1 class. Create a set image public method in the ProcessImage class. Whenever the image is updated in the picture box, call this method.
Comments
Post a Comment