CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: jwalto1

Page 1 of 4 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    1
    Views
    580

    Hi, Have you looked at Creating an MFC DLL...

    Hi,

    Have you looked at Creating an MFC DLL Project and the MFC DLL Wizard. The MFC DLL Wizard creates a skeleton which demonstrates exporting a class.

    Code Guru has two articles on the subject....
  2. Thread: CBitmapButton

    by jwalto1
    Replies
    3
    Views
    1,014

    Hi mce, Have you tried calling...

    Hi mce,

    Have you tried calling CBitmapButton::Invalidate() on the BN_* handlers. I had to use this technique on a CEdit when changing between display modes.

    Jeff
  3. Replies
    4
    Views
    697

    Hi poorni, mc files are message files used by...

    Hi poorni,

    mc files are message files used by the mc compiler.

    See here.

    Jeff
  4. Replies
    6
    Views
    3,464

    Hi Alin, I was not aware that was considered a...

    Hi Alin,

    I was not aware that was considered a hack. I love reading Paul DiLascias.

    Thanks,

    Jeff
  5. Replies
    5
    Views
    766

    Hi wbartley, In class wizard, override the...

    Hi wbartley,

    In class wizard, override the OnOK click message. Do not call the base class.

    Jeff
  6. Replies
    2
    Views
    704

    Hi rseidl, If you choose Visual Basic as the...

    Hi rseidl,

    If you choose Visual Basic as the Executable and create a new project with your control, then you can debug through Visual C++.

    Jeff
  7. Replies
    6
    Views
    3,464

    Hi Koolski See below. Jeff ...

    Hi Koolski

    See below.

    Jeff



    ////////////////////////////////////////////////////////
    //
  8. Replies
    3
    Views
    664

    Hi NoteMe, Its been a while since my...

    Hi NoteMe,

    Its been a while since my architecture class, but Intel's branch prediction algorithm is over 90% efficient (I think its actually higher than that, but I don't have a reference).

    If...
  9. Replies
    1
    Views
    602

    Hi chmanish, #define both UNICODE and _UNICODE...

    Hi chmanish,

    #define both UNICODE and _UNICODE (and verify _MBCS is not defined).

    Also, consider using _tcscspn. See...
  10. Thread: Floating point

    by jwalto1
    Replies
    2
    Views
    724

    Hi Fero, There is none. Both an Intel...

    Hi Fero,



    There is none. Both an Intel machine and PowerPC are IEEE compliant.

    There are differences in architecture, though. The key difference is RISC vs CISC.

    Jeff
  11. Thread: Web File

    by jwalto1
    Replies
    1
    Views
    551

    Hi slv, MFC has a sample application called...

    Hi slv,

    MFC has a sample application called TEAR that will allow you to rip web pages.

    See...
  12. Hi floatingkent, Perhaps a MFC Sample...

    Hi floatingkent,

    Perhaps a MFC Sample application will help you understand your task.

    See...
  13. Hi gangelo, See the following. ...

    Hi gangelo,

    See the following.

    http://www.contextmagic.com/express-clickyes/

    http://support.microsoft.com/default.aspx?scid=kb;en-us;821679&Product=ol2002

    Jeff
  14. C++ Random Number: What are good random number generators?

    Additionally, Wei Dai provides PRNG in his Crypto++ library located at www.cryptopp.com.

    Typical code would look as follows:


    #include "osrng.h"

    using namespace CryptoPP;
    .
    .
  15. Replies
    1
    Views
    735

    Hi Michel, PreTranslateMessage(...) may help....

    Hi Michel,

    PreTranslateMessage(...) may help. Here's a sample that hooks up F5 to a refresh function.

    Jeff


    ////////////////////////////////////////////////////////
    //
    // Hook up F5 to...
  16. Replies
    3
    Views
    869

    Hi ecspansion, I did not try to run the code,...

    Hi ecspansion,

    I did not try to run the code, but I would probably approach it as follows:

    CButton** ppButton;
    *pButton = new CButton[ size ];

    then,

    pButton[0]->Create( ... )
  17. Replies
    2
    Views
    1,573

    Hi ClickHeRe, Try below. See...

    Hi ClickHeRe,

    Try below. See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_mfcnotes_tn059.asp.

    Jeff


    USES_CONVERSION
    WCHAR* psz = A2W( "Test" );
  18. Hi Bobby, Its COM. COM always returns a...

    Hi Bobby,

    Its COM. COM always returns a HRESULT (hopefully S_OK). The parameter that the client receives back (such as VB or VBScript) is passed as an [out, retval] parameter.

    See...
  19. Thread: Checksum

    by jwalto1
    Replies
    8
    Views
    1,693

    Hi Larry, Try...

    Hi Larry,

    Try http://www.flounder.com/checksum.htm and http://www.codeguru.com/Cpp/Cpp/algorithms/article.php/c5133/

    Jeff
  20. Replies
    1
    Views
    1,419

    Hi sm_ch, Since you are using vb script,...

    Hi sm_ch,

    Since you are using vb script, everything needs to be a VARIANT.

    Return HRESULTs.

    To return a value to a client, you need a [out, retval] parameter.

    Use BSTRs instead of ...
  21. Replies
    1
    Views
    714

    Hi Narik, WideCharToMultiByte () is your...

    Hi Narik,

    WideCharToMultiByte () is your friend. See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/unicode_2bj9.asp

    Also, I would probably use CFile and a CString - its...
  22. Replies
    3
    Views
    877

    Hi loay980, It sounds like you want to do some...

    Hi loay980,

    It sounds like you want to do some screen scraping. I've never done it. There are some console functions that allow you to do it (read the character and attribute at a certain...
  23. Replies
    3
    Views
    9,435

    Hi SNikita, I think the solution I would...

    Hi SNikita,

    I think the solution I would prefer is to static_cast the buffer to char* on read(). It appears to me this is harmless since each type is an octet.

    > And finally, could using...
  24. Thread: ATL key events

    by jwalto1
    Replies
    1
    Views
    824

    Hi sstofka, Have you read Q168777...

    Hi sstofka,

    Have you read Q168777.

    Also, Google is a wonderful reference.

    Jeff
  25. Replies
    1
    Views
    796

    Hi voonnalk, These IsService() is something I...

    Hi voonnalk,

    These IsService() is something I use to _try_ and determine if I am a service. Its a Yes biased deterministic algorithm - it always returns an answer, and when it returns Yes, it is...
Results 1 to 25 of 77
Page 1 of 4 1 2 3 4





Click Here to Expand Forum to Full Width

Featured