Click here to Skip to main content
15,916,601 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to save GDI+ bmp file as PDF File Format. Pin
Sekar_Mokachandra17-Mar-05 11:40
Sekar_Mokachandra17-Mar-05 11:40 
GeneralC++ class design question - static member Pin
Indrawati13-Jul-04 19:21
Indrawati13-Jul-04 19:21 
GeneralRe: C++ class design question - static member Pin
maxsteel13-Jul-04 22:23
maxsteel13-Jul-04 22:23 
GeneralReading special characters like TM in text file Pin
Arvind Jagtap13-Jul-04 19:10
Arvind Jagtap13-Jul-04 19:10 
GeneralRe: Reading special characters like TM in text file Pin
David Crow14-Jul-04 3:29
David Crow14-Jul-04 3:29 
GeneralRe: Reading special characters like TM in text file Pin
Arvind Jagtap14-Jul-04 4:04
Arvind Jagtap14-Jul-04 4:04 
GeneralRe: Reading special characters like TM in text file Pin
Arvind Jagtap14-Jul-04 4:18
Arvind Jagtap14-Jul-04 4:18 
GeneralRe: Reading special characters like TM in text file Pin
David Crow14-Jul-04 8:51
David Crow14-Jul-04 8:51 
Arvind Jagtap wrote:
Try to open this file by using CStdioFile/CFile class, and read the contents of file. ™ character splits into three characters. If you find any solution please let me know.

This worked fine for me:

CFile file("c:\\3M Aerospace  3M™ Heavy Duty Cable Ties.htm", CFile::modeRead);
TCHAR sBuffer[1024];
DWORD dwBytesRead;
 
do
{
    dwBytesRead = file.Read(sBuffer, sizeof(sBuffer) * sizeof(TCHAR));
} while (dwBytesRead > 0);
 
file.Close();
While the VS editor did indeed show a "block" character right after the second 3M, its value was interpreted correctly.

Arvind Jagtap wrote:
If you try to save this file at another location in Hard disk (by using save as option), it can't save. I think becuase ™ character, this is happening.

Nope, saved fine.


"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen


GeneralC++ program Pin
bctuthrcls13-Jul-04 19:01
sussbctuthrcls13-Jul-04 19:01 
GeneralRe: C++ program Pin
Weiye Chen13-Jul-04 19:26
Weiye Chen13-Jul-04 19:26 
GeneralRe: C++ program Pin
ThatsAlok13-Jul-04 20:35
ThatsAlok13-Jul-04 20:35 
GeneralRe: Visual c++ and word automation Pin
Ryan Binns13-Jul-04 18:37
Ryan Binns13-Jul-04 18:37 
GeneralRe: Visual c++ and word automation Pin
tiziacaia13-Jul-04 19:11
tiziacaia13-Jul-04 19:11 
GeneralRe: Visual c++ and word automation Pin
V.13-Jul-04 21:24
professionalV.13-Jul-04 21:24 
GeneralVisual c++ and word automation Pin
tiziacaia13-Jul-04 18:08
tiziacaia13-Jul-04 18:08 
GeneralSimple DLL help needed. (very basic) Pin
Loosehead Len13-Jul-04 17:51
Loosehead Len13-Jul-04 17:51 
GeneralRe: Simple DLL help needed. (very basic) Pin
User 58385213-Jul-04 19:00
User 58385213-Jul-04 19:00 
GeneralRe: Simple DLL help needed. (very basic) Pin
Loosehead Len13-Jul-04 20:44
Loosehead Len13-Jul-04 20:44 
GeneralRe: Simple DLL help needed. (very basic) Pin
mystro_AKA_kokie13-Jul-04 19:15
mystro_AKA_kokie13-Jul-04 19:15 
GeneralRe: Simple DLL help needed. (very basic) Pin
Loosehead Len13-Jul-04 20:45
Loosehead Len13-Jul-04 20:45 
GeneralRe: Simple DLL help needed. (very basic) Pin
mystro_AKA_kokie14-Jul-04 0:50
mystro_AKA_kokie14-Jul-04 0:50 
GeneralFont heights Pin
0v3rloader13-Jul-04 17:16
0v3rloader13-Jul-04 17:16 
GeneralRe: Font heights Pin
Johan Rosengren13-Jul-04 20:00
Johan Rosengren13-Jul-04 20:00 
GeneralRe: Font heights Pin
0v3rloader13-Jul-04 20:37
0v3rloader13-Jul-04 20:37 
GeneralRe: Font heights Pin
Johan Rosengren13-Jul-04 20:47
Johan Rosengren13-Jul-04 20:47 

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.