需要定义一个超大字符串(vc6.0)
结果编译器报错 string too big, trailing characters truncated。
字符串是这样的:
char part1[] = "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQoKCgoKBggLDAsKDAkKCgr/2wBDAQICAgICAgUDAwUKBwYHCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgr/wAARCADfAGwDASIAAhEBAxEB/8QAHAABAAIDAQEBAAAAAAAAAAAAAAUHAwQGCAEJ/8QAMxAAAQQCAQMCBQIEBwEAAAAAAwABAgQFBgcREhMIFBUhU6LRFiIJFyNBJDE0UXOBsTL/xAAXAQEBAQEAAAAAAAAAAAAAAAAAAwQC/8QAIhEBAAEEAQMFAAAAAAAAAAAAAAECAwQRIQVBYRIxcaHw/9oADAMBAAIRAxEAPwD9zuX9p5g1Snr9nh7inG7cS5t2Oo7HWv7O+LnjsOYzDt5ED+2NC0WvB2N7WcgMWECNEzEYYycTovPXqG3bmKGgP6aamO14PGuu7Fe2/JbBka4iZLI3rIrOKqhPiRyLKpVqEsEkaVc7TsUxErBieRhXIiCv9e9RWu57l7YuGLPG/IGNyGv7BTxQsvkdByLYjLe4xL5OFupkYClVJWjEZ6pCTJDxWwsCbRnYqe4530xerM/qR3Hc9PtcObDpd7Rfh9XYcNtNUsb1DJWYnsezIUAiYw/Si+OtNKjkLjxbINA0K7xG57iRAREQEREBRW25XZMXTqNqeDqZC7ZytUEg37hq4R1pGj7ozlEA3SY6zGIOEoxgUsBhkULF8sJVEHjWv/FI9QWW4o0bkfAfwr+aZX+QdV5FyeN1jJYc9S7grevTJLD0M00qztjZ5oApOGT+TxnIIQ42oTc8fTW/8sZLjzj3fORLvDu4ZQWkY+1cp4jAUq97IbSMFCFt44uuI7zKSc5TqDEbwEnYDNmj45CMTsEQUDv3qg9UOjbnj9PD6NJ5qII8f/qrK4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xDyjOcpN1GzSfpJ3mkRAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQf/9k=";
解决办法
分成一段一段的就行
char part1[] = "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQoKCgoKBggLDAsKDAkKCgr/2wBDAQICAgICAgUDAwUKBwYHCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgr" "/wAARCADfAGwDASIAAhEBAxEB/8QAHAABAAIDAQEBAAAAAAAAAAAAAAUHAwQGCAEJ/8QAMxAAAQQCAQMCBQIEBwEAAAAAAwABAgQFBgcREhMIFBUhU6LRFiIJFyNBJDE0UXOBsTL/xAAXAQEBAQEAAAAAAAAAAAAAAAAAAwQC/8QAIhEBAAEEAQMFAAAAAAAAAAAAAAECAwQRIQVBYRIxcaHw/9oADA" "MBAAIRAxEAPwD9zuX9p5g1Snr9nh7inG7cS5t2Oo7HWv7O+LnjsOYzDt5ED+2NC0WvB2N7WcgMWECNEzEYYycTovPXqG3bmKGgP6aamO14PGuu7Fe2/JbBka4iZLI3rIrOKqhPiRyLKpVqEsEkaVc7TsUxErBieRhXIiCv9e9RWu57l7YuGLPG/IGNyGv7BTxQsvkdByLYjLe4xL5OFupkYClVJWjEZ6" "pCTJDxWwsCbRnYqe4530xerM/qR3Hc9PtcObDpd7Rfh9XYcNtNUsb1DJWYnsezIUAiYw/Si+OtNKjkLjxbINA0K7xG57iRAREQEREBRW25XZMXTqNqeDqZC7ZytUEg37hq4R1pGj7ozlEA3SY6zGIOEoxgUsBhkULF8sJVEHjWv/FI9QWW4o0bk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ANu0tou2YWMd7axVtZC5OM5swGiWIfce0C/9Ofd468ZScnVpR/e0+mQVh6T9Y531bj/AC9T1B7/ALJsGVnuOVjiT7UXDEtjxQbEq1Offh6NKvKFgQI3mhIPlD77wklKQVZ6IgIiIC+S69r9v+fT5L6iCFDDkMOXw4rFnDWKEMaVs/YgAoTFuf0fFKuN5TaAn/xDyjOcpN" "1GzSfpJ3mkRAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQf/9k=";