Language:
switch to room list switch to menu My folders
Go to page: First ... 75 76 77 78 [79] 80 81 82 83 ... Last
[#] Mon Jun 20 2011 10:29:01 EDT from IGnatius T Foobar @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

"Mister Jobs does not approve of your application."

[#] Tue Jun 21 2011 23:40:56 EDT from LoanShark @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]


used to be called "proggies". Now they're just "apps".

[#] Wed Jun 22 2011 01:25:55 EDT from Animal @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

pierogies?

[#] Thu Jun 23 2011 18:34:47 EDT from IGnatius T Foobar @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Yes. You can download some butter to go with them.

[#] Mon Jul 04 2011 09:34:29 EDT from dothebart @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

https://github.com/voloko/facebook-circles

implementing parts of the google+ interface on top of facebook..



[#] Mon Jul 04 2011 17:26:22 EDT from Ford II @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

a fun project would be one that just spiders facebook and makes google accounts and one that spiders google+ and makes facebook accounts.
You'll be doing them a service by backing them up to each other.

[#] Tue Jul 05 2011 15:39:19 EDT from Ladyhawke @ Uncensored

Subject: Re:

[Reply] [ReplyQuoted] [Headers] [Print]

*snigger*  Or, found a way to redirect the Circle+ users to Facebook and the Facebook users to Circle+.



[#] Thu Jul 07 2011 10:58:14 EDT from IGnatius T Foobar @ Uncensored

Subject: Re:

[Reply] [ReplyQuoted] [Headers] [Print]

Or, just use Google+ and not Facebook.

[#] Fri Jul 15 2011 12:58:47 EDT from fleeb @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]


Eh... it's stupid for me to keep out of this room, when it's so appropriate for much of what goes on in my head. So, I'm back.

Let's see if I get pissed off in here again. I suspect not.

[#] Fri Jul 15 2011 15:27:13 EDT from Spell Binder @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

C++ sucks!

Sorry, fleeb, couldn't resist. ;)

[#] Fri Jul 15 2011 16:40:47 EDT from fleeb @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]


Bah, that's it, I'm outta here...

(jk)

[#] Mon Jul 18 2011 12:20:21 EDT from IGnatius T Foobar @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Well, since we're discussing C++ could someone please tell me what would be the impact of calling a C++ library from a C program? Additional memory footprint etc.

[#] Mon Jul 18 2011 13:36:45 EDT from fleeb @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]


That's pretty broad.

1. Is it a dynamically linked C++ library, or a static one?
2. Are you calling functions that are C-like functions, or are they full blown C++ object methods with which you're doing funky tricks to access via C? By 'funky', I mean something more bizarre than writing a C++-to-C library.

[#] Mon Jul 18 2011 13:50:57 EDT from IGnatius T Foobar @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Well, I found this library: [ http://kin.klever.net/libopkele/ ] and I would like to use it from within Citadel, which is written in C.

[#] Mon Jul 18 2011 14:38:15 EDT from fleeb @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

[#] Mon Jul 18 2011 14:37:32 EDT from fleeb @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]


Uh, also note that I didn't use the 'extern "c"' keyword... I don't really remember exactly what you're supposed to do to export those symbols as C symbols, but that's what you need. Figure that out for g++, and you'll have it.

[#] Mon Jul 18 2011 14:36:20 EDT from fleeb @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]


I've had to do stuff like this a few times, although it might be a little different for the unix environment than a Windows environment (but the concept should be the same).

As the person out there suggests, you want to write a compatibility library to help you interface with it. It isn't as hard as it sounds.

You'll write it in C++, but you'll export its symbols as C code, so you can access it as normal with a C library.

That's the part where I don't know how it works in g++... but in VC++ you do an 'extern "C"' keyword, somewhat like:

http://msdn.microsoft.com/en-us/library/aa278939(v=vs.60).aspx?ppud=4

An example of how you might export a 'CFile' object in this way is as follows:


void* create_c_file( const char* filename )
{
CFile* my_file = new CFile( filename );
return (void*) my_file;
}

void delete_c_file( void* handle )
{
CFile* my_file = static_cast< CFile* >( handle );
delete my_file;
}

void write_c_file( void* handle )
{
CFile* my_file = static_cast< CFile* >( handle );
my_file->write( "Writing some characters.\r\n" );
}

c
And so on. Note that I left out error checking in the interest of brevity.. just trying to convey the idea. I should have written that last function:

void write_c_file( void* handle, const char* text )
{
CFile* my_file = static_cast< CFile* >( handle );
my_file->write( text, strlen( text ) );
}

(to better convey how you might pass args into the object's function).

It isn't hard, but it is annoying. Still, if you only need a few of the functions, it might work out well for you to just focus on the ones you need.

[#] Mon Jul 18 2011 14:41:51 EDT from fleeb @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]


Oh, I bet that trick does work with g++, because these guys explain it, too:

http://dsc.sun.com/solaris/articles/mixing.html

[#] Mon Jul 18 2011 17:46:40 EDT from IGnatius T Foobar @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Yow. This is one of those situations where I have to weigh the footprint of using someone else's code versus the time-and-debugging footprint of writing my own code.

OpenID 2.0 has some tricky stuff in it, but since it no longer seems to be a moving target, and it's becoming clear that backwards compatibility with OpenID 1.0 is no longer realistic (many OP's and RP's don't even bother supporting it anymore, or refuse to because of security concerns).

Some people would argue, however, that sticking to plain C is an archaic practice.

[#] Tue Jul 19 2011 08:03:15 EDT from fleeb @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]


Eh... operating systems are built off C. How bad is it?

How many functions are you actually looking to use within this library? It might not be as bad as it looks.

Go to page: First ... 75 76 77 78 [79] 80 81 82 83 ... Last