Thread: Porting app from c to c++

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    14

    Angry Porting app from c to c++

    Hi..
    im porting a tiny app from c to c++
    and encoutering a few probs

    char *buf;
    buf = lpPacket->Buffer;

    compiler didnt have problem with this in c

    does in c++

    error is
    Conversion from 'void*' to pointer to non-'void' requires an explicit cast

    Visual c++ 6 , win2k

  2. #2
    Registered User
    Join Date
    Nov 2002
    Posts
    14
    i did read the error..
    i didnt know how to fix it
    thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. non-MFC DLL with MFC app question.
    By Kempelen in forum Windows Programming
    Replies: 10
    Last Post: 08-20-2008, 07:11 AM
  2. best program to start
    By gooddevil in forum Networking/Device Communication
    Replies: 4
    Last Post: 05-28-2004, 05:56 PM
  3. Need help migrating console app to windows app
    By DelphiGuy in forum C++ Programming
    Replies: 1
    Last Post: 03-14-2004, 07:05 PM
  4. pasword app
    By GanglyLamb in forum C Programming
    Replies: 2
    Last Post: 06-07-2003, 10:28 AM
  5. How do I make my Linux app standalone?
    By Joda in forum C++ Programming
    Replies: 2
    Last Post: 11-27-2002, 04:53 AM