Search:

Type: Posts; User: joaquim

Page 1 of 13 1 2 3 4

Search: Search took 0.09 seconds.

  1. Re: VB6: DirectX - how convert from screen to full screen and vice versa?

    class:

    Option Explicit
    Private Type RECT
    Left As Long
    Top As Long
    Right As Long
    Bottom As Long
    End Type
    Private Declare Function AdjustWindowRect Lib...
  2. Replies
    37
    Views
    789

    Re: VB6 - can we use the 'Any' type?

    thank you so much for all to all... thanks
  3. Re: VB6: DirectX - how convert from screen to full screen and vice versa?

    Public Property Let FullScreen(full As Boolean)
    blnFullScreen = full
    'Set d3dev = Nothing
    If (full = True) Then
    D3DWindow.Windowed = False
    D3DWindow.SwapEffect =...
  4. Re: VB6: DirectX - how convert from screen to full screen and vice versa?

    finally i get something.. the device must be destroyed and then created:

    Public Property Let FullScreen(full As Boolean)
    blnFullScreen = full
    Set d3dev = Nothing
    If (full = True)...
  5. Replies
    37
    Views
    789

    Re: VB6 - can we use the 'Any' type?

    "..When the "Any" type is seen, particularly on ByRef arguments..."
    that's why we use 'byval 0' for we get zero on 'Any' arguments
  6. VB6: DirectX - how convert from screen to full screen and vice versa?

    i did a property for convert from full screen to screen:

    Public Property Get FullScreen() As Boolean
    FullScreen = blnFullScreen
    End Property

    Public Property Let FullScreen(full As...
  7. Replies
    37
    Views
    789

    VB6 - can we use the 'Any' type?

    some functions declarations, from a library('Lib'), can have a 'Any' argument type...
    can we use these type or not? or the 'Object' type is similar?
  8. Re: VB6 - how terminate an infinite loop after close the window?

    now i get it
    thanks for all.. thank you
  9. Re: VB6 - how terminate an infinite loop after close the window?

    i'm sorry, but why 2 loops?
  10. Re: VB6 - showing a Window, on load event is correct?

    thanks for all.. thank you
  11. Re: VB6 - how terminate an infinite loop after close the window?

    the rate was for be 'thank you so much'... sorry only be 'tk'...
    thank you so much for all...
    i was severy confused on what event was activated when we close the window... so it's 'unload' event....
  12. VB6 - showing a Window, on load event is correct?

    when we show a window, on load event, is correct doing it?
    i have notice an issue with an infinite loop, when we terminate the window.. the window is showed again.
    (yes... these topic is connected...
  13. VB6 - how terminate an infinite loop after close the window?

    when we close the window, when we have an infinite loop, the window is closed, but the program stays on memory and the execution isn't terminated.
    when we close the window, when we have an infinite...
  14. Replies
    11
    Views
    385

    Re: Vb6 - how start using Directx9?

    i have 2 great books, but they are for C\C++
    and that link for Directx 8 for VB6: http://directx4vb.vbgamer.com/DirectX4VB/TUT_DX8Start.asp
    at least that link can be converted to portuguese...
  15. Replies
    11
    Views
    385

    Re: Vb6 - how start using Directx9?

    The trick, is like GDI, right?
    - create a brush and select it.... on Directx create a texure;
    - we have a polygon points.... and the brush is drawed with that points.... on directx is more or less...
  16. Replies
    11
    Views
    385

    Re: Vb6 - how start using Directx9?

    great.. now i have a working code and corrected...

    Option Explicit
    Dim d3d9 As IDirect3D9 ' // Direct3D9 object
    Dim d3dev As IDirect3DDevice9 ' // Direct3D device
    ...
  17. Replies
    11
    Views
    385

    Re: Vb6 - how start using Directx9?

    thank you so much for all.
    that code intializate directx 9... now i must release them... how can i do it?
    is just:

    d3dev = Nothing
    d3d9 = Nothing
    ???
  18. Replies
    11
    Views
    385

    Re: Vb6 - how start using Directx9?

    heres the entire project:
    179740
    i use Windows 10 with compatible for Windows XP SP2
  19. Replies
    11
    Views
    385

    Re: Vb6 - how start using Directx9?

    after reinstall the the DirectX8_RunTimes and reboot the PC, i can use the dx9vb.tlb.
    now heres the update code:

    Option Explicit

    Dim pD3D As IDirect3D9
    Dim pd3dDevice As IDirect3DDevice9
    Dim...
  20. Replies
    11
    Views
    385

    Vb6 - how start using Directx9?

    i'm starting using Directx 9 on VB6.
    maybe it's the tlb file... but i don't know.
    see the actual code just for Directx9 initialization:

    Option Explicit
    Dim pD3D As Direct3D9
    Dim pd3dDevice As...
  21. Re: VB6: how can i speed up my draw pixel function DIB's?

    i fixed just creating the ResultImage class variable on global section and just set and NewImage() on DrawImagePlanePoints().
    thank you so much
    now i need another update that i'm failling: the...
  22. Re: VB6 - Multithread: the CreateThread(), accept parameters for the function?

    the speed seems to be more than 2fps.. seems more or less... but if i use more images.. maybe it will be 2fps
  23. Re: VB6: how can i speed up my draw pixel function DIB's?

    i belive that i have a memory leak on my function..
    i tryied

    ResultImage.DrawImage DestinationHDC, 0, 0
    ResultImage.DestroyObjects
    '...........
    Public Sub DestroyObjects()
    If hMemDC...
  24. Re: VB6 - Multithread: the CreateThread(), accept parameters for the function?

    thank you so much for correct me.
    maybe i can find a function for that on internet, but i don't belive that i can use Z and ZDepth.
    but i get your point.. thanks for that.
    anotherthing: i don't...
  25. Re: VB6: how can i speed up my draw pixel function DIB's?

    finally i speed up my function using the AlphaBlend():

    Friend Sub DrawImagePlanePoints(DestinationHDC As Long, Points() As Position3D, WorldSize As Size3D, Optional ByVal Opacity As Long = 255)
    ...
  26. Re: VB6 - Multithread: the CreateThread(), accept parameters for the function?

    honestly i don't know de difference... it's still confused :(
  27. Re: VB6 - Multithread: the CreateThread(), accept parameters for the function?

    honesty i need time and have 'afraid'... why!?! the Directx seems like a new language.... using Windows API we must do several things just for create a Window... yes we need several things for only...
  28. Re: VB6 - Multithread: the CreateThread(), accept parameters for the function?

    my CPU:Intel(R) Core(TM)2 Duo CPU T9500 @ 2.60GHz 2.60 GHz 64bits
    the trapezoid seems limited and i can't control it :(
    i have 1 function for it:

    Private Sub...
  29. Re: VB6 - Multithread: the CreateThread(), accept parameters for the function?

    i know, but before i start learning Directx 9, maybe i can win some speed.
    DrawImageRectanglePoints() do:
    1 - save the destination image on memory(1500X700);
    2 - we had load the image, from...
  30. Re: VB6 - Multithread: the CreateThread(), accept parameters for the function?

    make my DrawImageRectanglePoints() for be used on multithread way... for be more faster.
    and i need make another little simple update: change use a small size memory image for then draw it.......
  31. VB6 - Multithread: the CreateThread(), accept parameters for the function?

    the CreateThread(), accept parameters(even arrays) for the adressed function?

    Public Sub Thread( byref start as long)

    Dim i As Long
    i=start
    Do While True

    Form1.botton.Caption =...
  32. Replies
    145
    Views
    15,601

    Re: Direct2D Typelib+ for VB6

    i'm sorry, if i 'atack' your topic... but believe me that i'm not the only one getting these type initial problems.
    thank you so much for correct me.. and i saved that msnd link:...
  33. Replies
    145
    Views
    15,601

    Re: Direct2D Typelib+ for VB6

    from C++ - Beginning DirectX 9 book(it's for C\C++), we have:

    LPDIRECT3D9 pD3D; // the Direct3D object
    LPDIRECT3DDEVICE9 pd3dDevice; // the Direct3D device
    but your library don't have these 2...
  34. Replies
    145
    Views
    15,601

    Re: Direct2D Typelib+ for VB6

    thank you so much.
    i never programmed DirectX... i have DirectX 9 tutorials, but are for C\C++.. and not VB6.. so what you can advice for i learn more?
  35. Re: VB6: how can i speed up my draw pixel function DIB's?

    after more tests i find the error, and using the my own class(using a memory graphics DIB's), i win much more speed... now i get 1 frame per second:

    Friend Sub...
  36. Re: VB6: how can i speed up my draw pixel function DIB's?

    heres the function updated for use the result in memory:

    Friend Sub DrawImageRectanglePoints(DestinationHDC As Long, Points() As Position3D, WorldSize As Size3D, Optional ByVal Opacity As Long =...
  37. Re: VB6: how can i speed up my draw pixel function DIB's?

    i must review the multithread code on VB6.. on VB6 it's more hard for don't get crashes or something.
    maybe you can send me a link for i start ;)
  38. Re: VB6: how can i speed up my draw pixel function DIB's?

    xiaoyao: make a new thread is more for speed?(correct me these)
    i get 3 seconds by frame(more or less)
  39. Replies
    145
    Views
    15,601

    Re: Direct2D Typelib+ for VB6

    the tutorial\book of directx9, will help me use these library? or the Trick have is own doc?
  40. Replies
    145
    Views
    15,601

    Re: Direct2D Typelib+ for VB6

    - we have a 3D plane(it's like a flat rectangle but on 3D world);
    - using that 4 3D points, i can get the left and right(both vertical) lines points;
    - using that points, we can have the origin and...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width