Click here to Skip to main content
16,004,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Radio Button's Satus?? Pin
Randor 20-Jul-10 6:00
professional Randor 20-Jul-10 6:00 
GeneralRe: Radio Button's Satus?? [modified] Pin
Richard MacCutchan20-Jul-10 7:13
mveRichard MacCutchan20-Jul-10 7:13 
GeneralRe: Radio Button's Satus?? Pin
Randor 20-Jul-10 7:53
professional Randor 20-Jul-10 7:53 
AnswerRe: Radio Button's Satus?? Pin
bolivar12319-Jul-10 8:50
bolivar12319-Jul-10 8:50 
Questionproblem in skipping line in csv format files Pin
naveed tahir17-Jul-10 11:41
naveed tahir17-Jul-10 11:41 
AnswerRe: problem in skipping line in csv format files Pin
«_Superman_»17-Jul-10 18:07
professional«_Superman_»17-Jul-10 18:07 
AnswerRe: problem in skipping line in csv format files Pin
Garth J Lancaster17-Jul-10 18:10
professionalGarth J Lancaster17-Jul-10 18:10 
Questionerror C2440 Pin
mdocvc17-Jul-10 8:22
mdocvc17-Jul-10 8:22 
Hi All


error C2440: '=' : cannot convert from 'void *' to 'FL_FILE *'

how can i solve this error?

I use Precompiled Headers off.
Code is here
void main()
{
	FL_FILE *file;

	// Initialise media
	media_init();

	// Initialise File IO Library
	fl_init();

	// Attach media access functions to library
	if (fl_attach_media(media_read, media_write) != FAT_INIT_OK)
	{
		printf("ERROR: Media attach failed\n");
		return; 
	}

	// List root directory
	fl_listdirectory("/");

	// Create File
	file = fl_fopen("/file.bin", "w");
	if (file)
	{
		// Write some data
		unsigned char data[] = { 1, 2, 3, 4 };
		if (fl_fwrite(data, 1, sizeof(data), file) != sizeof(data))
			printf("ERROR: Write file failed\n");
	}
	else
		printf("ERROR: Create file failed\n");

	// Close file
	fl_fclose(file);
}

AnswerRe: error C2440 Pin
Aescleal17-Jul-10 9:37
Aescleal17-Jul-10 9:37 
Questioncalculating bytes per second Pin
saiyuk6=717-Jul-10 7:46
saiyuk6=717-Jul-10 7:46 
AnswerRe: calculating bytes per second Pin
Chris Losinger17-Jul-10 8:37
professionalChris Losinger17-Jul-10 8:37 
GeneralRe: calculating bytes per second Pin
saiyuk6=717-Jul-10 8:45
saiyuk6=717-Jul-10 8:45 
QuestionRe: calculating bytes per second Pin
David Crow19-Jul-10 5:46
David Crow19-Jul-10 5:46 
AnswerRe: calculating bytes per second [modified] Pin
saiyuk6=719-Jul-10 14:15
saiyuk6=719-Jul-10 14:15 
GeneralRe: calculating bytes per second Pin
David Crow20-Jul-10 2:22
David Crow20-Jul-10 2:22 
GeneralRe: calculating bytes per second [modified] Pin
saiyuk6=720-Jul-10 5:36
saiyuk6=720-Jul-10 5:36 
QuestionOutputDebugString in x64 Pin
Pascal Ganaye17-Jul-10 0:51
Pascal Ganaye17-Jul-10 0:51 
AnswerRe: OutputDebugString in x64 Pin
Rajesh R Subramanian17-Jul-10 8:06
professionalRajesh R Subramanian17-Jul-10 8:06 
Questionhow to know the downloaded data from the net for a PC Pin
Sakhalean16-Jul-10 23:25
Sakhalean16-Jul-10 23:25 
AnswerRe: how to know the downloaded data from the net for a PC Pin
Spawn@Melmac17-Jul-10 4:32
Spawn@Melmac17-Jul-10 4:32 
AnswerRe: how to know the downloaded data from the net for a PC Pin
Niklas L17-Jul-10 9:16
Niklas L17-Jul-10 9:16 
QuestionCompiling 64bit Pin
Fareed Rizkalla16-Jul-10 10:32
Fareed Rizkalla16-Jul-10 10:32 
AnswerRe: Compiling 64bit Pin
Emilio Garavaglia16-Jul-10 22:50
Emilio Garavaglia16-Jul-10 22:50 
AnswerRe: Compiling 64bit Pin
Richard MacCutchan16-Jul-10 23:00
mveRichard MacCutchan16-Jul-10 23:00 
Questionproper conversion of unsigned char [16] -> unsigned long [4] [modified] Pin
saiyuk6=716-Jul-10 8:45
saiyuk6=716-Jul-10 8:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.