regsvr32.exe teste.dll

Windows specific questions.
Post Reply
als_santos
Posts: 4
Joined: Jun 28, 2018 20:44

regsvr32.exe teste.dll

Post by als_santos »

[PtBr]
Olá não estou conseguindo ter exito ao criar uma dll e registrar no windows, e na verdade eu preciso criar essa dll para ser registrada no windows.
É possa ser que eu não saiba criar mesmo uma dll, pode ser esse o problema alguém pode criar uma dll e registrar no windows e chama-la no vbs assim:

Code: Select all

set var = createobject("teste")
teste.say("ola")
Obrigado, desde já!

[ENG]
Hello, I am not able to succeed when creating a dll and registering on windows, and in fact I need to create this dll to be registered in windows.
It may be that I do not know how to create even a dll, that may be the problem someone can create a dll and register in windows and call it in vbs like this:

Code: Select all

set var = createobject("teste")
teste.say("ola")
Thanks in advance!
MrSwiss
Posts: 3910
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: regsvr32.exe teste.dll

Post by MrSwiss »

Sorry, but I think, you've chosen the wrong Forum (no VBS here!). FreeBASIC only ...
als_santos
Posts: 4
Joined: Jun 28, 2018 20:44

Re: regsvr32.exe teste.dll

Post by als_santos »

[PtBr]
Ah desculpe eu entendi a confusão, é que eu esqueci de informar algumas coisas.
Bom na verdade essa .dll "teste.dll" foi criada no freebasic. Porque um amigo precisava de uma dll e conhecia uma libguagem fácil de programar então pensei em fazer a dll em freebasic para ele pudesse usar em vbs, mas não estou tendo sucesso com a .dll.

Eu acho que fiz tudo certo, veja:
fbc.]exe -dll -export teste.bas
Já tentei de varias formas, ele gera a .dll, mas na hora de registrar no windows não funciona.

Pode me ajudar? Desculpe pela confusão.

[ENG]
Sorry, I understood the confusion, I forgot to report a few things.
In fact this .dll "test.dll" was created in freebasic. Why a friend needed a dll and a free programming language, instead the language was a way to make a free download to use vb, but was unsuccessful with a .dll.

I think I did everything right, see:
fbc.] exe -dll -export teste.bas
I have tried in several ways, it generates a .dll, but at the time of registering no windows does not work.

Can you help me? Sorry for the confusion.
nimdays
Posts: 236
Joined: May 29, 2014 22:01
Location: West Java, Indonesia

Re: regsvr32.exe teste.dll

Post by nimdays »

@als_santos, You can ask your Windows question here:
viewforum.php?f=6

I think you should post more code.
Josep Roca
Posts: 564
Joined: Sep 27, 2016 18:20
Location: Valencia, Spain

Re: regsvr32.exe teste.dll

Post by Josep Roca »

1.- FreeBasic creates standard DLLs.

2.- Standard DLLs can't be registered.

3.- VBScript does not support calling standard DLLs.

4.- To work with VBScript you need to implement an Automation COM server, either in a DLL or in a OCX.

5.- There is not an easy way to implement an Automation COM server with FreeBasic. It can be done, but requires a very good knowledge of COM programming.
als_santos
Posts: 4
Joined: Jun 28, 2018 20:44

Re: regsvr32.exe teste.dll

Post by als_santos »

Josep Roca wrote:1.- FreeBasic creates standard DLLs.

2.- Standard DLLs can't be registered.

3.- VBScript does not support calling standard DLLs.

4.- To work with VBScript you need to implement an Automation COM server, either in a DLL or in a OCX.

5.- There is not an easy way to implement an Automation COM server with FreeBasic. It can be done, but requires a very good knowledge of COM programming.
[PtBr]
Você saberia me dá um exemplo simples de uma dll, que aparece um texto na tela através de uma função, qualquer?
Preciso mesmo disso, você ou alguém poderia me ajudar. Vou ser sincero, não sabia da diferença sobre a COM DLL.
Obrigado desde já!

[ENG]
Do you know what a simple example of a dll is, that a text appears on the screen through a function, any?
I really need this, you? It was not sincere, did not know the difference about a COM DLL.
Thanks in advance!
Post Reply