Search found 24 matches

by 12val12newakk
Dec 06, 2020 7:46
Forum: Tips and Tricks
Topic: [Win32] Entering Ring 0 (Kernel Mode)!
Replies: 9
Views: 3072

Re: [Win32] Entering Ring 0 (Kernel Mode)!

in win 10 x64 ltsc Compiler output: C:\FreeBASIC\BAS\FBIDETEMP.bas(26) error 4: Duplicated definition, Virtual in '#Define Virtual(_a_, _b_, _c_, _d_) Scope: Var v = Type<VIRTUAL1>((_a_), (_b_), (_c_)): NtSystemDebugControl((_d_), @v, SizeOf(v), 0, 0, 0): End Scope' C:\FreeBASIC\BAS\FBIDETEMP.bas(53...
by 12val12newakk
Nov 21, 2020 18:06
Forum: Hardware Interfaces / Communication
Topic: reading the serial port.
Replies: 12
Views: 5364

Re: reading the serial port.

SORY // DOUBLE
by 12val12newakk
Nov 20, 2020 20:48
Forum: Hardware Interfaces / Communication
Topic: Try to use inpout32.dll
Replies: 51
Views: 2937

Re: Try to use inpout32.dll

I want to connect the MCP3201 directly to the LPT to get the code from the ADC requires 50 requests to the port. one request( for both writing and reading )using this library takes 3+ μS. I remember exactly that when it was under Windows xp through the built-in access to ports, the request was 1.2 μ...
by 12val12newakk
Nov 20, 2020 20:46
Forum: Hardware Interfaces / Communication
Topic: reading the serial port.
Replies: 12
Views: 5364

Re: reading the serial port.

I want to connect the MCP3201 directly to the LPT to get the code from the ADC requires 50 requests to the port. one request( for both writing and reading )using this library takes 3+ μS. I remember exactly that when it was under Windows xp through the built-in access to ports, the request was 1.2 μ...
by 12val12newakk
Sep 02, 2020 18:05
Forum: Beginners
Topic: How a parse from Html
Replies: 4
Views: 297

Re: How a parse from Html

thanks for answers
OS win7 or win10
you moved me in the right direction
by 12val12newakk
Sep 01, 2020 18:14
Forum: Beginners
Topic: How a parse from Html
Replies: 4
Views: 297

Re: How a parse from Html

How to apply this code ?
by 12val12newakk
Aug 30, 2020 15:23
Forum: Beginners
Topic: How a parse from Html
Replies: 4
Views: 297

How a parse from Html

How a parse number of players
from this http://217.25.231.209:26906/static/index.html

the value is here
<span id="stats_players">21</span>
Xpath /html/body/div[1]/div[2]/div[1]/span[2]
by 12val12newakk
Aug 13, 2020 6:24
Forum: Tips and Tricks
Topic: Recording sound with FB.
Replies: 4
Views: 2600

Re: Recording sound with FB.

An example is possible for 16 bit audio. ?
Not worked normally
MyFormat=InitWaveFormatEx(PCMFormat,44100,16,1)'change it
Line -(i,RecBuffer(work).lpData.lp16[i]*0.01),2 'lp16[i]*scale
by 12val12newakk
Aug 12, 2020 14:00
Forum: Projects
Topic: Recording audio
Replies: 7
Views: 1225

Re: Recording audio

How to get rid of the unnecessary from this code
(get rid of * .wav)?
Just after the event, write 10 seconds of sound to the array
1 channel 16 bit
by 12val12newakk
Jul 02, 2020 15:02
Forum: Beginners
Topic: print using questions
Replies: 3
Views: 483

print using questions

How print 208 585 224 782
As 208.5E9
need E9 (gigapaskal)
This
print using "Modul_U= ###.# ^"; Modul_U
printing parasite "%" befor
by 12val12newakk
Dec 29, 2019 10:34
Forum: Beginners
Topic: Uint (float) to color fradient
Replies: 6
Views: 441

Re: Uint (float) to color fradient

Function CLR_Gradient (Byval highest As single , Byval CLR As single ,Byval lowest As single ) As uInteger dim as uInteger temp ,grad dim as single st1 st1 =(highest - lowest ) /1024 temp = (CLR - lowest)/st1 if temp <0 then temp= 0 if temp >1023 then temp = 1023 Select Case temp Case 0 to 255 grad...
by 12val12newakk
Dec 29, 2019 7:49
Forum: Beginners
Topic: Uint (float) to color fradient
Replies: 6
Views: 441

Uint (float) to color fradient

how as the most effective convert some variable to color gradient like this ? https://i.stack.imgur.com/MDJt8.png or https://drive.google.com/file/d/1B0q4gRMf35WuQyuYJT0pTWLGXheoKW9U/view?usp=sharing 0 .... 100 to (dark?) BLUE 100 .... 200 200 ... 300 300 .... 400 400 .... 500 to GREEN 500 .... 600 ...
by 12val12newakk
Dec 21, 2019 23:55
Forum: Libraries
Topic: OpenCL (Open Coumputer Language) for FreeBASIC .
Replies: 46
Views: 7531

Re: OpenCL (Open Coumputer Language) for FreeBASIC .

Temporarily abandoned float4 I can’t expand your examples .. no way Trying to add the number of transferred arrays cloning (arguments) in kernel everything falls apart. I tearfully ask for bidirectional parameter transfer (ReadWrite) for such a simplified kernel __kernel void SimpleKernel ( __global...
by 12val12newakk
Dec 21, 2019 22:48
Forum: Libraries
Topic: OpenCL (Open Coumputer Language) for FreeBASIC .
Replies: 46
Views: 7531

Re: OpenCL (Open Coumputer Language) for FreeBASIC .

D.J.Peters ----- your examples do some direct copying.i can't use it array host_ pos (float4 ) to CreateReadWriteBuffer array host_vel (float4 ) to CreateReadWriteBuffer iteration calculation CreateReadWriteBuffer to array host_ pos (float4 ) CreateReadWriteBuffer to array host_vel (float4 ) please ...
by 12val12newakk
Dec 21, 2019 7:52
Forum: Libraries
Topic: OpenCL (Open Coumputer Language) for FreeBASIC .
Replies: 46
Views: 7531

Re: OpenCL (Open Coumputer Language) for FreeBASIC .

D.J.Peters Thank you for your help ! I could not run this code But test01 and test02 work well " Unable to build program C:\Users\I54590~1\AppData\Local\Temp\\OCL6836T1.cl:1:15: error: kernel cannot be called 'main' __kernel void main( __global float4 *dst, uint width, uint height) { ^ 1 error...

Go to advanced search