Search:

Type: Posts; User: vbman213

Page 1 of 11 1 2 3 4

Search: Search took 0.04 seconds.

  1. Re: Is this correct use of AddRef/Release/QueryInterface

    Wow, way to revive a thread!

    Anyways: The TypeLibrary that I was using was HEAVILY modified to work with VB6. It was a pretty massive hack... I ended up having to use an TypeLibrary exporter and...
  2. Re: Efficient way of capturing screen in real time

    Well I've decided to do away with StretchBlt. I might add scaling as an option. And also an option to increase the "redraw" rate.
    I've recoded my drawing code to track the mouse pointer to the...
  3. Re: Efficient way of capturing screen in real time

    I would like a way to make the pbPreview.hdc not show when captured. So I don't get the "video feedback" loop thing.
  4. Re: Efficient way of capturing screen in real time

    Actually, I think not deleting those objects was causing my IDE to screw up after awhile.

    Whats the fastest way of clearing an hDC? I need something faster than .cls
    FillRect would be faster...
  5. Re: Efficient way of capturing screen in real time

    Well I've done some more work on this.

    Monitor detection is working wonderfully. Thank you to vbAccelerator for the great multi-monitor classes!

    I've also turned off Autoredraw, and resorted to...
  6. Re: [RESOLVED] calling from and writingto a .txt file

    Ctrl+S is your best friend. Learn to use it before every "run"
  7. Re: Efficient way of capturing screen in real time

    Thanks. I will look into that.

    I still feel like using the Timer control to perform refreshes is "jury rigged" code. Also, I believe that my technique for drawing onto pbPreview is very crappy. I...
  8. Re: calling from and writingto a .txt file

    So you want your application (EXE) to be password protected?

    There is no need in storing the password in an external text file. By learning the structure of the PE (Portable Executable) and how...
  9. Re: Efficient way of capturing screen in real time

    Added zip
  10. Re: Efficient way of capturing screen in real time

    Picture:

    http://img638.imageshack.us/img638/5429/100624002034.png

    It is still very inefficient. But it works. I still haven't implemented the cursor drawing. I need to speed the main drawing...
  11. Re: Efficient way of capturing screen in real time

    Thanks for that snippet.

    Only problem is that the cursor would be entirely too big. I'm using StretchBlt to stretch it down to the size of my form. The cursor would be full size. Whoops.

    Also...
  12. Re: Efficient way of capturing screen in real time

    Basically it is just a timer with an interval of 33 (Roughly 30 FPS) 1000 / 30 = 33.333



    ldhWnd = GetDestopWindow()
    ldhDC = GetDC(ldhWnd)


    My Timer routine
  13. Efficient way of capturing screen in real time

    I posted a few days ago concerning a question that I have about capturing the screen in real time. Basically a continuous loop of screen shots (roughly at 30FPS)

    I started this project with a...
  14. Re: StretchBlt(Desktop DC) updating form hdc with a timer in real time

    Actually I found an app that does exactly what I want.

    http://www.mijalko.com/monitorspreview

    I really don't feel like cracking an app that I know I can write myself. I haven't flexed my...
  15. StretchBlt(Desktop DC) updating form hdc with a timer in real time

    I'm working on a simple application that will give me a "preview monitor" of a secondary monitor. This window is "always on top" on the primary monitor. This will come in handy for a projector setup....
  16. Is this worth the time and even possible? 3rd party VB6 runtime?

    So earlier today I got the idea of attempting to reverse engineer the "MSVBVM60.DLL" VB6 runtime and recreate the runtime. Basically, create a 3rd party custom runtime for VB6 applications. My...
  17. Replies
    6
    Views
    843

    Re: Need help with C conversion

    Thank you very much ;)

    I will continue working on this.

    I'm wondering also if this particular method will trigger DEP? I've used programs like PEBundle which basically do the same thing...
  18. Replies
    6
    Views
    843

    Re: Need help with C conversion

    I want to convert that library to VB code that does the same thing.

    The problem I am having is dealing with how C++ handles types.

    For example:

    In the original code MEMORYMODULE is declared...
  19. Replies
    6
    Views
    843

    Re: Need help with C conversion

    Here is the full source to the library: http://www.joachim-bauch.de/tutorials/downloads/MemoryModule-0.0.2.zip
  20. Replies
    6
    Views
    843

    Need help with C conversion

    Ok so I'm in the process of converting this into VB6. It is going very well, but I am having a hard time correlating between C syntax and VB.

    Here is a few snippets that you need to look at before...
  21. Replies
    4
    Views
    671

    Re: Is possible to translate this C-Library?

    Thank you very much! I was trying to convert that C-Library by hand, but there are a few steps that I think the author of that article implied, and did not state directly. This code explained it very...
  22. Replies
    4
    Views
    671

    Re: Is possible to translate this C-Library?

    *palm face*

    You think I haven't been searching for an answer? If you have a answer to my question, how about just show me. In my opinion, your post constitutes nothing more than SPAM.

    Thanks a...
  23. Replies
    4
    Views
    671

    Is possible to translate this C-Library?

    http://www.joachim-bauch.de/tutorials/load_dll_memory.html/en/view

    I'm hoping to translate this into VB or maybe even PowerBasic, or any other basic syntax for that matter.. I'm not a C...
  24. Re: Working on a game, need some advice on animating...

    I'm not wanting to move picture boxes, but this was the best way for me to explain it without providing my drawing code...

    I need a way of doing this that doesn't "freeze" the application like the...
  25. Working on a game, need some advice on animating...

    I am making a simple puzzle game and I need some advice...

    Right now, my current engine uses a huge array of pictureboxes that correlate to an XY grid. Each piece in the game is drawn in one of...
  26. Re: Custom Type and a MultiDeminsional array...

    Thats what I'm going to end up doing ;)

    Thanks
  27. Re: Custom Type and a MultiDeminsional array...

    I kinda ignored that aspect of the code and worked on other things until I could get an answer, yea you are correct the code still works, just feels better if I can see it :P
  28. Custom Type and a MultiDeminsional array...

    I am working on a tile based puzzle game and I am having a few problems...

    There is no need in going into the whole engine of the game but I am running into a snag that may just be a limitation...
  29. Replies
    0
    Views
    383

    BitBlt: Is this fast enough for games?

    Call BitBlt(pTile(i).hdc, 0, 0, 32, 32, pImageStrip.hdc, 64, 0, vbSrcInvert)
    Call BitBlt(pTile(i).hdc, 0, 0, 32, 32, pImageStrip.hdc, 64, 32, vbSrcAnd)
    Call BitBlt(pTile(i).hdc, 0, 0, 32,...
  30. BitBlt while ignoring the backcolor of the picturebox

    Is there a way to ignore the backcolor of a picturebox while bitblt'ing? So that the backcolor of the source hdc doesn't show up in the destination?
  31. Re: Align Form Top of Screen and prevent other applications from using that "real est

    This shouldn't be "THAT" difficult... The SHAppBarMessage API just sends messages to the taskbar, like to disable/enable auto hide. etc...

    Basically what I need is a way to modify the "work area",...
  32. Replies
    12
    Views
    1,867

    Re: angle in degrees instead of radians

    I've seen some people use a little equation that I believe using atan to actually calculate pi instead of declaring a constant
  33. Align Form Top of Screen and prevent other applications from using that "real estate"

    I need to figure out a way to basically make a toolbar program that aligns to the top of the screen and locks there. When other applications "maximize", they need to maximize under the toolbar...
  34. Replies
    0
    Views
    973

    uFMOD DLL problems.

    I am trying to get the uFMOD DLL to work with VB6 and later write a header file so I can use it with PowerBasic. The .LIB + the modified Link.exe hack that is used to do Static Linking in VB6 works...
  35. Replies
    2
    Views
    1,100

    Re: Help with Arc API and some basic Trig

    Here is the routine I wrote to compensate for the line segment when drawing with the AngleArc API



    Private Type POINTAPI
    X As Long
    Y As Long
    End Type

    Private Declare Function...
  36. Replies
    2
    Views
    1,100

    Help with Arc API and some basic Trig

    Private Declare Function Arc Lib "gdi32" (ByVal hdc As Long, ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long, ByVal X3 As Long, ByVal Y3 As Long, ByVal X4 As Long, ByVal Y4 As...
  37. Re: Can this be coded more efficiently? Cleaned up a little?

    Thanks for the help :)

    It is appreciated...

    If you don't mind me asking another question, that is somewhat along these lines...

    This is my implementation of the PHP function Str_Split,...
  38. Re: Can this be coded more efficiently? Cleaned up a little?

    What algorithm would you recommend,as a general, all-purpose algorithm?

    I basically just need to take an array of characters, and sort the characters alphabetically... Seeing as the arrays, in my...
  39. Re: Can this be coded more efficiently? Cleaned up a little?

    I know it isn't a good routine...

    I just needed something that would sort an array of characters alphabetically...

    This routine has its limitations, but after some code benchmarking, I have...
  40. Replies
    1
    Views
    968

    AngleArc and MoveToEx

    I am trying to write a simple function that I can use to draw an arc based on a center x,y , radius, startangle and sweep angle... The problem is that I have to use MoveToEx to compensate, otherwise...
Results 1 to 40 of 406
Page 1 of 11 1 2 3 4



Click Here to Expand Forum to Full Width