Thread: Forceful type cast not working

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,246
    So simply I can create an object which can hold the method address and then give it to callback as the second argument. Sure.

    If FLTK could accept class member addresses there would be no need for this workarounds. Is that possible? callback() should have had an overload to get a thiscall void*() right?

    [edit]
    I miss read your explanation about pointers to objects. I thought you said only member functions cant be dereferenced.

    [edit2]
    Actually thiscall void*(void*) or something...
    Last edited by siavoshkc; 04-03-2015 at 05:39 AM.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Type cast clarification
    By Satya in forum C Programming
    Replies: 6
    Last Post: 05-08-2014, 02:55 PM
  2. Is the type cast necessary when using malloc in C?
    By envec83 in forum C Programming
    Replies: 12
    Last Post: 06-16-2011, 09:52 AM
  3. type cast problem
    By tikelele in forum C Programming
    Replies: 10
    Last Post: 10-31-2007, 09:23 PM
  4. type cast to a pointer....
    By rc7j in forum C++ Programming
    Replies: 2
    Last Post: 02-05-2002, 04:13 PM
  5. type cast or conversion?
    By steviecrawf in forum C Programming
    Replies: 2
    Last Post: 11-21-2001, 03:08 PM