hpwDllCall update example for purebasic - Forum

Forum Navigation
You need to log in to create posts and topics.

hpwDllCall update example for purebasic

Page 1 of 2Next

The code sample update required to create a DLL for the hpwDllCall plugin from PureBasic.
Rescued from:
https://archive.visualneo.com/viewtopic.php?t=14476
I leave the source code and the new pure.dll compiled to 32 bits

Regards

 

Uploaded files:
  • You need to login to have access to uploads.
luishp, Vadim and 2 other users have reacted to this post.
luishpVadimdglojnarjosevdr95

@emmanuel-fernandez thanks a lot!

Otro ejemplo, con una dll con más funciones que he incorporado, realmente se abre un mundo de posibilidades!

 

Uploaded files:
  • You need to login to have access to uploads.
Vadim and Darbdenral have reacted to this post.
VadimDarbdenral

Adding the possibility of passing several parameters in the only variable that hpwdllcall uses ... and doing a split in purebasic to interpret them :)

Vadim has reacted to this post.
Vadim

Hello,

You seems to have some fun with one of my oldest (11.2002) plugins! ;-)

Regards

Hans-Peter

Darbdenral and emo have reacted to this post.
Darbdenralemo
Quote from HPW on June 25, 2021, 7:05 pm

Hello,

You seems to have some fun with one of my oldest (11.2002) plugins! ;-)

Regards

Hans-Peter

Hi! nice to meet the author of the plugin! I'm also a bit older haha and I love to play with these things again, I was also a user of neobook in its first version. A pleasure to meet us ;-)

HPW has reacted to this post.
HPW

Opening a window with the calendar widget built into the DLL, opening with the hpwDllCall pluging and detecting the window closure and the selected day :-)

luishp has reacted to this post.
luishp

Opening Edge webview2 in a window through hpwDLLcall that calls a DLL created from PureBasic that incorporates Webview2.

luishp has reacted to this post.
luishp

I leave the project with the dlls in case someone wants to try and play with it. You need to install the hpwDllCall plugin, and install the microsoft runtime. All the best ;-)

Uploaded files:
  • You need to login to have access to uploads.
luishp, Vadim and Darbdenral have reacted to this post.
luishpVadimDarbdenral

If someone has knowledge to do the visualneowin sdk for Purebasic then it would be possible to incorporate all this in a plugin, I have tried it but without result. hugs

Hello Emmanuel,

I take look at your hpwDLLCall_Emo.zip. Works as expected.

But a interested purebasic user would like to see the purebasc source to learn from.

Regards

Hans-Peter

 

emo has reacted to this post.
emo
Quote from HPW on June 27, 2021, 8:22 pm

Hello Emmanuel,

I take look at your hpwDLLCall_Emo.zip. Works as expected.

But a interested purebasic user would like to see the purebasc source to learn from.

Regards

Hans-Peter

 

Hello Hans-Peter,

I have seen that a dll can be included when you generate a plugin for VisualNeowin, so I consider it possible to make a plugin that includes, for example, the emo.dll library and make calls to that library from the plugin itself that I am going to generate from delphi and transfer the results to a variable or to the rectangle itself, right? The new webview2 could also be displayed, I suppose ...

Hello,

Yes, that should be possible. I do similar things with my newlisp.dll but I let the user or installer do the job of providing the dll.

The plugin is the bridge between the 2 worlds.

Transfering string-data is one thing, but attaching graphical objects to rectangle is another.

You might need to do resizing to fit the rectangle. And you have to react on messages about resizing after creation.

Not sure how this work between 2 different programming enviroments.

Regards

Hans-Peter

emo has reacted to this post.
emo

Hi! thanks, I'll do some tests
Greetings

Hi @emmanuel-fernandez,

Nice work!

If you are interested on bind NeoWin + other dialects, feel free to check NeoThinBasic enviroment.

I could send you the source develop and my experience.

the link is:

https://archive.visualneo.com/viewforum.php?f=34

Greetings from Buenos Aires,

David de Argentina

emo has reacted to this post.
emo
Quote from DaviddeArgentina on June 28, 2021, 8:12 pm

Hi @emmanuel-fernandez,

Nice work!

If you are interested on bind NeoWin + other dialects, feel free to check NeoThinBasic enviroment.

I could send you the source develop and my experience.

the link is:

https://archive.visualneo.com/viewforum.php?f=34

Greetings from Buenos Aires,

David de Argentina

Hola David de Argentina , gracias a ti ;-)

Que buenos recuerdos tengo de cuando estuve allí.

Muchisimas gracias por la información, lo miraré.

La versión 1.06 que hay en el link funciona actualmente?

Un abrazo muy grande!

Hola @emmanuel-fernandez,

Celebro los buenos recuerdos,

Ambos enlaces funcionan bien.

Deberias descargar el paquete completo, porque el otro solo tiene el nbp, y si no tienes experiencia, no vas a avanzar mucho.

Saludos nuevamente.

David de Argentina

The new experiment was to be able to include a custom dll  in a VisualNeo plugin, and succeeded!

The EmoCipher plugin uses this technique.

In delphi, it is as simple as including a function with the library and adding in the actions of the plugin that includes the library:

{your plugin functions}
FUNCTION cifrado_md5( parametro: PChar): FT_Result;stdcall; external 'emo_cipher.dll';
.
.
{ Next, if necessary, tell NeoBook what extra files are required for your plug-in.}
 nbAddFile( 'c:\path\somefile.xyz', TRUE );

Regards.

Quote from emo on June 29, 2021, 10:37 am

The new experiment was to be able to include a custom dll  in a VisualNeo plugin, and succeeded!

The EmoCipher plugin uses this technique.

In delphi, it is as simple as including a function with the library and adding in the actions of the plugin that includes the library:

{your plugin functions}
FUNCTION cifrado_md5( parametro: PChar): FT_Result;stdcall; external 'emo_cipher.dll';
.
.
{ Next, if necessary, tell NeoBook what extra files are required for your plug-in.}
nbAddFile( 'c:\path\somefile.xyz', TRUE );
{your plugin functions} FUNCTION cifrado_md5( parametro: PChar): FT_Result;stdcall; external 'emo_cipher.dll'; . . { Next, if necessary, tell NeoBook what extra files are required for your plug-in.} nbAddFile( 'c:\path\somefile.xyz', TRUE );
{your plugin functions}
FUNCTION cifrado_md5( parametro: PChar): FT_Result;stdcall; external 'emo_cipher.dll';
.
.
{ Next, if necessary, tell NeoBook what extra files are required for your plug-in.}
 nbAddFile( 'c:\path\somefile.xyz', TRUE );

Regards.

Hi, good work ;)

I want to ask you it if possible to send me the source code of delphi  for this project because im not so good and still learning(maybe be best all files to see how you implement all of this)

I really want to itegrate some my dll in this way for VisualNeo win.

Thnaks

@emmanuel-fernandez

@danijele-brecevic

Good afternoon! I added the nickname of the author of the plugin, so that he gets a message about the mention and can find this topic.

Danijele Brecevic has reacted to this post.
Danijele Brecevic
Page 1 of 2Next