I must admit I'm beginning to run out of ideas, are you sure that mysql has networking enabled?
As you said that the command line tool connected, try:
mysql.exe --user=root --password= --host=localhost --protocol=TCP abelcorver_com
This will try to connect via network sockets and if it fails when it worked without the host and protocol parameters then I'd have to be pretty sure that mysql isn't listening on the network.
If so then you're going to have to alter your my.cnf to allow networking (check the mysql manual and make sure that skip-networking isn't included) or connect some other way. See if mysql is listening on a named pipe with:
mysql.exe --user=root --password= --protocol=PIPE abelcorver_com
If that works then either (and I have no experience with this as I use Unix) use "." instead of "localhost" in the call to mysql_real_connect or call mysql_options with MYSQL_OPT_NAMED_PIPE before the connect call.
If none of this works then I'm afraid I'm out of ideas. Does XAMPP have a forum? They would probably have a better idea about the default configuration of mysql that is used.