I think I got it, I needed to refer to the hash variables h["nMonitor"] instead of h:nMonitor. Now I got my numbers. And life is good again.
Thanks again Antonio.
Search found 92 matches
- Tue Jan 07, 2025 12:10 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: GetDesktopWindow() on dual monitor system.
- Replies: 10
- Views: 875
- Mon Jan 06, 2025 10:27 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: GetDesktopWindow() on dual monitor system.
- Replies: 10
- Views: 875
Re: GetDesktopWindow() on dual monitor system.
I have this example of monitor information, but I don't know how to use it. Currently it displays and xbrowse window, how do I just get the information in an array so I can utilize it later. Don't need the xbrowse dialog.
Function Antonio()
EnumDisplayMonitors( { | nMonitor, hMonitor, hdcMonitor ...
Function Antonio()
EnumDisplayMonitors( { | nMonitor, hMonitor, hdcMonitor ...
- Fri Nov 01, 2024 3:00 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: ADS Question
- Replies: 10
- Views: 1079
Re: ADS Question
My guess is that RDP does not stand for what I think it does, I did find CRUD on Google. Do you have an example of this method? My current app is a hybrid of SQL using OLEDB, and DBF/CDX with the ADS RDD (both using ADS). If my client had a say in this decision I would switch to SQL Server because ...
- Thu Oct 31, 2024 11:58 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: ADS Question
- Replies: 10
- Views: 1079
Re: ADS Question
Thanks Tim,
My problem was that even in the Uniform Datalink Utility the driver would not show to be selected under the Provider - OLE DB Provider(s) tab of the utility. This is a Microsoft utility so I am not even in Fivewin or Harbour as of yet. The OLEDB installer provided by SAP is named ...
My problem was that even in the Uniform Datalink Utility the driver would not show to be selected under the Provider - OLE DB Provider(s) tab of the utility. This is a Microsoft utility so I am not even in Fivewin or Harbour as of yet. The OLEDB installer provided by SAP is named ...
- Thu Oct 31, 2024 10:18 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: ADS Question
- Replies: 10
- Views: 1079
Re: ADS Question
I believe I found a solution (even a blind squirrel finds a nut). Seems if you install the OLEDB.Exe from version 8.1 the driver shows in the 32 bit version. And you will see it on the Uniform Datalink app.
- Wed Oct 30, 2024 8:25 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: ADS Question
- Replies: 10
- Views: 1079
Re: ADS Question
Update, I attempted to run the adsoledb_x86_64.exe on a Hyper-V VM running 32 bit version of Windows. The installer errors out and says it does not support the processor type. I have an Intel i9. Doesn't seem to be any support for ADS anymore. I tried calling, splinters in your finger nails would be ...
- Wed Oct 30, 2024 8:15 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: ADS Question
- Replies: 10
- Views: 1079
ADS Question
All, I am currently using ADS 12.0 at a customer site. I have attempted to install the server on my local for testing. When I install OLEDB for 32, and 64 I see in the driver in the Uniform Data Link dialog (take an empty file with a UDL extension and from command 'start myfile.udl'), but if I ...
- Thu Sep 26, 2024 5:26 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: GetDesktopWindow() on dual monitor system.
- Replies: 10
- Views: 875
Re: GetDesktopWindow() on dual monitor system.
Works perfectly. Do you know the difference between aWorkRect vs (aMonitorRectInfo or aMonitorRect), this is more like what I saw on line I just had no idea how to implement the code. Thanks,
- Thu Sep 26, 2024 3:30 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: GetDesktopWindow() on dual monitor system.
- Replies: 10
- Views: 875
Re: GetDesktopWindow() on dual monitor system.
Mr. Rao told me to try FW_VirtualScreen(), but I don't know if it works for more than two screens (I only have 2) . However I cannot successfully link my app with EnumDisplayMonitors() the linker can't find it. I did find several mentions of this function when googling the WinAPI for multiple ...
- Wed Sep 25, 2024 7:49 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: GetDesktopWindow() on dual monitor system.
- Replies: 2
- Views: 397
Re: GetDesktopWindow() on dual monitor system.
You nailed it, Thank you.
- Wed Sep 25, 2024 6:55 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: GetDesktopWindow() on dual monitor system.
- Replies: 2
- Views: 397
GetDesktopWindow() on dual monitor system.
When I ask for the desktop windows on my dual monitor system I get the main monitor by GetWndRect( GetDesktopWindows() ). Is there a way to the the second or n monitors as well. I am trying to display multiple dialogs across the screens for a scheduling app and need to know how far I can go to the ...
- Wed Sep 25, 2024 6:46 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: GetDesktopWindow() on dual monitor system.
- Replies: 10
- Views: 875
GetDesktopWindow() on dual monitor system.
When I ask for the desktop windows on my dual monitor system I get the main monitor by GetWndRect( GetDesktopWindows() ). Is there a way to the the second or n monitors as well. I am trying to display multiple dialogs across the screens for a scheduling app and need to know how far I can go to the ...
- Fri Aug 16, 2024 5:21 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: OLE Errors
- Replies: 10
- Views: 2330
Re: OLE Errors
Yes, this is the same PC every day, Outlook has been installed ever since the workstation was setup at the users desk. Typically outlook is running. I just don't have enough information to even begin to think why it is not working. Assuming that it is installed (and hopefully that nobody has ...
- Fri Aug 16, 2024 4:55 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: OLE Errors
- Replies: 10
- Views: 2330
Re: OLE Errors
This is the code I am currently using:
Function GetOutlookObject()
// Same functionality of VBA's GetObject()
Local oOutlook := nil
Try
oOutlook := GetActiveObject("Outlook.Application")
Catch
oOutlook := CreateObject("Outlook.Application")
End
Return oOutlook
My question is why is outlook ...
Function GetOutlookObject()
// Same functionality of VBA's GetObject()
Local oOutlook := nil
Try
oOutlook := GetActiveObject("Outlook.Application")
Catch
oOutlook := CreateObject("Outlook.Application")
End
Return oOutlook
My question is why is outlook ...
- Fri Aug 16, 2024 4:24 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: OLE Errors
- Replies: 10
- Views: 2330
Re: OLE Errors
Why does it throw an error on the CreateObject line, is there a way to identify that?
If it does throw an error, what needs to be done to make it successful the next time?
If it does throw an error, what needs to be done to make it successful the next time?