dbTalk Databases Forums  

CALLC (WHERE IS THE ERROR ?)

comp.databases.pick comp.databases.pick


Discuss CALLC (WHERE IS THE ERROR ?) in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
alegon
 
Posts: n/a

Default CALLC (WHERE IS THE ERROR ?) - 11-09-2006 , 10:04 AM






HI,

WHERE IS THE ERROR ?

Program in UniBasic :

ED BP TESTDLL

001: PERFORM "UDT.OPTIONS 88 OFF"
002: COD = ""
003: DADO = CALLC INTEGRACAOFPWDLL(COD)
004: PRINT DADO



Program in VB .NET

DLL "IntegracaoFPW.dll"

Public Class ClsDadoFuncionario
Public Function DadoFuncionario(ByVal CodFuncionario As String) As
String
DadoFuncionario = "ALEXANDRE]2532]10"
End Function
End Class



Reference in Unidata

ED VOC INTEGRACAOFPWDLL

001: E
002: \Unidata\FPW_DLL\IntegracaoFPW.dll
003: DadoFuncionario
004: STRING
005: STRING


:RUN BP TESTDLL
In

The program STOP




Plese Help me !


Reply With Quote
  #2  
Old   
Symeon
 
Posts: n/a

Default Re: CALLC (WHERE IS THE ERROR ?) - 11-09-2006 , 10:49 AM







alegon wrote:

Quote:
HI,

WHERE IS THE ERROR ?

Program in UniBasic :

ED BP TESTDLL

001: PERFORM "UDT.OPTIONS 88 OFF"
002: COD = ""
003: DADO = CALLC INTEGRACAOFPWDLL(COD)
004: PRINT DADO



Program in VB .NET

DLL "IntegracaoFPW.dll"

Public Class ClsDadoFuncionario
Public Function DadoFuncionario(ByVal CodFuncionario As String) As
String
DadoFuncionario = "ALEXANDRE]2532]10"
End Function
End Class



Reference in Unidata

ED VOC INTEGRACAOFPWDLL

001: E
002: \Unidata\FPW_DLL\IntegracaoFPW.dll
003: DadoFuncionario
004: STRING
005: STRING


:RUN BP TESTDLL
In

The program STOP




Plese Help me !

Hi there - there are strict requirements on the type of dll it
supports, and indeed the documentation sugests only c, c++ and delphi
are supported with _declspec declared functions. Because you have
written in .net - even though it is a dll it will still be managed
code. What you need to do is write a wrapper in C that inturn calls the
functions you have written in .net. There is a doc on this on the IBM
website at
http://www-1.ibm.com/support/docview...21165330&aid=1
you will need an ibm login for this - if you can not get the doc drop
me a line and I can email it to you.



rgds
Symeon.



Reply With Quote
  #3  
Old   
alpy
 
Posts: n/a

Default Re: CALLC (WHERE IS THE ERROR ?) - 11-09-2006 , 06:41 PM



DadoFuncionario?

LOL!


Reply With Quote
  #4  
Old   
alegon
 
Posts: n/a

Default Re: CALLC (WHERE IS THE ERROR ?) - 11-14-2006 , 09:05 AM



Public Function DadoFuncionario

DadoFuncionario is function name

itīs portugues, i am from brazil

alpy escreveu:

Quote:
DadoFuncionario?

LOL!


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.