Click here to Skip to main content
15,914,016 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionTooltip Pin
Manjunath S31-Jul-06 5:51
Manjunath S31-Jul-06 5:51 
AnswerRe: Tooltip Pin
Hans Dietrich31-Jul-06 9:53
mentorHans Dietrich31-Jul-06 9:53 
QuestionFlexgrid cell 0,0 (row=0,col=0) selection problem Pin
pc_dev31-Jul-06 5:37
pc_dev31-Jul-06 5:37 
QuestionRuntime error 48 calling C++ DLL from Access Pin
GaryDean31-Jul-06 5:23
GaryDean31-Jul-06 5:23 
AnswerRe: Runtime error 48 calling C++ DLL from Access Pin
Hamid_RT31-Jul-06 5:44
Hamid_RT31-Jul-06 5:44 
AnswerRe: Runtime error 48 calling C++ DLL from Access Pin
Neil Van Eps31-Jul-06 5:55
Neil Van Eps31-Jul-06 5:55 
AnswerRe: Runtime error 48 calling C++ DLL from Access Pin
Hamid_RT31-Jul-06 6:45
Hamid_RT31-Jul-06 6:45 
QuestionReading from a file Pin
sdt2431-Jul-06 4:57
sdt2431-Jul-06 4:57 
Cry | :(( I am attempting to change some text in a .dat file used on a pda with EVC++4.

However when my application reads the file on the pda it appears that every character that has been written to the file has a Null character after it.

When this file is transfered from the pda to a pc via activesync and viewed on the pc in notepad it appears that the null values are not present.

I have tried using fgetc to read each character from the file and fread to read the file into a char array and both options show the Nulls after each char. Tried fgets but this will not read I believe due to the Nulls in the string.

I am able to change the required text but it appears to be damaging the file as when viewed on the pc after the change it appears that the null values are present, also the application that uses this file fails to read it.

Would anyone know please why there would be null values after each character. Could the characters have been written originally as wide characters. If so could you help with a bit of sample code for the easiest way to read and write wide character data from and to a file.

Thanks





steve
AnswerRe: Reading from a file Pin
toxcct31-Jul-06 5:05
toxcct31-Jul-06 5:05 
AnswerRe: Reading from a file Pin
Zac Howland31-Jul-06 5:06
Zac Howland31-Jul-06 5:06 
AnswerRe: Reading from a file Pin
ThatsAlok31-Jul-06 18:32
ThatsAlok31-Jul-06 18:32 
QuestionProblem with conversion from VC6... Pin
ctroyp31-Jul-06 4:17
ctroyp31-Jul-06 4:17 
AnswerRe: Problem with conversion from VC6... Pin
Sarath C31-Jul-06 4:22
Sarath C31-Jul-06 4:22 
AnswerRe: Problem with conversion from VC6... Pin
ThatsAlok31-Jul-06 4:25
ThatsAlok31-Jul-06 4:25 
GeneralRe: Problem with conversion from VC6... Pin
ctroyp31-Jul-06 10:22
ctroyp31-Jul-06 10:22 
GeneralRe: Problem with conversion from VC6... Pin
ThatsAlok31-Jul-06 18:21
ThatsAlok31-Jul-06 18:21 
QuestionMinimum Window Size Pin
BubbaGee31-Jul-06 3:36
BubbaGee31-Jul-06 3:36 
AnswerRe: Minimum Window Size Pin
ThatsAlok31-Jul-06 4:09
ThatsAlok31-Jul-06 4:09 
AnswerRe: Minimum Window Size Pin
see me31-Jul-06 4:15
see me31-Jul-06 4:15 
GeneralRe: Minimum Window Size Pin
ThatsAlok31-Jul-06 4:22
ThatsAlok31-Jul-06 4:22 
GeneralRe: Minimum Window Size Pin
see me31-Jul-06 4:24
see me31-Jul-06 4:24 
GeneralRe: Minimum Window Size Pin
ThatsAlok31-Jul-06 4:27
ThatsAlok31-Jul-06 4:27 
Questionload image to list box Pin
see me31-Jul-06 3:18
see me31-Jul-06 3:18 
AnswerRe: load image to list box Pin
David Crow31-Jul-06 4:15
David Crow31-Jul-06 4:15 
GeneralRe: load image to list box Pin
see me31-Jul-06 4:22
see me31-Jul-06 4:22 

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.