How do I write the codes in #define in an IR Receiver circuit?
Your problem is that you don't know how to form hexadecimal numbers.

In your code (in future, if you have an error in the code please post the code that is causing the error, not something else entirely - it makes it nigh on impossible for people without my psychic abilities to answer your question) you have defined a macro containing what you think is a hexadecimal number. In fact it's just a random string of characters and the compiler doesn't know what to make of it:

#define code1 DE74847


So in your switch construct, when code1 gets replaced with the content of the macro, you end up with:

switch (value) {
    case DE74847:
        ....


The compiler has no idea what a DE74847 is.

Numbers other than decimal numbers (0-9 and the decimal point) are identified by the use of a prefix:


0b... is binary
0 is octal (in your completely different code you have the number 0575, which is actually octal, and represents the decimal value 381)
0x is hexadecimal.


So adding 0x to the start of your hexadecimal value will tell the compiler to treat it as hexadecimal:

#define code1 0xDE74847