|
Why do you want a separate button to do this? Why not just click the desired tab instead?
Of course I may not be understanding, and you may be talking about this instead.
"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
|
|
|
|
|
Hi guys
I am looking for a C++ library like syslog-ng[^] but with the possibility to run under Windows (syslog-ng needs a POSIX system ). Has anyone an idea or a suggestion?
Not required anymore, I simply took a hour-long Google search on me and made my Windows POSIX-compatible [^] . Since syslog-ng needs POSIX I suppose it will run well and smooth...
Edit: Added "syslog" to the title.
|
|
|
|
|
There are POSIX emulation layers for windows, for example cygwin. Search for cygwin + syslog-ng.
|
|
|
|
|
|
You are welcome. I suggested cygwin just because its popularity but you have options - thats always good!
|
|
|
|
|
FYI... if you're required to export your application to end users, Cygwin might still be an easier option. You may be surprised at the number of commercial applications that rely on Cygwin to run on Windows.
|
|
|
|
|
Hi Albert
thank you for the information, but I am talking about the controller software of this medical diagnostics instrument[^] (pointed that not well enough out, sorry). Because of the regulations in the market we are going to do a hardening process on the OS anyways and can set up the image anyway we want to, so installing the kernel patch is no problem since we decide what the customers OS will look like. And using the kernel patch we get a faster response time anyways, so this is the way to go for us.
But thank you very much for the additional info.
modified 19-Mar-13 11:55am.
|
|
|
|
|
At least you have options...
|
|
|
|
|
hello
i am trying to write a program that counts the no. of records in a file by placing the get pointer at the end of file and using tellg() function to get the pointer position and dividing the no. of bytes with the size of one record to get the no. of total records
but when i write
file.seekg(0,ios::end);
and then inquire the position of get pointer
file.tellg();
the result that i am getting is -1.
please tell me what am i doing wrong?
|
|
|
|
|
|
Is seekg() succeeding?
"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
|
|
|
|
|
Does that error mean the stack has become unbalanced?
I get that error immediately after it returns from a call to VirtualProtect().
I have identical code in another program that does not cause this error, and I can't figure out the difference between the two programs.
What exactly does that error mean is going on?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
I'd guess the stack has been corrupted (buffer overrun in a stack based variable, for example).
Steve
|
|
|
|
|
Thanks, your clue led me to the solution. I was attempting to remove the execute privilege from a page of memory that was currently executing!
So instead of PAGE_WRITECOPY, I changed it to PAGE_EXECUTE_WRITECOPY, and all is well.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
hi all,
i want to set values to CPageSetupDialog,before open this dialog
like: paper size,sorce,orientation and margin.
how can i do this thanks.
thanks.
|
|
|
|
|
|
what field use to set source value?
|
|
|
|
|
I gave you a link to the documentation, you need to go and study it to decide which items you are interested in.
Use the best guess
|
|
|
|
|
may be this help u...
u may have dialog class like,
CPageSetupDialog abc;
abc.papersize = 10;
abc.sorce = "ACC";
abc.margin = 44;
if(abc.DoModal() == IKOK)
{
}else
{
}
|
|
|
|
|
Coder Block wrote: CPageSetupDialog abc;
abc.papersize = 10;
abc.sorce = "ACC";
abc.margin = 44;
if(abc.DoModal() == IKOK)
{
}else
{
}
gives error
error C2039: 'margin' : is not a member of 'CPageSetupDialog'
error C2039: 'papersize' : is not a member of 'CPageSetupDialog'
error C2039: 'sorce' : is not a member of 'CPageSetupDialog'
|
|
|
|
|
Read the docs, PLEASE!
abc.m_psd.ptPaperSize = 10;
abc.m_psd.rtMargin = 44;
...
"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
|
|
|
|
|
As usual declare all this in .h file of CPageSetupDialog..
|
|
|
|
|
I need to debug a program for which I do not have the source code.
I want to place a breakpoint at the CreateFile() Win32 API.
I have told Visual Studio to load the symbols for KernelBase.dll and Kernel32.dll .
Now how can I tell the Disassembly View to take me to the location of CreateFile()?
Thanks in advance.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Visual Studio is not the right tool for reverse engineering. Use IDA Pro or OllyDbg. IDA Pro is damn expensive while OllyDbg is free. A lot of reverse engineering guys use these.
|
|
|
|
|
Thanks, I'll look into both of those.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|