|
|
|
Hi,everybody. I have a little question: is there MFC Class which allows to obtain R,G,B - value of each pixels in jpeg-file?
|
|
|
|
|
CImage::Load then CImage::GetPixel()
|
|
|
|
|
|
And then use of GetRvalue or G or B.
|
|
|
|
|
m_pAnimate = new CStatusbarAnimate; cause crash with the following info below when called from thread
work fine normally, any resolution please...
The instruction at "0x00402150" referenced memory at "0x00b9004c". The memory could not be "written".
|
|
|
|
|
|
|
From secondary threads post messages whenever appropriate to themain thread and let the latter doing the actual GUI updating work.
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
|
|
|
|
|
Ohh got it, CWinThread *thpbar; is private... i made it public
Now I am not getting the error, but avi is not playing on Status bare of main frame.
UINT TestDlg::thPrgbar( LPVOID pParam )
{
CMainFrame* pFrame = (CMainFrame*)AfxGetMainWnd();
pFrame->StartAnimation( IDR_AVITEST ,1);
MSG oMSG;
while(::PeekMessage(&oMSG, NULL, 0, 0, PM_NOREMOVE))
{
if(::GetMessage(&oMSG, NULL, 0, 0))
{
::TranslateMessage(&oMSG);
::DispatchMessage(&oMSG);
}
else
{
break;
}
}
}
|
|
|
|
|
Do you read my post?
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
|
|
|
|
|
I am sorry, can u pls make me understand, now I dont have a crash, but need to update UI ...play Avi from thread, it works fine on button click event
|
|
|
|
|
As I already suggested, from the worker thread, send a message to the main thread whenever you need to play the animation and let the main thread itself to play it.
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
|
|
|
|
|
|
|
Many Thanks Randor .... Actually ..I am modifying code of very large application, which has the same case, number of times, so I looking for a simply way to do this, with out change much in the existing code, So I planed to have a thread that plays avi and calling it when every required from all the dialog boxes...Am I going the right way...or is there any other work around...pls advice...
|
|
|
|
|
The code in my above response requires very little changes to the class, it even supports your multiple AVI resource ID and pane ID in the thread class. If you follow the instructions I have provided I am very confident that it will solve your problem. Please try it and see.
Best Wishes,
-David Delaune
|
|
|
|
|
Ok Thanks you very much. Have a nice day.... bye
|
|
|
|
|
Hi All,
I am using VC++ 2003 and Oracle 10. I have created a table in Oracle.
The table has ten fields including a primary key (field).
Is there any function in VC++ to know the extracted field (from database) is primary key?
I am using ODBC..
|
|
|
|
|
Can't you just execute SQL command "DESCRIBE tablename"?
-David Delaune
|
|
|
|
|
How would that work?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I have not used oracle in some years, I just remember there was a command 'DESCRIBE' table
**Update**
Found some old code!
I think he can do this:
SELECT CONSTRAINT_NAME FROM USER_CONSTRAINTS WHERE TABLE_NAME = "table" AND CONSTRAINT_TYPE = 'P';
|
|
|
|
|
Randor wrote: I have not used oracle in some years, I just remember there was a command 'DESCRIBE' table
True, but I couldn't find where it populated anything regarding a primary key.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi
How i can get Client Ip And Url at the time of request.I mean when client send request to server that time server show client Ip and Url.
|
|
|
|