Home » Developer & Programmer » Forms » path to the used dll (forms 10)
icon9.gif  path to the used dll [message #598851] Fri, 18 October 2013 06:34 Go to next message
Gek2ora
Messages: 9
Registered: October 2013
Junior Member
how to use the DLL?
My DLL is loaded on the client host in the C: \ Documents and Settings \ USER \ webutil \
When you try turning to the library, I get an error
WUL-928 [CApiFunctions.set_invokeoncespec ()] EXAMPLE.DLL library is not available or does not contain a function MYFUNCTION
[message #598615]
Teach me. please.

sorry for my bad english
Re: path to the used dll [message #598890 is a reply to message #598851] Fri, 18 October 2013 14:09 Go to previous messageGo to next message
mughals_king
Messages: 392
Registered: January 2012
Location: pakistan
Senior Member
how to download and install webutil in FORMS 10g 10.1.2.0.2

https://forums.oracle.com/thread/1075270



Regard
Mughal

[Updated on: Fri, 18 October 2013 14:12]

Report message to a moderator

Re: path to the used dll [message #599135 is a reply to message #598890] Tue, 22 October 2013 07:59 Go to previous messageGo to next message
Gek2ora
Messages: 9
Registered: October 2013
Junior Member
I'm sorry, but
This is all information from the update appserver
It's all done and tuned
vebutil works
(for the test points 8,9,10 were done again )
Тhe *.jar and *.dll files webutil are copied to the client
( install syslib.location + install.syslib.<os>.<package>.<n> )
I can not make the form to see the users dll

What webutil function uses d2kwut60.dll to check syslib.location?
icon3.gif  Re: path to the used dll [message #599226 is a reply to message #599135] Wed, 23 October 2013 02:12 Go to previous messageGo to next message
Gek2ora
Messages: 9
Registered: October 2013
Junior Member
tried
client_win_api_environment.Get_Environment_string('PATH')
Interesting results in the form of
answer = C:\PROGRA~1\Java\jre6\bin;C:\Program Files\Internet Explorer;;%MY_PATH%;.
!!!
shows that the %USERPROFILE%\webutil\ is not recorded
where the error in the settings?

help
you what result? can check? There is a way to <install.syslib.location.client.0=webutil\> %USERPROFILE%\webutil\

[Updated on: Wed, 23 October 2013 02:39]

Report message to a moderator

Re: path to the used dll [message #599251 is a reply to message #599226] Wed, 23 October 2013 05:09 Go to previous messageGo to next message
mughals_king
Messages: 392
Registered: January 2012
Location: pakistan
Senior Member

https://www.google.com.pk/?gws_rd=cr&ei=259nUsyrGsjQtAah0YDoBA#q=What+webutil+function+uses+d2kwut60.dll+to+check+syslib.location +in+forms+10g


Regard
Mughal
Re: path to the used dll [message #599350 is a reply to message #599226] Wed, 23 October 2013 15:46 Go to previous messageGo to next message
Gek2ora
Messages: 9
Registered: October 2013
Junior Member
really
it's not in the settings AS
try
client_WIN_API_ENVIRONMENT.Read_Registry
IE through all %PATH%, and then %USERPROFILE%\webutil\
2DKWUT60.DLL found

  FUNC_LIB varchar2(20) := 'example.DLL';
  args Webutil_c_api.ParameterList;
  par  Webutil_c_api.ParameterHandle;
begin
       args := WEBUTIL_C_API.create_parameter_list;
       par := WEBUTIL_C_API.add_parameter(args
                ,WEBUTIL_C_API.C_CHAR_PTR
                ,WEBUTIL_C_API.PARAM_IN
                ,'mypar1', 255);
       rc := WEBUTIL_C_API.Invoke_Int(func_lib, 'myfunction', args);


IE through all %PATH%
example.dll not found

why?
Re: path to the used dll [message #599361 is a reply to message #599350] Wed, 23 October 2013 17:17 Go to previous messageGo to next message
mughals_king
Messages: 392
Registered: January 2012
Location: pakistan
Senior Member
http://www.google.com.pk/search?q=client_WIN_API_ENVIRONMENT.Read_Registry+in+forms+10g&hl=en-PK&gbv=2&oq=client_WIN_API_ ENVIRONMENT.Read_Registry+in+forms+10g&gs_l=heirloom-serp.3...23438.31344.0.31485.14.1.0.13.13.0.234.234.2-1.1.0....0...1ac.1.24. heirloom-serp..13.1.234.in6uEPOESC0


Hope this time you will get something from it Cool

Regard
Mughal
Re: path to the used dll [message #599362 is a reply to message #599361] Wed, 23 October 2013 17:29 Go to previous messageGo to next message
mughals_king
Messages: 392
Registered: January 2012
Location: pakistan
Senior Member
http://www.google.com.pk/search?hl=en-PK&source=hp&q=client_WIN_API_ENVIRONMENT.Read_Registry+by+using+webutil+in+forms+10g&a mp;a mp;gbv=2&oq=client_WIN_API_ENVIRONMENT.Read_Registry+by+using+webutil+in+forms+10g&gs_l=heirloom-hp.3...375.10250.0.10328.31. 1.0.30.30.0.438.438.4-1.1.0....0...1ac.1.24.heirloom-hp..30.1.438.k75Je4jJXQw


IF you are still not get anything then sorry Smile

[Updated on: Wed, 23 October 2013 17:33]

Report message to a moderator

Re: path to the used dll [message #599363 is a reply to message #599362] Wed, 23 October 2013 17:35 Go to previous messageGo to next message
mughals_king
Messages: 392
Registered: January 2012
Location: pakistan
Senior Member
http://www.google.com.pk/search?q=client_win_api_environment.Get_Environment_string%28%27PATH%27%29+IN+FORMS+10G&hl=en-PK&gbv =2&oq=client_win_api_environment.Get_Environment_string%28%27PATH%27%29+IN+FORMS+10G&gs_l=heirloom-serp.3..30i10.186266.19523 5.0.197250.97.20.0.0.0.4.359.2622.2-9j1.10.0....0...1ac.1.24.heirloom-serp..94.3.858.3MiKDtXMB1k
Re: path to the used dll [message #599404 is a reply to message #599363] Thu, 24 October 2013 04:12 Go to previous messageGo to next message
Gek2ora
Messages: 9
Registered: October 2013
Junior Member
Thank you for your participation
I'm sorry, I can not understand
to Get_Environment_string, Read_Registry I have no issues

tried to implement a temporary solution
set PATH for the current session

DECLARE
  args Webutil_c_api.ParameterList;
  par1 Webutil_c_api.ParameterHandle;
  par2 Webutil_c_api.ParameterHandle;
  rc   pls_integer := -1;
  loc  VARCHAR2(255);
  pth  VARCHAR2(32767);
  nme  varchar2(255) := 'PATH';
BEGIN

  loc  := webutil_clientinfo.get_system_property('user.home') || '\' ||
          WEBUTIL_CORE.ReadFromPropertyBundle('install.syslib.location.client.0') || ';';
  pth  := client_win_api_environment.Get_Environment_string('PATH');
  pth  := loc || pth;
  
  args := WEBUTIL_C_API.create_parameter_list;
  par1 := WEBUTIL_C_API.add_parameter(args, WEBUTIL_C_API.C_CHAR_PTR, WEBUTIL_C_API.PARAM_IN, nme, length(nme));
  par2 := WEBUTIL_C_API.add_parameter(args, WEBUTIL_C_API.C_CHAR_PTR, WEBUTIL_C_API.PARAM_IN, pth, length(pth));
  rc   := WEBUTIL_C_API.Invoke_Int('KERNEL32.DLL', 'SetEnvironmentVariableA', args);
  message (rc);         
  WEBUTIL_C_API.Destroy_Parameter_List(args);
  
  :display_item12 := client_win_api_environment.Get_Environment_string(nme);
END;


but again the problem. SetEnvironmentVariableA destroys java
Re: path to the used dll [message #599670 is a reply to message #599404] Mon, 28 October 2013 02:11 Go to previous messageGo to next message
Gek2ora
Messages: 9
Registered: October 2013
Junior Member
this is understandable.

is not suitable. dig further
icon4.gif  Re: path to the used dll [message #599879 is a reply to message #599670] Tue, 29 October 2013 14:50 Go to previous message
Gek2ora
Messages: 9
Registered: October 2013
Junior Member
figured out
register_function - a prerequisite

Quote:

FUNC_LIB varchar2(20) := 'example.DLL';
args Webutil_c_api.ParameterList;
par Webutil_c_api.ParameterHandle;
fun_handle WEBUTIL_C_API.FUNCTIONHANDLE;
begin
fun_handle := Webutil_C_API.register_function(func_lib, 'myfunction');
args := WEBUTIL_C_API.create_parameter_list;
par := WEBUTIL_C_API.add_parameter(args
,WEBUTIL_C_API.C_CHAR_PTR
,WEBUTIL_C_API.PARAM_IN
,'mypar1', 255);
rc := WEBUTIL_C_API.Invoke_Int(func_lib, 'myfunction', args);
or
rc := WEBUTIL_C_API.Invoke_Int(fun_handle, args);
Previous Topic: issue with form trigger failure
Next Topic: adding selected listbox value into textbox
Goto Forum:
  


Current Time: Tue Apr 23 05:39:10 CDT 2024