/*
* mci.c
* micSendString implementation
* Purpose:
* Python extension module for reading in audio CD-ROM data
in wi
*
* Written 6 Dez 1999 by Frank David <f.david@digitecgmbh.de>
*/
static PyObject *mci_error;
#define MCI_STRING_LEN 1000
static PyObject *mci_mciSendString(PyObject *self, PyObject
*args)
{
char resultStr[MCI_STRING_LEN+1];
PyObject *pyStr = 0;
if (!PyArg_ParseTuple(args, "O!", &PyString_Type, &pyStr))
return NULL;
// winows mciSendString see cdrom.py for Samples (or
MSDN for complete doc)
mciSendString( PyString_AsString(pyStr),
resultStr,MCI_STRING_LEN,0);
return Py_BuildValue("s", resultStr);
}
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=24723
You didn't attach the file here! ;-)
I'm guessing this patch fixed the dependency on:
C:\Programme\Python\include\Python.h
?
Logged In: YES
user_id=511447
You are right. You will find the the begining of my mci.c
file at the end of this message.
Sorry for messing everything up.
Vivian.
#include "mci.h"
#include <windows.h>
#include <mmsystem.h>
#include <Python.h>
/*
* mci.c
* micSendString implementation
* Purpose:
* Python extension module for reading in audio CD-ROM data
in wi
*
* Written 6 Dez 1999 by Frank David <f.david@digitecgmbh.de>
*/
static PyObject *mci_error;
#define MCI_STRING_LEN 1000
static PyObject *mci_mciSendString(PyObject *self, PyObject
*args)
{
char resultStr[MCI_STRING_LEN+1];
PyObject *pyStr = 0;
if (!PyArg_ParseTuple(args, "O!", &PyString_Type, &pyStr))
return NULL;
// winows mciSendString see cdrom.py for Samples (or
MSDN for complete doc)
mciSendString( PyString_AsString(pyStr),
resultStr,MCI_STRING_LEN,0);
return Py_BuildValue("s", resultStr);
}
mci.c