Thread: Bor to DevC++ prog convert prob

  1. #16
    Registered User kryptkat's Avatar
    Join Date
    Dec 2002
    Posts
    638
    Ok changed all of them to different numbers. Still spit the same error on ltext. So then I took a look at each of the lines that the errors came up on when commented out and on to next line. The ltext lines had idc_static in them and there was no idc_static in the .h file. Borland has that defined in one of their .h include files. So I added idc_static to the .h file and added .a libs ../lib/libwin32k.a and ../lib/libcomctl32.a

    Got it working. Seems to work ok. So idc_static is not defined in devcpp? .h include files?

    It may take some time to get to know this compiler.

  2. #17
    Registered User
    Join Date
    Mar 2005
    Location
    Juneda
    Posts
    291
    IDC_STATIC is an arbitrary value, you can use

    Code:
    #define MYSTATICCONTROLS 1000//here 1000 is also an arbitrary value
    //then you can do:
    LTEXT "Brush:",MYSTATICCONTROLS,25,25,20,14
    I think that the idea of setting up a common defined value for those controls is because usually you won't access them; instead of that, a button need it's own value to be able to work with it via the WM_COMMAND message. Then, if you know that no other control have an id=0 and that you won't acces to some controls, then you can declare them as

    Code:
    LTEXT "Brush:",0,25,25,20,14

    Niara

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. prob with my cimple prog
    By KidMan in forum C Programming
    Replies: 3
    Last Post: 05-06-2006, 02:50 AM
  2. Prog Prob
    By polonyman in forum C++ Programming
    Replies: 10
    Last Post: 09-11-2004, 08:54 AM
  3. Convert Char to Int Function
    By drdroid in forum C++ Programming
    Replies: 9
    Last Post: 02-19-2003, 12:53 PM