Search Results - VBForums

Search:

Type: Posts; User: georgekar

Page 1 of 13 1 2 3 4

Search: Search took 0.02 seconds; generated 49 minute(s) ago.

  1. Replies
    20
    Views
    341

    Re: LOGICAL select case

    This is what we call a lookup table. In a string we can put values 16bit in a char position. But we can use an array for single...All we need is to know the smallest part. We can put a code like 0...
  2. Replies
    20
    Views
    341

    Re: LOGICAL select case

    if is all about a range problem and the range maybe alter at run time then we need array to hold ranges

    a=array(1,49,1,50,75,3,100,150,4)
    so we can search like this

    n=9
    for i=0 to n-1 step 3...
  3. Re: Μ2000 Interpreter with Greek and English commands

    Latest revision 12
  4. Replies
    75
    Views
    1,167

    Re: [RESOLVED] Help Developing A Program

    You convert in any language...but mostly a program for a work has two things to resolve, the data entry and the data report. So you choose a "studio" if you understand that two concepts..
    What is...
  5. Re: [RESOLVED] Hit Testing + Rotation, Scaling & More

    So Vb has no Short Circuit evaluation

    You are right...I do an example and I found that vb execute all the parts in an AND.


    Function testA(a As Long) As Long
    Debug.Print "I am A"
    ...
  6. Replies
    11
    Views
    237

    Re: 2 Bytes Reading Problem

    HighLow is used to combine two unsign integers (we use long as containers for unsign integers)
    HighWord give unsign integer as long
    LowWord give a sign long that has the same bits as the one we...
  7. Replies
    11
    Views
    237

    Re: 2 Bytes Reading Problem

    You can read a long and you can extract the low word or the high word. Also you can combine two words (2 bytes) in one long.





    ? right$(hex$(lowword(&h2fff1bcd&)), 4)
    1bcd
    ?...
  8. Re: [RESOLVED] Hit Testing + Rotation, Scaling & More

    I write a new thread about the use of the Lavolpe fast code for regions.
    There is a revision 12. In revision 11 was a bug in the rotation algorithm. Because I would like to synchronize the bitmap...
  9. Rotated Sprites (called Players) in M2000

    With the help of a quick algorithm by Lavolpe to generate a region, and the idea that regions can be transform (so can be rotated), I change the code accordingly to support players (sprites) that are...
  10. Re: [RESOLVED] Hit Testing + Rotation, Scaling & More

    I found the optimum solution...
    Here is a sprite over scrolling text.
    121835

    I use a very precise rotation and zoom routine, and I apply your routine after the rotation and scale. I do many...
  11. Re: [RESOLVED] Hit Testing + Rotation, Scaling & More

    This works fine if piw=pih, so if we have a square sprite. We do a 1/1.3 down scale...and we can rotate using the middle pixel as the center of rotation.

    Myw and Myh are the size of the new...
  12. Re: [RESOLVED] Hit Testing + Rotation, Scaling & More

    I have software sprites in m2000 that have the hot spot in the center. The players (or layers if we see with the second interface) have a hot spot in the left top pixel.
    Is not finished yet but now...
  13. Replies
    9
    Views
    259

    Re: [VB6] Faster RTB Code Formatting

    :)
    you are right...
  14. Replies
    3
    Views
    189

    Re: Visual Basic 6 confuse

    Maybe you need Vbcmpfix.exe to fix some componets in vb5...so after maybe it works, I am not sure.
    But have a try;
    http://support.microsoft.com/kb/181854
  15. Re: [RESOLVED] Hit Testing + Rotation, Scaling & More

    ok I put your method in M2000 revision 11 (not publish yet). I didn't use the hack for BGR color because I use a range so for any R G B value the range is compare with each pixel in the bitmap (I use...
  16. Replies
    9
    Views
    259

    Re: [VB6] Faster RTB Code Formatting

    In Tester (the program in #2) we have auto colorized code, but this isn't for any other purpose than we change some code from the code we see in the bottom box. So it isn't an IDE..at all.
    There are...
  17. Replies
    9
    Views
    259

    Re: [VB6] Faster RTB Code Formatting

    Is not a lot of work. You have to separate the data from the view. The data need to have more info, so we can handle the names as you want. So you must make a simple routine that take string in tags...
  18. Re: [RESOLVED] Hit Testing + Rotation, Scaling & More

    I will see that (I have to make it for mine cDIBsection...to work) but as I see you work with a RECT array so you make from that a region.
    The method I show you not need memory because each time OR...
  19. Re: [RESOLVED] Hit Testing + Rotation, Scaling & More

    A quick adaptation to M2000
    I add a parameter (you see the ",20" in player command). I didn't rotate the bitmap, so iI draw on player bitmap by using the layer interface...to send a gradient command...
  20. Re: [RESOLVED] Hit Testing + Rotation, Scaling & More

    I use this to reset the region

    Sub RsetRegion(ob As Control)
    With ob

    Call SetWindowRgn(.hwnd, (0), False)
    End With
    End Sub
  21. Re: [RESOLVED] Hit Testing + Rotation, Scaling & More

    This is from M2000,and this has a cDiBSection as input...a backcolor that will be total transparent and a Range as optional. If we use range then we make total transparent more pixels.
    See the...
  22. Replies
    9
    Views
    259

    Re: [VB6] Faster RTB Code Formatting

    But you want something that is too much. In vb ide all identifiers feed a list. So when colorize a line you change identifiers with that in the list. When you change the first occur of this...
  23. Re: [RESOLVED] Hit Testing + Rotation, Scaling & More

    You don't have to use more gdi32 recourses. You have to hold only an array of dib pixels. This is not the same as with the use of a DC.
    If you have an example with the api rotation of a...
  24. Replies
    9
    Views
    259

    Re: [VB6] Faster RTB Code Formatting

    I have a small program to compare two pieces of vb code. Top first piece is colorized (We can add some keywords).....
  25. Re: Hit Testing + Rotation, Scaling & More

    @Lavolpe,
    In M2000 code there is code to make region from a bitmap (isn't mine code, the base of code,..I found it). I use that for layers (pictureboxes) as sprites. But I can't use rotation...
  26. Re: Μ2000 Interpreter with Greek and English commands

    New revision 10.

    If you wish an installation ypu can use the setup or you can use a folder and put m2000.exe and the helpm2000.mdb...If you want you can use ca.crt to make it root certificate, the...
  27. Replies
    0
    Views
    117

    The Declare Command in M2000

    Revision 10 is the latest revision and code can be found in the source folder (look at the signature). For those that cannot do that "edit a" and open the editor can use an external editor and save...
  28. Replies
    4
    Views
    225

    Re: help to understand code vb6

    I think a new thread must open to exploit the use of string functions.
    But first of all any vb user must understand what offer a string in vb. Why are different from C strings (or char pointers as...
  29. Re: DriveList - Unicode aware with USB detection

    First time cannot run your program because expected a different reference..So I uncheck the reference and make a new one.
  30. Re: DriveList - Unicode aware with USB detection

    @Drunicode
    I have a function to read names of sheared folders using shell.application but this work only in Xp. It is in M2000 source code. See the link in signature, get the code and search the...
  31. Replies
    2
    Views
    160

    Re: Simple "Clone Stamp Tool" Demo

    I would like to see the next version... A clone stamp by using a mask...so the cloning is a function of using source image and a mask image and the an intermediate pad as the next image to replace...
  32. Replies
    75
    Views
    1,167

    Re: [RESOLVED] Help Developing A Program

    YES it is a mode of file operation but this an answer that tell nothing but the type of the procedure.
    If a$="ABCDEF" and we wish to Append "G" then this means that we add it at the end of string,...
  33. Replies
    75
    Views
    1,167

    Re: Help Developing A Program

    App path isn't good. I post above a code for a module where we use a folder in user files. Just take the mydir output as the output folder.This folder is per user. So only one has access to that...
  34. Replies
    20
    Views
    351

    Re: Script development

    I see your program...I am some step ahead.
    To run your program (the api call) you make some textboxes to store parameters....So you can run once the code...not second time...
  35. Replies
    20
    Views
    351

    Re: Script development

    For Api calls I make some work in M2000.
    This code work.


    DECLARE MessageBox LIB "user32.MessageBoxW" {LONG HWND, LPTEXT$, LPCAPTION$, LONG TYPE}
    DECLARE timeGetTime LIB "winmm.timeGetTime" {}...
  36. Replies
    20
    Views
    351

    Re: Script development

    I think the use of a script is to do some user manipulation on data rather on ui. So my previous question is still there: Can we use script language to access data in vb and manipulate them? So maybe...
  37. Re: DriveList - Unicode aware with USB detection

    I get an error when read E: (E: is map to a share folder, in the intranet)
    Error -2147192576 CreateFile error 5 On Line 40 of RemoveNotReady 3
  38. Replies
    20
    Views
    351

    Re: Script development

    Can you take arrays or other variables from this script? Or you should use an object where the script can use for output??
  39. Replies
    75
    Views
    1,167

    Re: Help Developing A Program

    DataMiser...
    You see PedroC1999 has missing basic things like string manipulations. Using databases from code need to know string manipulation. From a "major" problem like the vbcrlf that he can't...
  40. Replies
    75
    Views
    1,167

    Re: Help Developing A Program

    I agree with DataMiser, I give the CurDir as an easy response. I never use this.
    Use a more sophisticated way. You make a dir yourdirectory in user folder.



    Option Explicit
    Const...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.