|
baerten wrote: Command ID of WM_USER+100+i
Does it button ID, like IDOK, IDCANCEL, etc. ?
- NS -
|
|
|
|
|
baerten wrote: Is there a Handler to catch an array of commands from WM_USER+101 till WM_USER+110 ?
Yes, take a look at ON_COMMAND_RANGE[^] macro.
|
|
|
|
|
Big thanks for your help
|
|
|
|
|
Can Anybody tell me how tp Put the tool tip on Button
I am Using Win32 Application.
I find some thing from MSDN Regarding this. I am using Followind code but it gives error.
It is NotGetting the Handle of ToolTipWnd;
ToolTipWnd = CreateWindow(TOOLTIPS_CLASS,NULL, WS_POPUP, 0,0,0,0, hWndDlg, NULL,hInst, 0);<br />
<br />
if ( ToolTipWnd == NULL )<br />
{<br />
DWORD Error;<br />
Error = GetLastError();<br />
MessageBox(NULL,L"Error",L"",0);<br />
}<br />
<br />
SendMessage(ToolTipWnd, TTM_ACTIVATE, TRUE, 0);
<br />
TOOLINFO toolinfo;
<br />
memset(&toolinfo, 0, sizeof(TOOLINFO));<br />
<br />
toolinfo.cbSize = sizeof(TOOLINFO);<br />
toolinfo.hwnd = hWndDlg;<br />
toolinfo.uFlags = TTF_SUBCLASS | TTF_IDISHWND;<br />
toolinfo.uId = IDC_BUTTON1;<br />
toolinfo.hinst = NULL;<br />
toolinfo.lpszText =L"Hi ,,,,,,,,,,";
DWORD error;<br />
if(!SendMessage ( hWndDlg, TTM_ADDTOOL, 0, (LPARAM)&toolinfo ))<br />
{<br />
error = GetLastError();<br />
MessageBox(NULL,L"Error",L"",0);<br />
}
-- modified at 7:36 Thursday 6th September, 2007
|
|
|
|
|
This[^] will be a good start...
- NS -
|
|
|
|
|
hi.
Thanx for your reply. I Due to some problem I am not able to open that link.Actully i m not allowed to open Microsoft site. So can u tell me whats in it.
|
|
|
|
|
So I shall mail you the content...
- NS -
|
|
|
|
|
will be nice if u do so. or better if u tell me where i am wrong in my code.
|
|
|
|
|
Hi all,
I would like to know what the following does (does it operate like an if statement or something):
m_bIsConnected = ret == SQL_SUCCESS || ret == SQL_SUCCESS_WITH_INFO;
Many Thanks
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
Programm3r wrote: does it operate like an if statement or something
Yes, something like that. In fact, the expression ret == SQL_SUCCESS 'returns' a boolean (true if they are equals, false if they are different). The same with the || operator. Thus, the complete expression returns a boolean, which is stored in m_bIsConnected.
|
|
|
|
|
|
hi all masters
i use sleep(5); in vc++(MFC) but error is that undeclared identifier
is there any other way to declare it
|
|
|
|
|
p_ wrote: is there any other way to declare it
Maybe by using the correct function ? Use Sleep instead of sleep
|
|
|
|
|
|
Use this define
#define 5 1+1+1+1+1
codito ergo sum
|
|
|
|
|
Hi all,
I have a binary file. I want to read as it is(i mean ones and zeros), and at the same time need to store in an array. Here is the code I used to read the file.
<br />
ifstream file( "G00046_002_01.srf" ) ; <br />
file >> noskipws ;<br />
typedef bitset< numeric_limits<unsigned char>::digits > bitset ;<br />
unsigned char byte ;<br />
<br />
if(filebin.is_open())<br />
{<br />
while( file >> byte )<br />
{<br />
cout << bitset(byte) ; <br />
filebin << bitset(byte) ;<br />
}<br />
filebin.close() ;<br />
}<br />
Can you guys tell me how store those zeros and ones on an array. I confusing that working with dynamic data and arrays. Tried, but failed.
Hi all....
|
|
|
|
|
|
Thanks,
Actually I want to store that read bits on an array. That's the place I'm wired.
Hi all....
|
|
|
|
|
I have to check whether cts pin is on or off I tried the below code but no use
if(GetCommModemStatus(m_hPort,&dwCommStatus))
{
if(dwCommStatus & MS_CTS_ON)
TRACE("cts on \n");
if(dwCommStatus & MS_DSR_ON)
TRACE("dsr on \n");
if(dwCommStatus & MS_RING_ON)
TRACE("ring on \n");
if(dwCommStatus & MS_RLSD_ON)
TRACE("rlsd on \n");
else
TRACE("pins no response\n");
}
I am getting pins no response.
Any help is welcome
S.Yamini
|
|
|
|
|
Did you check that your CTS signal is high ? (with a voltmeter or an oscilloscope)
|
|
|
|
|
I checked before I connected the serial port cable to my computer.It showed +9v in the voltmeter and then i connected the serial cable but I am not getting any response or value.
S.Yamini
|
|
|
|
|
Then I don't really see... Are you sure that you the port is opened correctly (with CreateFile) and that you open the same port ?
|
|
|
|
|
Yes I am able to send Text and receive text but not able to monitor the cts pin
S.Yamini
|
|
|
|
|
If I remember right, RS232 uses a voltage feed of +-12V. And I know, from my own experience, that an open connector can give any state, it depends how the hardware is designed.
The question is: Do you get antoher result when you have a negative voltage on the cts pin?
Maybe you can try with a real modem, if you set DTR high/active, then RTS, the modem should respond with setting CTS high/active.
Again, if I remember right, "high/active" really means a negative voltage on the pin in question. But I might be wrong here, so you'd better check that piece of information.
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
What is the value of dwCommStatus ?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|