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

C / C++ / MFC

 
QuestionCreateProcess problem Pin
poda10-Dec-06 16:50
poda10-Dec-06 16:50 
AnswerRe: CreateProcess problem Pin
Michael Dunn10-Dec-06 17:08
sitebuilderMichael Dunn10-Dec-06 17:08 
GeneralRe: CreateProcess problem Pin
poda10-Dec-06 19:52
poda10-Dec-06 19:52 
AnswerRe: CreateProcess problem Pin
Naveen10-Dec-06 17:11
Naveen10-Dec-06 17:11 
GeneralRe: CreateProcess problem Pin
poda10-Dec-06 19:42
poda10-Dec-06 19:42 
GeneralRe: CreateProcess problem Pin
Naveen10-Dec-06 19:46
Naveen10-Dec-06 19:46 
GeneralRe: CreateProcess problem Pin
poda10-Dec-06 21:30
poda10-Dec-06 21:30 
QuestionWindows Clipboard Format Pin
Jeffrey Walton10-Dec-06 16:38
Jeffrey Walton10-Dec-06 16:38 
Hi All,

I'm having trouble finding defines for Clipboard Formats. The unknowns appear after Microsoft Word places a gif on the Clipboard. Has anyone been able come across the meaining of:

49251
49298
46289
49158
49159

Jeff

#include <windows.h>
int main(int argc, char* argv[])
{
    int count = CountClipboardFormats();
    cout << count << _T(" formats available on the clipboard:") << endl << endl;  

    if( TRUE == OpenClipboard( NULL ) )
    {
        UINT format = 0;       
        while( 0 != (format = EnumClipboardFormats( format ) ) )
        {
            switch( format )
            {
                case CF_BITMAP:
                    cout << _T("  CF_BITMAP") << endl;
                    break;

                case CF_DIB:
                    cout << _T("  CF_DIB") << endl;
                    break;

                case CF_DIBV5:
                    cout << _T("  CF_DIBV5") << endl;
                    break;

                case CF_DIF:
                    cout << _T("  CF_DIF") << endl;
                    break;

                case CF_DSPBITMAP:
                    cout << _T("  CF_DSPBITMAP") << endl;
                    break;

                case CF_DSPENHMETAFILE:
                    cout << _T("  CF_DIB") << endl;
                    break;

                case CF_DSPMETAFILEPICT:
                    cout << _T("  CF_DSPMETAFILEPICT") << endl;
                    break;

                case CF_DSPTEXT:
                    cout << _T("  CF_DSPTEXT") << endl;
                    break;

                case CF_ENHMETAFILE:
                    cout << _T("  CF_ENHMETAFILE") << endl;
                    break;

                case CF_HDROP:
                    cout << _T("  CF_HDROP") << endl;
                    break;

                case CF_LOCALE:
                    cout << _T("  CF_LOCALE") << endl;
                    break;

                case CF_METAFILEPICT:
                    cout << _T("  CF_METAFILEPICT") << endl;
                    break;

                case CF_OEMTEXT:
                    cout << _T("  CF_OEMTEXT") << endl;
                    break;

                case CF_PALETTE:
                    cout << _T("  CF_PALETTE") << endl;
                    break;

                case CF_PENDATA:
                    cout << _T("  CF_PENDATA") << endl;
                    break;

                case CF_RIFF:
                    cout << _T("  CF_RIFF") << endl;
                    break;

                case CF_SYLK:
                    cout << _T("  CF_SYLK") << endl;
                    break;

                case CF_TEXT:
                    cout << _T("  CF_TEXT") << endl;
                    break;

                case CF_WAVE:
                    cout << _T("  CF_OWNERDISPLAY") << endl;
                    break;

                case CF_TIFF:
                    cout << _T("  CF_TIFF") << endl;
                    break;

                case CF_UNICODETEXT:
                    cout << _T("  CF_UNICODETEXT") << endl;
                    break;

                case 49161:
                    cout << _T("  Data Object") << endl;
                    break;

                case 49166:
                    cout << _T("  Object Descriptor") << endl;
                    break;

                case 49272:
                    cout << _T("  Rich Text Format") << endl;
                    break;

                case 49457:
                    cout << _T("  HTML Format") << endl;
                    break;

                case 49163:
                    cout << _T("  Embed Source") << endl;
                    break;

                case 49156:
                    cout << _T("  Native") << endl;
                    break;

                case 49155:
                    cout << _T("  OwnerLink") << endl;
                    break;

                case 49167:
                    cout << _T("  Link Source Descriptor") << endl;
                    break;

                case 49154:
                    cout << _T("  ObjectLink") << endl;
                    break;

                case 49545:
                    cout << _T("  Hyperlink") << endl;
                    break;

                case 49171:
                    cout << _T("  Ole Private Data") << endl;
                    break;

                default:

                    if( format >= CF_GDIOBJFIRST && format <= CF_GDIOBJLAST )
                    {
                        cout << _T("  CF_GDIOBJFIRST + ") << format - CF_GDIOBJFIRST << endl;
                    } else

                    if( format >= CF_PRIVATEFIRST && format <= CF_PRIVATELAST )
                    {
                        cout << _T("  CF_PRIVATEFIRST + ") << format - CF_PRIVATEFIRST << endl;
                    } else

                    {
                        cout << _T("  Format: ") << format << endl;
                    }

                    break;
            }
        
        } // while( 0 != format );

        CloseClipboard( );
    }
    return 0;
}

AnswerRe: Windows Clipboard Format Pin
Michael Dunn10-Dec-06 17:09
sitebuilderMichael Dunn10-Dec-06 17:09 
GeneralRe: Windows Clipboard Format Pin
Jeffrey Walton10-Dec-06 17:27
Jeffrey Walton10-Dec-06 17:27 
GeneralRe: Windows Clipboard Format Pin
Jeffrey Walton10-Dec-06 17:30
Jeffrey Walton10-Dec-06 17:30 
GeneralRe: Windows Clipboard Format Pin
Jeffrey Walton10-Dec-06 17:50
Jeffrey Walton10-Dec-06 17:50 
QuestionWhich function called when drop file on Exe Pin
rp_suman10-Dec-06 13:54
rp_suman10-Dec-06 13:54 
AnswerRe: Which function called when drop file on Exe Pin
Michael Dunn10-Dec-06 14:27
sitebuilderMichael Dunn10-Dec-06 14:27 
GeneralRe: Which function called when drop file on Exe Pin
rp_suman10-Dec-06 14:42
rp_suman10-Dec-06 14:42 
GeneralRe: Which function called when drop file on Exe Pin
Michael Dunn10-Dec-06 14:47
sitebuilderMichael Dunn10-Dec-06 14:47 
GeneralThanks Pin
rp_suman10-Dec-06 14:52
rp_suman10-Dec-06 14:52 
QuestionHow coding to FrontMic setting in Mixer? Pin
boy21c10-Dec-06 12:59
boy21c10-Dec-06 12:59 
QuestionHeap Corruption Question Pin
Richard Andrew x6410-Dec-06 12:50
professionalRichard Andrew x6410-Dec-06 12:50 
AnswerRe: Heap Corruption Question Pin
Stephen Hewitt10-Dec-06 13:35
Stephen Hewitt10-Dec-06 13:35 
GeneralRe: Heap Corruption Question Pin
Richard Andrew x6410-Dec-06 13:59
professionalRichard Andrew x6410-Dec-06 13:59 
QuestionMFC Graphics Debug Assertation Error Pin
CoffeeAddict1910-Dec-06 12:32
CoffeeAddict1910-Dec-06 12:32 
AnswerRe: MFC Graphics Debug Assertation Error Pin
Michael Dunn10-Dec-06 13:17
sitebuilderMichael Dunn10-Dec-06 13:17 
AnswerRe: MFC Graphics Debug Assertation Error Pin
Mark Salsbery10-Dec-06 13:31
Mark Salsbery10-Dec-06 13:31 
GeneralRe: MFC Graphics Debug Assertation Error Pin
CoffeeAddict1910-Dec-06 14:53
CoffeeAddict1910-Dec-06 14:53 

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.