Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: homer_3

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    590

    Re: Converting an object to a byte stream

    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 =...
  2. Replies
    2
    Views
    590

    Converting an object to a byte stream

    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...
  3. Replies
    1
    Views
    2,352

    Re: How to add a canvas control?

    I figured this out. I found out I can override a Panel's paint method and now I can paint exactly how I want.
  4. Replies
    1
    Views
    2,352

    How to add a canvas control?

    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...
  5. Replies
    16
    Views
    1,314

    Re: Trouble making a class w/ generics

    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...
  6. Replies
    16
    Views
    1,314

    Re: Trouble making a class w/ generics

    If you have a better suggestion for a way to map 2 keys to 1 value, I'm open to it.
  7. Replies
    16
    Views
    1,314

    Re: Trouble making a class w/ generics

    -.- 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...
  8. Replies
    16
    Views
    1,314

    Trouble making a class w/ generics

    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

    ...
  9. Replies
    4
    Views
    410

    Re: Casting a char[x][x] to char *[]?

    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.
  10. Replies
    4
    Views
    410

    Casting a char[x][x] to char *[]?

    So I have some code like


    static void myfunc(char * val[])
    {
    if(*(val[0]) == 'x')
    //do stuff
    }

    char foo[30][30];
  11. Thread: Raw socket Q

    by homer_3
    Replies
    0
    Views
    754

    Raw socket Q

    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.
  12. Replies
    0
    Views
    571

    Need help understanding mmap

    *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?
  13. Replies
    5
    Views
    906

    Multiply defined symbols?

    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...
  14. Replies
    5
    Views
    627

    Re: Code can't find previously defined class

    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...
  15. Replies
    5
    Views
    627

    Re: Code can't find previously defined class

    No, sorry. That was just a typo. I fixed it in the edit.
  16. Replies
    5
    Views
    627

    Code can't find previously defined class

    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;
  17. Replies
    2
    Views
    707

    const can't be assigned to non const?

    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...
  18. Replies
    0
    Views
    586

    prelinker trouble

    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...
Results 1 to 18 of 18


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center