engine Posted June 13, 2008 Share Posted June 13, 2008 (edited) Well. When using COM on VBScript, null, "" (empty string) and 0 are totally different. While for AutoIt an empty string seems to be the same as null. So there isn't a way to specify null when using Objects with AutoIt. An empty string simply doesn't work. A 0 is always a 0! This seriously limits what you can do with COM on AutoIt. Are there any plans to overcome this? Edited June 13, 2008 by engine My contributions:Local account UDF Registry UDFs DriverSigning UDF Windows Services UDF [url="http://www.autoitscript.com/forum/index.php?showtopic=81880"][/url] Link to comment Share on other sites More sharing options...
LarryDalooza Posted June 13, 2008 Share Posted June 13, 2008 http://www.autoitscript.com/forum/index.ph...st&p=483555 AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
engine Posted June 13, 2008 Author Share Posted June 13, 2008 http://www.autoitscript.com/forum/index.ph...st&p=483555Thanks Larry. I will give it a try.Regards. My contributions:Local account UDF Registry UDFs DriverSigning UDF Windows Services UDF [url="http://www.autoitscript.com/forum/index.php?showtopic=81880"][/url] Link to comment Share on other sites More sharing options...
engine Posted June 14, 2008 Author Share Posted June 14, 2008 Thanks. The Default keyword solved my problem. My contributions:Local account UDF Registry UDFs DriverSigning UDF Windows Services UDF [url="http://www.autoitscript.com/forum/index.php?showtopic=81880"][/url] Link to comment Share on other sites More sharing options...
ptrex Posted June 23, 2008 Share Posted June 23, 2008 @engine Good to see that my tip resolved your issue. regards, ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
engine Posted June 27, 2008 Author Share Posted June 27, 2008 Thanks. Always learning. Regards. My contributions:Local account UDF Registry UDFs DriverSigning UDF Windows Services UDF [url="http://www.autoitscript.com/forum/index.php?showtopic=81880"][/url] Link to comment Share on other sites More sharing options...
engine Posted July 21, 2008 Author Share Posted July 21, 2008 (edited) Hi. Now I am having the same problem with DllCalls. Neither 0, "", Default and Chr(0) are working. Edited July 21, 2008 by engine My contributions:Local account UDF Registry UDFs DriverSigning UDF Windows Services UDF [url="http://www.autoitscript.com/forum/index.php?showtopic=81880"][/url] Link to comment Share on other sites More sharing options...
LarryDalooza Posted July 21, 2008 Share Posted July 21, 2008 Hi.Now I am having the same problem with DllCalls. Neither 0, "", Default and Chr(0) are working.For the love of jeebus!!! do not make us start a session of 20 questions!!!Lar. AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
engine Posted July 21, 2008 Author Share Posted July 21, 2008 Hi. "ptr", 0 is working for all parameters except one. The result is: ERROR_INVALID_PARAMETER 87 0x57 Any suggestions? My contributions:Local account UDF Registry UDFs DriverSigning UDF Windows Services UDF [url="http://www.autoitscript.com/forum/index.php?showtopic=81880"][/url] Link to comment Share on other sites More sharing options...
engine Posted July 21, 2008 Author Share Posted July 21, 2008 (edited) I am sorry, Larry.Problem solved!I was using this -> http://msdn.microsoft.com/en-us/library/ms681987(VS.85).aspxMy mistake was that I was translating "LPDWORD" to "dword*". When I also changed that one to '"ptr", 0' the call worked as expected.Kind regards. Edited July 21, 2008 by engine My contributions:Local account UDF Registry UDFs DriverSigning UDF Windows Services UDF [url="http://www.autoitscript.com/forum/index.php?showtopic=81880"][/url] Link to comment Share on other sites More sharing options...
Valik Posted July 21, 2008 Share Posted July 21, 2008 Let me point out the things you've done wrong.You didn't stop to think about your issue.You posted an unrelated question in an existing thread.You posted an ambiguous question.When asked for more detail, you didn't really provide anything useful. You could have been just as helpful typing random characters.It's a good thing you solved the problem on your own because you hadn't given enough detail for anybody else, except a psychic, to solve it.Thread locked to discourage you from doing #2 again, at least. Link to comment Share on other sites More sharing options...
Recommended Posts