Diferencias HMG 3.x y Minigui

Forum help and suggestions to improve this forum.

Moderator: Rathinagiri

xixet
Posts: 4
Joined: Thu Feb 07, 2013 11:07 pm

Re: Diferencias HMG 3.x y Minigui

Post by xixet » Sat Jul 21, 2018 10:21 am

OK. Gracias por la información
Espero poder ponerme al día pronto. Tengo ilusión por desarrollar y actualizar viejos proyectos.

Un placer contactar con vosotros.

Volveré

User avatar
dragancesu
Posts: 579
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia
Has thanked: 15 times
Been thanked: 111 times

Post by dragancesu » Fri Jul 27, 2018 12:15 pm

Hello Grigory,

I use HMG for database, with MySQL work OK, but for Oracle not work correctly ( PostgreSQL don't test )
Harbour and Oracle work well

I look Minigui and not see demo with Oracle database, are Minigui work with Oracle thru OCILIB?

Regards
Dragan

User avatar
gfilatov
Posts: 580
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Has thanked: 17 times
Been thanked: 147 times
Contact:

Post by gfilatov » Fri Jul 27, 2018 1:04 pm

dragancesu wrote:
Fri Jul 27, 2018 12:15 pm
...
I look Minigui and not see demo with Oracle database, are Minigui work with Oracle thru OCILIB?
Hello Dragan,

Yes, it is.

Please take a look for the following answer from our Oracle expert Jacek Kubica at the Minigui forum:
Hi Ryszard!

> I need Help using Oracle.
> Can you explain me how to get to oracle database.
> I have got connectionstring , user and password.
> Server is installed on another machine.
> What do I have to install to use it and how ?
> Sorry but ithis is my first step with oracle.

> Regards.
> Richard Rylko.

First you need to have:
1. Oracle client instaled
2. OCILib http://WWW.ocilib.net instaled in (for example) C:\ocilib
(to create proper Harbour`s compilation only)
3. Harbour compiled with HB_WITH_OCILIB=C:\ocilib\include
then
4. Link your app with harbour`s sddoci.lib and ocilba.lib
and place ociliba.dll in your exe`s folder

simple connection to Orcle schema sample:

#include "hbrddsql.ch"
#include "hbcompat.ch"
#include "minigui.ch"
REQUEST SDDOCI, SQLMIX

< ... some main function here ...>

Function ORA_CONNECT( SCHEMA,USER,PASS )
Local lSuccess := .f.
DEFAULT SCHEMA TO "ORASCHEMA"
DEFAULT PASS TO "GUEST"
DEFAULT USER TO "GUEST"

IF RDDINFO( RDDI_CONNECT, { "OCILIB", schema, user,pass } ) <=0
MsgStop("Unable connect to the ORA server - schema "+SCHEMA +" as user: "+USER,"Error")
else
MsgInfo("Connected to database schema: "+SCHEMA)
lSuccess := .t.
ENDIF
Return lSuccess

--
Pozdrowienia,
Jacek Kubica
Hope that useful :idea:
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein

jorge.posadas
Posts: 78
Joined: Mon May 19, 2014 7:43 pm
DBs Used: DBF, SQLite, MS-SQL, ACCESS, MariaDB (en proceso)
Location: Tizayuca, Hgo. México
Been thanked: 3 times
Contact:

Post by jorge.posadas » Fri Jul 27, 2018 4:22 pm

Hola Grigory.

Is posible to get the BMP, ICON, PNG like you use in this app?
beacuse I like this.
Cordialmente

Jorge Posadas Ch
Tizayuca, Hgo.
M é x i c o .
Movil +52 5514272013
SKYPE: jorge.posadasch
Email: jorge.posadas@gmail.com

User avatar
gfilatov
Posts: 580
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Has thanked: 17 times
Been thanked: 147 times
Contact:

Post by gfilatov » Fri Jul 27, 2018 5:14 pm

Hola Jorge,

Happy Birthday!

> Is posible to get the BMP, ICON, PNG
The all recources (along with a source) of the Modest app are included in the Minigui distribution
(look at the folder \samples\Applications\Modest).
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein

Post Reply