http://qs1969.pair.com?node_id=360535


in reply to Win32::API giving a program error

I see that the DLL you are calling is part of the MS Win2K resource kits. Have you perhaps seen this knowledgebase article about Fileversion.PL to do the same sort of stuff?

Can you show the formal arguments and return type for the DLL function you are calling ("GetFileVersionTxt")? Like at least one other monk, I wonder if you have the types right. Also, the author of Win32::API indicates that if C structures are passed or returned, you must do some pack()ing or unpack()ing to make them right. Getting the args wrong in this manner will most certainly get you a visit from Doctor Watson (the windows exception handler) but the logs are not usually helpful. --b