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

Search:

Type: Posts; User: S_M_A

Search: Search took 0.04 seconds.

  1. Replies
    9
    Views
    18,539

    Re: memcpy error: Access violation reading

    memcpy is declared like
    void* memcpy(void* dst, void* src, size_t size); which is to say it accepts any pointer for the params so why should it be any problem to use a pointer to the correct type?...
  2. Replies
    9
    Views
    18,539

    Re: memcpy error: Access violation reading

    Casts are pure evil when used (without a deep understanding) just to solve a compiler error and I think this shows that you are in deep water at the moment
    I would advise you to get rid of all casts...
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured