Search:
Type: Posts; User: lerouxc1
Search:
Search took 0.06 seconds.
-
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?
...
-
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)
-
Maybe there's a bug in the server code that is actually telling the clients to shut down.
-
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...
-
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...
-
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...
-
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...
-
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,...
-
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...
-
or how about
retval = (itemCode \10)-1
-
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...
-
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
-
How about this?
itemCode = ((itemCode -11)/10)
-
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...
-
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...
-
Try these
CommonDialog1.Filter="Text display|*"
CommonDialog1.Filter="Text display|*?"
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
Text1.Text = Text1.Text & "New Appended Text"
-
set your timer interval to 60000
declare a counter outside of your timer
Dim MinuteCounter As Integer
put this inside your timer code
-
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,...
-
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...
-
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...
-
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...
-
make sure you unload every form before you exit.
Use something like the following to unload all your forms
Unload Me
Unload Form1
-
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"
...
-
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...
-
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...
-
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
-
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...
-
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...
-
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...
-
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...
-
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
-
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...
-
I need a TreeView with multiple columns.
Does anyone know of a good ActiveX control for VB?
Thanks,
Cedric
|
Click Here to Expand Forum to Full Width
|