Page 3 of 4

Re: Call_IDE - Utility for HMG IDE

Posted: Mon Jan 30, 2017 11:11 am
by serge_girard
OK, I got it.

Renamed hmg3.4.3 IDE and copied hmg3.4.2. IDE.

Thx

Re: Call_IDE - Utility for HMG IDE

Posted: Mon Jan 30, 2017 3:02 pm
by Steed
Gracias, nice utilitie

Call_IDE - Utility for HMG IDE

Posted: Mon Jan 30, 2017 3:35 pm
by Pablo César
Que bueno que te haya gustado, Eduar

Call_IDE - Utility for HMG IDE

Posted: Tue Jan 31, 2017 10:56 pm
by Pablo César
serge_girard wrote: Mon Jan 30, 2017 11:11 am OK, I got it.

Renamed hmg3.4.3 IDE and copied hmg3.4.2. IDE.

Thx
I renamed as "IDE_Debugger" (for UNICODE and ANSI).

And now Serge with this option (picture below) to choose the HMG IDE installed, is it easier to identify ?
 
Screen69.png
Screen69.png (25.8 KiB) Viewed 4853 times
 
Note the TreeItem icons (auto-detected). :P

I'm going to update Call_IDE and I will release another version with this implementation of InstalledAt. ;)

Thank you for encouraging me. :)

Call_IDE - Utility for HMG IDE

Posted: Wed Feb 01, 2017 12:10 am
by Pablo César
Hola Claudio, preciso una ayudita.

Estoy agregando esta funcion al proyecto InstalledAt:

Code: Select all

nIcons := ExtractIconEx(cIDE, -1, Nil, Nil, 1)

Code: Select all

HB_FUNC ( EXTRACTICONEX )
  {
    HICON iLarge;
    HICON iSmall;
    UINT  nIcons = hb_parni( 5 );
  
    hb_retni( ExtractIconEx( (LPCSTR) HMG_parc( 1 ), hb_parni( 2 ), &iLarge, &iSmall, nIcons ) );
  }
Cuando compilo solo el proyecto InstalledAt, no me dá error pero cuando compilo junto con este otro proyecto (Call_IDE) en conjunto me dá un montón de errores:
Harbour 3.2.0dev (r1601151502)
Copyright (c) 1999-2015, http://harbour-project.org/
..\HMG_Version\InstalledAt\InstalledAt.Prg: In function 'HB_FUN_GETLOGICALDRIVES':
..\HMG_Version\InstalledAt\InstalledAt.Prg:533:5: warning: implicit declaration of function 'hb_retnl' [-Wimplicit-function-declaration]
In file included from D:\Fontes\HMG\Call_IDE\call_ide.prg:912:0:
D:/hmg.3.4.3/harbour/include/hbapi.h: At top level:
D:/hmg.3.4.3/harbour/include/hbapi.h:701:25: warning: conflicting types for 'hb_retnl'
extern HB_EXPORT void hb_retnl( long lNumber ); /* returns a long number */
^
..\HMG_Version\InstalledAt\InstalledAt.Prg:533:5: note: previous implicit declaration of 'hb_retnl' was here
D:\Fontes\HMG\Call_IDE\call_ide.prg: In function 'HB_FUN_SHELLEXECUTEEX':
D:\Fontes\HMG\Call_IDE\call_ide.prg:924:29: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
SHExecInfo.lpVerb = (LPCSTR) HMG_parc( 2 );
^
D:\Fontes\HMG\Call_IDE\call_ide.prg:925:29: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
SHExecInfo.lpFile = (LPCSTR) HMG_parc( 3 );
^
D:\Fontes\HMG\Call_IDE\call_ide.prg:926:29: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
SHExecInfo.lpParameters = (LPCSTR) HMG_parc( 4 );
^
D:\Fontes\HMG\Call_IDE\call_ide.prg:927:29: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
SHExecInfo.lpDirectory = (LPCSTR) HMG_parc( 5 );
^
Como verás, mi mensaje anterior muestra el InstalledAt funcionando correctamente (ejecutable adjunto). Pero cuando compilo junto al otro proyecto me dá error.

Podrias decirme por favor, que es lo que estoy haciendo mal ?

Se adjunta a los dos proyectos. La funcion que son adiciones en el archivo InstalledAt.prg
 
<Source files in pack were removed due is fixed version at next messages in this topic>
 
Aguardo tu respuesta.

Googled
Hello Claudio, I need a little help.

I am adding this function to the InstalledAt project:

<Sources codes>

When I compile only the project InstalledAt, it does not give me error but when compiling together with this other project together gives me a lot of errors:

<Build.log Error>

As you will see, my previous message shows InstalledAt working correctly (executable attached). But when I compile next to the other project it gives me error.

Could you tell me please, what am I doing wrong?

Re: Call_IDE - Utility for HMG IDE

Posted: Wed Feb 01, 2017 1:12 am
by srvet_claudio
Adicionar
#include "hbapi.h"

Sacar (LPCSTR) antes de HMG_parc

Call_IDE - Utility for HMG IDE

Posted: Wed Feb 01, 2017 9:39 am
by Pablo César
Gracias Claudio, está funcionando.

Disculpame por incomodar.

Call_IDE - Utility for HMG IDE

Posted: Wed Feb 01, 2017 9:59 am
by Pablo César
Version 1.4

Added IDE selection according it name and sub-folders in the HMG installation:
  • Displaying the IDE versions on the Tree
  • Differentiation of IDE versions according to UNICODE, ANSI, with Debugger and old versions displayed with differentiated icons
 
<Pack file was removed because there is a newest version ahead in this topic>
 
I hope you enjoyed the new implementations. :D

Call_IDE - Utility for HMG IDE

Posted: Wed Feb 01, 2017 9:53 pm
by Pablo César
Version 1.5

Added "Prevent loading the same project in multiple instances" option.
 
Screen71.png
Screen71.png (23.75 KiB) Viewed 4766 times
 
Call_IDE_Pack.rar
Executable and Source files (Two project in the pack)
(1.67 MiB) Downloaded 306 times
 
I hope you enjoyed the new implementations. :D

Re: Call_IDE - Utility for HMG IDE

Posted: Thu Feb 02, 2017 8:06 am
by serge_girard
Great!

Serge