|
benjymous wrote: Anyway, what you need is the platform SDK - the latest one is here...
The SDK for v6 is not available online. It must be ordered on CD.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
Hi Friends,
In my project I want to compare two images to find out the differences in both of the images, can any one please suggest me some algorithm or free code which I can use for this purpose.
Thanks in advance,
Dinu
|
|
|
|
|
|
Do you want to compare on depth of images?
|
|
|
|
|
Hi all, i will thank in advance for your help.
I want to color the text of radio button, using OnCtlColor but the color doesn't change. anyone know how i can color the text? this is a part of my Dialog box
HBRUSH CMyDialog::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
if( (pWnd->GetDlgCtrlID() == IDC_RADIO1) ||
(pWnd->GetDlgCtrlID() == IDC_RADIO2) )
{
pDC->SetTextColor(((CEstoApp*)AfxGetApp())->GetSfondoTesti());
pDC->SetBkMode(TRANSPARENT);
}
return hbr;
}
Thanks to all
|
|
|
|
|
Try returning brush of color you want.
HBRUSH CMyDialog::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
if( (pWnd->GetDlgCtrlID() == IDC_RADIO1) ||
(pWnd->GetDlgCtrlID() == IDC_RADIO2) )
{
hbr = CreateSolidBrush(...);
}
return hbr;
}
|
|
|
|
|
This code is working
HBRUSH CAnswer::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
if(pWnd->GetDlgCtrlID() == IDC_RADIO1)
pDC->SetTextColor(RGB(53,97,220));
return hbr;
}
|
|
|
|
|
thank for your answer, in fact the code is working, maybe in my case is not working because i use a resource that implement XP STYLE and maybe this is why the code in my program is not working.
thank a lot
|
|
|
|
|
Maybe I had a problem like this but with ComboBox
|
|
|
|
|
I try to write a simple playsound program.
It works while it's compiling.
There is no errors return.
The playsound function return 1 value.
But it doesn't play the WAV files.
Can somebody help me why it doesn't play the music?
My code is following.
#include "stdafx.h"
#include <windows.h>
#include <mmsystem.h>
#include <iostream>
#include <winuser.h>
#pragma comment(lib, "winmm.lib")
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
int i;
i=MessageBeep(0);
cout << i ;
i=PlaySound((LPCWSTR)"c:\\dn.wav",NULL, SND_FILENAME);
cout << i ;
cin >> i;
cout << i << endl;
return 0;
}
I try two methods
1. i=PlaySound((LPCWSTR)"dn.wav",NULL, SND_FILENAME);
2. i=PlaySound((LPCWSTR)"c:\\dn.wav",NULL, SND_FILENAME);
But it still doesn't play the music.
Thanks a lot.
minihotto
|
|
|
|
|
I tested your code it worked maybe your problem is your file if you try to play files on windows\\media what happen it works or doesnt work?
|
|
|
|
|
it works.
-- modified at 12:15 Monday 9th October, 2006
|
|
|
|
|
So maybe your problem is of your file
|
|
|
|
|
I dont understand.@@
you mean the path of the file?
|
|
|
|
|
It seems that your code doesnt has a problem
|
|
|
|
|
I mean I put the files in windows\\media fileand the code become
i=PlaySound("dn.wav",NULL, SND_FILENAME);,then it works.
it doesn't work when the code is
i=PlaySoundNULL, SND_FILENAME);
is it the worng place => "c:\\windows\\media\\myair.wav"
|
|
|
|
|
minihotto wrote: i=PlaySound((LPCWSTR)"c:\\dn.wav",NULL, SND_FILENAME);
try this
i=PlaySound(L"c:\\dn.wav",NULL, SND_FILENAME);
nave
|
|
|
|
|
Does PlaySound() fail to play any sound file or just dn.wav?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi,
I am planning on writing an ISAPI Filter for IIS 6.0 in C++, but I have no idea where to start.
I've searched everything, but nothing helpful.
Can you guys gove me a push?
Thanks
|
|
|
|
|
|
I've had that, but it doens't work, so I'm asking some step by step help.
The idea is to rewrite a link like /Obj156641.html to /Obj.asp?O=156641
Thanks
|
|
|
|
|
I think I saw an article on codeguru about this object I think its about Web servers and filters(step by step )
|
|
|
|
|
Did you find it?
|
|
|
|
|
hi,
i have used a dialog box in my application.i want the dialog box with minimize,restoredown,close on title bar of my dialog box.
how to do so????????
In the property page of dialog box i have set
style:Popup
border : dialog frame
and enabled title bar,system menu,minimize and maximize box.
I want the restore down icon instead of maximize box while loading of dialog box.
In vb.net we use set the window state to be maximized in the property page what to do for dialogbox in mfc
zari
|
|
|
|