dcsimg

Search:

Type: Posts; User: jeroen79

Page 1 of 13 1 2 3 4

Search: Search took 2.08 seconds.

  1. Thread: Multi Line??

    by jeroen79
    Replies
    2
    Views
    321

    Re: Multi Line??

    Multiline allows you to type more than one line of text in a textbox.
    It will be read as one string and the lines are connected by vbCrLf.
    You will have to process that to get the seperate fields....
  2. Replies
    2
    Views
    445

    Re: deformability maps

    In worms the map is a bitmap.
    Part of the bitmap is made transparant, thus forming the the part that is not 'ground'.
    Bombs then make the part of the map where they explode transparant in a...
  3. Replies
    5
    Views
    1,371

    Re: Ball Maze collision detection

    I modified it a bit.

    If the ball is above the barrier then it would first collide with it's top.
    Therefore you would need to know if the ball is below or above the barrier to know against which...
  4. Replies
    5
    Views
    1,371

    Re: Ball Maze collision detection

    If you use a round ball then all you need to do is check the distance between a barrier and the center of the ball.
    If it is equal or less than the radius of the ball there is a collision.

    If you...
  5. Replies
    5
    Views
    686

    Re: Simulating a seven segment display

    'a led setup
    Type t7Segment
    Led(7) As Boolean
    End Type

    'stores the led setup for each number
    Dim LedNumber(10) as t7Segment

    'makes the specified led setup
    Function New7Segment(S0 As...
  6. Replies
    16
    Views
    859

    Re: IF-Then Problem.

    You can put the pictureboxes and tags in arrays and then use one Long to cycle the index.

    'make a control array of pictureboxes called imgtor

    Dim tag() As String
    'make as much tags as there...
  7. Thread: In a dialema

    by jeroen79
    Replies
    3
    Views
    367

    Re: In a dialema

    Post your code and indicate which line the error occurs at.
  8. Replies
    2
    Views
    477

    Re: remotely request for cp status...

    What is load credit?

    What are the capabilities of the phones?
    Are they all of the same type?
    What OS runs on the phone?
    Can you upload your own software to it?

    You would first have to read...
  9. Replies
    3
    Views
    357

    Re: matrice manipulation

    Your input is a matrix with zero to three ones per row and your output should be all possible matrixes with just one one per row obtained by removing ones from the input array.

    ie:
    11 > 11 > 01...
  10. Replies
    4
    Views
    446

    Re: Multiple Monitor Issue

    That would be the simplest.

    FOr more advanced things:
    http://www.vbaccelerator.com/home/VB/Tips/Working_with_Multiple_Monitors/article.asp
  11. Replies
    16
    Views
    1,361

    Re: Superimpose an image over a fullscreen game.

    So how would I find out what the pointer to the DirectX/OpenGL surface is?
  12. Replies
    10
    Views
    607

    Re: [RESOLVED] Simple Task-In Vb

    A bit late too, but why do people delete their question after they get an answer?
  13. Replies
    16
    Views
    1,361

    Superimpose an image over a fullscreen game.

    How can I draw an image made by my VB6 program on top of a running fullscreen game?
    I tried bitblt but that is flickering too much.
  14. Replies
    62
    Views
    2,034

    Re: Need Subroutine Help

    To stick with the need to use subroutines:
    Function ReverseNumber(Number As Long) As Long
    'your code here
    ReverseNumber = the_outcome_of_the_code
    End FunctionYou can then call it like:Dim...
  15. Re: Runtime error 13 when copying an array into a usercontrol

    A bit more.

    I tried the same with a class.
    This gives no problems.

    Also, if I send data to the same property of a usercontrol twice it also gives the error.

    Putting the data into the...
  16. Runtime error 13 when copying an array into a usercontrol

    I have a usercontrol into which I want to copy data.

    The data is in the form of an array of singles.
    The data is loaded using a property. (get/let)
    The data is stored by the usercontrol in an...
  17. Thread: Altimeter

    by jeroen79
    Replies
    2
    Views
    678

    Re: Altimeter

    Do you want to make something to playback flights?

    Slider can be used, except that with the altimeter pictured by g33n13 the thing scrolls much more than the control's height.
    It basically is a...
  18. Replies
    6
    Views
    444

    Re: String to Image

    http://en.wikipedia.org/wiki/WordArt
  19. Replies
    12
    Views
    802

    Re: pls help me....

    It generally is better to explain what you want in detail than to have us guessing what to make of a picture.

    My guess:
    You work the string left to right, until you reach the middle of the...
  20. Replies
    2
    Views
    344

    Re: Passing data types to functions?

    Easy:Type TheType
    A As Byte
    End Type

    Function ThatUsesTheType(TheArgument As TheType) As TheType
    ThatUsesTheType.A = TheArgument.A
    End Function

    'use it like:
    Dim X As TheType
  21. Re: How do I go to next iteration of For?

    Exit For will terminate the entire loop, including any iterations you did not yet do.
    If you just want to skip to the next iteration then this will be too much.
  22. Replies
    4
    Views
    411

    Re: connecting controller to computer

    Assuming that your controller will show up in windows as a regular DirectX controller:
    http://www.google.nl/search?hl=nl&q=VB6+directx+controller&btnG=Google+zoeken&meta=
  23. Re: How do I go to next iteration of For?

    GoTo is bad.

    Do you want to do something only if some condtion is not true?
    And otherwise go straight to the end of the loop? For x = 0 to 10
    If Not true Then
    MsgBox "hey"
    ...
  24. Replies
    2
    Views
    1,112

    Re: Stuck on code for number guessing game

    Or use recursion.Private Sub Form_Load()
    GuessTheNumber RandLng(0, 10), 5
    End Sub


    Public Function GuessTheNumber(num As Long, tries As Long) As Boolean
    Dim g As Long

    If tries...
  25. Re: What is the fastest and simplest file encryption?

    Dim f As long
    Dim d() As Byte
    Dim i As Long
    Dim filein As String
    Dim fileout As String

    f = FreeFile
    Open filein For Binary As #f
    ReDim d(LOF(f) - 1)
    Get #f, , d
  26. Replies
    11
    Views
    620

    Re: checking all arrays

    For i = 0 to UBound(MyArray)
    If MyArray(i) Then Exit For
    Next i
    AllAreFalse = Not MyArray(i)

    For i = 0 to UBound(MyArray)
    If Not MyArray(i) Then Exit For
    Next i
    AllAreTrue = MyArray(i)
  27. Re: What wrong with my code please help

    And to add to that,if you want to let the value of a variable decide what action to take you shouldn't use a lot of consecutive If statements.

    At least nest them so you can stop testing the rest...
  28. Replies
    4
    Views
    446

    Re: How to add data in a variable

    Where is it supposed to get all the somethings?
  29. Replies
    2
    Views
    387

    Re: [VB6] Text Differences

    Testing if two strings are not the same is easy.

    Finding what the differences are is trickier.
    In your example, would File2 be File1 & "1 Hello" or would it be "Hello1 "& File1?

    What do you...
  30. Replies
    4
    Views
    446

    Re: How to add data in a variable

    What is in RealMess? I don't see anything being put into it.

    What exactly do you want to achieve with this code?
  31. Replies
    8
    Views
    518

    Re: Mod Operation!?

    The & operator will append two strings together.
    In this case it will add the value of the currently tested bit to the result already in Dec2Bin.
  32. Replies
    4
    Views
    793

    Re: Bilingual Application

    You can keep a list of all texts to be changed in a file and load it into memory in a module.
    The module then has a function for other objects to query the list of texts.
    'in each object that needs...
  33. Re: VB6 string separation, Left, Mid,Right?

    It all depends on context.
    What is the meaning of this string?
    Where does it come from?
    What could it possibly contain?

    Will it only contain "true" and "false" and nothing else?
    In that case...
  34. Replies
    3
    Views
    2,338

    Re: bearing between two points

    That's right.
    You'll need a third point (or vector) to get an angle.

    This gives the bearing from one point on a flat 2D plane to another point, relative to the plane's 'north'.Public Const Pi As...
  35. Thread: Tablet PC

    by jeroen79
    Replies
    3
    Views
    516

    Re: Tablet PC

    The screen of the tablet would be a touchscreen so you can just make a regular mouse operated application.

    Capturing the signature can be done with a control that records the mousecursor position...
  36. Replies
    3
    Views
    355

    Re: UDTs and speeddifference.

    The UDTs:Public Type tQuaternion
    w As Double
    x As Double
    y As Double
    z As Double
    End Type

    Public Type tVector
    dx As Double
    dy As Double
  37. Replies
    3
    Views
    355

    UDTs and speeddifference.

    A rather weird thing.

    Two versions of a function:Public Function quatRotateVector(q As tQuaternion, v As tVector) As tVector
    Dim qv As tQuaternion
    Dim qc As tQuaternion
    Dim qt As tQuaternion
    ...
  38. Replies
    2
    Views
    301

    Re: Variable not getting a value

    What is the value of root?
    Make the first line of the inner loop a breakpoint. What values do ctr and ctr2 get?
  39. Poll: Re: Efficiency of moving sprites? (BitBlt and image controls)

    You should load all your pictures into dc's and then use those dc's to build the final picture in another dc.

    And you don't need a dc for each object in the game.
    There may be a million bullets...
  40. Replies
    4
    Views
    365

    Re: not quite random

    You could fill an array with your non random data and then randomly pick an element from it.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width