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

Search:

Type: Posts; User: forester

Page 1 of 16 1 2 3 4

Search: Search took 0.28 seconds.

  1. Re: fread() bug in Visual C runtime library, what is the Visual C++ version?

    Thank you very much for your replies! I am re-writing the code using CreateFile, ReadFile, WriteFile, and CloseHandle. and commented out the fopen, fread and fwrite.

    But I still want to know is...
  2. fread() bug in Visual C runtime library, what is the Visual C++ version?

    I read following forum post about the problem that fread() function can't read large files:
    http://stackoverflow.com/questions/7241168/safe-maximum-number-of-records-read-by-fread

    I am now...
  3. Replies
    4
    Views
    2,518

    Re: Set the icon of the .exe file

    Thank you very much, VictorN!

    So if an executable file contains no icon resource in it, in the Explorer window, because Explorer can't find an icon in the the .exe file, the system will provide a...
  4. Replies
    4
    Views
    2,518

    Set the icon of the .exe file

    I have a MFC dialog project, I move all the icons including the IDR_MAINFRAME icon into a resource-only DLL, so there is no icon embedded in the executable file. In the dialog initialization, the...
  5. Replies
    6
    Views
    12,810

    Re: How to locallize a plug-in DLL file?

    I write the plug-in dll following the tutorial at http://www.codeproject.com/Articles/1323/Internet-Explorer-Toolbar-Deskband-Tutorial,

    The CMyClass is similar to the CMFToolbar in the tutorial. ...
  6. Replies
    6
    Views
    12,810

    Re: How to locallize a plug-in DLL file?

    Thank you for your reply, D_Drmmr.

    There is no initializing function, but there is a OnCreate() function. Do you mean I can place AfxSetResourceHandle(hRes) in the Init function if there is one?
    ...
  7. Replies
    6
    Views
    12,810

    Re: How to locallize a plug-in DLL file?

    I can create a resource dll for the plug-in dll, but I don't know how to import it into the plug-in dll.
  8. Replies
    6
    Views
    12,810

    How to locallize a plug-in DLL file?

    I have experiences to localize a few MFC executable files, first create a resource dll file then add following code in InitInstance():



    BOOL CMyApp::InitInstance()
    {
    //Default Application...
  9. Re: Can local variable be passed as parameter into a new thread?

    Thank you for your replies!


    I don't know how to implement it. If I make a copy of that local variable, and that copy is a local variable too, then the copy is still not safe to be accessed from...
  10. Can local variable be passed as parameter into a new thread?

    Can local variable be passed as the parameter for a new created thread procedure? Here is the example code:


    void CDLG::some_function()
    {
    CString strFileName="abc.doc";
    //local variable,...
  11. Replies
    4
    Views
    2,301

    Re: IE 9 failed to fire DISPID_ONQUIT event?

    I didn't try OutputDebugString, I only tried MessageBox. When I close IE 9, the message box doesn't appear. I test it on IE 7 and 8, the message box shows as expected when IE is closed.
  12. Replies
    4
    Views
    2,301

    IE 9 failed to fire DISPID_ONQUIT event

    The following code is for a toolbar to revceive DWebBrowserEvents2 events from Internet Explorer. Running on IE 8 and 7, the toolbar can catch both DISPID_DOCUMENTCOMPLETE and DISPID_ONQUIT events....
  13. Replies
    2
    Views
    4,622

    Re: Where is _M_X64 in the 64-bit project?

    Thank you cilu!

    I select x64 as the target platform, and open the project property, but there is no _M_X64 defined in both the Linker and c\c++ tabs.

    Is it because the computer I use now is a...
  14. Replies
    2
    Views
    4,622

    Where is _M_X64 in the 64-bit project?

    The code snippet shows different compilations on 3 platforms with different preprocessors/macros.

    #if defined _M_IX86
    cout << _T(" (x86)");
    #elif defined _M_X64
    cout << _T("...
  15. Replies
    2
    Views
    2,843

    Can atoi() work on b4-bit system

    I use atoi() to convert a string to an integer in 32-bit code, now I will migrate the existing 32-bit code to a 64-bit system. My questions are:

    Is atoi() a 32-bit only function? can it work on...
  16. Replies
    18
    Views
    6,840

    Re: [win 32] loading dll (lame encoder)

    I unzip lame-3.99.5.tar, in the folder lame-3.99.5\doc\html, there are some help files. I read these files, but don't find whether lame_enc.dll supports 8-bits-per-sample wave file.
  17. Replies
    18
    Views
    6,840

    Re: [win 32] loading dll (lame encoder)

    I use lame_enc.DLL to convert wave file to mp3 file, it works OK for all 16-bits-per-sample wave files, but if the wave files are 8-bits-per-sample wave files, the results mp3 files are only noise. ...
  18. Re: Can 64-bit process launch 32-process on 64-bit Windows?

    64-bit application can run on 32-bit Windows, many articles said so.
  19. Re: Can 64-bit process launch 32-process on 64-bit Windows?

    CreateProcess() can't launch 64-bit application on 32-bit Windows.
  20. Re: Can 64-bit process launch 32-process on 64-bit Windows?

    Thank you for help! I will try CreateProcess() when I have access to 64-bit Windows.
  21. Re: Can 64-bit process launch 32-process on 64-bit Windows?

    I currently have no access to 64-bit Windows, so I can't try it myself.
  22. Can 64-bit process launch 32-process on 64-bit Windows?

    CreateProcess() is the API that can start a new process. My question is, in the 64-bit application running on 64-bit Windows, can I use CreateProcess() to launch a 32-bit process? Thanks for help!
  23. Replies
    6
    Views
    1,791

    Re: Can 64-bit software run on 32-bit Windows?

    I will install the 64-bit and 32-bit Windows operating systems on same computer, this can ease the test.
  24. Replies
    6
    Views
    1,791

    Can 64-bit software run on 32-bit Windows?

    I know many 32-bit software programs designed and built for 32-bit Window XP or 7 can also run on 64-bit Windows 7. However, can 64-bit software programs run on 32 bit Windows? Thanks!
  25. Replies
    13
    Views
    1,476

    Re: Any database recordset helper control

    Thank you for your replies!

    If I try to use ActiveX grid controls, what are the most powerful ActiveX controls, where can I get them?

    If there are add new, delete and modify buttons on the...
Results 1 to 25 of 394
Page 1 of 16 1 2 3 4





Click Here to Expand Forum to Full Width

Featured