Thread: error invalid conversion from ‘const void*’ to ‘void*’

  1. #1
    Registered User
    Join Date
    Mar 2012
    Posts
    4

    error invalid conversion from ‘const void*’ to ‘void*’

    Ok, I know this question has been asked numerous times but I still don't understand it...-invalid-conversion-jpg
    -rfcf-accuracy-measure-test-jpg

    Please help, I'm pretty much a noob in C++ programming.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    It might be better if you posted the code and relevant error messages within [code][/code] bbcode tags.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    My guess is that your first argument to ibwrt is not what it wants. You didn't show us the definition of that though.


    Quzah.
    Hope is the first step on the road to disappointment.

  4. #4
    Registered User TheBigH's Avatar
    Join Date
    May 2010
    Location
    Melbourne, Australia
    Posts
    426
    First, are you coding in C or C++?

    Second, if you're a noob you did not write that code. Where did you get it?
    Code:
    while(!asleep) {
       sheep++;
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Invalid conversion from void to char
    By askinne2 in forum C Programming
    Replies: 6
    Last Post: 10-02-2010, 10:41 AM
  2. Replies: 12
    Last Post: 03-27-2009, 02:36 PM
  3. invalid conversion from void* to int*
    By Tropod in forum C++ Programming
    Replies: 10
    Last Post: 01-04-2009, 04:15 PM
  4. Invalid conversion from 'void*' to 'BYTE' help
    By bikr692002 in forum C++ Programming
    Replies: 9
    Last Post: 02-22-2006, 11:27 AM
  5. Invalid conversion from 'const void*' to 'void*' error
    By prawntoast in forum C Programming
    Replies: 3
    Last Post: 05-01-2005, 10:30 AM