| | |
linking to external files
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: May 2006
Posts: 45
Reputation:
Solved Threads: 0
Hello,
First of all, I am new to c++, but have experience in PHP. I am currently working on a little educational program for myself and a group of friends. I use linux all the time, but my friends tend to use windows. i would like to add a graphical end to the program and I am looking at using WxWidgets as of right now since it can be functional in both linux and windows.
Should I just throw my whole program into one binary, or should I compile the backend and frontend separately? From my understanding it would be better to do the latter, and it would also be some experience that I would really like to have.
If I do decide to separate the logic from the presentation, how does one go about linking the two together? The graphical end would need to update often, and the program itself will also be very busy maintaining a large group of data, and performing operations on it continuously. I do not think it would be as simple as calling the program through the frontend one time, passing it initial parameters, and then updating the screen with the return values, because the backend will not stop once called. It will need to keep running until the entire operation is finished, and the graphical end would need to update constantly throughout the operation.
When you have a media player that is based on xine, how do the frontends manage this connection? Is this the type of relationship I am looking for?
Thanks for any help.
First of all, I am new to c++, but have experience in PHP. I am currently working on a little educational program for myself and a group of friends. I use linux all the time, but my friends tend to use windows. i would like to add a graphical end to the program and I am looking at using WxWidgets as of right now since it can be functional in both linux and windows.
Should I just throw my whole program into one binary, or should I compile the backend and frontend separately? From my understanding it would be better to do the latter, and it would also be some experience that I would really like to have.
If I do decide to separate the logic from the presentation, how does one go about linking the two together? The graphical end would need to update often, and the program itself will also be very busy maintaining a large group of data, and performing operations on it continuously. I do not think it would be as simple as calling the program through the frontend one time, passing it initial parameters, and then updating the screen with the return values, because the backend will not stop once called. It will need to keep running until the entire operation is finished, and the graphical end would need to update constantly throughout the operation.
When you have a media player that is based on xine, how do the frontends manage this connection? Is this the type of relationship I am looking for?
Thanks for any help.
•
•
Join Date: May 2006
Posts: 45
Reputation:
Solved Threads: 0
Ok, I believe what I was asking about was multithreading, and since the first post, I have discovered a lot about it. I am going to attempt to answer my own question, so please correct me if I am wrong.
In my makefile, I will want my main program to be compiled into a library. Then, I will need to compile a top level binary that will call the library in and set it up as its own thread.
I do not know many more details than this. Right now I am looking into how to make the multiple threads communicate. If my answer is wrong, flawed, or if there is a better method, please help me out. Thanks.
In my makefile, I will want my main program to be compiled into a library. Then, I will need to compile a top level binary that will call the library in and set it up as its own thread.
I do not know many more details than this. Right now I am looking into how to make the multiple threads communicate. If my answer is wrong, flawed, or if there is a better method, please help me out. Thanks.
![]() |
Similar Threads
- Calling external files (C++)
- Can't open any xml file (PHP)
- Problems with linking OBJ files (C)
- Linking files for Compilation in C++ Data Structures (C++)
- Linking Error In C (C)
- Linking "park" ERROR (C)
Other Threads in the C++ Forum
- Previous Thread: I need a linking confirmation
- Next Thread: can you help me plz
Views: 639 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for C++
6 add api array arrays assignment beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion convert count data database delete desktop developer directshow dll encryption error file forms fstream function functions game generator getline givemetehcodez graph homeworkhelper iamthwee ifstream input int integer java lazy lib linux loop looping loops map math matrix memory multidimensional newbie news node number output parameter pointer problem program programming project proxy python random read recursion recursive reference return sort string strings struct studio system template templates text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets





