Hi All,
I was wondering if someone could help me with this problem I have. Here is the scenario:
I have developed a Java application which allows users to upload two file types .xls and .csv. The files contain raw data. In a .csv a comma delimeter is used to determine the end of one field and...
Why might I get the following error, and how can it be resolved?
ERROR_BEGIN
Warning: mysql_pconnect() [function.mysql-pconnect]: Can't connect to MySQL server on 'localhost' (10061) in c:\Inetpub\wwwroot\custlite\html\merged\Connections\connEclipse.php on line 9
Can't connect to MySQL server...
Hi fellow Java coders,
I've got a stand-alone Java app with a input box, and a submit button. I want the submit button to connect to a database (sqlserver) and call a stored procedure passing the value in the input box as a param to it. I have the host ip, db name and store proc name.
Can...
Hi fellow programmers,
I'm using Sergei Kuchins otlv4.h open source library to interface my C++ code with Oracle 9i database. If anyone is familiar with the library or even if anyone knows how to do it another way without the library, can you please help me with giving a SYS_REFCURSOR to an...
Can someone please tell me in what type of a situation a variable of the following type might be used?
typedef void (* pFoo)( void * lpsomeData );
Are there any other ways of achieving the same results? If so, what are the pros and cons of the alternatives?
Thanks in advance.
01001011 01000111
Hi fellow coders,
I have a problem that I need assistance with.
Consider this class in intset.h:
class CIntSet
{
public:
CIntSet();
~CIntSet();
CIntSet* intersect( CIntSet* is1, CIntSet* is2 );
CIntSet* unionofSets( CIntSet* is1, CIntSet* is2 );
private:
int* intSet;
}...
Fellow coders,
We know that a complex number is a number that is represented as so:
ComplexNumber = realPart + imaginaryPart * squareroot of -1
How can we represent this number in a computer program?
Because the squareroot of -1 is an error.
Kunal.
Hi fellow coders,
I am having a bit of trouble simulating a deal between two card game players. What my program is supposed to do is deal 5 cards to each player one card at a time. I'm storing this dealt card string in a temp var called 'cardDealt' before copying it into a 5 element 'char*...
I written a recursive method which returns true if the string passed to it is a palindrome, I cannot seem to see why the logic isnt working. I've thrown in a bunch of 'cout' statement to see where its going wrong but I cannot see why!
char buffer[] = "radar";
bool isPalindrome( char b[], int...
OK fellow coders, I can't work this one out. I'm passing a const value to a function and using that const value to declare the array size inside a function.
void foo( int a[], const int columns );
int main()
{
const int SIZE = 10;
int array[SIZE] = {0};
foo( array, SIZE );
return 0;
}...
Hi group,
I have seen this word 'foo' crop up in programming examples many a times. Can someone/anyone please tell me what 'foo' means. I know its a dummy name for example purposes but it must have some sort of a significant meaning as the whole programming world seems to be using it!!!
Thanks
K.
Hi fellow coders,
I am trying to get a split screen effect in OpenGL but only the 2nd viewport displays, from the code, can anyone tell me what I'm doing wrong?
#include <GL/glut.h>
#include <stdlib.h>
void init(void)
{
glClearColor(0.0, 0.0, 0.0, 0.0);
}
void display(void)
{...
Hi group,
A bit of a sidetrack question but hopefully someone can help anyway. When I try to play a dvd with WinDVD I get the error: "create overlay failed", does anyone please know why this happens??
Thanks.
Hi Assemblers,
I was wondering, in high-level languages we initialize local
variable sometimes like this (java):
public static func(int param1, int param2)
{
String errMsg = "An error occurred";
// other code
}
now I know in Assembly we have the local directive, but how do...
Hi Assemblers,
After implementing a non recursive method a find the factorial of a given positive integer n, I thought it worked fine until I reached number 13. Up to 12! (12 factorial) I get all the correct answers, but 13! gives me 1932053504 when its supposed to be 6227020800. What I've...
Hi group,
I am pretty amazed at the fact that there isn't a forum exclusive for the OpenGL API programmers. As this is a C++ forum and OGL is mainly used with C++, are there people here that are OGL programmers??
K.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.