Jump to content
Fivewin Brasil

Como faz ? Criar uma função Pelles C e Usar no Harbour


Jmsilva

Recommended Posts

Pessoal!

Gostaria de criar uma função no Pelles C com o nome "NameShow()" que retornasse o palavra "Harbour" (somente o código), sei usar Pelles, será criado uma DLL. Após no Harbour, quero no inicio do meu PRG, fazer a chamada da função NameShow() e mostrar palavra "Harbour".


Func Main() 
 set resource to "xxx.dll"
 Msgstop(NameShow())
 set resource to
Return nil

Obrigado!

Link to comment
Share on other sites

  • 2 months later...

Apenas para registro, caso alguém tenha interesse!

O que estava precisando na realidade e não sabia, era o seguinte:

Eu teria criar na minha DLL uma "String Table" , uma tabela interna que possui ID e VALUE, Exemplo: id=12000 VALUE="Harbour".

No prg recupero o conteúdo  através da função LoadString()

Msgstop(LoadString(GetResources(),12000) //resultado "Harbour"

#FikaaDika"

Valeu!

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...