Search:

Type: Posts; User: lerouxc1

Page 1 of 2 1 2

Search: Search took 0.06 seconds.

  1. "File Not Found" when trying to use a DLL function

    I get a File Not Found error whenever I try to call this function.
    I put the DLL file in the same folder as my project, as well as in the System32 folder of Windows.

    Why can't VB find the DLL?
    ...
  2. Replies
    3
    Views
    629

    Try something like this If it doesn't work, try...

    Try something like this
    If it doesn't work, try specifying a size for the array


    'array declaration
    Dim ThisArray() As Integer

    'function header
    Private Sub MyFunc(ByRef MyArr() As Integer)
  3. Replies
    6
    Views
    941

    Maybe there's a bug in the server code that is...

    Maybe there's a bug in the server code that is actually telling the clients to shut down.
  4. Replies
    50
    Views
    33,848

    Here is an example of what's going on. I had to...

    Here is an example of what's going on. I had to write the program in C to demonstrate. Check out the subtle difference when I dumped the memory where the variables were stored. Then when I print...
  5. Replies
    11
    Views
    1,456

    Recursive solution?

    An elegant way to do this might be to use a recursive function to draw your graph.
    Create a sub that takes the x,y position of the root node, and a link to the current node. (The link to the...
  6. Thread: Easy Question

    by lerouxc1
    Replies
    17
    Views
    764

    Off the top of my head... When the user hits...

    Off the top of my head...
    When the user hits cancel, the Common Dialog puts a value in the global "Error" variable.

    So do something like this. (I think)

    If Error = vbCancel Then
    'User hit...
  7. Replies
    7
    Views
    3,459

    I developed an OCX Chart Control. It can be...

    I developed an OCX Chart Control. It can be event driven, which I guess is about as real-time as you can get in windows. It will update and scroll, can even zoom in, set ranges, colors, etc. Free...
  8. Thread: Memory Usage

    by lerouxc1
    Replies
    5
    Views
    594

    I posted a similar question a while ago. I was...

    I posted a similar question a while ago.

    I was trying to find out how much memory I was using up with a particular array.
    The only thing I came up with was to write the entire array to a file,...
  9. Replies
    23
    Views
    1,805

    the underside of the label is where the data is...

    the underside of the label is where the data is stored on CDRs.
    The rest is just a transparent plastic platter.

    Better to scratch the plastic than the label. If you scratch the label, forget...
  10. Replies
    3
    Views
    495

    or how about retval = (itemCode \10)-1

    or how about

    retval = (itemCode \10)-1
  11. we are talking about two different things. To...

    we are talking about two different things.

    To declare an array, you need a constant....or a dynamic array.

    Declare it like I said. It will work.

    To access it, you can use constants or...
  12. no, it needs to be a constant You can however...

    no, it needs to be a constant

    You can however do this....


    Dim MyArray() As Integer ' or whatever data type you need


    and then initialize it like this
  13. Replies
    3
    Views
    495

    How about this? itemCode = ((itemCode -11)/10)

    How about this?

    itemCode = ((itemCode -11)/10)
  14. Replies
    2
    Views
    420

    Private Function LoadFile() As String() Dim...

    Private Function LoadFile() As String()

    Dim Fnum As Variant
    Dim I As Variant
    Dim strData() As String
    Dim InString As String

    I = 0
    Fnum = FreeFile
    Open arqtxt For Binary As Fnum ' like...
  15. Replies
    15
    Views
    1,369

    There are 3rd party OCX controls that do have...

    There are 3rd party OCX controls that do have font property for every node. I don't remember the names of any of them, but you can find them by search for "VB treeview" or something similar at any...
  16. Replies
    5
    Views
    1,110

    Try these CommonDialog1.Filter="Text...

    Try these

    CommonDialog1.Filter="Text display|*"

    CommonDialog1.Filter="Text display|*?"
  17. Replies
    6
    Views
    550

    you could put a shortcut in each person's startup...

    you could put a shortcut in each person's startup folder and customize the shortcut to pass an argument to your program. The argument could be the user's name

    Then your program could store all...
  18. Thread: msgbox

    by lerouxc1
    Replies
    7
    Views
    557

    If expldb1 < 10 Then If MsgBox("One of the...

    If expldb1 < 10 Then
    If MsgBox("One of the tables is incorrect! Do you want to continue?", vbYesNo, "Table Check") = vbYes THen
    GoTo SectionE
    else
    End
    End If
    End If...
  19. Replies
    22
    Views
    2,039

    GPS OCX Control

    Here's the OCX control that I created.
    As I said before, support for some NMEA and Garmin sentences has not yet been implemented.

    This thing is cool, cuz you can just add it to your project, and...
  20. Replies
    22
    Views
    2,039

    GPS Mapping Util

    This software is functional, but by no means finished.
    It should give you all the stuff you need. I'm going to start a new version soon. (I didn't finish this one because I decided to change the...
  21. Replies
    22
    Views
    2,039

    I have all this code written already...I don't...

    I have all this code written already...I don't have it now, but will post later today. Or contact me view email lerouxc@db.erau.edu

    I have a program which plots data on a bmp. It uses an error...
  22. Replies
    4
    Views
    632

    ByRef- By Reference ByVal - By Value equate...

    ByRef- By Reference
    ByVal - By Value

    equate to java....hmm

    I believe Java always uses ByRef. Passing a reference to the object rather than the value itself

    In C, it would be like passing...
  23. Replies
    5
    Views
    650

    Text1.Text = Text1.Text & "New Appended Text"

    Text1.Text = Text1.Text & "New Appended Text"
  24. Thread: Timer

    by lerouxc1
    Replies
    2
    Views
    783

    set your timer interval to 60000 declare a...

    set your timer interval to 60000
    declare a counter outside of your timer


    Dim MinuteCounter As Integer


    put this inside your timer code
  25. Replies
    4
    Views
    1,034

    If I understand correctly, you want to sort by...

    If I understand correctly, you want to sort by two columns...?

    For example: You have First Name, Last Name and you want all Last names sorted alphabetically, and if there are duplicate last names,...
  26. Replies
    8
    Views
    537

    your error is always happening in OpenCode. If...

    your error is always happening in OpenCode. If there is no error handler in OpenCode, the error will revert to the calling function, in which case you had "On Error resume next" so the result was...
  27. Replies
    1
    Views
    341

    I believe MP3 CDs are simply data CDs. Eazy CD...

    I believe MP3 CDs are simply data CDs. Eazy CD creator has an option for "MP3 CD project" but all it's really doing is burning a regular data CD.
    I personally like to organize my MP3 CDs by...
  28. Replies
    1
    Views
    306

    Dim MyArray(1 To 5, 1 To 10) As Integer Dim...

    Dim MyArray(1 To 5, 1 To 10) As Integer
    Dim MyArray2(1 To 10, 1 To 5) As Integer

    Dim iCtr As Integer
    Dim iCtr2 As Integer

    For iCtr = 1 To 5
    For iCtr2 = 1 To...
  29. Replies
    4
    Views
    358

    make sure you unload every form before you exit....

    make sure you unload every form before you exit.
    Use something like the following to unload all your forms

    Unload Me
    Unload Form1
  30. Replies
    2
    Views
    490

    I figured it out. Thanks for trying to help....

    I figured it out. Thanks for trying to help.
    This code would work:


    Dim MyNewGroup As New Group
    Dim MyNewItem As New gpItem

    MyNewItem.Value = "Test1"

    ...
  31. Replies
    2
    Views
    490

    Passing objects to methods

    Here's one for the gurus.

    I created a couple of class modules. (gpItem and Group)
    gpItem has a property called Value. Group has a method called addItem which is declared like this:

    Public...
  32. Replies
    6
    Views
    704

    Maybe I should reiterate my question... (if you...

    Maybe I should reiterate my question...
    (if you "don't know about that malloc thing" , please don't reply)

    When a pointer is created, you must initialize it to point to something. I am trying to...
  33. Thread: File Handling

    by lerouxc1
    Replies
    5
    Views
    464

    you could open the file as binary or random and...

    you could open the file as binary or random and use the put and get methods.

    Although tedious, it is open for read and write simultaneously.

    Hope this helps.
    Cedric
  34. You are overwriting the file in each iteration of...

    You are overwriting the file in each iteration of the loop. Try moving the open and close statements outside of your loop.

    Or you can open the file for "write/append", in which case your printf...
  35. Replies
    6
    Views
    704

    Pointer declaration and initialization

    Hi,
    I'm wondering what actually happens when you declare a pointer and initialize it on the same line.

    Does it set the pointer's value or the value the pointer points to?

    Which of the...
  36. Replies
    1
    Views
    388

    You don't have to update this way. Try looking...

    You don't have to update this way.
    Try looking more closely at MediaPlayer's preperties and events.

    The way you're doing it is totally inaccurate, and I think the code you wrote isnt even correct...
  37. realloc corrupts data after several uses.

    Can someone please tell me why realloc appears to work fine through several iterations, and then corrupts values stored in previous iterations?
    The spec for realloc says it's supposed to preserve...
  38. How can I send keystrokes to another app?

    hi,
    I need to create a small application that will act as a keyboard on screen. How can I send simulate keystrokes in another application?

    Thanks,
    Cedric
  39. Thread: Please help

    by lerouxc1
    Replies
    3
    Views
    406

    Text2.Text is your input field. After the code...

    Text2.Text is your input field.
    After the code runs, Text2.Text shows the converted field into your longer string.

    I wasn't totally clear on what you were asking to begin with. You can take this...
  40. Replies
    0
    Views
    447

    I need a TreeView with columns

    I need a TreeView with multiple columns.
    Does anyone know of a good ActiveX control for VB?

    Thanks,
    Cedric
Results 1 to 40 of 63
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width