Entering the second time the option "Open QT GUI window" the program is aborted without any message.
Would it be possible to verify this ?
Best Regards,
Rossine.
Re: Sample <console> abort
Posted: Mon Nov 28, 2011 12:43 am
by danielmaximiliano
Hola a Todos:
en mi caso da un error al intentar ejecutar la primera vez cualquier ejemplo de HMG4
al copiar mingwm10.dll en la carpeta asociada al ejemplo ocurre un segundo error.
dejo una imagen de ello
Hello to All:
in my case it gives an error when trying to run the first time any example of HMG4
mingwm10.dll copying the folder associated with a second error occurs eg.
I leave a picture of it
Greenshot_2011-11-27_21-38-24.png (216.19 KiB) Viewed 6504 times
Re: Sample <console> abort
Posted: Mon Nov 28, 2011 2:40 am
by danielmaximiliano
perdon, la primera vez se ejecuta , la segunda vez dice que falta el archivo que se ve en la imagen.
eso si se encuenta mingwm10.dll en la carpeta, dejo un video de ello.
forgiveness, the first time it runs, the second says that the file you see in the picture.
It is found that if mingwm10.dll in the folder, leave a video of it.
Re: Sample <console> abort
Posted: Mon Nov 28, 2011 11:42 am
by mrduck
Instead of copying the files, perhaps it is better that you seth a PATH to it...
danielmaximiliano wrote:perdon, la primera vez se ejecuta , la segunda vez dice que falta el archivo que se ve en la imagen.
eso si se encuenta mingwm10.dll en la carpeta, dejo un video de ello.
forgiveness, the first time it runs, the second says that the file you see in the picture.
It is found that if mingwm10.dll in the folder, leave a video of it.
Re: Sample <console> abort
Posted: Mon Nov 28, 2011 11:57 am
by Rossine
Hello,
The second time I call the "Open QT GUI window" system is aborted. I got the window that appears through the printscreen before the program aborts. See below:
Best Regards,
Rossine.
Re: Sample <console> abort
Posted: Mon Nov 28, 2011 12:10 pm
by Ricci
Rossine wrote:
Would it be possible to verify this ?
Works perfect here. Do you have the latest version and use the actual SVN?
Re: Sample <console> abort
Posted: Mon Nov 28, 2011 12:28 pm
by danielmaximiliano
Ricci wrote:
Rossine wrote:
Would it be possible to verify this ?
Works perfect here. Do you have the latest version and use the actual SVN?
en mi caso , si.
instalado los binarios HMG.4 del 23/11/2011
aplicado SVN update a la fecha de hoy.
contruido las librerias (buildlib.bat)
debo desintalar las anteriores versiones de HMG4?
todo esto en Windows 7 Home premium 64, sobre Hp4530s i3
in my case, yes.
HMG.4 installed binaries of 23/11/2011
SVN update applied to today's date.
constructed the libraries (buildlib.bat)
I uninstall previous versions of HMG4?
all this in Windows 7 Home Premium 64 on Hp4530s i3
HMGforum.png (75.75 KiB) Viewed 6487 times
HMGforum 2.png (162.14 KiB) Viewed 6487 times
si fuera necesario, cuales archivos se copiarian y a que carpeta copiar
if necessary, be copied and which files to copy to folder
Re: Sample <console> abort
Posted: Wed Dec 21, 2011 1:03 pm
by Rossine
Hello Luigi,
Could it be that you look for when calling for the second time option "Open QT GUI window" the application is terminated without notice error ?
This error occurs there with you too ? If so, you could fix it ?
Best Regards,
Rossine.
Re: Sample <console> abort
Posted: Wed Dec 21, 2011 1:22 pm
by l3whmg
Hi friends.
Please, remember that some dll can't be installed on your system. this one "mingwm10.dll" is one of them.
You have many possibilities:
copy these file within your executable folder (in any folder you run a program)
or
within C:\Windows\System32 folder (I'm using WinXp)
At the same time, there are Qtcore4.dll, QtGui4.dll or QtNetwork4.dll; follow previous example.
About qgif4.dll, qjpeg4.dll and many other there are different solutions:
copy "pulgins\imageformats" within your executable folder (in any folder you runa a program)
or
create a valid qt.conf
I write about this in other post.
@Rossine
I will check
Cheers
Re: Sample <console> abort
Posted: Wed Dec 21, 2011 1:48 pm
by Rossine
Hello Luigi,
l3whmg wrote:Hi friends.
Please, remember that some dll can't be installed on your system. this one "mingwm10.dll" is one of them.
You have many possibilities:
copy these file within your executable folder (in any folder you run a program)
or
within C:\Windows\System32 folder (I'm using WinXp)
At the same time, there are Qtcore4.dll, QtGui4.dll or QtNetwork4.dll; follow previous example.
About qgif4.dll, qjpeg4.dll and many other there are different solutions:
copy "pulgins\imageformats" within your executable folder (in any folder you runa a program)
or
create a valid qt.conf
/*
* $Id: demo_1.PRG 760 2011-10-21 12:01:51Z l3wonsf $
*/
/*
* HMG 4 demo
* (c) 2010 Roberto Lopez <mail.box.hmg@gmail.com>
*/
/*
This demo shows how to mix console and GUI in the same EXE.
In fact, the console part, WVG, is not a real console, is a "pseudo-console" emulated in a graphics environment.
But this work just as a pure console does.
*/
#include "hmg.ch"
#include "hbqtgui.ch"
Function Main
LOCAL oWindow
HbQt_ErrorSys()
// Request WVG to be linked.
REQUEST HB_GT_WVG
REQUEST HB_GT_WVG_DEFAULT
DEFINE MAINWINDOW oWindow
Width 400
Height 400
Title 'Calling a QT window from pseudo-console WVG'
OnInit oWindow:Center()
ON KEY ESCAPE OF oWindow ACTION oWindow.release
@ 40,40 Button oButton1 ;
Caption 'Click to Win_Dos' ;
On Click Win_Dos()
END WINDOW
oWindow:Activate()
Return Nil
function Win_Dos
LOCAL nPrompt
local pGTDOS, pGTWIN
pGTDOS := hb_gtCreate( "WVG" )
pGTWIN := hb_gtSelect( pGTDOS )
// Console code
SETMODE( 25, 80 )
SET MESSAGE TO 24
DO WHILE .T.
CLEAR SCREEN
@ 3, 20 SAY "Select an option " COLOR "W+/R"
@ 04, 19 TO 07,38 DOUBLE
@ 05, 20 PROMPT "Text MemoEdit() " MESSAGE "Displays a text file"
@ 06, 20 PROMPT "Return To window " MESSAGE "Ends demo"
MENU TO nPrompt
if nPrompt = 1
@ 00, 00 TO MAXROW(), MAXCOL()
MemoEdit( "This is text mode MemoEdit", 01, 01, MAXROW()-1, MAXCOL()-1 )
elseif nPrompt = 2 .or. nPrompt = 0
EXIT
END
ENDDO
hb_gtSelect( pGTWIN )
Return Nil
In demo_1.prg the problem must be occurring as mainwindow is closed.