Search:

Type: Posts; User: baka

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. Re: Mouse wheel scrolling on VB6 compiled app (not the IDE)

    yeah exactly. this is just the basics. u need to implement what u want to react with the wheel.

    remember that subclassing can crash your application.
    so ALWAYS save your project before u run it.
  2. Re: Mouse wheel scrolling on VB6 compiled app (not the IDE)

    did u try subclassing?
    thats what most people are using.

    very easy.
    create a project, add this in Form_Load

    StartClassing Me.hWnd

    add a module:
  3. Replies
    30
    Views
    735

    Re: Error Trapping in an Executable

    well, the msgbox are added to find the crash.

    so

    1
    2
    3
    4 crash
    5
  4. Replies
    30
    Views
    735

    Re: Error Trapping in an Executable

    yeah. its interesting how things changes with OS.
    new bugs appears, or reveals.
    even so they have done a great job making VB6 applications survive that long and still works for the most part.

    I...
  5. Replies
    9
    Views
    205

    Re: CreateCompatibleDC

    u r not using CreateCompatibleDC alone

    hDC = CreateCompatibleDC(0)
    DIB = CreateDIBSection(hDC, DIBHeader...

    the hDC is a clone of "0" that is the desktop hDC, so using GetDeviceCaps will point...
  6. Replies
    30
    Views
    735

    Re: Error Trapping in an Executable

    the "best" way seems to be to add in all your fuctions:

    Sub/Function BlaBla()
    On Error Goto TErr
    - code -
    Exit Sub/Function
    TErr: ErrHandler Number/String
    End Sub/Function

    or
  7. Replies
    30
    Views
    735

    Re: Error Trapping in an Executable

    my game is mostly modules. I have 2 classes. one is the direct2d engine and one is the directsound8 engine.
    and the reason is mostly because I need to initialize/destroy/restart the class. surely I...
  8. Replies
    30
    Views
    735

    Re: Error Trapping in an Executable

    hm.
    usually a crash without knowing where is if u use a class.
    so it will only tell that the call crashed but not where inside the class
    I would change the class into a module if possible.
  9. Replies
    30
    Views
    735

    Re: Error Trapping in an Executable

    as I wrote, u can use subclassing, here an example:

    in a module


    Option Explicit

    Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hWnd As Long, ByVal nIndex...
  10. Replies
    30
    Views
    735

    Re: Error Trapping in an Executable

    U will need to add on error everywhere.
    I think itís possible to subclass. Or u need to check err.number each function
  11. Replies
    16
    Views
    377

    Re: GetSystemMetricsForDpi alternative

    I tried with that, something similar using GetDeviceCaps,
    but if I remember correctly it didnt work
    if showed differently if compiled or in IDE. Im in windows 7.
    but I will give it a try tomorrow...
  12. Replies
    16
    Views
    377

    Re: GetSystemMetricsForDpi alternative

    yeah, its a mess.
    not sure how to get it I have even tried to get from Direct2d, but its not correct.
    instead my solution was to just "skip it" and use the screen resolution since that gave me the...
  13. Replies
    24
    Views
    547

    Re: [RESOLVED] Last Class to Go

    I use WIC+D2D for just my needs. I have actually not looked deeper.
    but playing around I see theres tons of functionality.

    just check here
    ...
  14. Replies
    16
    Views
    377

    Re: GetSystemMetricsForDpi alternative

    the problem is to get the "correct" DPI value.
    it depends on many factors, is the application aware or not (manifest or API), are we in 7-8-10?
    but if you have a good function, like

    Function...
  15. Replies
    24
    Views
    547

    Re: [RESOLVED] Last Class to Go

    I did post an example here
    https://www.vbforums.com/showthread.php?896313-RESOLVED-CreateIcon-vs-GDI-Scaling
  16. Replies
    24
    Views
    547

    Re: [RESOLVED] Last Class to Go

    WIC = Windows Imaging Component / WinCodec
    its used to load pictures and create direct2d bitmaps.
    of course theres a lot more u can use it for....
  17. Replies
    24
    Views
    547

    Re: [RESOLVED] Last Class to Go

    u can use direct2d/wic, no 3rd party dll needed.
    so again. u can replace if u want. not sure why.
    and to draw and rotate oval shapes, should not be a problem with direct2d.
  18. Replies
    24
    Views
    547

    Re: [RESOLVED] Last Class to Go

    I think its mostly because theres tons of sources about it, not because u can't use Direct2D.
    I mean, the reason to use GDI+ (rendering and image manipulation) is most of the time u have a...
  19. Replies
    24
    Views
    547

    Re: [RESOLVED] Last Class to Go

    I like it The trick
    I think thats a good way of coding and bundle all together.

    I don't agree with wqweto. u should "always" destroy a class or any GDI objects.
    in GDI we are not initializing...
  20. Replies
    24
    Views
    547

    Re: Last Class to Go

    LaVolpe used 1 token for all his classes.
  21. Replies
    30
    Views
    518

    Re: DPIAware Issues on Multiple Monitors

    you can use your approach, but that doesn't mean you can not do differently.
  22. Replies
    30
    Views
    518

    Re: DPIAware Issues on Multiple Monitors

    do u really not understanding DPI dilettante? I thought u where.
    but u fail miserably here.

    when u "INCREASE" DPI you also "DECREASE" resolution.
    meaning "EVERYTHING" gets "BIGGER".

    if my...
  23. Replies
    30
    Views
    518

    Re: DPIAware Issues on Multiple Monitors

    the user can change the size of the form. *1, *n..x, maximized, fullscreen
    so, n..x is factors. could be *1.5, but it can also be x3, x4 or another combination depending on your screen resolution....
  24. Replies
    30
    Views
    518

    Re: DPIAware Issues on Multiple Monitors

    its not manually. u can not drag and move. like most windows.
    the other is pre-defined sizes. so its not manually resizing but change size.
    a lot of games are like that. or u never played a game...
  25. Replies
    30
    Views
    518

    Re: DPIAware Issues on Multiple Monitors

    they can not "manually resize". they can only use the settings to change the size. but the size is dynamic, so it will adjust depending on screen. a big screen will give u bigger factors.
    again,...
  26. Replies
    30
    Views
    518

    Re: DPIAware Issues on Multiple Monitors

    that "issue" will be dealt with when someone is reporting that they want that feature.
    I mean, I get feedback and people want all kinds of features. but not that. at least not yet.

    right now the...
  27. Replies
    30
    Views
    518

    Re: DPIAware Issues on Multiple Monitors

    that is why u should work with pixel.
    I have 0 problems in any system and dpi.
    the only thing I need to check is the screen size and monitor.
    but sure, that means u need to "dynamically" control...
  28. Replies
    2
    Views
    212

    Re: Rotate a special PictureBox

    search for RotateTransform and RotateFlip
  29. Replies
    12
    Views
    377

    Re: GetMonitorInfo API

    yeah. I agree with that. null pointer are used. I even use it. and I myself changed a few to "any" but that mostly because there was a need for it.
    for this particular API, Im not sure theres a...
  30. Replies
    12
    Views
    377

    Re: GetMonitorInfo API

    why would u pass a null pointer when the whole reason u call this API is to retrieve MONITORINFO/EX?
  31. Replies
    12
    Views
    377

    Re: GetMonitorInfo API

    I know, but I don't see the need.
    just use MONITORINFOEX all the time but ignore szDevice when not used.
    I mean, how many times do u need to call this API, is this about performance?

    and all...
  32. Replies
    12
    Views
    377

    Re: GetMonitorInfo API

    for what reason u want to use any when you can use MONITORINFO?
    sure u can use any kind of array that is in the same size of MONITORINFO.
    should be 10 Long, so array&(9) works as well.
  33. Re: search 100drs of zip files and extract file or more

    I was more thinking of him doing a google search to this specific site, but yeah theres others as well, but as u say, there can be dead links and can many bad sources.
    but googling "here". will give...
  34. Re: search 100drs of zip files and extract file or more

    do a google search for extract/zip sources. theres a few that can be found. the member wqweto has it even in this Signature.
    I would start there.

    second I would look a way to read the directory...
  35. Replies
    18
    Views
    376

    Re: Image w Alpha Channel ... Viewing and Editing

    depends how u work.
    I skip the entire DPI, since in the end its just a screen resolution.
    instead work on your screen, and make it how u like it, but allow dynamic resizing to fit any screen.
    but...
  36. Replies
    18
    Views
    376

    Re: Image w Alpha Channel ... Viewing and Editing

    one very easy way to get started.


    Sub CreateSurface(ByVal Width&, ByVal Height&)
    With DIBHeader
    .biSize = Len(DIBHeader)
    .biPlanes = 1
    .biBitCount = 32
    ...
  37. Replies
    18
    Views
    376

    Re: Image w Alpha Channel ... Viewing and Editing

    dcmemory DIB and copymemory and u can get/set rgba
  38. Re: Why is my application infected according to VirusTotal site?

    with 2-4 result I assume its the "normal" false-positive.
    if u embed any executable or using API that can be used for hacking we would see 15+ warnings.
    remember its 65-70 different AV that are...
  39. Re: Why is my application infected according to VirusTotal site?

    nothing we can do about that.
    its the fault of the antivirus search database/algorithm.
    all my programs gets false-positive.
  40. Replies
    10
    Views
    427

    Re: SavePicture, JPEG, quality?

    I dont even think I ever used the built-in savepicture.
    I use the API GdipSaveImageToFile and theres a quality property that works.

    but it could be fun to know if theres such thing! :)
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width