On Mon, 24 Jan 2005 16:32:35 -0800, Ray S <[EMAIL PROTECTED]> wrote:
void main()
{
int ns= 100;
// make the sleep in 100th nanoseconds.
ns = (ns + 99)/100;
//ns -= FACTOR;
__asm {
rdtsc
// clock in EDX:EAX
// we ignore EDX since we asume ns is
// of shorter duratio
Title: Message
Howdy,
Yesterday, I sent
out a message, but forgot a couple of key lines. Sorry for the oversite.
from win32com.client import Dispatch
#Open the sheet.
xl_app= Dispatch("Excel.Application")
xl_book=
xl_app.Workbooks.Open()
#Close the sheet and exit the app.
xl_book.Close
I am trying to mimic a short VB program in Python, which iterates over an
Outlook 2002 global address list.
The program runs in VB, so it is working. Unfortunately, I have to have
outlook running for it to work. I was hoping it could be done without
having to launch Outlook. This is only a minor
With the pure Python code below, I get results like:
micro sec: 1.0 12.2 154.8
micro sec: 0.9 11.3 156.0
when requesting 0, 10 and 160 us, which seems reasonable - PII600 Win2K Py2.2.
On Linux with a 2GHz Py2.3 it seems to always return 0.0
Additionally, I don't see why mydelay works as it does; I
NT doesn't do dynamic inheritance. On Windows 2000 and up,
you can set SE_DACL_PROTECTED to prevent inheritance, but not on NT.
Roger
- Original Message -
From: "Atul Kamat" <[EMAIL PROTECTED]>
To:
Sent: Monday, January 24, 2005 6:48 AM
Subject: [python-win32] NT filepermissions
I don't know why your code doesn't work. But I know that this does
(here I am generating a new workbook, not opening an old one).
excel = Dispatch('Excel.Application')
excel.Visible = 0
excel.Workbooks.Add()
excel.Worksheets(1).Activate()
excel.ActiveWorkbook.SaveAs(file)
...do a bunch of stuff