Click here to Skip to main content
15,887,304 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: c++ objects, I don't get it - IIS ADSI object Pin
XTAL25621-Sep-11 21:04
XTAL25621-Sep-11 21:04 
AnswerRe: c++ objects, I don't get it - IIS ADSI object Pin
Jim Crafton22-Sep-11 4:27
Jim Crafton22-Sep-11 4:27 
GeneralRe: c++ objects, I don't get it - IIS ADSI object Pin
jkirkerx22-Sep-11 6:17
professionaljkirkerx22-Sep-11 6:17 
GeneralRe: c++ objects, I don't get it - IIS ADSI object Pin
Jim Crafton22-Sep-11 6:24
Jim Crafton22-Sep-11 6:24 
GeneralRe: c++ objects, I don't get it - IIS ADSI object Pin
jkirkerx22-Sep-11 6:52
professionaljkirkerx22-Sep-11 6:52 
Questionlanguage problem in C .. Pin
gateway2321-Sep-11 0:52
gateway2321-Sep-11 0:52 
AnswerRe: language problem in C .. Pin
Stefan_Lang21-Sep-11 1:39
Stefan_Lang21-Sep-11 1:39 
AnswerRe: IsTextUnicode function Pin
Software_Developer21-Sep-11 7:31
Software_Developer21-Sep-11 7:31 
IsTextUnicode function
http://msdn.microsoft.com/en-us/library/windows/desktop/dd318672(v=vs.85).aspx[^]


Unicode in Visual C++
http://msdn.microsoft.com/en-us/library/cc194799.aspx[^]

Conversion between Unicode UTF-16 and UTF-8 in C++/Win32
http://msmvps.com/blogs/gdicanio/archive/2010/01/04/conversion-between-unicode-utf-16-and-utf-8-in-c-win32.aspx[^]

Here is an example
http://www.codersource.net/win32/win32-advanced/unicode-to-ascii-conversion.aspx[^]

C++
//Check if the file is UNICODE
int IsUnicodeFile(char* szFileName)
{
    FILE *fpUnicode;
    char l_szCharBuffer[80];

    //Open the file
    if((fpUnicode= fopen(szFileName,"r")) == NULL)
    return 0; //Unable to open file

    if(!feof(fpUnicode))
    {
        fread(l_szCharBuffer,80,1,fpUnicode);
        fclose(fpUnicode);
        if(IsTextUnicode(l_szCharBuffer,80,NULL))
        {
            return 2; //Text is Unicode
        }
       else
       {
           return 1; //Text is ASCII
       }
    }
    return 0; // Some error happened
}

QuestionCombob box get hide at mouse release Pin
Amrit Agr21-Sep-11 0:15
Amrit Agr21-Sep-11 0:15 
AnswerRe: Combob box get hide at mouse release Pin
Code-o-mat21-Sep-11 9:04
Code-o-mat21-Sep-11 9:04 
QuestionMemory Leak Pin
Tal Rasha's Guardianship20-Sep-11 17:38
Tal Rasha's Guardianship20-Sep-11 17:38 
AnswerRe: Memory Leak Pin
Stefan_Lang20-Sep-11 23:28
Stefan_Lang20-Sep-11 23:28 
AnswerRe: calculate virtual address space Pin
Software_Developer21-Sep-11 10:10
Software_Developer21-Sep-11 10:10 
AnswerRe: Memory Leak Pin
Member 441644522-Sep-11 5:23
Member 441644522-Sep-11 5:23 
QuestionUse AfxParseURLEx ? Pin
bosfan20-Sep-11 2:53
bosfan20-Sep-11 2:53 
QuestionRe: Use AfxParseURLEx ? Pin
David Crow20-Sep-11 9:18
David Crow20-Sep-11 9:18 
AnswerRe: Use AfxParseURLEx ? Pin
bosfan20-Sep-11 20:32
bosfan20-Sep-11 20:32 
GeneralRe: Use AfxParseURLEx ? Pin
XTAL25620-Sep-11 20:41
XTAL25620-Sep-11 20:41 
QuestionCOM DLL Reg Pin
john563220-Sep-11 1:38
john563220-Sep-11 1:38 
AnswerRe: COM DLL Reg Pin
Rajesh R Subramanian20-Sep-11 2:21
professionalRajesh R Subramanian20-Sep-11 2:21 
AnswerRe: COM DLL Reg Pin
Erudite_Eric20-Sep-11 22:20
Erudite_Eric20-Sep-11 22:20 
Questionhow to move mouse? Pin
catokat19-Sep-11 16:38
catokat19-Sep-11 16:38 
AnswerRe: how to move mouse? Pin
Rajesh R Subramanian19-Sep-11 18:46
professionalRajesh R Subramanian19-Sep-11 18:46 
Questionhow to get exact number of bytes accessible in RAM for a 32 Bit app? Pin
Divya Rathore19-Sep-11 7:06
Divya Rathore19-Sep-11 7:06 
AnswerRe: how to get exact number of bytes accessible in RAM for a 32 Bit app? Pin
Code-o-mat19-Sep-11 7:45
Code-o-mat19-Sep-11 7: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.