Type: Posts; User: puzzolino
Search took 0.02 seconds.
December 29th, 2006, 05:11 AM
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...
December 25th, 2006, 03:36 AM
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,...
Look at the CaptureSound and PlaySound examples in the Direct X SDK.
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...
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...
December 14th, 2005, 07:11 AM
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.
Use the GetSystemMenu function to add any item to your dialog's menu....
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).
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...
The easiest way is:
I'd start from here:
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:...
April 28th, 2005, 10:44 AM
Italy is not mentioned...
it looks like italian programmers are not known to be good ones, are they? :cry:
April 15th, 2005, 09:48 AM
You could use SetViewPosition to arrange your items in icon or small icon mode.
April 14th, 2005, 10:17 AM
int iyear = 2005;
string.Format("Year : %d", iyear);
September 12th, 2004, 05:32 PM
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...
September 12th, 2004, 04:10 AM
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...
August 16th, 2004, 05:04 PM
In my experience, all but Windows XP support 16-colour only icons.
August 15th, 2004, 03:42 PM
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.
August 14th, 2004, 05:34 PM
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
August 14th, 2004, 04:29 PM
Eventually create a thread for it, so that it gets repainted correctly if your program startup is very slow...
August 11th, 2004, 04:47 PM
You can also find an example here:
August 8th, 2004, 05:06 PM
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...
August 8th, 2004, 03:01 AM
There's an article for you on this site:
August 8th, 2004, 02:51 AM
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:
Click Here to Expand Forum to Full Width