2 bugs in DBD::ADO

2003-07-24 Thread Yimin Zheng
1.when execute_array is used, blank string value ('') causes ADO error 2.when execute_array is used, subsequent values are truncated to fit in the length of the first value Attached is the script to re-produce the errors. MSSQL 2000 is the DB server Regards --

[Re:] null value, placeholder, and DBD:ADO

2003-06-30 Thread Yimin Zheng
On Mon, 30 Jun 2003 09:18:50 -0400 (EDT) Yimin Zheng wrote: >hi there, > >I am having trouble inserting null value into table using DBD:ADO >and placeholders. I tried bind_param, bind_param_array and execute_array, >none worked. I tried MS Access and MS SQL server for data sour

null value, placeholder, and DBD:ADO

2003-06-30 Thread Yimin Zheng
hi there, I am having trouble inserting null value into table using DBD:ADO and placeholders. I tried bind_param, bind_param_array and execute_array, none worked. I tried MS Access and MS SQL server for data sources, none worked. There is no problem if I use dbi:ODBC instead to access the sam

fix to Win32::AdminMisc

2003-03-25 Thread Yimin Zheng
Hi Roth, Win32::AdminMisd package is wonderful, but as you know, there is a bug in GetFileInfo() that sometimes causes perl.exe to crash. I did look into your source code and found the problem is in adminmisc.cpp DiscoverAndAddValue(). The original implemetation relies on pVar->wValueLength to d

[Re:] RE: ] RE: watching API calls

2003-03-12 Thread Yimin Zheng
application with any command line parameters >you may desire. At this point it monitors and logs any calls to the >external modules - I'm not sure if it logs calls to functions internal >to the exe or not. > >-Original Message- >From: Yimin Zheng [mailto:[EMAIL PROTE

[Re:] RE: watching API calls

2003-03-12 Thread Yimin Zheng
You might have to write a proxy DLL for this. Think of how APIs work for a second. Dlls are loaded into the application's memory space first, then an API call is made within the application's boundry. To the calling code, there is no difference between a system API or a home grown function from

how to insert to database table fast

2003-03-11 Thread Yimin Zheng
Hi, I have a script that parses some log files and feeds the data into a MSSQL database table, using DBI. The problem is that sometimes the log files is generated too fast for my script to keep up. I had success in reducing trips to the databases by putting multiple SQL INSERT statements in on

[Re:] win32 and unix and vice versa

2003-02-27 Thread Yimin Zheng
i don't think so, these Win32::XX modules relies on functions provided by the Windows OS. On Thu, 27 Feb 2003 13:38:16 -0600 [EMAIL PROTECTED] wrote: >Hey. > >I've never thought about it, but will the win32 modules (like that >eventlog.pm mentioned earlier) run on a unix box? Can I run any

[Re:] Re: [Re:] EventLog retrieval

2003-02-27 Thread Yimin Zheng
;t get number of EventLog records: >$!\n"; >print "$total\n"; >-- > >Anybody know of a way to either query the type of logs available from a given >host or ensure that the query fails if the log doesnt exist? &

[Re:] EventLog retrieval

2003-02-27 Thread Yimin Zheng
Ross, please check out https://sourceforge.net/projects/evntmon/. it's a package that collects eventlog from remote hosts and stores them in a database table, sends out alert emails and opens cases to another open source bug tracking app (https://sourceforge.net/projects/mantisbt). it has a web

[Re:] Registry and Microsoft Outlook User Settings

2002-05-06 Thread Yimin Zheng
kevin, i think you can check out command line switches of regedit, you might just as well compose a .reg file and import it under the current user key in a login script. yimin On Mon, 6 May 2002 08:55:00 -0500 Ailes, Kevin wrote: >I have been asked to turn off the "display notification" opti

[Re:] Re: removing services (was: (no subject))

2002-05-03 Thread Yimin Zheng
make sure you closed the "Services" applet, otherwise your service might be marked "delete pending" but is still there so you can not install it again. On Sat, 4 May 2002 01:20:39 +0200 Wrzesinski, Michael wrote: >Hi Bill, > >no, I mean 'real' nt/w2k-services with no user interaction. The boo

[Re:] RE: User validation

2001-12-10 Thread Yimin Zheng
with IIS, if you allow only "integrated windows authentication", then in ASP you have Request.ServerVariables("AUTH_USER"), which contains just the user's NT account in the form of "domain\user". the same information can be found in an HTTP head, i forgot the name of the head though. You can f

[Re:] [Re:] eventlog related win32-lanman problems and analysis

2001-11-30 Thread Yimin Zheng
guess i just forget the source file. On Fri, 30 Nov 2001 17:38:12 -0500 (EST) Yimin Zheng wrote: >I fixed 2 bugs in the eventlog.cpp. >1.Problem 1 described in my old post. >2.in XS_NT__Lanman_ReadEventLog(). using "recordPtr->Length" >alone one can not always c

[Re:] eventlog related win32-lanman problems and analysis

2001-11-30 Thread Yimin Zheng
=122. I added "dwUnprocessedSize" to do the job and the problem's fixed. Attached is the new code. Thanks Yimin On Tue, 6 Nov 2001 23:00:29 -0500 (EST) Yimin Zheng wrote: >I found 2 problems when using Win32::Lanman to retrieve eventlogs. >Below is my analysis of the problems. > >