From m_konermann@gmx.de Sat Dec 1 12:58:53 2001
From: m_konermann@gmx.de (Marcus Konermann)
Date: Sat, 01 Dec 2001 13:58:53 +0100
Subject: [python-win32] Linking Problems using VC++ 6.0
Message-ID: <3C08D40D.FB5CDAFE@gmx.de>
--------------9A03EF69DDF429C655003955
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Hi @ All !
I am working with SWIG and generated a C++ file to use it under python.
I work with windows2000 and the VC++ 6.0 Compiler, but now there are
linking
problems, VC++ says:
Temporäre Dateien und Ausgabedateien für "AG TEM - Win32 Debug" werden
gelöscht.
--------------------Konfiguration: AG TEM - Win32
Debug--------------------
SWIG !!!
Kompilierung läuft...
simanneal.cpp
simanneal_wrap.cpp
Linker-Vorgang läuft...
Bibliothek Debug/AG TEM.lib und Objekt Debug/AG TEM.exp wird erstellt
simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: void __thiscall variablelist::clean(void)"
(?clean@variablelist@@QAEXXZ)
simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall variablelist::pt2xn(int)"
(?pt2xn@variablelist@@QAEHH@Z)
simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::copy(struct variable *)"
(?copy@string@@QAEHPAUvariable@@@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::copy(struct variable *)"
(?copy@string@@QAEHPAUvariable@@@Z)
simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: struct variable & __thiscall variable::operator=(struct
variable &)"
(??4variable@@QAEAAU0@AAU0@@Z)
simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol "int
__cdecl calculate(struct variable &,struct variablelist *,struct
basisfile *,struct
string *)"
(?calculate@@YAHAAUvariable@@PAUvariablelist@@PAUbasisfile@@PAUstring@@@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"int __cdecl calculate(struct variable &,struct variablelist *,struct
basisfile
*,struct string *)"
(?calculate@@YAHAAUvariable@@PAUvariablelist@@PAUbasisfile@@PAUstring@@@Z)
simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall evaluate::abort(struct variable &)"
(?abort@evaluate@@QAEHAAUvariable@@@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall evaluate::abort(struct variable &)"
(?abort@evaluate@@QAEHAAUvariable@@@Z)
simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: __thiscall variable::~variable(void)" (??1variable@@QAE@XZ)
simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol "void
__cdecl strprint(struct string &,char *,char *)"
(?strprint@@YAXAAUstring@@PAD1@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"void __cdecl strprint(struct string &,char *,char *)"
(?strprint@@YAXAAUstring@@PAD1@Z)
simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol "int
__cdecl calculate(struct variable &,struct basisfile *,struct string *)"
(?calculate@@YAHAAUvariable@@PAUbasisfile@@PAUstring@@@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"int __cdecl calculate(struct variable &,struct basisfile *,struct
string *)"
(?calculate@@YAHAAUvariable@@PAUbasisfile@@PAUstring@@@Z)
simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: void __thiscall variable::init(double,int)"
(?init@variable@@QAEXNH@Z)
simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: __thiscall variable::variable(void)" (??0variable@@QAE@XZ)
simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol "int
__cdecl read_double(double &,struct variable *)"
(?read_double@@YAHAANPAUvariable@@@Z)
simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol "int
__cdecl random_step(struct variable *,struct variable *)"
(?random_step@@YAHPAUvariable@@0@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: __thiscall evaluate::evaluate(void)" (??0evaluate@@QAE@XZ)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: __thiscall evaluate::~evaluate(void)" (??1evaluate@@QAE@XZ)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: __thiscall string::string(void)" (??0string@@QAE@XZ)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: __thiscall string::string(int,char *)"
(??0string@@QAE@HPAD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: __thiscall string::string(char *,char *)"
(??0string@@QAE@PAD0@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: __thiscall string::string(struct string &,char *)"
(??0string@@QAE@AAU0@PAD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: __thiscall string::~string(void)" (??1string@@QAE@XZ)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: void __thiscall string::clean(void)" (?clean@string@@QAEXXZ)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: struct string & __thiscall string::cat(struct string &)"
(?cat@string@@QAEAAU1@AAU1@@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: struct string & __thiscall string::cat(char *)"
(?cat@string@@QAEAAU1@PAD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: struct string & __thiscall string::copy(struct string &)"
(?copy@string@@QAEAAU1@AAU1@@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: struct string & __thiscall string::copy(char *)"
(?copy@string@@QAEAAU1@PAD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::copy(double,long)"
(?copy@string@@QAEHNJ@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::copy(int)" (?copy@string@@QAEHH@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: void __thiscall string::out(char * *)"
(?out@string@@QAEXPAPAD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: struct string & __thiscall string::ncopy(struct string &,int)"
(?ncopy@string@@QAEAAU1@AAU1@H@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: struct string & __thiscall string::ncopy(struct string
&,int,int)"
(?ncopy@string@@QAEAAU1@AAU1@HH@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: struct string & __thiscall string::compose(struct string
&,struct
string &,char *)"
(?compose@string@@QAEAAU1@AAU1@0PAD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: struct string & __thiscall string::compose(struct string &,char
*,char *)"
(?compose@string@@QAEAAU1@AAU1@PAD1@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: struct string & __thiscall string::compose(struct string
&,double,char *)"
(?compose@string@@QAEAAU1@AAU1@NPAD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: struct string & __thiscall string::compose(struct string
&,int,char
*)"
(?compose@string@@QAEAAU1@AAU1@HPAD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::element(int)"
(?element@string@@QAEHH@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::compare(struct string &)"
(?compare@string@@QAEHAAU1@@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::compare(char *)"
(?compare@string@@QAEHPAD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::string_complement_span(char *,int)"
(?string_complement_span@string@@QAEHPADH@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::string_complement_span(struct string
&,int)"
(?string_complement_span@string@@QAEHAAU1@H@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::string_complement_span(char *)"
(?string_complement_span@string@@QAEHPAD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::string_span(struct string &,int)"
(?string_span@string@@QAEHAAU1@H@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::string_span(char *,int)"
(?string_span@string@@QAEHPADH@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::string_string(struct string &,char *)"
(?string_string@string@@QAEHAAU1@PAD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::string_string(struct string &,struct
string &)"
(?string_string@string@@QAEHAAU1@0@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::string_string(struct string &,struct
string
&,int)"
(?string_string@string@@QAEHAAU1@0H@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::string_character(char)"
(?string_character@string@@QAEHD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: void __thiscall string::string_pointer_break(struct string
&,char *)"
(?string_pointer_break@string@@QAEXAAU1@PAD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: struct _iobuf * __thiscall string::fileopen(char *)"
(?fileopen@string@@QAEPAU_iobuf@@PAD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::fileread(struct string &)"
(?fileread@string@@QAEHAAU1@@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::filereadc(struct string &,char)"
(?filereadc@string@@QAEHAAU1@D@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::filewrite(struct string &,char *)"
(?filewrite@string@@QAEHAAU1@PAD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::filewrite(struct _iobuf *)"
(?filewrite@string@@QAEHPAU_iobuf@@@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::system_call(void)"
(?system_call@string@@QAEHXZ)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: void __thiscall string::init(int,char *)"
(?init@string@@QAEXHPAD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"void __cdecl print(struct string &)" (?print@@YAXAAUstring@@@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"void __cdecl strprint(struct string &,int,char *,char *)"
(?strprint@@YAXAAUstring@@HPAD1@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"void __cdecl strprint(struct string &,int,char,char *,char *)"
(?strprint@@YAXAAUstring@@HDPAD1@Z)
Debug/AG TEM.dll : fatal error LNK1120: 57 unaufgeloeste externe
Verweise
Fehler beim Ausführen von link.exe.
AG TEM.dll - 63 Fehler, 0 Warnung(en)
Have you got an idea ?
Greetings
Marcus
--------------9A03EF69DDF429C655003955
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi @ All !
I am working with SWIG and generated a C++ file to use it under python.
I work with windows2000 and the VC++ 6.0 Compiler, but now there are linking
problems, VC++ says:
Temporäre Dateien und Ausgabedateien für "AG TEM - Win32
Debug" werden gelöscht.
--------------------Konfiguration: AG TEM - Win32 Debug--------------------
SWIG !!!
Kompilierung läuft...
simanneal.cpp
simanneal_wrap.cpp
Linker-Vorgang läuft...
Bibliothek Debug/AG TEM.lib und Objekt Debug/AG TEM.exp
wird erstellt
simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: void __thiscall variablelist::clean(void)"
(?clean@variablelist@@QAEXXZ)
simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall variablelist::pt2xn(int)"
(?pt2xn@variablelist@@QAEHH@Z)
simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::copy(struct variable *)"
(?copy@string@@QAEHPAUvariable@@@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::copy(struct variable *)"
(?copy@string@@QAEHPAUvariable@@@Z)
simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: struct variable & __thiscall variable::operator=(struct variable
&)"
(??4variable@@QAEAAU0@AAU0@@Z)
simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"int __cdecl calculate(struct variable &,struct variablelist *,struct
basisfile *,struct
string *)"
(?calculate@@YAHAAUvariable@@PAUvariablelist@@PAUbasisfile@@PAUstring@@@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"int __cdecl calculate(struct variable &,struct variablelist *,struct
basisfile
*,struct string *)"
(?calculate@@YAHAAUvariable@@PAUvariablelist@@PAUbasisfile@@PAUstring@@@Z)
simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall evaluate::abort(struct variable &)"
(?abort@evaluate@@QAEHAAUvariable@@@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall evaluate::abort(struct variable &)"
(?abort@evaluate@@QAEHAAUvariable@@@Z)
simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: __thiscall variable::~variable(void)" (??1variable@@QAE@XZ)
simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"void __cdecl strprint(struct string &,char *,char *)"
(?strprint@@YAXAAUstring@@PAD1@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"void __cdecl strprint(struct string &,char *,char *)"
(?strprint@@YAXAAUstring@@PAD1@Z)
simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"int __cdecl calculate(struct variable &,struct basisfile *,struct
string *)"
(?calculate@@YAHAAUvariable@@PAUbasisfile@@PAUstring@@@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"int __cdecl calculate(struct variable &,struct basisfile *,struct
string *)"
(?calculate@@YAHAAUvariable@@PAUbasisfile@@PAUstring@@@Z)
simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: void __thiscall variable::init(double,int)"
(?init@variable@@QAEXNH@Z)
simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: __thiscall variable::variable(void)" (??0variable@@QAE@XZ)
simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"int __cdecl read_double(double &,struct variable *)"
(?read_double@@YAHAANPAUvariable@@@Z)
simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"int __cdecl random_step(struct variable *,struct variable *)"
(?random_step@@YAHPAUvariable@@0@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: __thiscall evaluate::evaluate(void)" (??0evaluate@@QAE@XZ)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: __thiscall evaluate::~evaluate(void)" (??1evaluate@@QAE@XZ)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: __thiscall string::string(void)" (??0string@@QAE@XZ)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: __thiscall string::string(int,char *)"
(??0string@@QAE@HPAD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: __thiscall string::string(char *,char *)"
(??0string@@QAE@PAD0@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: __thiscall string::string(struct string &,char *)"
(??0string@@QAE@AAU0@PAD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: __thiscall string::~string(void)" (??1string@@QAE@XZ)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: void __thiscall string::clean(void)" (?clean@string@@QAEXXZ)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: struct string & __thiscall string::cat(struct string &)"
(?cat@string@@QAEAAU1@AAU1@@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: struct string & __thiscall string::cat(char *)"
(?cat@string@@QAEAAU1@PAD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: struct string & __thiscall string::copy(struct string &)"
(?copy@string@@QAEAAU1@AAU1@@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: struct string & __thiscall string::copy(char *)"
(?copy@string@@QAEAAU1@PAD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::copy(double,long)"
(?copy@string@@QAEHNJ@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::copy(int)" (?copy@string@@QAEHH@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: void __thiscall string::out(char * *)"
(?out@string@@QAEXPAPAD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: struct string & __thiscall string::ncopy(struct string &,int)"
(?ncopy@string@@QAEAAU1@AAU1@H@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: struct string & __thiscall string::ncopy(struct string &,int,int)"
(?ncopy@string@@QAEAAU1@AAU1@HH@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: struct string & __thiscall string::compose(struct string &,struct
string &,char *)"
(?compose@string@@QAEAAU1@AAU1@0PAD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: struct string & __thiscall string::compose(struct string &,char
*,char *)"
(?compose@string@@QAEAAU1@AAU1@PAD1@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: struct string & __thiscall string::compose(struct string
&,double,char *)"
(?compose@string@@QAEAAU1@AAU1@NPAD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: struct string & __thiscall string::compose(struct string &,int,char
*)"
(?compose@string@@QAEAAU1@AAU1@HPAD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::element(int)"
(?element@string@@QAEHH@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::compare(struct string &)"
(?compare@string@@QAEHAAU1@@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::compare(char *)"
(?compare@string@@QAEHPAD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::string_complement_span(char *,int)"
(?string_complement_span@string@@QAEHPADH@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::string_complement_span(struct string &,int)"
(?string_complement_span@string@@QAEHAAU1@H@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::string_complement_span(char *)"
(?string_complement_span@string@@QAEHPAD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::string_span(struct string &,int)"
(?string_span@string@@QAEHAAU1@H@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::string_span(char *,int)"
(?string_span@string@@QAEHPADH@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::string_string(struct string &,char
*)"
(?string_string@string@@QAEHAAU1@PAD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::string_string(struct string &,struct
string &)"
(?string_string@string@@QAEHAAU1@0@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::string_string(struct string &,struct
string
&,int)"
(?string_string@string@@QAEHAAU1@0H@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::string_character(char)"
(?string_character@string@@QAEHD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: void __thiscall string::string_pointer_break(struct string &,char
*)"
(?string_pointer_break@string@@QAEXAAU1@PAD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: struct _iobuf * __thiscall string::fileopen(char *)"
(?fileopen@string@@QAEPAU_iobuf@@PAD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::fileread(struct string &)"
(?fileread@string@@QAEHAAU1@@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::filereadc(struct string &,char)"
(?filereadc@string@@QAEHAAU1@D@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::filewrite(struct string &,char *)"
(?filewrite@string@@QAEHAAU1@PAD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::filewrite(struct _iobuf *)"
(?filewrite@string@@QAEHPAU_iobuf@@@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: int __thiscall string::system_call(void)"
(?system_call@string@@QAEHXZ)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"public: void __thiscall string::init(int,char *)"
(?init@string@@QAEXHPAD@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"void __cdecl print(struct string &)" (?print@@YAXAAUstring@@@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"void __cdecl strprint(struct string &,int,char *,char *)"
(?strprint@@YAXAAUstring@@HPAD1@Z)
simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
"void __cdecl strprint(struct string &,int,char,char *,char *)"
(?strprint@@YAXAAUstring@@HDPAD1@Z)
Debug/AG TEM.dll : fatal error LNK1120: 57 unaufgeloeste externe
Verweise
Fehler beim Ausführen von link.exe.
AG TEM.dll - 63 Fehler, 0 Warnung(en)
Have you got an idea ?
Greetings
Marcus
--------------9A03EF69DDF429C655003955--
From m_konermann@gmx.de Mon Dec 3 10:02:37 2001
From: m_konermann@gmx.de (Marcus Konermann)
Date: Mon, 03 Dec 2001 11:02:37 +0100
Subject: [python-win32] Installation problems
Message-ID: <3C0B4DBD.37617612@gmx.de>
Hi @ All !
I want to generate a python shadow class from an excisting c++ file by
using SWIG and VC++ 6.0 under Windows 2000 and i think that something
went wrong with the installation of SWIG under VC++. Can anyone give me
an advise where i can find detailed information of the installation
process ? It seems that there are some binding problems of SWIG with
VC++.
P.s: i also looked in the Installation section on www.swig.org
Greetings
Marcus
From simuran@shaw.ca Mon Dec 3 15:47:27 2001
From: simuran@shaw.ca (Alex Rodioukov)
Date: 03 Dec 2001 08:47:27 -0700
Subject: [python-win32] PythonWin, PIL, hDIB
Message-ID: <87d71wb90w.fsf@bismark.io.sys>
Hello,
I would like to know if it is possible to create a DIB (device
independent bitmap) handle using PIL's ImageWin module and
PythonWin. My problem is that I have no clue on how to get from DC
(device context) handle to DIB handle. Also, my knowledge of MFC is
next to nothing, so the snippet of code doing above mentioned magic
would be extremely appreciated :)
Also, is there a decent TIFF plug-in for PIL on win32 that will
understand G3/G4 TIFFs?
TIA, A.R.
P.S.: I've already posted this question to c.l.p and Image-SIG but
received no response so far :( Hope it is appropriate to repost it
here.
--
Complex problems have simple, easy to understand wrong answers.
From m95_bel@yahoo.com Mon Dec 3 17:07:47 2001
From: m95_bel@yahoo.com (Daniel Bernholc)
Date: Mon, 3 Dec 2001 09:07:47 -0800 (PST)
Subject: [python-win32] newbie question: memory allocation
Message-ID: <20011203170747.4390.qmail@web11608.mail.yahoo.com>
I wrote a small script for parsing a webserver log
file and store some values in a database. My test log
file has about 50,000 rows and I noticed that i took
much more time than expected (about 2 minutes). I ran
the script a few times and noticed that the python
process only uses 10388 KB memory (and even less
virtual memory). Is there anyway to let python use
more memory than that?
__________________________________________________
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com
From MarkH@ActiveState.com Mon Dec 3 22:11:22 2001
From: MarkH@ActiveState.com (Mark Hammond)
Date: Tue, 4 Dec 2001 09:11:22 +1100
Subject: [python-win32] PythonWin, PIL, hDIB
In-Reply-To: <87d71wb90w.fsf@bismark.io.sys>
Message-ID:
You could look at the Pythonwin pywin\demo\dibdemo.py file - not exactly
what you are after, but may be a good start.
Mark.
> I would like to know if it is possible to create a DIB (device
> independent bitmap) handle using PIL's ImageWin module and
> PythonWin. My problem is that I have no clue on how to get from DC
> (device context) handle to DIB handle. Also, my knowledge of MFC is
> next to nothing, so the snippet of code doing above mentioned magic
> would be extremely appreciated :)
>
> Also, is there a decent TIFF plug-in for PIL on win32 that will
> understand G3/G4 TIFFs?
>
> TIA, A.R.
>
> P.S.: I've already posted this question to c.l.p and Image-SIG but
> received no response so far :( Hope it is appropriate to repost it
> here.
>
> --
> Complex problems have simple, easy to understand wrong answers.
>
>
> _______________________________________________
> Python-win32 mailing list
> Python-win32@python.org
> http://mail.python.org/mailman/listinfo/python-win32
>
From simuran@shaw.ca Tue Dec 4 02:58:23 2001
From: simuran@shaw.ca (Alex Rodioukov)
Date: 03 Dec 2001 19:58:23 -0700
Subject: [python-win32] PythonWin, PIL, hDIB
In-Reply-To:
References:
Message-ID: <87snarofn4.fsf@bismark.io.sys>
Mark Hammond writes:
> You could look at the Pythonwin pywin\demo\dibdemo.py file - not exactly
> what you are after, but may be a good start.
>
> Mark.
Mark, thanks for your input. I wish it was that easy...
>>> import win32ui
>>> dib = win32ui.CreateDIBitmap()
Traceback (most recent call last):
File "", line 1, in ?
AttributeError: 'win32ui' module has no attribute 'CreateDIBitmap'
That's with ActivePython 2.1.1 Build 212. Is there any other way to
create DIB with PythonWin? Can PyBitmap be used for that purpose?
TIA, A.R.
--
Complex problems have simple, easy to understand wrong answers.
From MarkH@ActiveState.com Tue Dec 4 03:08:55 2001
From: MarkH@ActiveState.com (Mark Hammond)
Date: Tue, 4 Dec 2001 14:08:55 +1100
Subject: [python-win32] PythonWin, PIL, hDIB
In-Reply-To: <87snarofn4.fsf@bismark.io.sys>
Message-ID:
It looks like you need to say:
bitmap = win32ui.CreateBitmap()
bitmap.LoadBitmapFile()
Mark.
> Mark Hammond writes:
>
> > You could look at the Pythonwin pywin\demo\dibdemo.py file - not exactly
> > what you are after, but may be a good start.
> >
> > Mark.
>
> Mark, thanks for your input. I wish it was that easy...
>
> >>> import win32ui
> >>> dib = win32ui.CreateDIBitmap()
> Traceback (most recent call last):
> File "", line 1, in ?
> AttributeError: 'win32ui' module has no attribute 'CreateDIBitmap'
>
> That's with ActivePython 2.1.1 Build 212. Is there any other way to
> create DIB with PythonWin? Can PyBitmap be used for that purpose?
>
> TIA, A.R.
>
> --
> Complex problems have simple, easy to understand wrong answers.
>
From wsf@fultondesigns.co.uk Mon Dec 3 22:30:05 2001
From: wsf@fultondesigns.co.uk (William S Fulton)
Date: Mon, 3 Dec 2001 22:30:05 -0000
Subject: [python-win32] Re: [Swig] Installation problems
References: <3C0B4DBD.37617612@gmx.de>
Message-ID: <009301c17c4e$ea6fe6e0$0b00a8c0@leopard>
> I want to generate a python shadow class from an excisting c++ file by
> using SWIG and VC++ 6.0 under Windows 2000 and i think that something
> went wrong with the installation of SWIG under VC++. Can anyone give me
> an advise where i can find detailed information of the installation
> process ? It seems that there are some binding problems of SWIG with
> VC++.
Download swigwin-1.3.9 by selecting 'All Releases' at
http://www.swig.org/download.html. Read the ReadmeWindows.txt file with the
download, it tells you everything you need to know - you will also have to
download the main swig-1.3.9 package as per instructions in the readme file.
Cheers
William
From jens.jorgensen@tallan.com Tue Dec 4 20:15:22 2001
From: jens.jorgensen@tallan.com (Jorgensen, Jens)
Date: Tue, 04 Dec 2001 14:15:22 -0600
Subject: [python-win32] Linking Problems using VC++ 6.0
References: <3C08D40D.FB5CDAFE@gmx.de>
Message-ID: <3C0D2EDA.3090202@tallan.com>
Well, you sure do have a lot of errors there Marcus. I'm not sure if
this is your problem because I didn't see the message that usually
indicate this error but did you install the debug libraries for python?
They don't come as part of the usual installation and you need them to
do debug builds in VC++,mainly because the python header files have a
statement including the libraries automatically:
TALLAN2$ grep \\.lib /c/Python21/include/*
/c/Python21/include/config.h:/* So nobody using MSVC needs to specify
the .lib i
n their Makefile any
/c/Python21/include/config.h:#pragma comment(lib,"python21_d.lib")
/c/Python21/include/config.h:#pragma comment(lib,"python21.lib")
TALLAN2$
Like say the errors below don't actually imply this is your problem but
I just noticed you were doing a debug build and this is something that's
bitten me in the past.
Marcus Konermann wrote:
> Hi @ All !
>
> I am working with SWIG and generated a C++ file to use it under
> python. I work with windows2000 and the VC++ 6.0 Compiler, but now
> there are linking
> problems, VC++ says:
>
>
> /Temporäre Dateien und Ausgabedateien für "AG TEM - Win32 Debug"
> werden gelöscht./
> /--------------------Konfiguration: AG TEM - Win32
> Debug--------------------/
> /SWIG !!!/
> /Kompilierung läuft.../
> /simanneal.cpp/
> /simanneal_wrap.cpp/
> /Linker-Vorgang läuft.../
> / Bibliothek Debug/AG TEM.lib und Objekt Debug/AG TEM.exp wird erstellt/
> /simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: void __thiscall variablelist::clean(void)"/
> /(?clean@variablelist@@QAEXXZ)/
> /simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: int __thiscall variablelist::pt2xn(int)"/
> /(?pt2xn@variablelist@@QAEHH@Z)/
> /simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: int __thiscall string::copy(struct variable *)"/
> /(?copy@string@@QAEHPAUvariable@@@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: int __thiscall string::copy(struct variable *)"/
> /(?copy@string@@QAEHPAUvariable@@@Z)/
> /simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: struct variable & __thiscall variable::operator=(struct
> variable &)"/
> /(??4variable@@QAEAAU0@AAU0@@Z)/
> /simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol "int
> __cdecl calculate(struct variable &,struct variablelist *,struct
> basisfile *,struct/
> /string *)"/
> /(?calculate@@YAHAAUvariable@@PAUvariablelist@@PAUbasisfile@@PAUstring@@@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "int __cdecl calculate(struct variable &,struct variablelist *,struct
> basisfile/
> /*,struct string *)"/
> /(?calculate@@YAHAAUvariable@@PAUvariablelist@@PAUbasisfile@@PAUstring@@@Z)/
> /simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: int __thiscall evaluate::abort(struct variable &)"/
> /(?abort@evaluate@@QAEHAAUvariable@@@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: int __thiscall evaluate::abort(struct variable &)"/
> /(?abort@evaluate@@QAEHAAUvariable@@@Z)/
> /simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: __thiscall variable::~variable(void)" (??1variable@@QAE@XZ)/
> /simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "void __cdecl strprint(struct string &,char *,char *)"/
> /(?strprint@@YAXAAUstring@@PAD1@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "void __cdecl strprint(struct string &,char *,char *)"/
> /(?strprint@@YAXAAUstring@@PAD1@Z)/
> /simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol "int
> __cdecl calculate(struct variable &,struct basisfile *,struct string *)"/
> /(?calculate@@YAHAAUvariable@@PAUbasisfile@@PAUstring@@@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "int __cdecl calculate(struct variable &,struct basisfile *,struct
> string *)"/
> /(?calculate@@YAHAAUvariable@@PAUbasisfile@@PAUstring@@@Z)/
> /simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: void __thiscall variable::init(double,int)"/
> /(?init@variable@@QAEXNH@Z)/
> /simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: __thiscall variable::variable(void)" (??0variable@@QAE@XZ)/
> /simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol "int
> __cdecl read_double(double &,struct variable *)"/
> /(?read_double@@YAHAANPAUvariable@@@Z)/
> /simanneal.obj : error LNK2001: Nichtaufgeloestes externes Symbol "int
> __cdecl random_step(struct variable *,struct variable *)"/
> /(?random_step@@YAHPAUvariable@@0@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: __thiscall evaluate::evaluate(void)" (??0evaluate@@QAE@XZ)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: __thiscall evaluate::~evaluate(void)" (??1evaluate@@QAE@XZ)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: __thiscall string::string(void)" (??0string@@QAE@XZ)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: __thiscall string::string(int,char *)"/
> /(??0string@@QAE@HPAD@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: __thiscall string::string(char *,char *)"/
> /(??0string@@QAE@PAD0@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: __thiscall string::string(struct string &,char *)"/
> /(??0string@@QAE@AAU0@PAD@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: __thiscall string::~string(void)" (??1string@@QAE@XZ)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: void __thiscall string::clean(void)" (?clean@string@@QAEXXZ)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: struct string & __thiscall string::cat(struct string &)"/
> /(?cat@string@@QAEAAU1@AAU1@@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: struct string & __thiscall string::cat(char *)"/
> /(?cat@string@@QAEAAU1@PAD@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: struct string & __thiscall string::copy(struct string &)"/
> /(?copy@string@@QAEAAU1@AAU1@@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: struct string & __thiscall string::copy(char *)"/
> /(?copy@string@@QAEAAU1@PAD@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: int __thiscall string::copy(double,long)"/
> /(?copy@string@@QAEHNJ@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: int __thiscall string::copy(int)" (?copy@string@@QAEHH@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: void __thiscall string::out(char * *)"/
> /(?out@string@@QAEXPAPAD@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: struct string & __thiscall string::ncopy(struct string &,int)"/
> /(?ncopy@string@@QAEAAU1@AAU1@H@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: struct string & __thiscall string::ncopy(struct string
> &,int,int)"/
> /(?ncopy@string@@QAEAAU1@AAU1@HH@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: struct string & __thiscall string::compose(struct string
> &,struct/
> /string &,char *)"/
> /(?compose@string@@QAEAAU1@AAU1@0PAD@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: struct string & __thiscall string::compose(struct string &,char/
> /*,char *)"/
> /(?compose@string@@QAEAAU1@AAU1@PAD1@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: struct string & __thiscall string::compose(struct string/
> /&,double,char *)"/
> /(?compose@string@@QAEAAU1@AAU1@NPAD@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: struct string & __thiscall string::compose(struct string
> &,int,char/
> /*)"/
> /(?compose@string@@QAEAAU1@AAU1@HPAD@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: int __thiscall string::element(int)"/
> /(?element@string@@QAEHH@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: int __thiscall string::compare(struct string &)"/
> /(?compare@string@@QAEHAAU1@@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: int __thiscall string::compare(char *)"/
> /(?compare@string@@QAEHPAD@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: int __thiscall string::string_complement_span(char *,int)"/
> /(?string_complement_span@string@@QAEHPADH@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: int __thiscall string::string_complement_span(struct string
> &,int)"/
> /(?string_complement_span@string@@QAEHAAU1@H@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: int __thiscall string::string_complement_span(char *)"/
> /(?string_complement_span@string@@QAEHPAD@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: int __thiscall string::string_span(struct string &,int)"/
> /(?string_span@string@@QAEHAAU1@H@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: int __thiscall string::string_span(char *,int)"/
> /(?string_span@string@@QAEHPADH@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: int __thiscall string::string_string(struct string &,char *)"/
> /(?string_string@string@@QAEHAAU1@PAD@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: int __thiscall string::string_string(struct string &,struct
> string &)"/
> /(?string_string@string@@QAEHAAU1@0@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: int __thiscall string::string_string(struct string &,struct
> string/
> /&,int)"/
> /(?string_string@string@@QAEHAAU1@0H@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: int __thiscall string::string_character(char)"/
> /(?string_character@string@@QAEHD@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: void __thiscall string::string_pointer_break(struct string
> &,char *)"/
> /(?string_pointer_break@string@@QAEXAAU1@PAD@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: struct _iobuf * __thiscall string::fileopen(char *)"/
> /(?fileopen@string@@QAEPAU_iobuf@@PAD@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: int __thiscall string::fileread(struct string &)"/
> /(?fileread@string@@QAEHAAU1@@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: int __thiscall string::filereadc(struct string &,char)"/
> /(?filereadc@string@@QAEHAAU1@D@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: int __thiscall string::filewrite(struct string &,char *)"/
> /(?filewrite@string@@QAEHAAU1@PAD@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: int __thiscall string::filewrite(struct _iobuf *)"/
> /(?filewrite@string@@QAEHPAU_iobuf@@@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: int __thiscall string::system_call(void)"/
> /(?system_call@string@@QAEHXZ)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "public: void __thiscall string::init(int,char *)"/
> /(?init@string@@QAEXHPAD@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "void __cdecl print(struct string &)" (?print@@YAXAAUstring@@@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "void __cdecl strprint(struct string &,int,char *,char *)"/
> /(?strprint@@YAXAAUstring@@HPAD1@Z)/
> /simanneal_wrap.obj : error LNK2001: Nichtaufgeloestes externes Symbol
> "void __cdecl strprint(struct string &,int,char,char *,char *)"/
> /(?strprint@@YAXAAUstring@@HDPAD1@Z)/
> /Debug/AG TEM.dll : fatal error LNK1120: 57 unaufgeloeste externe
> Verweise/
> /Fehler beim Ausführen von link.exe./
>
> /AG TEM.dll - 63 Fehler, 0 Warnung(en)/
>
> Have you got an idea ?
>
> Greetings
> Marcus
>
--
Jens B. Jorgensen
jens.jorgensen@tallan.com
From saveenr@msn.com Fri Dec 7 00:09:26 2001
From: saveenr@msn.com (saveenr)
Date: Thu, 6 Dec 2001 16:09:26 -0800
Subject: [python-win32] Screen capture using PythonWin and PIL
In-Reply-To:
Message-ID: <000301c17eb3$6ed58fa0$6501a8c0@balder2>
I'm trying to take capture the screen (or a window on the screen) as a
bitmap I can save to disk. I can't see how this can be accomplished
through the use of PIL and the win32 extensions. Can anyone shed some
light on this topic?
Thanks,
-Saveen
From robin@jessikat.fsnet.co.uk Fri Dec 7 07:53:45 2001
From: robin@jessikat.fsnet.co.uk (Robin Becker)
Date: Fri, 7 Dec 2001 07:53:45 +0000
Subject: [python-win32] Screen capture using PythonWin and PIL
In-Reply-To: <000301c17eb3$6ed58fa0$6501a8c0@balder2>
References:
<000301c17eb3$6ed58fa0$6501a8c0@balder2>
Message-ID:
In message <000301c17eb3$6ed58fa0$6501a8c0@balder2>, saveenr
writes
>
>I'm trying to take capture the screen (or a window on the screen) as a
>bitmap I can save to disk. I can't see how this can be accomplished
>through the use of PIL and the win32 extensions. Can anyone shed some
>light on this topic?
>
>Thanks,
>-Saveen
>
...
F Lundh has a screen grab utility called _grabscreen, but I think that
only handles a full screen grab.
--
Robin Becker
From m_konermann@gmx.de Wed Dec 12 00:08:02 2001
From: m_konermann@gmx.de (Marcus Konermann)
Date: Wed, 12 Dec 2001 01:08:02 +0100
Subject: [python-win32] Problems with enviroment variable under W2000 and VC6++
Message-ID: <3C169FE2.52B6EDC3@gmx.de>
--------------200D79DC9A57F5A5BD6F3E17
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Hi @ All !
For now i tried a lot of things to tell SWIG where the lib directory is,
but after controlling by using the command "swig -swiglib" every time
the output was " /usr/local/lib/swig1.3."
So to solve this problem the only solution for me was to copy the four
file´s (swig.swg, python.swg, common.swg, swig.exe) manually in the
working directory, but i don´t think that this was the right way. I also
tried to set the PATH to the lib directory under W2000 in the enviroment
variables, but nothing happend.
The second problem for me is to set the right enviroment variable for
python2.1 in the windows 2000 sytem. I tried to use PYTHONPATH,
PYTHON_INCLUDE and PYTHON_LIB (like described in the SWIG manual 1.3.9),
but nothing happend while compiling under VC6++. The Linker only says:
simanneal_wrap.cpp
C:\simanneal_wrap.cpp(179) : fatal error C1083: Include-Datei kann nicht
geoeffnet werden: 'Python.h': No such file or directory
Please, i need help
Greetings
Marcus
--------------200D79DC9A57F5A5BD6F3E17
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi @ All !
For now i tried a lot of things to tell SWIG where the lib directory
is, but after controlling by using the command "swig -swiglib" every
time the output was " /usr/local/lib/swig1.3."
So to solve this problem the only solution for me was to copy the four
file´s (swig.swg, python.swg, common.swg, swig.exe) manually in the
working directory, but i don´t think that this was the right way.
I also tried to set the PATH to the lib directory under W2000 in the enviroment
variables, but nothing happend.
The second problem for me is to set the right enviroment variable for
python2.1 in the windows 2000 sytem. I tried to use PYTHONPATH, PYTHON_INCLUDE
and PYTHON_LIB (like described in the SWIG manual 1.3.9), but nothing happend
while compiling under VC6++. The Linker only says:
simanneal_wrap.cpp
C:\simanneal_wrap.cpp(179) : fatal error C1083: Include-Datei kann
nicht geoeffnet werden: 'Python.h': No such file or directory
Please, i need help
Greetings
Marcus
--------------200D79DC9A57F5A5BD6F3E17--
From jens.jorgensen@tallan.com Wed Dec 12 00:25:07 2001
From: jens.jorgensen@tallan.com (Jorgensen, Jens)
Date: Tue, 11 Dec 2001 18:25:07 -0600
Subject: [python-win32] Problems with enviroment variable under W2000 and VC6++
References: <3C169FE2.52B6EDC3@gmx.de>
Message-ID: <3C16A3E3.5050809@tallan.com>
Marcus,
Is your C++ code quite large? I have to say I've created a number of
Python extension modules and I've always just built them by hand. Also
there is that gui generation tool that will create the code skeleton for
you. It really is easy.
Marcus Konermann wrote:
> Hi @ All !
>
> For now i tried a lot of things to tell SWIG where the lib directory
> is, but after controlling by using the command "swig -swiglib" every
> time the output was " /usr/local/lib/swig1.3."
> So to solve this problem the only solution for me was to copy the four
> file´s (swig.swg, python.swg, common.swg, swig.exe) manually in the
> working directory, but i don´t think that this was the right way. I
> also tried to set the PATH to the lib directory under W2000 in the
> enviroment variables, but nothing happend.
>
> The second problem for me is to set the right enviroment variable for
> python2.1 in the windows 2000 sytem. I tried to use PYTHONPATH,
> PYTHON_INCLUDE and PYTHON_LIB (like described in the SWIG manual
> 1.3.9), but nothing happend while compiling under VC6++. The Linker
> only says:
> /simanneal_wrap.cpp/
> /C:\simanneal_wrap.cpp(179) : fatal error C1083: Include-Datei kann
> nicht geoeffnet werden: 'Python.h': No such file or directory/
>
> Please, i need help
> Greetings
> Marcus
>
--
Jens B. Jorgensen
jens.jorgensen@tallan.com
From terabaap@yumpee.org Wed Dec 12 06:41:10 2001
From: terabaap@yumpee.org (Manoj Plakal)
Date: Wed, 12 Dec 2001 00:41:10 -0600
Subject: [python-win32] Using native COM interfaces
Message-ID: <3C16FC06.5000306@yumpee.org>
Hello,
From what little I understand about COM, it seems that PythonCOM
supports IDispatch and some other standard COM interfaces through
the PythonCOM DLL.
How difficult would it be to add support for some other native
COM interfaces? Specifically, I'm interested in the interfaces
to DirectShow (part of DirectX 8). Also, can this be done in
a separate extension instead of having to modify the PythonCOM
DLL itself?
Thanks,
Manoj
From MarkH@ActiveState.com Wed Dec 12 08:52:21 2001
From: MarkH@ActiveState.com (Mark Hammond)
Date: Wed, 12 Dec 2001 19:52:21 +1100
Subject: [python-win32] Using native COM interfaces
In-Reply-To: <3C16FC06.5000306@yumpee.org>
Message-ID:
If these interfaces are described in a type library, you can do it now with
the latest versions of ActivePython/win32all. If not, you really need to
use makegw or SWIG to build a custom .pyd with that support built in - all
.pyd files under the win32com directly do exactly that.
All sources via http://starship.python.net/crew/mhammond/cvs.html
Mark.
> -----Original Message-----
> From: python-win32-admin@python.org
> [mailto:python-win32-admin@python.org]On Behalf Of Manoj Plakal
> Sent: Wednesday, 12 December 2001 5:41 PM
> To: python-win32@python.org
> Subject: [python-win32] Using native COM interfaces
>
>
>
> Hello,
>
> From what little I understand about COM, it seems that PythonCOM
> supports IDispatch and some other standard COM interfaces through
> the PythonCOM DLL.
>
> How difficult would it be to add support for some other native
> COM interfaces? Specifically, I'm interested in the interfaces
> to DirectShow (part of DirectX 8). Also, can this be done in
> a separate extension instead of having to modify the PythonCOM
> DLL itself?
>
> Thanks,
>
> Manoj
>
>
> _______________________________________________
> Python-win32 mailing list
> Python-win32@python.org
> http://mail.python.org/mailman/listinfo/python-win32
>
From niki@vintech.bg Wed Dec 12 09:07:59 2001
From: niki@vintech.bg (Niki Spahiev)
Date: Wed, 12 Dec 2001 11:07:59 +0200
Subject: [python-win32] Using native COM interfaces
References:
Message-ID: <3C171E6F.5080609@vintech.bg>
Mark Hammond wrote:
> If these interfaces are described in a type library, you can do it now with
> the latest versions of ActivePython/win32all. If not, you really need to
> use makegw or SWIG to build a custom .pyd with that support built in - all
> .pyd files under the win32com directly do exactly that.
>
> All sources via http://starship.python.net/crew/mhammond/cvs.html
>
> Mark.
>
IMHO it is win32comext
Niki Spahiev
From terabaap@yumpee.org Wed Dec 12 17:23:28 2001
From: terabaap@yumpee.org (Manoj Plakal)
Date: Wed, 12 Dec 2001 11:23:28 -0600
Subject: [python-win32] Using native COM interfaces
References:
Message-ID: <3C179290.7040709@yumpee.org>
Mark,
Are you referring to using makepy on a type library? I thought
that does early binding by determining types of arguments and return
values but still requires IDispatch or some other interface natively
supported by the PythonCOM DLL. Can you actually generate support
for any native interface using makepy?
Re using makwgw/SWIG, is there any documentation? Or just a brief
step-by-step procedure on how to go about it?
Manoj
Mark Hammond wrote:
> If these interfaces are described in a type library, you can do it now with
> the latest versions of ActivePython/win32all. If not, you really need to
> use makegw or SWIG to build a custom .pyd with that support built in - all
> .pyd files under the win32com directly do exactly that.
>
> All sources via http://starship.python.net/crew/mhammond/cvs.html
>
>>-----Original Message-----
>>From: python-win32-admin@python.org
>>[mailto:python-win32-admin@python.org]On Behalf Of Manoj Plakal
>>Sent: Wednesday, 12 December 2001 5:41 PM
>>To: python-win32@python.org
>>Subject: [python-win32] Using native COM interfaces
>>
>>Hello,
>>
>> From what little I understand about COM, it seems that PythonCOM
>>supports IDispatch and some other standard COM interfaces through
>>the PythonCOM DLL.
>>
>>How difficult would it be to add support for some other native
>>COM interfaces? Specifically, I'm interested in the interfaces
>>to DirectShow (part of DirectX 8). Also, can this be done in
>>a separate extension instead of having to modify the PythonCOM
>>DLL itself?
>>
>>Thanks,
>>
>>Manoj
From wsf@fultondesigns.co.uk Wed Dec 12 20:35:14 2001
From: wsf@fultondesigns.co.uk (William S Fulton)
Date: Wed, 12 Dec 2001 20:35:14 -0000
Subject: [python-win32] Re: [Swig] Problems with enviroment variable under W2000 and VC6++
References: <3C169FE2.52B6EDC3@gmx.de>
Message-ID: <006301c18352$43abe420$0b00a8c0@leopard>
No no no :) Copying the .swg files around is not correct. Assuming you have
swig 1.3.9, swig.exe is usually put into the root directory of the main
swig-1.3.9 directory, ie in the same directory as README, INSTALL etc. Set
the SWIG_LIB environment variable to .\Lib. Why don't you use one of the
Visual C++ example files as a basis to what you want to do? Everything is
set up, except as the Windows.html file says to set the PYTHON_INCLUDE and
PYTHON_LIB environment variables.
Cheers
William
----- Original Message -----
From: Marcus Konermann
To: mailto:python-win32@python.org ; swig@cs.uchicago.edu ; tutor@python.org
Sent: Wednesday, December 12, 2001 12:08 AM
Subject: [Swig] Problems with enviroment variable under W2000 and VC6++
Hi @ All !
For now i tried a lot of things to tell SWIG where the lib directory is, but
after controlling by using the command "swig -swiglib" every time the
output was " /usr/local/lib/swig1.3."
So to solve this problem the only solution for me was to copy the four
file´s (swig.swg, python.swg, common.swg, swig.exe) manually in the working
directory, but i don´t think that this was the right way. I also tried to
set the PATH to the lib directory under W2000 in the enviroment variables,
but nothing happend.
The second problem for me is to set the right enviroment variable for
python2.1 in the windows 2000 sytem. I tried to use PYTHONPATH,
PYTHON_INCLUDE and PYTHON_LIB (like described in the SWIG manual 1.3.9), but
nothing happend while compiling under VC6++. The Linker only says:
simanneal_wrap.cpp
C:\simanneal_wrap.cpp(179) : fatal error C1083: Include-Datei kann nicht
geoeffnet werden: 'Python.h': No such file or directory
Please, i need help
Greetings
Marcus
From MarkH@ActiveState.com Thu Dec 13 01:34:16 2001
From: MarkH@ActiveState.com (Mark Hammond)
Date: Thu, 13 Dec 2001 12:34:16 +1100
Subject: [python-win32] Using native COM interfaces
In-Reply-To: <3C179290.7040709@yumpee.org>
Message-ID:
> Are you referring to using makepy on a type library? I thought
> that does early binding by determining types of arguments and return
> values but still requires IDispatch or some other interface natively
> supported by the PythonCOM DLL. Can you actually generate support
> for any native interface using makepy?
makepy now generates code used by a runtime vtable manager. Check out
win32com\servers\test_pycomtest.py - it implements interfaces without using
dynamic vtables built from the makepy process.
> Re using makwgw/SWIG, is there any documentation? Or just a brief
> step-by-step procedure on how to go about it?
Sorry - no :( You really have to look at one of the others.
mapi is probably your best bet. mapilib.i sets up all the type conversion
code. It describes how C++ objects are mapped to and from Python objects.
The other .i files then have the basic declarations for the methods being
exposed. You can build both modules (eg, mapi.i) and COM objects (the rest
of the .i files) using this technique.
Mark.
From m_konermann@gmx.de Mon Dec 17 02:22:12 2001
From: m_konermann@gmx.de (Marcus Konermann)
Date: Mon, 17 Dec 2001 03:22:12 +0100
Subject: [python-win32] Shadow Class Generation Problem
Message-ID: <3C1D56D4.C786885C@gmx.de>
--------------940C4D9B9E273F51B9DFD38E
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Hi @ All !
I generate a Python Shadow Class from an excisting c++ file using SWIG.
The compiling and linking process went ok and a simanneal.py file was
generated beginning in the following form:
# This file was created automatically by SWIG.
import simannealfilec
class simanneal_varlist:
def __init__(self,*args):
self.this = apply(simannealfilec.new_simanneal_varlist,args)
self.thisown = 1
And after using this simanneal.py by importing it the following error
occurs:
Traceback (most recent call last):
File "C:\Python2_1_1\Pythonwin\pywin\framework\scriptutils.py", line
396, in ImportFile
reload(sys.modules[modName])
File "C:\Optimierer\ext1\mainko.py", line 2, in ?
import simannealfile
File "C:\Optimierer\AG TEM\simannealfile.py", line 2, in ?
import simannealfilec
ImportError: No module named simannealfilec
In the SWIG manual i read that this simannealfilec was automatically
generated by SWIG and that this file is´nt visible.
Has anyone an idea to avoid this error message ?
Greetings
Marcus
--------------940C4D9B9E273F51B9DFD38E
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi @ All !
I generate a Python Shadow Class from an excisting c++ file using SWIG.
The compiling and linking process went ok and a simanneal.py file was generated
beginning in the following form:
# This file was created automatically by SWIG.
import simannealfilec
class simanneal_varlist:
def __init__(self,*args):
self.this = apply(simannealfilec.new_simanneal_varlist,args)
self.thisown = 1
And after using this simanneal.py by importing it the following error
occurs:
Traceback (most recent call last):
File "C:\Python2_1_1\Pythonwin\pywin\framework\scriptutils.py",
line 396, in ImportFile
reload(sys.modules[modName])
File "C:\Optimierer\ext1\mainko.py", line 2, in ?
import simannealfile
File "C:\Optimierer\AG TEM\simannealfile.py", line 2, in
?
import simannealfilec
ImportError: No module named simannealfilec
In the SWIG manual i read that this simannealfilec was automatically
generated by SWIG and that this file is´nt visible.
Has anyone an idea to avoid this error message ?
Greetings
Marcus
--------------940C4D9B9E273F51B9DFD38E--
From m_konermann@gmx.de Tue Dec 18 09:50:59 2001
From: m_konermann@gmx.de (Marcus Konermann)
Date: Tue, 18 Dec 2001 10:50:59 +0100
Subject: [python-win32] Python Extension under Win 2000
Message-ID: <3C1F1183.69582871@gmx.de>
Hi @ All !
I´ve created a python extension under windows2000 using developer studio
like it is described under chapter 9 of the swig manual. I´ve also
created a python shadow class and now i want to use it by importing some
methods of the simannealfile.py module (the generated shadow class),
but pythonwin says, that it don´t find the simannealfilec.py module.
what can i do ?
Greetings
Marcus
From beazley@cs.uchicago.edu Tue Dec 18 15:50:26 2001
From: beazley@cs.uchicago.edu (David Beazley)
Date: Tue, 18 Dec 2001 09:50:26 -0600 (CST)
Subject: [python-win32] [Swig] Python Extension under Win 2000
In-Reply-To: <3C1F1183.69582871@gmx.de>
References: <3C1F1183.69582871@gmx.de>
Message-ID: <15391.26050.264650.793350@gargoyle.cs.uchicago.edu>
Marcus Konermann writes:
> Hi @ All !
>=20
> I=B4ve created a python extension under windows2000 using developer =
studio
> like it is described under chapter 9 of the swig manual. I=B4ve also=
> created a python shadow class and now i want to use it by importing =
some
> methods of the simannealfile.py module (the generated shadow class)=
,
> but pythonwin says, that it don=B4t find the simannealfilec.py modul=
e.
> what can i do ?
>=20
Maybe you're not compiling things correctly. Did you compile the SWIG
wrappers into a file 'simannealfilec.dll' as described in the SWIG
manual? ^
note: extra c added
Cheers,
Dave
From kwa@crf-vogler.com Wed Dec 19 12:19:45 2001
From: kwa@crf-vogler.com (Frank Jacques)
Date: Wed, 19 Dec 2001 13:19:45 +0100
Subject: [python-win32] win32com.client and excel problem
Message-ID: <3C2085E1.E887472A@crf-vogler.com>
I've experienced a problem with my app while doing COM
interaction with excel.
I have to put the PageSetup.FitToPagesTall of an Excel
Worksheet to the value False.
The FitToPagesTall propriety can take a number or
False as value.
The problem is how do i set up the False value ?? There's
no 'constants.xlFalse' or so (constants.xlOff doesn't work...).
So, what is the integer value of False ??
When i pass 0 as the value, an exception is raised but when
i set the value to False in excel vba and read that one from
python, i get 0...
Thanks for any hint.
Best regards,
Frank
From MarkA1@sundance.com Thu Dec 20 12:24:44 2001
From: MarkA1@sundance.com (Mark Ainsworth)
Date: Thu, 20 Dec 2001 12:24:44 -0000
Subject: [python-win32] help with ASP, COM and ODBC
Message-ID:
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C18951.4E43FF80
Content-Type: text/plain;
charset="iso-8859-1"
I'm sorry if this has been asked before but there is so much info out there
I don't know where to start looking.
I've successfully set up an ODBC with IIS2 and can open it and close it from
a python scripted ASP page. Now this may seem dumb, but are there any simple
tutorials as to now how to access and use this data. I've got a record set,
but how can I get the data out. ObjRS[x] comes back with "enumeration not
allowed" errors. I can do objRS(x) with VB though!
If it's documented somewhere then please just point me to the document.
Thanks.
Mark Ainsworth
Quality Manager
Sundance Multiprocessor Technology Ltd.
Chiltern House, Waterside, Chesham, Bucks HP5 1PS
Tel. +44 1494 793167 Fax. +44 1494 793168
MarkA@sundance.com http://www.sundance.com
------_=_NextPart_001_01C18951.4E43FF80
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
help with ASP, COM and ODBC
I'm sorry =
if this has been asked before but there is so much info out there I =
don't know where to start looking.
I've =
successfully set up an ODBC with IIS2 and can open it and close it from =
a python scripted ASP page. Now this may seem dumb, but are there any simple tutorials as to =
now how to =
access and use this =
data. I've got a =
record set, but how can I get the data out. ObjRS[x] comes back with =
"enumeration not allowed" errors. I can do objRS(x) with VB though!
If it's =
documented somewhere then please just point me to the =
document.
Thanks.
Mark =
Ainsworth
Quality Manager
Sundance Multiprocessor Technology Ltd.
Chiltern House, Waterside, Chesham, Bucks HP5 =
1PS
Tel. =
+44 1494 793167 Fax. +44 1494 793168
MarkA@sundance.com http://www.sundance.com
------_=_NextPart_001_01C18951.4E43FF80--
From jens.jorgensen@tallan.com Thu Dec 20 14:47:40 2001
From: jens.jorgensen@tallan.com (Jorgensen, Jens)
Date: Thu, 20 Dec 2001 08:47:40 -0600
Subject: [python-win32] help with ASP, COM and ODBC
References:
Message-ID: <3C21FA0C.2050203@tallan.com>
from win32com.client import Dispatch
db = Dispatch('ADO.Connection')
db.Open('Provider=blah;blah;blah')
rs, recs_affected = db.Execute('select a, b, from xyz')
while not rs.EOF :
print 'a = %s, b = %s' % (rs.Fields.Item(0).Value,
rs.Fields.Item(1).Value)
rs.MoveNext()
Mark Ainsworth wrote:
> I'm sorry if this has been asked before but there is so much info out
> there I don't know where to start looking.
>
> I've successfully set up an ODBC with IIS2 and can open it and close
> it from a python scripted ASP page. Now this may seem dumb , but are
> there any simple tutorials as to nowhow to access and use this data .
> I've got a record set, but how can I get the data out. ObjRS[x] comes
> back with "enumeration not allowed" errors. I can do objRS(x) with VB
> though !
>
> If it's documented somewhere then please just point me to the document.
>
> Thanks.
>
> *Mark Ainsworth*
>
> *Quality Manager*
>
> Sundance Multiprocessor Technology Ltd.
>
> Chiltern House, Waterside, Chesham, Bucks HP5 1PS
>
> Tel. +44 1494 793167 Fax. +44 1494 793168
>
> MarkA@sundance.com http://www.sundance.com
>
--
Jens B. Jorgensen
jens.jorgensen@tallan.com
From ivan.hernandez@globalsis.com.ar Thu Dec 20 19:31:34 2001
From: ivan.hernandez@globalsis.com.ar (Ivan Hernandez Puga)
Date: Thu, 20 Dec 2001 16:31:34 -0300
Subject: [python-win32] help with Event Log
Message-ID: <243C47087E9A9E4A86A2650B4E454EC198EA@globalsis1.globalsis.com.ar>
Hello. I'm trying to make a script to warn me when an event arrives to =
the Windows 2000 event log.
I have successful listed events and that things, but when trying to use =
WaitForMultipleObjects, WaitForMultipleObjectsEx or WaitForSingleObject =
and WaitForSingleObjectex I found no way to create a valid Event =
Handler.
Some help here? I don't know too much, if you can make a "script kiddie" =
example I would appreciate it very much.
Thanks
Ivan Hernandez
From jens.jorgensen@tallan.com Thu Dec 20 20:10:54 2001
From: jens.jorgensen@tallan.com (Jorgensen, Jens)
Date: Thu, 20 Dec 2001 14:10:54 -0600
Subject: [python-win32] help with Event Log
References: <243C47087E9A9E4A86A2650B4E454EC198EA@globalsis1.globalsis.com.ar>
Message-ID: <3C2245CE.7000809@tallan.com>
I don't think that an EventLog handle is valid for use with any of the
Wait* functions. Why not just read to the end of the event log (when the
read function will return an empty list) and then sleep for 10 seconds,
and try to read again?
import win32evtlog, time, win32gui
h = win32evtlog.OpenEventLog('your computer', 'Application')
while 1 :
l = win32evtlog.ReadEventLog(h,
win32evtlog.EVENTLOG_SEQUENTIAL_READ|win32evtlog.EVENTLOG_FORWARDS_READ, 0)
if not l :
time.sleep(10)
continue
for i in l :
if :
win32gui.MessageBox(0, 'an intruder is detected', 'intruder
alert', 0)
Ivan Hernandez Puga wrote:
>Hello. I'm trying to make a script to warn me when an event arrives to the Windows 2000 event log.
>I have successful listed events and that things, but when trying to use WaitForMultipleObjects, WaitForMultipleObjectsEx or WaitForSingleObject and WaitForSingleObjectex I found no way to create a valid Event Handler.
>Some help here? I don't know too much, if you can make a "script kiddie" example I would appreciate it very much.
>Thanks
>
>Ivan Hernandez
>
>
>_______________________________________________
>Python-win32 mailing list
>Python-win32@python.org
>http://mail.python.org/mailman/listinfo/python-win32
>
--
Jens B. Jorgensen
jens.jorgensen@tallan.com
From ivan.hernandez@globalsis.com.ar Fri Dec 21 15:06:48 2001
From: ivan.hernandez@globalsis.com.ar (Ivan Hernandez Puga)
Date: Fri, 21 Dec 2001 12:06:48 -0300
Subject: [python-win32] Unicode error on the event log
Message-ID: <243C47087E9A9E4A86A2650B4E454EC198EE@globalsis1.globalsis.com.ar>
Hello again. I have this problem while reading an event. Everything else =
works OK but this message makes the script halt. Is there some =
workaround?
Thanks in advance
Ivan Hernandez
Traceback (most recent call last):
File "evt.py", line 87, in ?
msg =3D str(win32evtlogutil.SafeFormatMessage(ev_obj, logtype))
UnicodeError: ASCII encoding error: ordinal not in range(128)
From jens.jorgensen@tallan.com Fri Dec 21 15:35:48 2001
From: jens.jorgensen@tallan.com (Jorgensen, Jens)
Date: Fri, 21 Dec 2001 09:35:48 -0600
Subject: [python-win32] handling VT_CY ?
Message-ID: <3C2356D4.1010809@tallan.com>
Recently I was dealing taking values from an ADO Recordset and sticking
them into cells in an Excel spreadsheet. I was doing:
sht.Cells(row, col).Value = rs.Fields.Item(i).Value
and I noticed that I was getting zero for all the values in Excel and I
knew the recordset values were non-zero. Then I recalled that this
particular column in the database was filled with currency values. I
recalled that CY values are 64-bit signed integers. Python returns them
as two (separate) integers. This is ok if you know about it but still
wouldn't be nice to be able to assign from one VARIANT to another and
always get back what you put in? I should think so! What I'll probably
do for myself is whip up a quick python extension that will hold these
values and support addition, subtraction, etc. It seems though that
maybe something deeper is in order. Mark H, how do you think this should
work? Is there an elegant way to deal with these numbers to get all the
nice properties and stick to the principle of least surprise? Perhaps
VT_CY values should map to long integers and leave people to understand
the value is scaled by 10e-4 by themselves? Or we add a PyCY type to the
win32 extensions? Could we convince the entire Python community to add a
new native 64-bit 10e-4 scaled integer type to the language! (Just
kidding about this last sentence.) This is kind of an ugly problem,
especially since I don't see a clean and easy way to do the conversion
in Python anyway. Perhaps we should think about VT_DECIMAL too since
that seems to be the remaining nasty bit in VARIANT.
If we're going to do a PyCY, which seems to be the least painful and
most fruitful way to handle this I guess the next step is to start
talking about type promotions and things of that nature, a la:
class PyCY :
def __add__(self, operand) :
if type(operand) == IntType :
# add the int to the CY value and return a CY
if type(operand) == FloatType :
# truncate the float at 4 decimal points, add to CY and
return a CY?
# convert the CY to a float, add to the operand, and return
a float?
This is stick with the float type since you're going to potentially lose
precision whichever way you choose. Well, I'll start thinking about
this. In the meantime though Mark, is there a way I can assign to a
VARIANT (set a property, that is) and have it pass as a VT_CY?
--
Jens B. Jorgensen
jens.jorgensen@tallan.com
From jens.jorgensen@tallan.com Fri Dec 21 15:40:19 2001
From: jens.jorgensen@tallan.com (Jorgensen, Jens)
Date: Fri, 21 Dec 2001 09:40:19 -0600
Subject: [python-win32] Unicode error on the event log
References: <243C47087E9A9E4A86A2650B4E454EC198EE@globalsis1.globalsis.com.ar>
Message-ID: <3C2357E3.8000105@tallan.com>
Well, there are just some unicode chars that can't map into ascii!
Perhaps you should convert to UTF-8 instead? Or maybe you don't event
need to convert to ASCII?
Ivan Hernandez Puga wrote:
>Hello again. I have this problem while reading an event. Everything else works OK but this message makes the script halt. Is there some workaround?
>Thanks in advance
>
>Ivan Hernandez
>
>Traceback (most recent call last):
> File "evt.py", line 87, in ?
> msg = str(win32evtlogutil.SafeFormatMessage(ev_obj, logtype))
>UnicodeError: ASCII encoding error: ordinal not in range(128)
>
>
>_______________________________________________
>Python-win32 mailing list
>Python-win32@python.org
>http://mail.python.org/mailman/listinfo/python-win32
>
--
Jens B. Jorgensen
jens.jorgensen@tallan.com
From jens.jorgensen@tallan.com Fri Dec 21 16:15:47 2001
From: jens.jorgensen@tallan.com (Jorgensen, Jens)
Date: Fri, 21 Dec 2001 10:15:47 -0600
Subject: [python-win32] modulator: a C extension skeleton generator
Message-ID: <3C236033.6040509@tallan.com>
Someone on the list asked me before what the tool was called that
generates the code skeletons for extension DLLs. I figured it out. Well,
actually, it had an option to generate a .py which would then use a
module to generate the skeleton after you tinkered with the GUI. Inside
of that it had the module name so now I know what it was called:
modulator. It was included with ActivePython 2.0 I think but doesn't
seem to be present in 2.1. It also doesn't come up for a search on the
Vaults of Parnassus. Neither does it show up on a search on the Python
Starship. Where or where has it gone! I notice that the Python
documentation under ActivePython Documentation\Python
Documentation\Extending and Embedding\Extending Python with C and
C++\1.4 The Module's Method Table and Initialization Function it even
mentions using the modulator.py script *and* claims it is in the
distribution. The mystery compounds. A search on Google turns up a post
in 1995 from Guido van Rossum:
> As Tom Culliton mentions, using Jack Jansen's Modulator doesn't
> automate as much for you, but is also very helpful in generating the
> boilerplate...
>
I couldn't hit that ftp site. At long last I found it was still in CVS
on sourceforge. You can get it with:
cvs -d:pserver:anonymous@cvs.python.sourceforge.net:/cvsroot/python co
python/dist/src/Tools
--
Jens B. Jorgensen
jens.jorgensen@tallan.com
From jack@oratrix.nl Fri Dec 21 23:14:56 2001
From: jack@oratrix.nl (Jack Jansen)
Date: Sat, 22 Dec 2001 00:14:56 +0100
Subject: [python-win32] modulator: a C extension skeleton generator
In-Reply-To: Message by "Jorgensen, Jens" ,
Fri, 21 Dec 2001 10:15:47 -0600 , <3C236033.6040509@tallan.com>
Message-ID: <20011221231501.D8B38E8453@oratrix.oratrix.nl>
I _think_ you're referring to the "modulator" tool I wrote. If you
are: it's included in the standard Python distribution in Tools/modulator.
--
Jack Jansen | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++
www.cwi.nl/~jack | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm
From jens.jorgensen@tallan.com Sat Dec 22 00:49:45 2001
From: jens.jorgensen@tallan.com (Jorgensen, Jens)
Date: Fri, 21 Dec 2001 18:49:45 -0600
Subject: [python-win32] modulator: a C extension skeleton generator
References: <20011221231501.D8B38E8453@oratrix.oratrix.nl>
Message-ID: <3C23D8A9.4000207@tallan.com>
Ah ha! Yes, I am speaking of this tool that you wrote! That's great. I
did pull it out of cvs and made the necessary changes to the code to get
the module working though the gui doesn't quite work (runs but throws
exception when you try to generate!). I also updated all the templates
to generate ansi C. If you have cvs access on sourceforge for this I'd
be happy to send along my modifications to you.
Thanks for responding!
Jack Jansen wrote:
>I _think_ you're referring to the "modulator" tool I wrote. If you
>are: it's included in the standard Python distribution in Tools/modulator.
>--
>Jack Jansen | ++++ stop the execution of Mumia Abu-Jamal ++++
>Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++
>www.cwi.nl/~jack | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm
>
--
Jens B. Jorgensen
jens.jorgensen@tallan.com
From jens.jorgensen@tallan.com Thu Dec 27 18:31:15 2001
From: jens.jorgensen@tallan.com (Jorgensen, Jens)
Date: Thu, 27 Dec 2001 12:31:15 -0600
Subject: [python-win32] PyCY: a CY type wrapper
Message-ID: <3C2B68F3.5060607@tallan.com>
Ok, I needed this beast so I created it. This compiled python
extension for Python 2.1 wraps Windows CY values. As I mentioned the
currency value is stored as a signed 64-bit integer that is scaled by
10e4. That is, it has precision to 1/10,000 of a unit. You can
instantiate from a python int, float or tuple of two ints which is what
Python returns when a Windows function returns this type of value. You
can add them, subtract them, multiply, etc. all except for invert. It
can convert to a Python int, float, string, or long. I didn't do the
type coercion function because I don't know its semantics. I'm just
putting this up on my personal page for the moment:
http://www.ultraemail.net/~jbj1/PyCY.tar.gz
If you don't know why you'd want this then you don't need it. ;)
It would be nice of course if the COM guts would return this class (ie.
this class should be in pywintypes!) and perhaps Mark is interested?
--
Jens B. Jorgensen
jens.jorgensen@tallan.com