- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
trying to load an .avi clip into the animation control for first time.
linker fails to recognise the animate_open API function. Any ideas ?
use user32
use ifwin
TYPE (dialog) dlg
integer(HANDLE) hDlg, hwin_an1
integer(HANDLE) hDlgProc
INCLUDE 'RESOURCE.FD'
LOGICAL retlog
!
hdlg=dlg%hWnd ! Get the handle to the dialog window
hDlgProc=SetWindowLongPtr(hdlg, DWL_DLGPROC, LOC(MyDlgProc))
! get animation handles
hwin_an1= GetDlgItem(hdlg, IDC_ANIMATE2)
! initially load it and show it
retlog=Animate_Open(hwin_an1, "C:\Users\Videos\toy_plane_liftoff.avi")
retlog=showwindow(hwin_an1,sw_show)
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Animate_Open is not a callable routine, it's a macro (in C). It translates to a call to SendMessage with the message ACM_OPEN. That's what you'll have to do.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page