Click here to Skip to main content
15,910,586 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: text width Pin
includeh101-Aug-02 4:19
includeh101-Aug-02 4:19 
GeneralCursor with CSplitterWnd, dll, wizard, trick, help ... Pin
includeh101-Aug-02 3:56
includeh101-Aug-02 3:56 
GeneralIcon... Pin
Michael Helmberger1-Aug-02 3:53
Michael Helmberger1-Aug-02 3:53 
GeneralRe: Icon... Pin
includeh101-Aug-02 9:27
includeh101-Aug-02 9:27 
GeneralRe: Icon... Pin
Anonymous1-Aug-02 10:17
Anonymous1-Aug-02 10:17 
Generalobject oriented models Pin
Anonymous1-Aug-02 3:38
Anonymous1-Aug-02 3:38 
QuestionHow to create Shortcut for a file Pin
Koundinya1-Aug-02 2:32
Koundinya1-Aug-02 2:32 
AnswerRe: How to create Shortcut for a file Pin
Jean-Michel LE FOL1-Aug-02 2:47
Jean-Michel LE FOL1-Aug-02 2:47 
IShellLink* pShellLink = NULL;

// Get a pointer to the IShellLink interface.
hRes = ::CoCreateInstance(CLSID_ShellLink, NULL,
    CLSCTX_INPROC_SERVER, IID_IShellLink, (void**) &pShellLink);

if (SUCCEEDED(hRes))
{
    // Set the path to the shortcut target, and add the Description.
    if (SUCCEEDED(hRes = pShellLink->SetPath(sTarget))                 &&
        SUCCEEDED(hRes = pShellLink->SetArguments(sArguments))         &&
        SUCCEEDED(hRes = pShellLink->SetWorkingDirectory(sWorkingDir)) &&
        SUCCEEDED(hRes = pShellLink->SetShowCmd(nCmdShow))             &&
        SUCCEEDED(hRes = pShellLink->SetDescription(pComment)))
    {

        // Get a pointer to the IPersistFile interface
        IPersistFile* pPersistFile = NULL;

        // Query IShellLink for the IPersistFile interface for saving the
        // shortcut in persistent storage.
        hRes = pShellLink->QueryInterface(IID_IPersistFile, (void**) &pPersistFile);

        if (SUCCEEDED(hRes))
        {
            BSTR bstrTest = sLinkDesc.AllocSysString();

            // Save the link by calling IPersistFile::Save.
            hRes = pPersistFile->Save(bstrTest, TRUE);
            ::SysFreeString(bstrTest);
            pPersistFile->Release();
        }
    }
    pShellLink->Release();
}

AnswerRe: How to create Shortcut for a file Pin
includeh101-Aug-02 8:32
includeh101-Aug-02 8:32 
GeneralMDIGetActive() - always fails (!?!) Pin
[CoY0te]1-Aug-02 2:17
[CoY0te]1-Aug-02 2:17 
GeneralWinNT to WinCE Pin
hsjuneja1-Aug-02 2:00
hsjuneja1-Aug-02 2:00 
GeneralRe: WinNT to WinCE Pin
Tim Smith1-Aug-02 2:09
Tim Smith1-Aug-02 2:09 
GeneralLinking C API to C++ Virtual Functions. Pin
Jawache1-Aug-02 1:50
Jawache1-Aug-02 1:50 
GeneralRe: Linking C API to C++ Virtual Functions. Pin
Funky Chicken1-Aug-02 2:21
sussFunky Chicken1-Aug-02 2:21 
GeneralRe: Linking C API to C++ Virtual Functions. Pin
Jawache1-Aug-02 2:42
Jawache1-Aug-02 2:42 
GeneralRe: Linking C API to C++ Virtual Functions. Pin
Daniel Lohmann1-Aug-02 4:03
Daniel Lohmann1-Aug-02 4:03 
GeneralRe: Linking C API to C++ Virtual Functions. Pin
Jawache1-Aug-02 5:18
Jawache1-Aug-02 5:18 
GeneralRe: Linking C API to C++ Virtual Functions. Pin
Joaquín M López Muñoz1-Aug-02 7:15
Joaquín M López Muñoz1-Aug-02 7:15 
GeneralRe: Linking C API to C++ Virtual Functions. Pin
Daniel Lohmann1-Aug-02 8:13
Daniel Lohmann1-Aug-02 8:13 
GeneralRe: Linking C API to C++ Virtual Functions. Pin
Jawache1-Aug-02 12:26
Jawache1-Aug-02 12:26 
QuestionRandomic functions ? Pin
Cris1-Aug-02 1:47
Cris1-Aug-02 1:47 
AnswerRe: Randomic functions ? Pin
Nish Nishant1-Aug-02 2:11
sitebuilderNish Nishant1-Aug-02 2:11 
GeneralRe: Randomic functions ? Pin
Funky Chicken1-Aug-02 2:18
sussFunky Chicken1-Aug-02 2:18 
GeneralRe: Randomic functions ? Pin
Cris1-Aug-02 2:46
Cris1-Aug-02 2:46 
GeneralRe: Randomic functions ? Pin
Chunky Chicken1-Aug-02 2:56
sussChunky Chicken1-Aug-02 2:56 

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.