i think i've fixed it, i'll repost with correct question in a sec
here was my question:
Ok, i'm on VS2005 and i've got this line of code:
sprintf_s(RandomData,client[cNum].Name,":%s!u@h PART #Lob_18_0\r\n\0");
that i'm trying to get into this buffer:
char * RandomData;
RandomData= new char[RandomVar];
Here is the error:
int sprintf_s(char *,size_t,const char *,...)' : cannot convert parameter 2 from 'char *' to 'size_t'
I'm thinking its because it has to do with the dynamic memory allocation.
Thanks for any help!!!
And right after posting I relized my mistake:
The solution, as blindingly easy as it may seem, just for any other newbies in the same spot:
sprintf_s(RandomData,client[cNum].nicklen,":%s!u@h PART #Lob_18_0\r\n\0",client[cNum].Name);
*sigh*... I need sleep.