Click here to Skip to main content
15,896,730 members
Articles / Desktop Programming / MFC

Write a UDF CDR

Rate me:
Please Sign up or sign in to vote.
4.82/5 (12 votes)
22 Jul 2003CPOL1 min read 255.5K   2.5K   39  
How to write a CDR in UDF
#ifndef	_TYPES_H
#define	_TYPES_H
#define _BIT_FIELDS_LTOH
/*
typedef struct{
	BYTE bytes[2];
}Uint16;

typedef struct{
	BYTE bytes[4];
}Uint32;

typedef struct{
	BYTE bytes[8];
}Uint64;

typedef struct{
	BYTE bytes[2];
}int16;

typedef struct{
	BYTE bytes[4];
}int32;
*/

typedef	__int8				int8;
typedef	__int16				int16;
typedef	__int32				int32;
typedef	__int64				int64;

typedef	unsigned __int16		Uint16;
typedef	unsigned __int32		Uint32;
typedef	unsigned __int64		Uint64;

typedef	unsigned short		Ushort;
typedef	unsigned char		Uchar;
typedef	unsigned char		Ucbit;

#define Ulong	Uint64;
/*
static int reverseUint32(Uint32 input){
	return (input.bytes[3]<<24)+(input.bytes[2]<<16)+
		(input.bytes[1]<<8)+input.bytes[0];
}
static int reverseUint16(Uint16 input){
	return 	(input.bytes[1]<<8)+input.bytes[0];
}
*/
#endif	/* _TYPES_H */

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Engineer
United States United States
Wheels I reinvented on various embedded systems

*License Plate Reader
*TCP/IP stack
*Web Server
*HTTP/FTP/SMTP client
*Ethernet/SCSI/USB drivers
*FAT32/UDF file system
*JPEG/MJPEG encoder

Comments and Discussions