I added the variable BARWIDTH so that the fonts are adjusted to the size of the barcode.
TeddyLM
Search found 128 matches
- Wed Mar 06, 2019 5:54 pm
- Forum: Tricks 'n' Tips
- Topic: Barcode
- Replies: 5
- Views: 3333
- Tue Mar 05, 2019 7:42 am
- Forum: Tricks 'n' Tips
- Topic: Barcode
- Replies: 5
- Views: 3333
Barcode
Hi
I needed this for a project (and didn't want to use fonts).
Maybe it could be useful to someone else.
TeddyLM
Enumeration
#BARCODE_128
#BARCODE_39
#BARCODE_2of5
#BARCODE_93
#BARCODE_EAN
EndEnumeration
Enumeration
#TEXT_NONE
#TEXT_CENTER
#TEXT_EAN
EndEnumeration
Global ...
- Thu Sep 28, 2017 12:09 pm
- Forum: Tricks 'n' Tips
- Topic: Important tip: getting the desktop resolution
- Replies: 11
- Views: 5586
Re: Important tip: getting the desktop resolution
For the function GetDeviceCaps_() not all the possible values appear in the documentation.
You can use #DESKTOPHORZRES and #DESKTOPVERTRES (instead of #HORZRES and #VERTRES) to retrieve the width and height of the Screen.
Try this code with scaling >100%
#DESKTOPVERTRES = $75
#DESKTOPHORZRES ...
You can use #DESKTOPHORZRES and #DESKTOPVERTRES (instead of #HORZRES and #VERTRES) to retrieve the width and height of the Screen.
Try this code with scaling >100%
#DESKTOPVERTRES = $75
#DESKTOPHORZRES ...
- Thu Mar 03, 2016 9:25 am
- Forum: Tricks 'n' Tips
- Topic: Basic LDAP Viewer
- Replies: 2
- Views: 2687
Basic LDAP Viewer
Hi,
i needed a few functions to get informations from Active Directory.
Maybe it can be of use for someone else.
(A connection with SSL-encryption is strongely recommended - if available)
A+
TeddyLM
#LDAP_PORT = 389
#LDAP_SSL_PORT = 636
#LDAP_SCOPE_BASE = 0 ;Searches the base entry only ...
i needed a few functions to get informations from Active Directory.
Maybe it can be of use for someone else.
(A connection with SSL-encryption is strongely recommended - if available)
A+
TeddyLM
#LDAP_PORT = 389
#LDAP_SSL_PORT = 636
#LDAP_SCOPE_BASE = 0 ;Searches the base entry only ...
- Wed Mar 02, 2016 8:49 am
- Forum: Coding Questions
- Topic: Help needed with LDAP structure inside procedure
- Replies: 6
- Views: 1332
Re: Help needed with LDAP structure inside procedure
Looks like i was faster.
Thanks for the hint mhs

Thanks for the hint mhs
- Wed Mar 02, 2016 8:45 am
- Forum: Coding Questions
- Topic: Help needed with LDAP structure inside procedure
- Replies: 6
- Views: 1332
Re: Help needed with LDAP structure inside procedure (solved
Found it!
i changed the commands 'prototype' to 'prototypeC' and it works.
Thanks
i changed the commands 'prototype' to 'prototypeC' and it works.
Thanks
- Tue Mar 01, 2016 3:19 pm
- Forum: Coding Questions
- Topic: Help needed with LDAP structure inside procedure
- Replies: 6
- Views: 1332
Re: Help needed with LDAP structure inside procedure
it still crashes with or without Debugger enabled.
I'm using PB 5.42 beta 5 LTS (x86) on Win7 x64
Am i the only one with that problem?
I'm using PB 5.42 beta 5 LTS (x86) on Win7 x64
Am i the only one with that problem?
- Tue Mar 01, 2016 2:15 pm
- Forum: Coding Questions
- Topic: Help needed with LDAP structure inside procedure
- Replies: 6
- Views: 1332
Help needed with LDAP structure inside procedure
Hi,
I'm currently working with the Windows LDAP library wldap32, and it looks promising so far.
(I'll post my results as soon as i'm ready)
I have a question though.
If i write my code without procedures everything works fine but if i try to separate the elements inside procedures it crashes ...
I'm currently working with the Windows LDAP library wldap32, and it looks promising so far.
(I'll post my results as soon as i'm ready)
I have a question though.
If i write my code without procedures everything works fine but if i try to separate the elements inside procedures it crashes ...
- Tue Nov 17, 2015 11:35 am
- Forum: Tricks 'n' Tips
- Topic: Enumerate services
- Replies: 2
- Views: 2717
Enumerate services
Hello
Needed this for Monitoring purposes.
Maybe it can be of use for someone else.
#SC_ENUM_PROCESS_INFO = 0
#SERVICE_QUERY_CONFIG = 1
;SERVICETYPE
#SERVICE_KERNEL_DRIVER = $1
#SERVICE_FILE_SYSTEM_DRIVER = $2
#SERVICE_RECOGNIZER_DRIVER = $8
#SERVICE_DRIVER = #SERVICE_KERNEL_DRIVER|#SERVICE ...
- Tue Jul 16, 2013 3:46 pm
- Forum: Coding Questions
- Topic: Process owner over LAN - SOLVED
- Replies: 8
- Views: 3036
Re: Process owner over LAN - SOLVED
Hi there,
after years i needed this again and eventually found how to call the method:
#WBEM_INFINITE = $FFFFFFFF
#COINIT_MULTITHREADED = 0
#RPC_C_AUTHN_LEVEL_CONNECT = 2 ;Authenticates the credentials of the client only when the client establishes a relationship with the server.
#RPC_C_AUTHN ...
after years i needed this again and eventually found how to call the method:
#WBEM_INFINITE = $FFFFFFFF
#COINIT_MULTITHREADED = 0
#RPC_C_AUTHN_LEVEL_CONNECT = 2 ;Authenticates the credentials of the client only when the client establishes a relationship with the server.
#RPC_C_AUTHN ...
- Thu Jun 06, 2013 9:23 am
- Forum: Coding Questions
- Topic: ChangeServiceConfig2
- Replies: 6
- Views: 2509
Re: ChangeServiceConfig2
You are right, it is better that way, although i'm not sure it would be problematic.
Microsoft writes:
...
• 64-bit versions of Windows use 32-bit handles for interoperability. When sharing a handle between 32-bit and 64-bit applications, only the lower 32 bits are significant, so it is safe to ...
Microsoft writes:
...
• 64-bit versions of Windows use 32-bit handles for interoperability. When sharing a handle between 32-bit and 64-bit applications, only the lower 32 bits are significant, so it is safe to ...
- Thu Jun 06, 2013 7:35 am
- Forum: Coding Questions
- Topic: ChangeServiceConfig2
- Replies: 6
- Views: 2509
Re: ChangeServiceConfig2
I corrected the code.
It now works for me (tested on Win7 64 bit).
It now works for me (tested on Win7 64 bit).
- Thu Jun 06, 2013 7:27 am
- Forum: Coding Questions
- Topic: ChangeServiceConfig2
- Replies: 6
- Views: 2509
Re: ChangeServiceConfig2
Hi luis
shame on me.
I realised that i called OpenService with an Access right for the Service Control Manager (#SC_MANAGER_ALL_ACCESS = $F003F) and not for the Service (#SERVICE_ALL_ACCESS = $F01FF).
The answer was in front of me all the time !
Thanks for the suggestion.
shame on me.
I realised that i called OpenService with an Access right for the Service Control Manager (#SC_MANAGER_ALL_ACCESS = $F003F) and not for the Service (#SERVICE_ALL_ACCESS = $F01FF).
The answer was in front of me all the time !

Thanks for the suggestion.
- Wed Jun 05, 2013 2:15 pm
- Forum: Coding Questions
- Topic: ChangeServiceConfig2
- Replies: 6
- Views: 2509
ChangeServiceConfig2
Hi there,
i try to use ChangeServiceConfig2 to change the settings of a service to restart on crash.
Although i run it with higher privilege (on Win7 64bit) and have the permission to change directly in the registry, the function keeps returning 'Access denied'.
Any idea what i'm doing wrong ...
i try to use ChangeServiceConfig2 to change the settings of a service to restart on crash.
Although i run it with higher privilege (on Win7 64bit) and have the permission to change directly in the registry, the function keeps returning 'Access denied'.
Any idea what i'm doing wrong ...
- Fri Nov 30, 2012 12:18 pm
- Forum: Off Topic
- Topic: Android Basic (introductory offer)
- Replies: 39
- Views: 16526
Re: Android Basic (introductory offer)
My coupon code is: ccrdis