Hello,
Tanks for your quick & simple tutorial on the use of modules. I had read it mostly for the interoperability section (would like to call a procedure in the parent/main code from code in a module) for my needs. Since the use of a common/dummy module wasnt helping me (or couldnt figure out how ...
Search found 10 matches
- Mon Mar 20, 2023 11:33 am
- Forum: Tricks 'n' Tips
- Topic: PureBasic Modules: A Quick Tutorial
- Replies: 21
- Views: 86458
- Tue Jun 16, 2020 5:38 pm
- Forum: Coding Questions
- Topic: Playing Movies
- Replies: 17
- Views: 5195
Re: Playing Movies
Hello,
Yes it is possible.
I just tested *.mp4, *.mov, *.avi, *.mkv and these video files can be played with the same code from the documentation
(K-Lite Codec pack is installed on my system) :
;
; ------------------------------------------------------------
;
; PureBasic - Movie example file ...
Yes it is possible.
I just tested *.mp4, *.mov, *.avi, *.mkv and these video files can be played with the same code from the documentation
(K-Lite Codec pack is installed on my system) :
;
; ------------------------------------------------------------
;
; PureBasic - Movie example file ...
- Sat Jun 06, 2020 12:39 pm
- Forum: Coding Questions
- Topic: playmovie drives me crazy :'(
- Replies: 7
- Views: 2974
Re: playmovie drives me crazy :'(
-Hello BarryG, thx for your answer :')
Other video were working ok, after rebooting the PC
Using ResizeMovie was unsuccessful :(
I agree, the code is 100% perfect :(
-Hello JHPJHP, thanks for your answer.
You rock. Actually the RegKey was already set before i start your code, so i changed lpdata ...
Other video were working ok, after rebooting the PC
Using ResizeMovie was unsuccessful :(
I agree, the code is 100% perfect :(
-Hello JHPJHP, thanks for your answer.
You rock. Actually the RegKey was already set before i start your code, so i changed lpdata ...
- Sat Jun 06, 2020 12:41 am
- Forum: Coding Questions
- Topic: playmovie drives me crazy :'(
- Replies: 7
- Views: 2974
playmovie drives me crazy :'(
Hello :'(
I copy/paste the movie.pb example from the official documentation...
When i F5 it doesnt work...ok ok....(doesnt work = sound ok but no video)
I open a new tab (ctrl+N) it doesnt work either...ok...ok...(sound ok but no video)
I open another tab (CTRL+N) it works (sound ok and video ok ...
I copy/paste the movie.pb example from the official documentation...
When i F5 it doesnt work...ok ok....(doesnt work = sound ok but no video)
I open a new tab (ctrl+N) it doesnt work either...ok...ok...(sound ok but no video)
I open another tab (CTRL+N) it works (sound ok and video ok ...
- Thu May 21, 2020 5:26 pm
- Forum: Coding Questions
- Topic: How to get IP address for connection opened with host name?
- Replies: 8
- Views: 2304
Re: How to get IP address for connection opened with host na
Np my friend, here is your answer for linux :
http://man7.org/linux/man-pages/man2/getpeername.2.html
Have fun !
http://man7.org/linux/man-pages/man2/getpeername.2.html
Have fun !
- Wed May 20, 2020 11:28 pm
- Forum: Coding Questions
- Topic: How to get IP address for connection opened with host name?
- Replies: 8
- Views: 2304
Re: How to get IP address for connection opened with host na
Rhello my friend !
Yes it is possible.
Try this out :
InitNetwork()
hostnom.s="www.purebasic.com"
hostip.s=""
hostport.s = ""
cnx = OpenNetworkConnection(hostnom,80,#PB_Network_TCP|#PB_Network_IPv4)
socket = ConnectionID(cnx)
name.SOCKADDR_IN
namelen.i = SizeOf(SOCKADDR_IN)
Debug getpeername ...
Yes it is possible.
Try this out :
InitNetwork()
hostnom.s="www.purebasic.com"
hostip.s=""
hostport.s = ""
cnx = OpenNetworkConnection(hostnom,80,#PB_Network_TCP|#PB_Network_IPv4)
socket = ConnectionID(cnx)
name.SOCKADDR_IN
namelen.i = SizeOf(SOCKADDR_IN)
Debug getpeername ...
- Sat Mar 23, 2019 2:24 am
- Forum: Coding Questions
- Topic: issues with sprites
- Replies: 2
- Views: 1080
Re: issues with sprites
hey dan, here is your example (made with the help of the PB help file), beware there is no error check in this code.
change de var called background.s
Use the left and right arrows to move the sprite.
InitSprite():InitKeyboard()
OpenWindow(0,100,100,800,600,"SPlayer",#PB_Window_SystemMenu ...
change de var called background.s
Use the left and right arrows to move the sprite.
InitSprite():InitKeyboard()
OpenWindow(0,100,100,800,600,"SPlayer",#PB_Window_SystemMenu ...
- Thu Nov 22, 2018 3:41 pm
- Forum: Coding Questions
- Topic: Add only minimise gadget to window
- Replies: 12
- Views: 2539
Re: Add only minimise gadget to window
Hello,
i don't have an answer only a hint. Maybe you can try with the API SetWindowLong / SetWindowLongPtr and the window styles to achieve your goal.
https://docs.microsoft.com/en-us/window ... dow-styles
I hope it will help
i don't have an answer only a hint. Maybe you can try with the API SetWindowLong / SetWindowLongPtr and the window styles to achieve your goal.
https://docs.microsoft.com/en-us/window ... dow-styles
I hope it will help
- Fri May 03, 2013 3:54 pm
- Forum: General Discussion
- Topic: The famous issue of AVs False Positiv
- Replies: 5
- Views: 1733
Re: The famous issue of AVs False Positiv
Thanks for answering Fred.
If even official IDE are involved in this issue... let spam AV's editors with false positiv as suggested in the link :p
Something i can't understand is, why they don't use the same way to validate a false positiv and the way the AV works...
I just hope they dont test each ...
If even official IDE are involved in this issue... let spam AV's editors with false positiv as suggested in the link :p
Something i can't understand is, why they don't use the same way to validate a false positiv and the way the AV works...
I just hope they dont test each ...
- Fri May 03, 2013 11:05 am
- Forum: General Discussion
- Topic: The famous issue of AVs False Positiv
- Replies: 5
- Views: 1733
The famous issue of AVs False Positiv
Hi to All.
Some years ago with avira, and today with Avast i have false positiv alerts about .exe compiled with PureBasic.
I think PureBasic got no problems, but i got some questions about this famous problem which people already talked about on this forum.
Would this append too if i compile a new ...
Some years ago with avira, and today with Avast i have false positiv alerts about .exe compiled with PureBasic.
I think PureBasic got no problems, but i got some questions about this famous problem which people already talked about on this forum.
Would this append too if i compile a new ...