Aha, CommonTater!
Though revealed in a rather condescending manner that is the keyword I needed! Thanks!
Seems I can do this in Java, saves me messing around with windowing toolkits :D
Type: Posts; User: boblettoj99
Aha, CommonTater!
Though revealed in a rather condescending manner that is the keyword I needed! Thanks!
Seems I can do this in Java, saves me messing around with windowing toolkits :D
If I understand you correctly, you mean I should make some full screen application and just duplicate the monitor to the projector?
I'd rather it not print to monitor as well as I'd like to push...
Hi, I recently bought a pico projector and would like to use C to display images (perhaps a slideshow) with it.
What is the best way to go about this? I'm using ubuntu 11.04 and the projector...
Aha, that made a big difference, it seems to actually be sending cos i'm getting a reply!
Hoorayyyyy...now to sort out the segfault in the receive function...fun times :D
It gives me the size of the string length held in pkt->data, should it be something different?
EDIT: I've modified the print out so it gives all the header values, here is some output (ping is the...
typedef struct
{
HEADER header; // the packet header (described above)
char data[MAX_DATA]; // the contents of the packet
} PACKET;
The code is prewritten, my job is merely to fill...
Hi, I have an assignment to do (groan) which requires me to write the client side of a network, in the first part I have to write 3 functions, one which sets up a socket and connects to the server,...
Hmm, is there a way to print to a string? like this?:
fprintf(myChar, "%.8lX", myLong);
that would make the conversion process a lot easier..
OH WAIT SPRINTF :D:D:D
Its meant to be an array of strings, so a char[][] right?
Also i have another problem, under gcc in windows this compiles fine but under gcc in linux i get an error: undefined reference to 'ltoa'
...
Hmm, i've tried char s[10] instead but that gives me an incompatible types error at compile. Should i be doing calloc or malloc or something?
Ah, getting rid of the "s = " part at the beginning of...
Hi, i am trying to convert a long integer to a string in hex format, here is what i have at the moment:
Parameters *executeInstruction(Parameters *params, char memory[8192][9], long opr, long...
Alright, well then how do i get a function to work with 24bits instead of 32?
Hi, as part of my program i have to read in 6 digit (24bit) hex values as strings and then convert them. This works fine with the strtol function until i hit values where the most significant digit...
So then how do i get the pointer in the main function to keep what is assigned in the other one? Perhaps what i wrote there was a bad example, what i do in my program is loop through the array,...
Ok, whenever i do any C i always seem to get stuck at this point:
I want to return a char array from a function to be used in main, like so:
char *editString(char *someString, char...
Hahahaha massive fail, good spot though!
thats got everything working great!
thankyouuuu
I declared denominator at the top but there was no change, when compiled with warnings i get one saying:
27 : warning: int format, double arg (arg 5)
27 : warning: too few arguments for format...
Hi, whilst trying to pass 2 floats into a function outside of main the values printed are different from what they are in main. Integers also passed into the function remain fine....
int...
Ha magical!
ta very much
I am trying to divide 1 by an integer n (which in this case is 12), and then store it in a double. When i print it out it always comes out as 0!
Here is the code:
double a = 1/n ;...
Thank you, calloc made it all better! Now i have a slightly more annoying problem:
I have started making a real hash function now, instead of just returning 0 it now adds up each character in the...
Hi, i am having trouble understanding the implementation of a hash table. I've been on quite a few links off google and still can't get my head round it!
My project needs to store all the words from...
Ah, turns out the capitalising of the letters has worked but not the elimination of special characters, great!
Just a problem with that function then, thanks for the help guys!
This is what i tried at first, having the function return nothing and just calling format(word), but it doesn't have any effect for some reason, the next line of the program inserts 'word' into a...
The error falls on the next line, (word = format(word))
The fscanf(f, "%s", &word) has been working fine the whole time!
thanks for the reply!