Search:
Type: Posts; User: homer_3
Search:
Search took 0.02 seconds.
-
October 28th, 2013, 08:47 PM
I'm not sure how I'd use that, but after a little more searching, I found another approach using Marshal.
public static byte[] ObjectToByteArray(System.Object obj)
{
int size =...
-
October 27th, 2013, 08:23 PM
I'm trying to convert an object to a byte stream and I'm using the code below to do it
public static byte[] ObjectToByteArray(System.Object obj)
{
MemoryStream fs = new...
-
October 23rd, 2011, 03:52 PM
I figured this out. I found out I can override a Panel's paint method and now I can paint exactly how I want.
-
October 23rd, 2011, 01:33 PM
I want to add a drawable area to my form for drawing some PNGs and I'd like the origin of of my drawable area to be the corner of a control. I'm assuming a canvas will give me this. I know there is a...
-
October 21st, 2011, 11:24 PM
Not sure about C#, but in Java I know that wouldn't work for me. I would need to hold onto the instance of the object I used as a key. The fact that a different tuple instance contained the same...
-
October 21st, 2011, 05:27 PM
If you have a better suggestion for a way to map 2 keys to 1 value, I'm open to it.
-
October 19th, 2011, 09:52 PM
-.- the error turned out to be that my F keys stopped working. I use the keyboard shortcuts to compile/run. I hit recompile and the error persisted b/c I didn't actually hit recompile since the key...
-
October 19th, 2011, 08:44 PM
I'm trying to make a wrapper class around Dictionary and I'm having trouble getting this to compile. I'm getting the error "Type parameter declaration must be an identifier not a type" when I try
...
-
April 22nd, 2011, 02:22 PM
No, I can't change myfunc's params. Too much other code uses it. I was hoping to avoid malloc, but it looks like I'll have to do char *foo[30] and then malloc each index.
-
April 22nd, 2011, 01:14 PM
So I have some code like
static void myfunc(char * val[])
{
if(*(val[0]) == 'x')
//do stuff
}
char foo[30][30];
-
March 25th, 2010, 03:25 PM
When creating a raw socket to send to a TCP socket, is the raw socket supposed to expect an ack back? I was under the impression that it didn't. But I'm getting behavior like it is.
-
August 27th, 2009, 10:50 AM
*edit: Since this topic's still here an I'm having a new problem with mmap I'll just reuse this topic.
What is the purpose of using MAP_FIXED with mmap? Is there an advantage to using it?
-
July 29th, 2009, 10:34 AM
I have some static library libA.a that has symbols x & y defined. I'm building another static library libB.a which seems to also be defining symbols x & y. So when I try to build executable C while...
-
July 22nd, 2009, 10:19 AM
I've given up on this error. I was getting it while compiling ACE. From everything I see, it should be compiling fine. But the error was coming from an examples folder, so it's not core code. So I...
-
July 21st, 2009, 03:00 PM
No, sorry. That was just a typo. I fixed it in the edit.
-
July 21st, 2009, 02:24 PM
I have a file that has several class delcarations in it. It looks like
class A : public B
{
public:
virtual int call (void)
{
stuff;
return -1;
-
July 21st, 2009, 11:00 AM
I'm compiling ACE and get this error value of type "const SSL_METHOD *" can't be assigned to entity of type "SSL_METHOD *". Why won't C/C++ allow assigning a const value to a non const? Any ways to...
-
July 14th, 2009, 08:01 AM
I'm trying to build a program and was able to get all the object files compiled successfully. Now when I try to link them I get a very unhelpful error from the prelinker. After it links 30 or so...
|
Click Here to Expand Forum to Full Width
|