|
actually I want to store the data in my database by getting it from rtd server by calling the rtd function in MFC , in similar way excel call it .
Trioum
|
|
|
|
|
trioum wrote: by calling the rtd function
Really? "the" rtd function? You believe that provides us with specific information from which we can help you? Or maybe you are reading from a new Monty Python script?
|
|
|
|
|
led mike wrote: Yes there is a way. Now can you explain what your sentence means?
Welcome again in the CP's Memorable Quotes [^] (plus a plethora of led-points gained back).
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]
|
|
|
|
|
trioum wrote: I am fetching the data from rtd server...
Real Time Data?
Database storage aside, are you able to retrieve the data from the server?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
yes I am able to retrieve data from the server in excel file .
Trioum
|
|
|
|
|
So are retrieving an Excel file or a stream of data from the server?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
It is actually third party rtd server .I linked to it via excel and getting the data in excel file .
data is updating within milliseconds .I see the rtd formula on the cell. I donot know it is excel file or stream of data . please suggest the solution for both condition .My AIM is to store every updated data in the database .
Trioum
|
|
|
|
|
I'm curious. You don't seem to have any idea what you are doing so how did you end up being the developer of this little project?
|
|
|
|
|
Actually the strategic plan designate:
- Him as the software requirements' author.
- You as the developer.
Good luck to the Dream-Team!
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]
|
|
|
|
|
Hello !
Hai in my application i have to display time taken for execution, at present i am using GetTickCount (), this function gives time in milliseconds, i need more detailed result i.e in microseconds, is there any similiar function?
thanks!
|
|
|
|
|
Well, you could either divide multiply that result by 1000, or resolve to the notion that unless you have a RTOS, you aren't going to get any better than 15ms resolution.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
modified on Thursday, April 2, 2009 9:34 AM
|
|
|
|
|
|
Ahh, what's a few decimal places going to matter?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
You're right, moreover most digits are zeroes...Who cares?
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]
|
|
|
|
|
It doesn't, but I made that same suggestion to some chap a long time ago and he said it was what he needed. I guess three more zeros made all the difference.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
QueryPerformanceFrequency [^] / QueryPerformanceCounter [^] pair maybe interesting.
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]
|
|
|
|
|
I have a HWND pointing to the window in question. Is there any way I can close down my program when the HWND is closed?
Thanks in advance
|
|
|
|
|
Use IsWindow() . If it returns 0 , close your program.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
The program while loop looks like this:
while ( GetMessage(&msg, NULL, 0, 0) ) {
if (IsWindow(hWnd) == 0) {
}
if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
So, IsWindow is not called until a message is received.
|
|
|
|
|
while(GetMessage(&msg, 0, 0, 0)) {
if(!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) {
TranslateMessage(&msg);
DispatchMessage(&msg);
}
if(msg.message == WM_DESTROY && msg.hwnd == hWnd) {
break;
}
}
--
Kein Mitleid Für Die Mehrheit
|
|
|
|
|
Thanks, but the way I have the program set up is hWnd refers to a hidden window which allows me to get a system tray. hWndConsole refers to the console window (which is external to my program). I want to close hWnd when hWndConsole is closed.
Any ideas on how to do this? Sorry for the confusing post.
Thanks
|
|
|
|
|
Actually, I just got it to work. I made the hWndConsole the parent window of the hWnd, so whenever the hWndConsole is updated, the hWnd gets a message. Then I check if the hWndConsole exists.
Thanks for the help
|
|
|
|
|
I think you can try ExitProcess (); while closing that window.
NOTE :This function closes the total application
|
|
|
|
|
Alternatively, you can wait inside a thread on an infinite loop, checking for the window (HWND) existence on a regular-interval of your choice with the help of Sleep(nMilliSecs) + IsWindow() and do a PostQuitMessage() to your application's main window after the said window (HWND) is closed.
This way, you can avoid all the ugly manual message translation and pumping stuff.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hi,
I want from a list let's say A={1,2,3,4} with N elements, 4 in our case , to find the unique combinations for groups of K, where K=2,3...N
For example if N=4 and K=2 then the correct algorithm should output the following results
(1,2)
(1,3)
(1,4)
(2,3)
(2,4)
(3,4)
if N=4 and K=3 then it should output
(1,2,3)
(1,2,4)
(1,3,4)
(2,3,4)
and if N=4 and K=4 then
(1,2,3,4)
Can someone help me to do this without using STL Library ?
Regards
sdancer75
|
|
|
|