|
Hi,
From u r words it is not clear what u want to do? and from which control u want to get the notification, ie CListCtrl, CButton
And the Handler code must be in the source file of class derived from CFormView/CDialog.
thanks
Jose Jo.
Jose Jo Martin
http://www.simpletools.co.in
|
|
|
|
|
Hello,
I need to write an parallel algoritm in C/C++ under linux using gcc, to calculate an linear sistem using Gauss-Seidel algorithm.
Can anyone help me? Or give me a point to start?
Thanks a lot!
|
|
|
|
|
See Gauss-Seidel[^]. I bet you haven't searched though.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
I searched but I didn't found what I needed. Indeed, your code helped me, but my problem is to find an algorithm that will work on two cores. I will try to modify your code.Thanks
|
|
|
|
|
Hello!
It's not my code; I just looked up Google.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
What about Googling for (6th item looks promising...) [^]?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
How to video Capture Application using C++
|
|
|
|
|
See here[^]. I don't think it was too difficult to find this
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
|
where do i go to ask silicon labs questions?
|
|
|
|
|
|
find if they have a common forum where you can post your queries too...
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
Member 6038196 wrote: where do i go to ask silicon labs questions?
Uhm...Texas?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Maybe here[^]. How on earth did you end up here for SiLabs question?
|
|
|
|
|
Hallo i have the following prob lem: i need to show a message in the statusbar when my application has nothing to do (IDLE):
i used the following code this is SDI_Appliction:
in the MainFrm.cpp
BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
ON_WM_ENTERIDLE() // Idle
END_MESSAGE_MAP()
bool CMainFrame::OnIdle(LONG lCount)
{
theApp.OnIdle(lCount);
if ((lCount) == 0)
{
// send a message to the statusbar
}
return TRUE;
}
my appliction uses by functions that are in Test_Doc.cpp
i do not know how to solve this problem: Please answer in details. Thanks
|
|
|
|
|
CFrameWnd::SetMessageText
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
can u please explain where should i override the OnIdle()?
i overrode it in the MainFrm.cpp and tried to Debug but the Debugger did not went to it.
|
|
|
|
|
That must be done in your CWinApp derived class.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
it did not work it needs CWnd object.
|
|
|
|
|
Create a custom message handler in CMainFrame class.
From CWinApp::OnIdle do a post message like AfxGetMainWnd()->PostMessage
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Could anyone explain for me what these code doing? Could give me an example ? thanks
typedef union ieee_754_single_precision
{
BYTE bytes[FLOAT_BYTES];
float value;
IEEE_SBITS bits;
} SIEEE_754;
void cHARTTransmitter::Float2IEEE(float fDecimalNum, BYTE *pbIEEE)
{
SIEEE_754 local;
short j = FLOAT_BYTES - 1;
local.value = fDecimalNum;
for (i = 0 ; i < FLOAT_BYTES; i++)
{
pbIEEE[i] = local.bytes[j--];
}
}
Float2IEEE((float)m_data, Data);
|
|
|
|
|
It's converting a float from little-endian form (presuming this code is running on an x86/x64 PC) to big-endian. Let me add comments to your code:
typedef union ieee_754_single_precision
{
BYTE bytes[FLOAT_BYTES];
float value;
IEEE_SBITS bits;
} SIEEE_754;
void cHARTTransmitter::Float2IEEE(float fDecimalNum, BYTE *pbIEEE)
{
SIEEE_754 local;
short j = FLOAT_BYTES - 1;
local.value = fDecimalNum;
for (i = 0 ; i < FLOAT_BYTES; i++)
{
pbIEEE[i] = local.bytes[j--];
}
}
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi ,
I am creating a dialog which is resizable , i have set the property of Border to 'Resizable' which make my dialog resizable . But i am not able to show a 'Resizable Image' on the bottom right corner of the window.
Generally we see these images when we open Internet Explorer in the bottom right corner.
Please provide some comments
|
|
|
|
|
The way I've done it in the past is to create a window of class "SCROLLBAR", with style WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | SBS_SIZEBOX | SBS_SIZEGRIP | SBS_SIZEBOXBOTTOMRIGHTALIGN. You then need to override the parent window's OnSize handler to ensure this window is always at the bottom-right of the parent window.
The other wrinkle is that you probably want to override the parent window's OnNcHitTest handler, so that when the mouse is over this window, you can return HTBOTTOMRIGHT to tell the system that it's over the bottom-right corner part of the border (and so the system will display a resizing cursor).
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
You can use of WM_SIZE for set new location of images.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|