Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 06 Oct 2003
Offline Last Active May 28 2013 10:26 PM

Posts I've Made

In Topic: Databases

09 February 2010 - 08:02 AM

Original post by Atrix256
You can connect directly to your database from c++ yep.

The reason you wouldn't want to is security.

You're assuming he's running the C++ code on the client. It's much more likely that he's looking to write some server software in C++ that interfaces with an RDBMS (e.g., MySQL) running on the same machine. In this case, proxying requests over a network is completely unnecessary and will introduce complexity and additional overhead.

Original post by JamesCobras
Also where can i get a noob level and upwards tutorial.

FYI I want to use the database in C++.

If you're going to use MySQL (which is fine), I'd personally use the C bindings (only because they appear to be more officially maintained, and the C++ ones are probably just a wrapper around the C API anyway). Here is the documentation for the MySQL C API. If you google around, you can find tutorials of various qualities.

The other commonly used RDBMS is PostgreSQL which also has a C API that you can use.

In Topic: [Linux] How can I let users link to my .so without being able to read/copy it?

22 December 2009 - 07:07 AM

If I set permitions on the .so to --x (no read, no write, just execute), will that work?

No. The dynamic linker needs to have read access to the shared objects -- execute permissions are superfluous.

What you're trying to do is silly and pointless.

Or is there a better solution?

Just give him read access to the library. Have him sign an NDA (or other appropriate legalese) if you're concerned about IP theft.

In Topic: I have INSIGNIA NS-27LCD.I am having problem turning the tv on.?

01 July 2009 - 04:26 AM

You signed up to ask that?

In Topic: South american ladies

20 May 2009 - 11:24 AM


In Topic: a+b+c=n.. how can I work out a,b,c?

10 September 2008 - 07:30 AM

a = 0
b = 0
c = n

EDIT: ffh, one second too slow [sad]