Page 1 of 1

Using vb6

Posted: 2009-09-11T07:53:06-07:00
by giberna
Hello everyone!
I am new to this forum
There is a list of available commands for VB 6, with some examples?
some links ....
Thanks to all :)
Gianni (Italy)

Re: Using vb6

Posted: 2011-11-18T11:02:23-07:00
by Jalex
Hi
This works well for me if this is any help.
REM Image Magick Commands Assembled here in String here.
pid = Shell(S$, 0)
Do
WaitForTerm pid
DoEvents
If pid = 0 Then
REM Load your bitmap back into VB picture box or form here.
End If
Loop Until pid = 0
This calls Image Magick through Shell Using a String then waits until Image magick is done to load back in the Result.

REM Below can be added to your Subs Anywhere.
************************************************************************
Sub WaitForTerm(pid)
Dim phnd&

phnd = OpenProcess(SYNCHRONIZE, 0, pid)
If phnd <> 0 Then
Rem Form1.Caption = "Waiting for Termination" + Str$(phnd)
Call WaitForSingleObject(phnd, INFINITE)
Call CloseHandle(phnd)
End If
If phnd = 0 Then pid = 0

End Sub
*************************************************************************

Re: Using vb6

Posted: 2012-01-09T07:35:33-07:00
by yhhuang
A newbie's answer for the old post.

You may find a list of commands/methods when your VB6 project refers to the ImageMagick library, declare a variable, and locate the class MagickImage in the object browser in VB6 IDE.