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

Search:

Type: Posts; User: puzzolino

Page 1 of 14 1 2 3 4

Search: Search took 0.08 seconds.

  1. Re: Avoiding memory leaks when multithreading?

    Yes, you can post a message to the main window from your threads, just before the last line (which has to be a simple return 0, no ExitThread needed).

    From you main window procedure, get the...
  2. Replies
    2
    Views
    846

    Re: Simple bitmap program

    You have to create a dibsection from your bitmap; then you can access the bits directly, as in the following example:

    HBITMAP hBitmap = (HBITMAP) ::LoadImage(NULL, "myBitmap.bmp", IMAGE_BITMAP, 0,...
  3. Re: Microphone Sound Recording Using DirectX???

    Look at the CaptureSound and PlaySound examples in the Direct X SDK.
  4. Replies
    5
    Views
    1,012

    Re: Webcam Image Manipulation

    In the code you've shown, a variable for the three color components (RGB) of each pixel is initialized. You can modify values here, before they're added to the CurImaArr array (which is probably used...
  5. Re: System tray icon of my application disappears, when Windows Explorer crashes.

    Probably it's not an issue of your application but of the system tray itself, as icons from all other programs disappear as well. Maybe you can add a hook and create your icon when the taskbar is...
  6. Replies
    3
    Views
    874

    Sending email / question on spamming

    This is not strictly a VC++ issue, anyway I'm facing this problem in one of my VC++ projects, so please help me.

    My program sends emails using IIS SMTP service on Windows 2000 Server.
    Users with...
  7. Replies
    9
    Views
    1,472

    Re: How to add "minimize" to system menu??

    Use the GetSystemMenu function to add any item to your dialog's menu....
  8. Re: How can I display current Time in a Static text.

    I think scrapage_online is using COleDateTime's Format member, not CString's (despite the actual name of the object, m_strTime, would make you think it's a string).
  9. Replies
    2
    Views
    1,973

    Re: Problem With WH_SHELL hook

    A question:
    why are you passing NULL to CallNextHookEx? The first parameter should be the handle returned from a call to SetWindowsHookEx.

    Also, try removing the call to MessageBox and using a...
  10. Re: How can I display current Time in a Static text.

    The easiest way is:
    SetDlgItemText(IDC_STATICTIME, m_sTime);
  11. Re: New to visual C++ programming; reference material

    I'd start from here:
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/mdmscwhatsnewinado.asp
  12. Re: Using DirectSound to play segment of .wav file

    You can load the full wav file into a static buffer (usually, a small one) or use streaming and callback functions to load parts of the file as they are needed.
    You can start from here:...
  13. Poll: Re: Where are we from? - Second Edition

    Italy is not mentioned...
    it looks like italian programmers are not known to be good ones, are they? :cry:
  14. Replies
    1
    Views
    683

    Re: Problem with CListCtrl

    You could use SetViewPosition to arrange your items in icon or small icon mode.
  15. Replies
    3
    Views
    1,890

    Re: DrawText with integer value

    int iyear = 2005;
    CRect crect(10,250,150,300);
    CString string;
    string.Format("Year : %d", iyear);

    pDC->DrawText(string,crect, DT_LEFT);
  16. Replies
    3
    Views
    783

    Re: shipping an MFC application

    Well, you are assuming spicy_kid2000 has built his code on Visual C++ 6.
    VC 7 updated both MFC and MSVCRT dlls so his program won't work if he doesn't ship them.
    Also in the case of Win95/98/NT I'd...
  17. Replies
    3
    Views
    783

    Re: shipping an MFC application

    Just make sure you're linking to the static MFC libraries (project settings dialog).
    If you use dynamic linking you'll need to ship both MFC and MSVCRT dlls.

    A nice trick would be to use...
  18. In my experience, all but Windows XP support...

    In my experience, all but Windows XP support 16-colour only icons.
  19. Well, making them all owner draw controls can...

    Well,
    making them all owner draw controls can help; you could improve the repainting by updating only what really needs to be, and by not clearing the background when it's not needed.
    Many tricks...
  20. Replies
    6
    Views
    1,100

    The official site for LAME is the following:...

    The official site for LAME is the following: http://lame.sourceforge.net
    Some conversion from wav to mp3 can be achieved also by using the acm on windows 2000: acm
  21. Eventually create a thread for it, so that it...

    Eventually create a thread for it, so that it gets repainted correctly if your program startup is very slow...
  22. Replies
    3
    Views
    944

    You can also find an example here:...

    You can also find an example here:
    http://www.smalleranimals.com/jpegfile.htm
  23. Replies
    5
    Views
    1,053

    Ok, if you want to modify directly the RGB...

    Ok,
    if you want to modify directly the RGB values then I suggest you create a dib section.
    Check out this site for any good articles on how to do that.

    To easily update a resource, follow this...
  24. Replies
    3
    Views
    751

    There's an article for you on this site:...

    There's an article for you on this site:
    http://www.codeguru.com/Cpp/G-M/bitmap/capturing/article.php/c4915/
  25. Replies
    5
    Views
    1,053

    Hi, you problem still isn't clear to me.. are...

    Hi,
    you problem still isn't clear to me.. are you going to update the bitmap resource or do you want to change dinamically the content of a bitmap ? :eek:
Results 1 to 25 of 327
Page 1 of 14 1 2 3 4





Click Here to Expand Forum to Full Width

Featured