Search:

Type: Posts; User: baka

Page 1 of 13 1 2 3 4

Search: Search took 0.18 seconds.

  1. Replies
    14
    Views
    550

    Re: how clear a HDC\HBitmap?

    u know theres also some "tricks" that can be used.
    stretchblt can be used to copy 1 pixel into any size (as it will stretch it)
    surely u need a source pixel for it to work. but nothing hard to...
  2. Replies
    14
    Views
    550

    Re: how clear a HDC\HBitmap?

    putmem4/copymemory (long) can be used here if you have a "LONG" value with your color+alpha.
    but it will require a loop. better with fillrect as Schmidt posted.
  3. Replies
    14
    Views
    550

    Re: how clear a HDC\HBitmap?

    if u are using CreateDIBSection u just use the pointer and zeromemory it from that position, size is of course biSizeImage (that is wrong in your example)

    biSizeImage = Width * Height * 4

    if...
  4. Re: Windows Media Player (wmp.dll) on Windows 11

    yes. activemovie can handle streaming. now, Im not using it anymore so Im not 100% sure. but I think u can do a search there should be examples.

    nowadays I use fmodex for my needs as it handle all...
  5. Re: Windows Media Player (wmp.dll) on Windows 11

    not sure why u can't use it. it should be in the system. maybe it was not installed? check your windows installation.

    but u should update your project and use something else, such as ActiveMovie...
  6. Replies
    11
    Views
    483

    Re: SafeArrayCopy with string arrays ?

    I think we had this discussion before and conclusion was that the internal a = b was one of the fastest methods.

    in that thread(s) we come up with conclusions that its not "easy" to mess with the...
  7. Replies
    5
    Views
    278

    Re: Create Layers in photoshop

    layers are just "order" of render.
    it is possible with <=24bit, but I recommend using 32bit so u can make us of opacity as well.

    u can do that in GDI32,GDI+,WIA,Cairo(RC#),DX,D2D,OpenGL and...
  8. Replies
    10
    Views
    630

    Re: [RESOLVED] Read protected registry key

    Private Declare Function IsOS Lib "shlwapi.dll" Alias "#437" (ByVal dwOS As Long) As Long

    and just add a public string


    Dim WoWAdd As String
  9. Replies
    10
    Views
    630

    Re: [RESOLVED] Read protected registry key

    I have a function for this


    Private Sub GetOsWoW()
    Const OS_WOW6432 = 30&
    Dim IsOS64Bit As Boolean

    On Error Resume Next
    IsOS64Bit = (IsOS(OS_WOW6432) <> 0)
    If IsOS64Bit...
  10. Re: [RESOLVED] converting a byte array into a numerical array - Pokeing and peeking m

    usually slow-downs are when dealing with new memory-allocations. like redim and increasing/decreasing something.
    I mean, if I use a component that has "add" it will most likely do all that.
    or if u...
  11. Re: converting a byte array into a numerical array - Pokeing and peeking memory?

    I have a huge data that is loaded/saved all the time for my "game/game-editor". it contain all kinds of variables (also strings)
    what I do is to create a temporary byte array that is (at this...
  12. Thread: GdipCreateEffect

    by baka
    Replies
    24
    Views
    984

    Re: GdipCreateEffect

    direct2d uses WIC (Windows Imaging Component)
    so u can use that as well, both to load/save but also some resizing and other graphic work.
    and u can also use DirectWrite. the trick has made lots of...
  13. Thread: GdipCreateEffect

    by baka
    Replies
    24
    Views
    984

    Re: GdipCreateEffect

    yeah. but, dont be scared of TLB. its not "external 3rd party" stuff.
    its a TLB u include in the reference "WHILE" you work in IDE, when you compile the .exe the TLB is not needed anymore (the used...
  14. Thread: GdipCreateEffect

    by baka
    Replies
    24
    Views
    984

    Re: GdipCreateEffect

    direct2d
    should be easy to find, just search, the Trick made the typelib
    or use fafalone own "mega-typelib" that include that as well
  15. Replies
    97
    Views
    4,759

    Re: Why did Microsoft abandon ,killed VB6?

    my own speculations is that it was time to create something new, and they did imagine .net to be that.
    as Niya wrote its about libraries and it could be that using VB6 it would mess it up.

    like...
  16. Re: VB6 Question: Your guidance on best approach, multiple programs data from one sou

    thats why u use intercommunication.
    in each startup u check if any other gauge is opened,
    if so, u get data from that app, if not, u get the data from internet.
  17. Replies
    9
    Views
    706

    Re: Run-time error 76 - Path not found

    even if u use API its not always 100% that u do it right.

    my latest tool:

    I use GetCurrentDirectoryW to get the current folder, we can not use app.path
    I use CreateFileW to read a .ini file,...
  18. Replies
    9
    Views
    706

    Re: Run-time error 76 - Path not found

    if u are 100% sure all your API are longpath/unicode ready it most be that he is missing some files.
  19. Re: Untested roulette system - Need help with VB6 and Excel Macros

    exactly, its not our job to be moderators, we can report, but thats it.
    the problem with him is that half the time I dont understand
    and sometimes he post about odd stuff that Im not sure how to...
  20. Re: Untested roulette system - Need help with VB6 and Excel Macros

    in my "online newspaper", from time to time theres news about those lucky b**ta*ds* that wins millions.
    or some news about that "smart" dude that has a fail-proof strategy.

    this is a...
  21. Re: Untested roulette system - Need help with VB6 and Excel Macros

    u are just a troll now.
    u dont give a crap about all the explanations, u just want to believe in your fantasy.
    we are not in a fantasy world now Merlin, this is reality.
    this thread should be...
  22. Re: Untested roulette system - Need help with VB6 and Excel Macros

    no matter how much u try to convince us that earth is flat we will not buy it. we are not that easily fooled.
  23. Re: Untested roulette system - Need help with VB6 and Excel Macros

    what Merlin is doing is this:

    - each 100 spin is a "entity"
    - each "entity" is not "random", it is for us "random" but it holds numbers in a certain way "repeatable"
    - by collecting data of...
  24. Re: Untested roulette system - Need help with VB6 and Excel Macros

    u can not force something to be real. it need data and validation of that data over and over again.
    at least 3 different persons should come up with the same result from different locations and...
  25. Re: Untested roulette system - Need help with VB6 and Excel Macros

    this only works with a random-generator that has a specific formula that will not create a 100% random-output.
    real world its about a lot of things, the dealer, when he drop the ball, if its...
  26. Re: Untested roulette system - Need help with VB6 and Excel Macros

    lets roll a dice 100 times and we get:
    1-5: around 15 each (sum will be 75)
    6: will be 25

    does that means "6" is a hot number?
    so now I can use this. as I "know" that 6 is hot with a 25%...
  27. Re: Testing an internet link without opening browser

    thats why I wrote about winsock
    using winsock we can use the connect method and see if we get a error or connect,
    after that we can use HTTP/GET to see the return.

    or anything similar that can...
  28. Re: Testing an internet link without opening browser

    couttsj, but will that work with a url?
    I get it that u can ping a server IP/host but this is a "file" in a server we need to check if it exists. at least thats what I think he ask for.
  29. Re: Untested roulette system - Need help with VB6 and Excel Macros

    the OP want this from you:

    - do not argue about it
    - the system works, stop wasting my time trying to argue against it.
    - just help me but do not ask any questions that I find ridiculous
    - I...
  30. Re: Testing an internet link without opening browser

    what we need is to fetch the response during the handshake.
    when we send "GET" http code, the server will respond if its valid or not. (u know 404/422 etc, that means not found/not valid)
    easy to...
  31. Re: Untested 34 year old roulette system...need help programming and testing it

    theres no self-awareness here. u don't see what u are doing yourself at all. just pointing fingers like a narcissistic person.
    maybe u need to ask yourself why people don't react like u want and...
  32. Re: Untested 34 year old roulette system...need help programming and testing it

    who wants to create a stupid program?
    sure we can create a random-generator that will always create that "1/3" logic.
    but the OP can start by showing some code first and tell why he can't and Im...
  33. Thread: sending email

    by baka
    Replies
    15
    Views
    896

    Re: sending email

    the protocol has changes, surely levels of protections to avoid no-name senders
    that is why u need a mail-server that allow to be used by your application.
    and u need username/password for it to be...
  34. Thread: sending email

    by baka
    Replies
    15
    Views
    896

    Re: sending email

    I remember many years ago I did create a local-mail-server so I could send and receive mails. did work well, using winsock.
    not sure where I have the code. but I remember it was quite easy to...
  35. Replies
    12
    Views
    710

    Re: HOW TO clear memory dc image?

    well, not really. the picturebox itself has a solid background that we can only manipulate using API
    but a memoryDC that is created in 32bit holds alpha
    so using that we can draw and "erase".
    ...
  36. Replies
    12
    Views
    710

    Re: HOW TO clear memory dc image?

    u need to understand how the different things works.
    some functions draw directly into the hdc some need a refresh to "render" it.
    so, it conflict. the best way is to use functions that do one or...
  37. Replies
    12
    Views
    710

    Re: HOW TO clear memory dc image?

    hm, not sure why u bother with it all.
    gdialphablend is very fast so u can work like this:

    - create a surface u want to use, and if u want to erase it just use zeromemory, a 32bit surface is...
  38. Replies
    12
    Views
    710

    Re: HOW TO clear memory dc image?

    CreateDIBSection u get the pointer
    knowing the bitcount+width+height u can know the size, zeromemory it all. done
  39. Re: Getting the ball rolling. Which VB6 projects are you working on?

    the current project is a tool that creates bitmap-fonts of any font selected in a list.
    the bitmap-fonts will be used in my other projects.
  40. Re: Using LoadPicture with a picture on server

    u can ask Schmidt, I think his vbRichClient (RC6) support PDF. (but I have 0 clue since I dont use it myself)
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width