Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Cykadelyxx
  • Order by date
  1. Cykadelyxx

    help with random lines in program

    shanley06 that will not work. the algorithm cannot know if there is a line passing between the two points that does not touch the endpoints. it only successfully tests for overlapping segments on a single horizontal or vertical line, one or the other and not both.
  2. Cykadelyxx

    help with random lines in program

    I just slapped this together in ten minutes in VB6 with some line functions I had already written. Probably the most effecient approach would be to maintain an array of end points and each time you create a new random line segment, loop through each set and check if they intersect using...
  3. Cykadelyxx

    Padding A String With Zeroes

    n$ = STRING$(6-LEN(n$), "0") + n$ or num$ = STRING$(6, "0") MID$(NUM$, 6 - LEN(n$) + 1, LEN(n$)) = n$ MID$ allows you to set string characters or read certain characters. MID$(String, StartIndex, NumChars) it can be used as an assignment or as a value returning function...
  4. Cykadelyxx

    Sorting an array

    qb your algorithim is called a selection sort invented over a half century ago which has an algorithmic complexity of n^2, quicksort is a very good algorithm because it is n*log n .... so the difference is major for large arrays... for an of 1024 quicksort needs 10000 iterations where yours...
  5. Cykadelyxx

    Btibltting

    umm, I am working on a project that uses TransparentBlt and I noticed that the autosize property IS set to True on both pictures. I must have been mistaken before when I associated my problem with the Autosize property. Sorry to send you on a wild goose chase. I haven't had any other problems...
  6. Cykadelyxx

    Btibltting

    For some reason TransparentBlt does not work if the source picture(haven't checked if the same is true for the dest) has the AutoSize property set to True on XP. I can't even guess why. Maybe this is your problem. I don't see anything else that could be an issue. They do recommend a DoEvents...
  7. Cykadelyxx

    Rounding of Numbers in VB

    like this is what i mean. Private Sub Command1_Click() Dim Xin As Double, Xout As Double, e As Double, R As Double Xin = 210034 e = 1 Xout = Xin Do Xout = Xout / (10 ^ e) R = Round(Xout - Int(Xout)) Xout = (Int(Xout) * 10 ^ e) + ((10 ^ R) * R) e=e+1 Loop Until Xout Mod 10 = 0 Me.Print...
  8. Cykadelyxx

    Rounding of Numbers in VB

    and Xout = Xin before the Do... Ok, I'm done here.
  9. Cykadelyxx

    Rounding of Numbers in VB

    whoops.. got to have e=e+1 before the Loop Until...
  10. Cykadelyxx

    Rounding of Numbers in VB

    I personally don't know of one but I'm guessing your primary concern here is not having to write a lot of conditionals. One way to accomplish your task is to take an approach sort of like that used to round numbers I will describe it in pseudo code and then in real VB code. I believe it is...
  11. Cykadelyxx

    Btibltting

    haven't had any trouble with bitblt on XP. maybe if you post the part of your code where you set up your DCs and handles and where you call bitblt we can check if there is something else that could be a potential problem on XP...
  12. Cykadelyxx

    String filtering

    I think you just need to understand that VB processes large strings slowly, and also that string functions are slow. Also using ThisString + ThatString is slow as well. There are a lot of unneccessary operations going on there. If I use large strings on my 400 Celeron I never make them larger...
  13. Cykadelyxx

    PICTURE BOX AND FLICKERING IMAGES

    I think there should be a relatively easy solution to this. If you only have this problem when you click on a textbox then Windows may be redrawing the window when it doesn't need to. Theres lots of ways to minimize the amount of drawing you need to do to improve performance. Maybe you could...
  14. Cykadelyxx

    How To... Access the memory block of a PictureBox...?

    strongm's suggestion is the most convenient method for most tasks. For learning purposes I'm posting code from an old voxel landscape renderer that copies the base address of the bitmap bits to the address of an array so you can access them like pict(x,y) or pict(x) if you use a one dimensional...
  15. Cykadelyxx

    How to Initiate Run Dialog through link etc...

    If you can't find a standalone then runs it there may not be one. I'm not sure. But it's easy to call the SHRunDialog function to do it. If you have VB you can follow the link below(go to the example code), paste the code in a project, set the Form's Visible property to False, Place the...
  16. Cykadelyxx

    Runtime Picturebox Paste

    Set MyPicture.Picture = Clipboard.GetData when you catch ^V
  17. Cykadelyxx

    Prevent mousemove Focus on my app

    I find SetCapture is very useful for a lot of things dealing with mousemoves. When you shell to another app you could SetCapture SomeInVisibleObject.Hwnd, so that object would suck up all the mousemove events over your form. Seems to me that using this along with some simple logic would solve...
  18. Cykadelyxx

    Reading another process's memory

    Sweet! thanks logiclrd. I can't wait to get a chance to play around with this. I'm sure crackers and the like would be interested in this kind of thing but I hope it will have practical uses too, like finders pointers to values so you can link two applications from different vendors, and maybe...
  19. Cykadelyxx

    window region

    hehe. That's a good idea. I can see that being a popular time killer in the workplace. You have a lot of options for the objective of the game as well. Maybe have a pong like rectangle that could knock the bubble back to the thrower really fast, and if it goes past your screen to the next...
  20. Cykadelyxx

    window region

    Nice job, remedy! You should put that up on downloads as a stress reliever when you get the bugs worked out. "My mini piano" got something like a 300k+ downloads for crying out loud. The oddities were quite pronounced on my Celeron 400 with a Voodoo3. The biggest problem is you can see...

Part and Inventory Search

Back
Top