Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Go Back   Code Forums > Application and Web Development > Standard C, C++
User Name
Password

Reply
 
LinkBack Thread Tools Display Modes
Old 08-22-2005, 09:02 PM   #1 (permalink)
celerate
Registered User
 
Join Date: Aug 2005
Posts: 8
celerate is on a distinguished road
Shared objects across different programs

I've always wondered how (in terms of code) programs that have some sort of desktop allow programs that were compiled later to access that desktop. In the simplest of terms lets say I have a bitmap buffer of a screen and I want people to be able to compile programs later that would be able to draw themselves to that buffer, how would I do that?

The closest I've ever come to what I'm desrcibing was when I was running a Java program that had two frames that accessed the same static variable, both frames shared that variable, the difference is that now I want to do it with C++ and the code accessing the same variable will be different programs altogether, they will not be compiled together or executed together.

I hope someone can explain this in a fairly simple way, I am also more interested in a portable solution or at the very least something that will work with both GCC and Mingw which are essentially the same compiler.

Keep in mind I'm still quite unexperienced with advanced C++ and if this involves writing shared libraries as I suspect it does you'll be over my head unless you can point me to a good tutorial.

Thanks.
__________________
celerate is offline   Reply With Quote
Old 08-23-2005, 12:46 PM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,681
redhead is on a distinguished road
Make a Shared library (2 urls), using libtools, and have the two programs interact through that.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 08-23-2005, 11:12 PM   #3 (permalink)
celerate
Registered User
 
Join Date: Aug 2005
Posts: 8
celerate is on a distinguished road
Thank you very much, I appreciate the links.

I'm assuming that the same information applies in Windows using MinGW, is that correct?
__________________
celerate is offline   Reply With Quote
Old 08-24-2005, 04:06 AM   #4 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,681
redhead is on a distinguished road
I havn't worked with mingw, but it should provide you with a similar interface as libtool, I think it is the same.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Are there any good Code highlight programs :S ? JeC PHP 19 05-09-2008 02:38 AM
vector of own objects tis99 Standard C, C++ 1 05-25-2005 06:49 AM
Sorting an array of any Comparable objects plague Java 1 03-14-2005 06:24 PM
Abstract: What are objects? Valmont C++ 0 03-11-2003 11:11 AM
Sorting Objects technobard Java 0 02-24-2003 01:25 PM


All times are GMT -8. The time now is 11:50 AM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2006, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
Open Circle