Home » Developer & Programmer » Forms » How Can I attach the d2kwutil.pll to the form and Win_Api_Shell.SendKeys must be declared (merged)
How Can I attach the d2kwutil.pll to the form and Win_Api_Shell.SendKeys must be declared (merged) [message #401424] Mon, 04 May 2009 22:30 Go to next message
rzkhan
Messages: 370
Registered: March 2005
Senior Member
[Copied from http://www.orafaq.com/forum/mv/msg/144696/401422/67467/#msg_401422 by DJM]

But one question.

How Can I attach the d2kwutil.pll to the form ?


Riaz


I ATTACHED it in Forms itself. It is a PLL,

as below

1. Open your FMB
2. Go to the object navigator.
3. Select the node 'Attached libraries' and click on the green '+' sign on the left.
4. You'll get a Dialog that asks where to look for the library.
5. Browse your filesystem to the correct location of the PLL, and attach it.

But when I run the form. it gives me an error
identifier 'win_api_shell.sendkeys' MUST BE DECLARED


Please advice


Riaz

[Updated on: Wed, 06 May 2009 20:53] by Moderator

Report message to a moderator

Win_Api_Shell.SendKeys must be declared [message #401692 is a reply to message #401424] Wed, 06 May 2009 03:24 Go to previous messageGo to next message
rzkhan
Messages: 370
Registered: March 2005
Senior Member
I found a windows api (in d2kwutil) that would allow me to send keystrokes to a window, but I get an error saying
that I must declare it. Here what I type into a trigger:

Win_Api_Shell.SendKeys(
GET_WINDOW_PROPERTY(forms_mdi_window, window_handle ), '{End}', False);

It tells me that Win_Api_Shell.SendKeys must be declared. How do I declare it and where. Any help would be appreciated.

Thanks
Riaz
Re: keypress erases everything [message #401899 is a reply to message #401424] Wed, 06 May 2009 20:42 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Do NOT ask a new question in an existing thread.

Have you solved your problem? Have you searched this forum for 'd2kwutil'?

David
Re: keypress erases everything [message #401905 is a reply to message #401899] Wed, 06 May 2009 22:17 Go to previous messageGo to next message
rzkhan
Messages: 370
Registered: March 2005
Senior Member
No.

I have searched this forum for the topic, but could not reach the result. I still get the error


dentifier 'win_api_shell.sendkeys' MUST BE DECLARED



Please help me sorting out the problem

Thanking You,
Riaz

[Updated on: Wed, 06 May 2009 22:23]

Report message to a moderator

Re: keypress erases everything [message #401955 is a reply to message #401905] Thu, 07 May 2009 02:43 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Have you attached the 'd2kwutil.pll' to your form?

David
Re: How Can I attach the d2kwutil.pll to the form and Win_Api_Shell.SendKeys must be declared (merge [message #401971 is a reply to message #401424] Thu, 07 May 2009 03:07 Go to previous messageGo to next message
rzkhan
Messages: 370
Registered: March 2005
Senior Member
Yes

Quote:

I ATTACHED it in Forms itself. It is a PLL,

[Updated on: Thu, 07 May 2009 03:10]

Report message to a moderator

Re: How Can I attach the d2kwutil.pll to the form and Win_Api_Shell.SendKeys must be declared (merge [message #402151 is a reply to message #401971] Thu, 07 May 2009 21:03 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Is the pll in the same directory as the form? Did you use the non-default option concerning storing the name when you attached the pll?

David
Re: How Can I attach the d2kwutil.pll to the form and Win_Api_Shell.SendKeys must be declared (merge [message #402155 is a reply to message #401424] Thu, 07 May 2009 21:37 Go to previous messageGo to next message
rzkhan
Messages: 370
Registered: March 2005
Senior Member
Quote:

Is the pll in the same directory as the form?


Yes


Quote:

Did you use the non-default option concerning storing the name when you attached the pll?


Yes


______
Riaz
Re: How Can I attach the d2kwutil.pll to the form and Win_Api_Shell.SendKeys must be declared (merge [message #402657 is a reply to message #401424] Mon, 11 May 2009 22:02 Go to previous messageGo to next message
rzkhan
Messages: 370
Registered: March 2005
Senior Member
I searched a lot on the topic. But could not reach solution. Any help would be appreciated.

Riaz
Re: How Can I attach the d2kwutil.pll to the form and Win_Api_Shell.SendKeys must be declared (merge [message #403186 is a reply to message #402657] Thu, 14 May 2009 02:16 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Have a look at http://www.orafaq.com/forum/t/61731/0/

What version of Forms are you using? Do a Ctrl-Shft-K (Compile All) then a Ctrl-T (Generate) and a save, then run your form.

David
Re: How Can I attach the d2kwutil.pll to the form and Win_Api_Shell.SendKeys must be declared (merge [message #403212 is a reply to message #401424] Thu, 14 May 2009 04:36 Go to previous messageGo to next message
rzkhan
Messages: 370
Registered: March 2005
Senior Member
I m using Forms6i on xp, oracle 10g.

I have compiled, Generated, Saved and Run the form. But still get the same error.

However I am studying the link you provided.

Thanks
Riaz
Re: How Can I attach the d2kwutil.pll to the form and Win_Api_Shell.SendKeys must be declared (merge [message #403271 is a reply to message #403212] Thu, 14 May 2009 09:34 Go to previous messageGo to next message
TonyJaa
Messages: 50
Registered: May 2009
Member
Hi,

The errors happens at the start of the forms module ?

If yes do you use D2kwutil components in When new form instance ?

If yes You can't use D2kwutil components at this moments because libraries are not yet loaded in memory. Use a timer.
Re: How Can I attach the d2kwutil.pll to the form and Win_Api_Shell.SendKeys must be declared (merge [message #403343 is a reply to message #401424] Thu, 14 May 2009 23:19 Go to previous messageGo to next message
rzkhan
Messages: 370
Registered: March 2005
Senior Member

No. The Error messages is displayed during COMPILATION.
Re: How Can I attach the d2kwutil.pll to the form and Win_Api_Shell.SendKeys must be declared (merge [message #403367 is a reply to message #403343] Fri, 15 May 2009 02:48 Go to previous messageGo to next message
TonyJaa
Messages: 50
Registered: May 2009
Member
Ok,

The PLL is not attached.
Re: How Can I attach the d2kwutil.pll to the form and Win_Api_Shell.SendKeys must be declared (merge [message #403369 is a reply to message #401424] Fri, 15 May 2009 02:52 Go to previous messageGo to next message
TonyJaa
Messages: 50
Registered: May 2009
Member
And try to compile PLL
Re: How Can I attach the d2kwutil.pll to the form and Win_Api_Shell.SendKeys must be declared (merge [message #403376 is a reply to message #401424] Fri, 15 May 2009 04:10 Go to previous messageGo to next message
rzkhan
Messages: 370
Registered: March 2005
Senior Member
1. I have attached the .PLL
it asked for the path change. I clicked the non-default option.


2. I Compiled it sucessfully. (ctl+shift+k)


But the error still remains.


Re: How Can I attach the d2kwutil.pll to the form and Win_Api_Shell.SendKeys must be declared (merge [message #403377 is a reply to message #403376] Fri, 15 May 2009 04:12 Go to previous messageGo to next message
rzkhan
Messages: 370
Registered: March 2005
Senior Member
rzkhan wrote on Fri, 15 May 2009 05:10
1. I have attached the .PLL
it asked for the path change. I clicked the non-default option.


2. I Compiled the .PLL sucessfully. (ctl+shift+k)



But it still gives error while COMPILING the FORM.




Re: How Can I attach the d2kwutil.pll to the form and Win_Api_Shell.SendKeys must be declared (merge [message #403382 is a reply to message #401424] Fri, 15 May 2009 04:46 Go to previous messageGo to next message
TonyJaa
Messages: 50
Registered: May 2009
Member
When you browse the PLL do you see a package called Win_api_shell with et procedure sendKeys ?

Download the newest version of d2kwutil ?
Re: How Can I attach the d2kwutil.pll to the form and Win_Api_Shell.SendKeys must be declared (merge [message #403385 is a reply to message #401424] Fri, 15 May 2009 04:56 Go to previous messageGo to next message
rzkhan
Messages: 370
Registered: March 2005
Senior Member

Yes. I can see the subprogram.
picture attached.

And secondly, I m using the newest version of Library.(downloaded some days ago)

  • Attachment: sendKeys.JPG
    (Size: 149.00KB, Downloaded 1241 times)

[Updated on: Fri, 15 May 2009 05:00]

Report message to a moderator

Re: How Can I attach the d2kwutil.pll to the form and Win_Api_Shell.SendKeys must be declared (merge [message #403388 is a reply to message #403385] Fri, 15 May 2009 05:16 Go to previous messageGo to next message
TonyJaa
Messages: 50
Registered: May 2009
Member
Ok, You attached the libraries to the wrong Node.

Module --> Attached Libraries (third Node under your module name)

It will works

  • Attachment: d2k.bmp
    (Size: 960.05KB, Downloaded 1606 times)
Re: How Can I attach the d2kwutil.pll to the form and Win_Api_Shell.SendKeys must be declared (merge [message #403405 is a reply to message #401424] Fri, 15 May 2009 06:27 Go to previous messageGo to next message
rzkhan
Messages: 370
Registered: March 2005
Senior Member
Thanks it solved the problem. The form works fine on my Development server. But one more question.


Should I keep same settings on my client pc having windows xp and forms6i?

I got following settings on one of my client pc.


1. copied d2kwut60.dll + .PLL to client machine C:\orant\TOOLS\OPEN2K60\plsqllib

2. copied the required .FMX file to client pc.

when I run the .FMX form. It runs fine.

But when I move to the TEXT ITEM where I have used the procedure, It gives me the error.

FRM-40734: Internal Error: PLSQL error occured.





Please guide me How can I handle this error on client PCs.

Riaz


Re: How Can I attach the d2kwutil.pll to the form and Win_Api_Shell.SendKeys must be declared (merge [message #403406 is a reply to message #401424] Fri, 15 May 2009 06:37 Go to previous message
rzkhan
Messages: 370
Registered: March 2005
Senior Member
Ok Dear I have solved the problem on Client PCs. as below.

In the forms run time shortcut properties, I changed the START IN property to correct location. And Now It is working fine showing NO ERROR message.


I am really thankful to you all. Smile

My problem has been solved now. good day / good night

Riaz

[Updated on: Fri, 15 May 2009 06:38]

Report message to a moderator

Previous Topic: Creating a Record
Next Topic: When tab page selected show different
Goto Forum:
  


Current Time: Fri Sep 20 12:29:38 CDT 2024