Search:

Type: Posts; User: joaquim

Page 1 of 13 1 2 3 4

Search: Search took 0.18 seconds.

  1. Replies
    3
    Views
    3,742

    Re: VB6 - raycasting: how get the image line?

    heres another print: https://imgur.com/iCCH5zy
    you see a different color on same vertical(or even horizontal) walls... it happens on object size
  2. VS 2010 Re: VB2010 - why i don't move with the right radian?

    finally fixed:


    Function GetPositionMap(ByVal valor As Double) As Integer
    If valor < 0 Then
    GetPositionMap = 0
    ElseIf valor > MapWidth Then
    ...
  3. VS 2010 Re: VB2010 - why i don't move with the right radian?

    i say what i know..... but sorry...
    i have more errors, but now works:

    Private Sub Form1_KeyDown(sender As Object, e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
    Const Speed...
  4. VS 2010 VB2010 - why i don't move with the right radian?

    why i don't move on right radian?


    Dim playerposx As Double = 34.0
    Dim playerposy As Double = 34.0
    Dim playerradians As Double = 0.0

    Private Sub Form1_KeyDown(sender As Object, e As...
  5. Replies
    6
    Views
    491

    Re: how optimizate the programming?

    why the programming books(or general programming books) don't speak about optimization code?
  6. Replies
    6
    Views
    491

    Re: how optimizate the programming?

    i have 1 sub for change the brush\pen.... i must change the brush\pen, but i used an if for test if is the same, of previous, so i can win so much speed ;)
  7. Replies
    6
    Views
    491

    how optimizate the programming?

    i don't choose any programming language, because these question is for all programming languages...
    everyone can create their own algorithm, but some can be slow and others can be faster...
    ok......
  8. Replies
    14
    Views
    550

    Re: how clear a HDC\HBitmap?

    thank you so much for all to all
  9. Replies
    14
    Views
    550

    Re: how clear a HDC\HBitmap?

    before i 'close' these topic, please tell me, using an API memory function, how fill bDib() array with a color?
    i tried before, but always with a memory leak :(
  10. Replies
    14
    Views
    550

    Re: how clear a HDC\HBitmap?

    finally i fix it with speed.. i need learn much more about optimization code...

    Public Sub FillColor(color As Long)
    'if the color\brush is the same, we don't need rechange it
    If...
  11. Replies
    14
    Views
    550

    Re: how clear a HDC\HBitmap?

    tested.. the ExtFloodFill () API function is dependent of the brush color\style:

    Public Sub Fillcolor(Color As Long)
    If (OldBrush <> 0) Then
    SelectObject MemoryHDC, OldBrush
    ...
  12. Replies
    14
    Views
    550

    Re: how clear a HDC\HBitmap?

    almost done... the best was with ExtFloodFill() API function:



    Private Const FLOODFILLSURFACE = 1
    Private Const FLOODFILLBORDER = 0
    Private Declare Function ExtFloodFill Lib "gdi32" (ByVal...
  13. Replies
    14
    Views
    550

    Re: how clear a HDC\HBitmap?

    is there another method more faster?
  14. Replies
    14
    Views
    550

    [RESOLVED] how clear a HDC\HBitmap?

    i create a HBitmap using DIB's:

    Public Function NewImage(ByVal ImageWidth As Long, ByVal ImageHeight As Long, Optional color As Long = vbWhite) As Long
    If (Width > 0 Or Height > 0 Or hBitmap...
  15. Replies
    7
    Views
    692

    VS 2010 Re: VB2010: how get more timer precision?

    but only for:
    - clear bitmap;
    - draw 2 circles;
    - and draw it on form...
    if i use more, i will get less FPS.. that's the point ;)
  16. VS 2010 vb2010 - how add a VB6 dll on VB2010 project?

    i created a dll on VB6... i added using Referencies on Vb2010...
    when i did:

    Imports pjtImage
    Public Class Form1
    Dim s As New pjtImage.clsImage

    Private Sub Form1_Load(sender As...
  17. VS 2010 Re: [RESOLVED] VB2010 - how convert a control to a control array?

    endeed
  18. VS 2010 Re: vb2010 - how calculate the hit direction?

    now it's fixed.. thanks:

    Public Class Form1

    Structure Vector
    Public Sub New(ByVal PosX As Integer, ByVal PosY As Integer)
    X = PosX
    Y = PosY
    End...
  19. VS 2010 Re: vb2010 - how calculate the hit direction?

    i did these code:

    Public Class Form1

    Structure Vector
    Public Sub New(ByVal PosX As Integer, ByVal PosY As Integer)
    X = PosX
    Y = PosY
    End Sub
  20. VS 2010 Re: VB2010 - how convert a control to a control array?

    was hard, to me, understand the "....then open the Properties window, click the Events button and then double-click the event of interest...."
    but now i can do it.. thanks for all
  21. VS 2010 Re: VB2010 - how convert a control to a control array?

    thank you so much for all.. thank you
    PS: i'm sorry not Rate some people, but the forum rules don't let me :(
    heres the sample(just 4 buttons on form):

    Public Class Form1

    Private Sub...
  22. VS 2010 Re: vb2010 - how calculate the hit direction?

    i'm sorry my English... but yes... is what i mean
  23. VS 2010 [RESOLVED] vb2010 - how calculate the hit direction?

    imagine a ball(direction is 45º... we can x=x+cos(45) and y=y+sin(45)... but yes the computer use Radians and not Degrees) hit the form limit... how can i calculate the next direction?
  24. VS 2010 [RESOLVED] VB2010 - how convert a control to a control array?

    on design form, how can i convert a control to a control array?
    can i see what control was clicked?
  25. Replies
    8
    Views
    464

    VS 2010 Re: VB2010 - how create a Game Loop?

    understood.. thanks for all
  26. Replies
    8
    Views
    464

    VS 2010 Re: VB2010 - how create a Game Loop?

    the VB2010 'message' type don't have the const members?
    thanks for all.. thank you
  27. Replies
    8
    Views
    464

    VS 2010 Re: VB2010 - how create a Game Loop?

    you said: "You can override the WndProc method if you want a more traditional Windows message pump approach."
    can you share a sample with(just) calling the game draw?
  28. Replies
    8
    Views
    464

    VS 2010 Re: VB2010 - how create a Game Loop?

    i'm sorry, but can you share a sample?
  29. Replies
    8
    Views
    464

    VS 2010 VB2010 - how create a Game Loop?

    how can i create a game loop(without libraries)?
    1 - the VB2010 don't have a normal message loop, like C\C++.... so we can use the events and timers for control the objects and update the...
  30. Replies
    7
    Views
    692

    VS 2010 Re: VB2010: how get more timer precision?

    now i can get much more precision:

    Imports System.Runtime.InteropServices


    Public Class clsTimer
    Private timerID As Integer
    Private timerInterval As Integer
    Private...
  31. Replies
    7
    Views
    692

    VS 2010 VB2010: how get more timer precision?

    the VS2010 timer class, give me 60FPS...
    using timeSetEvent() API, i get 250FPS
    (both timers with 10 milliseconds):


    Imports System.Runtime.InteropServices


    Public Class clsTimer
    ...
  32. Re: vb2010: why i get the 'NullReferenceException'?

    thank you so much for correct me...
    i need ask: getting 60FPS on VB2010 is normal(thinking on these way.. even if is technicall(i don't know if is))?
  33. Re: vb2010: why i get the 'NullReferenceException'?

    on my head is like think: more FPS is more accurate than less FPS
  34. Re: vb2010: why i get the 'NullReferenceException'?

    Public Sub New()
    _graphics = New GraphicsDeviceManager(Me)
    Content.RootDirectory = "Content"

    'set the following to false to remove fps limit
    ...
  35. Re: vb2010: why i get the 'NullReferenceException'?

    maybe because i turn on the laptop, after updates... or something.. i tried install the XNA Framework... maybe it's there.. but works ;)
    why i only get 60FPS?
  36. Re: vb2010: why i get the 'NullReferenceException'?

    seems like frozen on compilation :(
  37. Re: vb2010: why i get the 'NullReferenceException'?

    i did a big update on VS2022... now i'm trying recompile... it takes several time lol and continues
  38. Re: vb2010: why i get the 'NullReferenceException'?

    i'm sorry, but no...
    what frame work version you used?
  39. Re: vb2010: why i get the 'NullReferenceException'?

    i have ,too, the VS2022(but is more slow on my laptop)... i get these error(after install the the XNA Framework):
    "Gravidade Código Descrição Projeto Arquivo Linha Estado de Supressão...
  40. Re: vb2010: why i get the 'NullReferenceException'?

    PlausiblyDamp: i can't use it on VB2010 :(
    i get some errors :(
    "C:\Users\Utilizador\Downloads\MonoVB\MonoVB\MonoVB.vbproj : error : Unable to read the project file 'MonoVB.vbproj'. ...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width