Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Code Samples & Tips > Additional Libraries
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.


Useful Library


Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 06-17-2007, 06:33 PM
Knows the basics
 
Join Date: May 2007
Posts: 95
Default

Hi. I don't know much about C/C++. What valid 32-bit integers can I pass to PostMessageToWindow(), for WMSG, wParam, lParam? I am not following winuser.h. Do I just convert those hexadecimal values to INT32 and use those in my program, and how can I tell what constants to reference when I need a particular feature other than writing to another application? What else can I make other windows do besides typing in other applications? Thank you very much, your library rules!
Reply With Quote
  #12 (permalink)  
Old 06-18-2007, 07:13 PM
JJM JJM is offline
Knows the basics
 
Join Date: Apr 2007
Location: France
Posts: 79
Default

Dimitris,
I have an error with the new version of dzHW.dll.
dzHW.Inputpanel=true (or false) has no action on SIP.
With the old version it works fine.

Bye

JJ M
Reply With Quote
  #13 (permalink)  
Old 06-18-2007, 11:33 PM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Hello,

JJM thank you for your note and sorry for the bug.
I attached at the same post (#8) new dzHW-2.ZIP with fixed dzHW.dll, please download it again.

alfcen, SPS stands for System Power Status structure used for quering the power status of the device.
You are right about Visual Studio and therefore after first version of dzHW library, I'm using sharpdevelop (http://www.sharpdevelop.net), an open source IDE VS alternative, to develop this librariy. I will post the source code in the near future, so everyone could be able to continue it's development, because I'll stop some moment (not enough free time to spent)

conf, sorry no SMS library for now. I develop these libraries for my own use and just share them with b4ppc community.

Louis, PostMessage functions can be used by your app to communicate with other apps. You can use Bitwise library to convert hex values to decimal at runtime. Maybe I'll post some more examples later in this thread.
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #14 (permalink)  
Old 06-19-2007, 11:53 AM
JJM JJM is offline
Knows the basics
 
Join Date: Apr 2007
Location: France
Posts: 79
Default

Thanks

JJ M
Reply With Quote
  #15 (permalink)  
Old 07-11-2007, 01:47 PM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default New version & new dzForm object for desktop

Hi to all,

A new dzHW version is here with more functions and with a new dzForm control for desktop only.
I thought that Form control of B4PPC is not enough for desktop applications so I created this.

For how to use dzForm control see attached B4PPC sample. Documentation for dzForm I'll not post (I hate writing documentation especially in a foreign language) but I think it is simple to understand it. Ask for everything you do not understand.

A simple description for dzHW added function follows.

GetProcesses: Returns in a table of string the names of active processes KillProcess("ProcessName"): Kills the process
GetProcessHandle("ProcessName"): Returns the handle of process with name ProcessName
GetModuleHandle("Modulename"): Return the Handle for a loaded module. ModuleName = "null" returns the handle of myapp
GetActiveWindowHandle: Returns the Handle of the Active Window
GetWindowHandle("ClassName", "WindowName"): Returns the handle of Window with class name ClassName and window name WindowName. ClassName and or WindowName can be null
GetClassName(hWnd, StrLen): Returns in a string the class name of the given hWnd. StrLen the maximum length of class name to return
GetWindowtext(hWnd, StrLen): Returns in a string the window text of the given hWnd. StrLen the maximum length of window name to return
SetWindowText(hWnd, WindowText): Sets the Window Title or Caption of window eith Handle hWnd
GetParent(hWnd): Returns the parent window handle of window with handle hWnd
GetWindowFirst(hWnd): Returns the handle of the first in order window of window with handle hWnd
GetWindowNext(hWnd): Returns the handle of the next in order window of window with handle hWnd
GetWindowChild(hWnd): Returns the first child window of thw window with handle hWnd
PostMessage(hWnd, wMsg, wParam, lParam): Posts a message to the window with hWnd handle
ShowWindow(hWnd, nCmdShow): Send mCmdShow command to the window with handle hWnd. If mCmdShow = 0 hides the window. If mCmdShow = 5 shows the window. See winuser.h as above
GetWindowRect(hWnd): Return a table(4) of int32 with left, top, right, bottom of window with Handle hWnd
IsWindowVisible(hWnd): Returns true if the window with handle hWnd is visible
IsWindow(hWnd): Returns true if the window with handle hWnd is window (!!!)

For how to use these functions see dzSpy I've posted here dzSpy - Spy and Task Manager App - Open Source

Desktop version source code can be found here http://www.terracom.gr/basic4ppc/files/dzHWdesktop.zip

Device version source code can be found here http://www.terracom.gr/basic4ppc/files/dzHW.zip

Attached dzHW-3.zip contains compiled DLLs.
Attached dzForm-sample.zip contains .sbp sample dzHWDesktop.dll and FormLib.dll.

Regards
Attached Images
File Type: jpg dzHWForm.jpg (25.7 KB, 75 views)
Attached Files
File Type: zip dzHW-3.zip (15.2 KB, 124 views)
File Type: zip dzForm-sample.zip (12.2 KB, 101 views)
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #16 (permalink)  
Old 07-11-2007, 02:27 PM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Awards Showcase
Beta Tester 
Total Awards: 1
Default


How do you find time to sleep?
Amazing work, by all means!
I second your feeling about manuals. You have done so much for the forum. The example code is more than sufficient help.
Respectful greetings
Robert
Reply With Quote
  #17 (permalink)  
Old 07-11-2007, 04:51 PM
Knows the basics
 
Join Date: May 2007
Posts: 82
Default

I don't know what to say. You're Superman !!!
Reply With Quote
  #18 (permalink)  
Old 10-25-2007, 06:21 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,488
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Hi dzt. Many thanks for the kind words in another thread. I know you hate documentation so I have attached an attempt at a help file for your dzHW library. I would appreciate some comments on the dzProcesses class in the device library, is it intended for use with B4PPC? If so a few words on what the members do perhaps?- and any other comments of course.

Hi everyone else. This chm is a work in progress I will post the final version in a few days time.
Attached Files
File Type: zip dzHWhelp.zip (10.0 KB, 62 views)
Reply With Quote
  #19 (permalink)  
Old 10-31-2007, 06:06 PM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Hello agraham,

Thank you very very very much for your work.
dzProcesses is a helper class and there is no need to be visible to Basic4ppc.

I'll post more comments in the near future, since I'm very busy for now.

Thanks again!

@Erel: What do you say about hiding protected classes ?
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #20 (permalink)  
Old 10-31-2007, 06:17 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,985
Default

I thought about it too.
Due to some backward compatibility issues it will not be in the next version.
However classes that start with an underscore - '_' won't appear.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Door library (Beta) - Special library Erel Official Updates 48 07-18-2008 02:33 PM
Merging Outlook library and Phone library Erel Official Updates 2 07-14-2008 03:38 PM


All times are GMT. The time now is 04:35 AM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0