Stefano Mtangoo 455 Senior Poster

I know many will start with ODBC, but slow down ;)
I have searched for ODBC and all I find is UnixODBC. Is this the same as ODBC?
Also how stable it is? I will be happy to know some apps/companies behind it!
I need support for MySQL, PostGreSQL, DB2, Oracle backends.
Thanks and sorry for being little funny!

Stefano Mtangoo 455 Senior Poster

@evstevemd - the OP is working with .NET so an unmanaged library like that would require marshaling between the unmanaged and managed layers

Nope! He have found .NET library but was asking if it can work with C++. Actually, I understand that he is asking for C++ library

Stefano Mtangoo 455 Senior Poster
Stefano Mtangoo 455 Senior Poster

You are welcome. If satisfied, mark it solved!

Stefano Mtangoo 455 Senior Poster

hey guys, i need to pass 'this' as the template function parameter..
any help will be appreciated.

Where is the function?

Stefano Mtangoo 455 Senior Poster

Mark thread solved

Stefano Mtangoo 455 Senior Poster

thank u for the reply :)
can u suggest how do i go about designing the skins as well as finding the audio output codes,m still at a complete loss as to designing and coding... :(

Skinning is not for faint hearted. If you use wxWidgets, UpCase (from wxForum) have made wxSkin. As for me I would suggest coding using C++ and wxWidgets toolkit. Reasons are straight forward: it is my favorite toolkit :)
Design phase you can use paper and pen or use UML softwares like ArgoUML or CodeDesigner. the latter generates C++ codes though not sure about the former

Stefano Mtangoo 455 Senior Poster

In Audio you need to create:
Data Access Layer which will open and load file. Then you will need Audio Manager class to detect audio file type and call a right library to play the stream. Each library have its ability, here are few:
1. libmad - plays mp3
2. libflac - plays flac
3. libvorbis - plays ogg/vorbis
et al.
I don't know much about video, may be another person will answer

Stefano Mtangoo 455 Senior Poster

Good question and I'm interested to see answers

Stefano Mtangoo 455 Senior Poster

Ultimate++ seems just like wxWidgets, they are confusingly object-oriented.

So you hate OOP? You are in trouble then! Only toolkit that AFAIK is not OOPed is GTK+.

Why is wxWidgets so confusing to you? Lazy to learn classes and pointers?

Stefano Mtangoo 455 Senior Poster

i want to make a OS but i didn know how i can boot a c++ code!

seems like you want to get Bill and Shuttleworthy off the deal.
Do you mean it or just for little funny?

Stefano Mtangoo 455 Senior Poster

the basic source is provided in the link. If you find something you don't understand, post here or there at wxForum

Stefano Mtangoo 455 Senior Poster

If you are going to use wxWidgets, forget about that and see the link here

Stefano Mtangoo 455 Senior Poster

You have three good choices:
1. Netbeans (I use and recommend)
2. IntelliJ Idea community (I used and I recommend)
3. Eclipse (I used it and I recommend)
So any of these though for multilanguage (esp. PHP) use NB

Stefano Mtangoo 455 Senior Poster

EDIT: I would like to do this without a SSH client because I am going to install ubuntu-desktop on the server and my current SSH client doesn't send mouse input.

Putty+Ximing will do it (presumably your server has a GUI).
Just enable X11 forwarding in putty and once logged in server, just start the GUI (eg. startkde for KDE)

Stefano Mtangoo 455 Senior Poster

I have no comment as I have not yet used unity.
I'm still on Lucid

Stefano Mtangoo 455 Senior Poster

or wxExecute which is XPlatform if you opt to use wxWidgets

Stefano Mtangoo 455 Senior Poster

I know of the second link but the first one is way better!!!

Thanks.

Glad I helped :)

Stefano Mtangoo 455 Senior Poster

best example I have ever found as C++ general solution is here and another not so good example for beginner IMHO is located here

Akatosh commented: Great links +1
Stefano Mtangoo 455 Senior Poster

added public to a constructor and it worked.

Stefano Mtangoo 455 Senior Poster

wait a minute,
isn't line 25 supposed to be as below?

if (!$sql) {
  // query failed
  die(mysql_error());
}
pritaeas commented: Missed my own typo. +6
Stefano Mtangoo 455 Senior Poster

Hi,
I have decided to learn C# and since I have good knowledge of C++, I hope it would be easy.
I have faced an error I dont understand. It says Polygon' does not contain a constructor that takes '1' arguments (CS1729) AFAICS, all is well and constructor does take one argument. So C# maverick, help me on this as I'm confused.
Thanks

using System;

class Polygon{
	string polygonName;
	Polygon(string pName){
		polygonName = pName;	
	}	

	public string getName(){
		return polygonName;	
	}	

}

class MainClass{
	public static void Main(){
		Polygon pg = new Polygon("Iam a Triangle");	
		Console.WriteLine(pg.getName());
	}
}
Stefano Mtangoo 455 Senior Poster

what is your current code? Try to add or die(mysql_error()) in each mysql function so that you can spot where the problem is

Stefano Mtangoo 455 Senior Poster

narrow your explanations to target the problem.
I have not yet understood what you want. Any error? Compiles?

Stefano Mtangoo 455 Senior Poster

I hope you meant $sql in the line below

if (!sql) {
Stefano Mtangoo 455 Senior Poster

why not just use Email client like thunderbird? It will save you a lot of pain.
Writting such complex project isn't easy.

Stefano Mtangoo 455 Senior Poster

Yes they can play together! IMHO just choose any of them and go. I would say, C# came after C++ and borrows a lot from Java and C/C++. So learn any of them first (I would suggest C++) and then make them play together.

But I'm curious why would you want to learn both. adding to toolbox? funny?

Stefano Mtangoo 455 Senior Poster

Not really sure why you posted that?

Sorry I misunderstood your post :)

Stefano Mtangoo 455 Senior Poster

Ok, in all your queries and connect (MySQL functions) add or die(mysql_error()); so that it gives you error at that point and terminates. That is, if the line was

mysql_query("SELECT * FROM dummy_table");

then change it to

mysql_query("SELECT * FROM dummy_table")or die(mysql_error());

then post the error you get (full error) and the line number it complains

Stefano Mtangoo 455 Senior Poster

Check wxSQLite3

Stefano Mtangoo 455 Senior Poster

Is that your code or you copied somewhere?

Stefano Mtangoo 455 Senior Poster

New to C++ and you start with complex stuffs like that?
Are you kidding? Then you have to run before crawling or you are not new!
Anyway, to use that you must have a knowledge of C# and C++ at least to get it work.
Why don't you start with simple projects other than complex like that?
Try ZPlay library and do some good music player :)

Stefano Mtangoo 455 Senior Poster

Since your posts show you are starting C++, just get your head on this tutorial and many of your questions will get answered

Stefano Mtangoo 455 Senior Poster

Html files won't run php, unless specifically told to do so, e.g. from .htaccess files:

RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html

May be you are right but I have never used any .htaccess and have used HTML embedded with php. Does WAMP server come with htaccess set?
I have never took trouble and things are ok!

Stefano Mtangoo 455 Senior Poster

Check thunderbird or if you are on linux there is also evolution

Stefano Mtangoo 455 Senior Poster

You have extra ) in your statement. Rectify it to one below

if (!$check){ 
    header('Location: http://www.eguard.comli.com/theme2/login.php'); 
}
Stefano Mtangoo 455 Senior Poster

Thanks guys!
theoretically my problem is solved. I will post if I hit a wall.
Again thanks a lot!

Stefano Mtangoo 455 Senior Poster

Sending to a box and taking it makes difference. Taking it from a form you use $_POST/$_GET and Sending it just take it from $_SESSION superglobal array and echo it

<input type="text" value=<?php echo $_SESSION['MyVariable']?> />
Stefano Mtangoo 455 Senior Poster

I didn't said that I use SQLite3, however I will search to see if those solutions are available with SQLite

Stefano Mtangoo 455 Senior Poster

you seem to be new to PHP yet your code is full of advanced stuffs. How can a newbie write such loong and advanced code?

Stefano Mtangoo 455 Senior Poster

I disagree that putting html affects the php code. Just start with php tags (<?php .......?>). That being said you need to have a session variable that will be passed to the other page in the same session. Read about sessions in PHP manual.

Stefano Mtangoo 455 Senior Poster

Now, heading might be a bit misleading. If that is the case forgive me as I cannot think of best heading!

i have database of books, that is e-books. Each table have page number and contents (to simulate true book). The problem is, I have to search for a word in the book and return page number and contents. I know LIKE '%mykeyword%' helps to some extent but it returns much unneeded stuffs. Eg if the keyword is Goa it will bring goalkeeper, goat et al. I want to be able to get pages which contains exactly word Goa and ignore others. Which query am I supposed to use. I have run out of Ideas so, I need your help

Stefano Mtangoo 455 Senior Poster

If only you read readme sticky
It have the problem. Link is here

Stefano Mtangoo 455 Senior Poster

Thats the beauty of programming. Flavors flavors flavor.

What ever turns you on ;)

There you are :)

Stefano Mtangoo 455 Senior Poster

I can't manage my big projects without IDE. With Java/PHP i'm proud user of Netbeans though I used and loved IJ idea. It only missed PHP and I'm yet to find good PHP IDE, so I went back to NB. With C++, I struggled whether C::B or CodeLite and ended with CL and I don't regret. I use alot of libraries so, using text is impractical plus RADs and such stuffs. I shyed away from perl from my early days of learning programming and fell in love with Python....So practically i'm justified ;)

Stefano Mtangoo 455 Senior Poster

You get bored with IDE's taking long to load.

;)

Talking of Java?

Stefano Mtangoo 455 Senior Poster

Well but i prefer nano or vim.

and manually make and compile .
;)

With big project (hundreds of files), aren't you going to faint?

Stefano Mtangoo 455 Senior Poster

Check with this docs, Peter!

Stefano Mtangoo 455 Senior Poster

Try anjuta ide.

nice c++ ide. compiles on MS and *nix

Code::Block/CodeLite are superior to Anjuta.

Stefano Mtangoo 455 Senior Poster

sudo apt-get install build-essentials