|
|
Well I don't think he did. If a post is edited after being created, then it gets the tag [modified] added to the title, and a date put in at the bottom, as you can see in my modified post[^], or indeed, in your first reply to me.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
I am going to edit this post.
First edit.
Second edit.
Third edit.
This post has been edited five times. There was no modified additions after the first edit, but it did appear after the second. I'm guessing there's a window within which they don't appear. As to why they don't appear on the OP's post I'm not sure. I'm not making this stuff up, the post was edited: My post contains text copied from it using the clipboard and I provided a link from the poster where he says he did. I'm not sure what more I can do to convince you.
Steve
modified 14-Nov-12 8:48am.
|
|
|
|
|
OK, I'm convinced, I just edited a recent post and the changes did not show, looks like a bug for Chris's list.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Richard MacCutchan wrote: Well I don't think he did. If a post is edited after being created, then it gets the tag [modified] added to the title, and a date put in at the bottom, as you can see in my modified post[^], or indeed, in your first reply to me.
This does not always happen, Richard. I would say 15-20% of the time, old posts that I modify show no sign of change.
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
Interesting, I have never noticed that. In my experience modified posts always show the changes.
Let's see if this edit shows up.
[edit sequence="2"]
Well that one did not show the change; maybe it's a timing issue.
[/edit]
[edit sequence="3"]
Well first and second did not show the change; maybe it's a timing issue.
[/edit]
[edit sequence="4"]
Well first, second and third did not show the change; maybe it's a timing issue.
[/edit]
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
But I use the CCriticalSection to lock the m_FrameList, when I am getting the front data from m_FrameList, no others change the m_FrameList. So the pushing an element will be done after pop data.
|
|
|
|
|
I suspect there is some code in your program that you have not shown us.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
yu-jian wrote: pFrameData = m_FrameList.front(); What is pFrameData ?
What does the code shown below this have to do with the error?
yu-jian wrote: But now there is a error happen "erators and references can become invalid." in code, pFrameData = m_FrameList.front(); This is a compiler error?
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
Can you show some more code? On what line does the error occur?
Steve
|
|
|
|
|
I called code as followed
IDispatch* pDisp = NULL;
IPDDomNode* pDocNode = NULL;
AccessibleObjectFromWindow(hPDF, OBJID_NATIVEOM, IID_IDispatch, (void**)&pDisp );
hr = pDisp->QueryInterface(IID_IPDDomNode, (void**)&pDocNode);
the problem is pDocNode stands for the current visible page or the entire document?
when take a test, sometimes(when the pdf file is huge)stands for the current visible page, otherwise it stands for the entire document.
I am puzzled on this.
I need your help man.
|
|
|
|
|
Here is my source code for locking my computer screen (Generally we do by pressing win+L)But Here in the below code what i am trying to do is , when user run the exe created by this application 1st the screen will be invisible (which is not happening in case of win+L) then next time when the user interact with the system it will show the user that the screen is locked .
<pre lang="c++"> #include "stdafx.h"
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
// Turn off monitor
Sleep(500); // Eliminate user's interaction for 500 ms
ret =SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) 2);
}
LockWorkStation();
return 0;
}
|
|
|
|
|
I have just tested this sequence of commands on Windows 7 and it works correctly. Is there something else in your code that you have not shown?
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
no .. i have written everything .. i am using win 7 enterprise edition ..
|
|
|
|
|
I just ran the code you provided (after correcting the errors) and it again works fine in my Windows 7 Home Edition.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
May be its working in Home edition but my question is for enterprise edition .
|
|
|
|
|
Are you sure your code is actually running properly? The code that you posted in your original question will not even compile, so there may be some other bugs in your program.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Could it be the video driver? Could your keyboard/mouse be keeping the computer "alive?" Do you have Power Management configured correctly?
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
can you please give some hint what shall be the power management for this ?
Please brother do reply soon ..Lots of my work depends on it ..
|
|
|
|
|
@DavidCrow : You are genius man .. Thankxx a lot .. As you said its just because of my Graphics driver . Earlier my graphics driver was not compatible with the hardware .. Now i have installed the new driver .. and the issue is resolved.. Thankxx again ..
|
|
|
|
|
std::list<int> lstDevices;
...
...
std::list<int>::iterator iter;
std::list<int>::iterator iter2Delete;
for(iter = lstDevices.begin(); iter != lstDevices.end();)
{
iter2Delete = iter++;
lstDevices.erase(iter2Delete);
}
Use iter2Delete to save current iterator and then let iter pointer to next item. Then delete current item. Does this way have problem?
|
|
|
|
|
See here[^] for a description and sample code showing how to erase a range of elements.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Hi,
Thank you for your replay, after see this article, I find that I am right.
Thankyou a lot.
#include "stdafx.h"
#include <list>
#include <iostream>
int main( )
{
using namespace std;
list <int> c1;
list <int>::iterator Iter;
c1.push_back( 10 );
c1.push_back( 20 );
c1.push_back( 30 );
c1.push_back( 40 );
c1.push_back( 50 );
cout << "The initial list is:";
for ( Iter = c1.begin( ); Iter != c1.end( ); Iter++ )
cout << " " << *Iter;
cout << endl;
std::list<int>::iterator iter;
std::list<int>::iterator iter2Delete;
for(iter = c1.begin(); iter != c1.end();)
{
iter2Delete = iter++;
c1.erase(iter2Delete);
}
for (Iter = c1.begin( ); Iter != c1.end( ); Iter++ )
cout << " " << *Iter;
cout << endl;
}
|
|
|
|
|
Why not use the features of the class and do it the easy way?
c1.erase( c1.begin(), c1.end( ) );
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Or just this:
c1.clear();
Steve
|
|
|
|