BrettF Posted August 9, 2008 Share Posted August 9, 2008 (edited) I'm using the following ActiveX Component: http://www.codeproject.com/KB/atl/SmartGra...amp;fr=26#xx0xx #include <GUIConstantsEx.au3> #Include <IE.au3> $Form1 = GUICreate("", 163, 58, 193, 115) $Progress1 = GUICtrlCreateProgress(8, 8, 150, 17) GUICtrlSetData(-1, 25) $Progress2 = GUICtrlCreateProgress(8, 32, 150, 17) GUICtrlSetData(-1, 25) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### $oGraph = ObjCreate ("Graph.SmartGraph.1") $oGraph.SetParentWnd($Form1) $oGraph.SetPlotType(0);Regular Graph $oGraph.put_xLable("Time") $oGraph.put_yLable("Amplitude") $oGraph.put_Title("Graph Test") While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Really not sure what's going wrong.... The requested action with this object has failed.: $oGraph.SetParentWnd($Form1) $oGraph.SetParentWnd($Form1)^ ERROR Could anyone point me in the right direction? The object was created ok though. Edited August 9, 2008 by BrettF Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
baghenamoth Posted August 9, 2008 Share Posted August 9, 2008 I suppose you have correctly registered the dll (regsvr32 SmartGraph.dll)...I tried with VBA and it doesn't work. I Got the same errorIf you take a look at the FAQ, you could see this : I've contacted the author and it seems not to work in VB. This graph component needs some pointers which is not supported by VB. My suggestion was to make it an OCX to overcome this problem perhaps. Unfortunately, I did not receive his opinion about this.maybe there is a pb. It seems impossible to attach this activex to a form handle... Link to comment Share on other sites More sharing options...
BrettF Posted August 9, 2008 Author Share Posted August 9, 2008 Damn... Thank you for your reply! Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now