Page 1 of 1

Error testing Windows DLL edition

Posted: Sat Jul 09, 2005 10:27 pm
by rgiust
Hi,
I'm an Italian developer and I've downloaded FlashPlayerControl Windows DLL edition; I've tried to use the FlashPlayerControl.dll in a VB project and in a VB.NET project without results. When I try to connect the project to your DLL, it returns an error.

Can you help me?
How I can use your DLL in a VB.NET application?

Thank you.
Renzo

Posted: Sun Jul 10, 2005 9:43 am
by Softanics
Thank you for your question.
Yes, you can use FlashPlayerControl (Windows DLL Edition) in any IDE which suports using DLLs.
I have prepared small sample how to use FlashPlayerControl in VB.Net / VB6. Please download it from here:
http://www.flashplayercontrol.com/TEMP/VBDemo.zip

Posted: Sun Jul 10, 2005 2:31 pm
by rgiust
Thank you very much for the great example in VB.NET.

I'm trying to save a SWF frame in a bitmap, but I have same doubts (using VB.NET).
Can you explain me how can I do it with your component?
I would like to use your DLL in a (one) webapplication. What kind of license have I to buy?

Thanks, thanks and thanks! :D

Posted: Mon Jul 11, 2005 6:43 am
by Softanics
rgiust wrote:Thank you very much for the great example in VB.NET.

I'm trying to save a SWF frame in a bitmap, but I have same doubts (using VB.NET).
Can you explain me how can I do it with your component?


Code: Select all

    Private Structure SFPCGetFrameBitmap
        Public hBitmap As Int32
    End Structure

    Private Declare Function SendMessageA_GetFrameBitmap Lib "user32.dll" Alias "SendMessageA" (ByVal hWnd As Integer, ByVal Msg As Integer, ByVal wParam As Integer, ByRef lParam As SFPCGetFrameBitmap) As Integer
    Private Declare Function DeleteObject Lib "gdi32.dll" (ByVal hObject As Integer) As Integer

    Const FPCM_FIRST As Integer = WM_USER + &H1000
    Const FPCM_GET_FRAME_BITMAP As Integer = FPCM_FIRST + 4

...

    Private Sub MenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem1.Click
        Dim FPCGetFrameBitmap As SFPCGetFrameBitmap
        SendMessageA_GetFrameBitmap(hwndFlashPlayerControl, FPCM_GET_FRAME_BITMAP, 0, FPCGetFrameBitmap)

        Dim FrameBitmap As Image
        FrameBitmap = Bitmap.FromHbitmap(New IntPtr(FPCGetFrameBitmap.hBitmap))
        FrameBitmap.Save("Frame.bmp")

        DeleteObject(FPCGetFrameBitmap.hBitmap)
    End Sub


I can send out you full project with this code. Please write me to support (at) flashplayercontrol.com

rgiust wrote:I would like to use your DLL in a (one) webapplication. What kind of license have I to buy?

Thanks, thanks and thanks! :D


If you are a single developer who will use the library, you have to buy a Single Developer License.