Forum: C 17 Days Ago |
| Replies: 5 Views: 254 In short--if I understand what you're saying--the answer is no.
command.exe Param1 Param2
If you just want the second parameter, then that would be argv[2] or in your case Name[2].
In the... |
Forum: C 17 Days Ago |
| Replies: 5 Views: 210 http://www.iu.hio.no/~mark/CTutorial/CTutorial.html
This is a good link to a free tutorial. Gives you the basics. |
Forum: C 17 Days Ago |
| Replies: 5 Views: 254 I would set your argument to your function to a char pointer:
int myatoi(char *pszArg)
Since you're wanting to pass an array of characters-- i.e. argv[1] -- to your function you may use a... |
Forum: C 17 Days Ago |
| Replies: 5 Views: 254 int main(int argc, char *Name[]) {
/* char *Name = "Josh"; */
printf("%d",myatoi(Name));
return 0;
}
One problem here is you're not using the proper value for your function: myatoi(Name).
... |
Forum: Visual Basic 4 / 5 / 6 May 28th, 2009 |
| Replies: 2 Views: 367 It doesn't look like you instantiated your ranges. Don't know.
Set rnge = new Range
Also, you should be careful in your declaration of variables. VB6 is not like C.
Dim rnge, intI as... |
Forum: Visual Basic 4 / 5 / 6 Apr 10th, 2009 |
| Replies: 1 Views: 513 InvalidateRect just defines the coordinates of one Rect Structure. The next API you should use is the BeginPaint API which should reference that rectangle.
A call to the BeginPaint API should... |
Forum: Visual Basic 4 / 5 / 6 Apr 7th, 2009 |
| Replies: 11 Views: 1,021 The whole point of the recent upgrades for Vista was security for the operating system. Windows has been behind the times since Windows 95 because of allowing programs to install their files in... |
Forum: Visual Basic 4 / 5 / 6 Apr 7th, 2009 |
| Replies: 18 Views: 1,956 Well, that's probably your problem. I would say you need some value there for your database command. You need to figure out why no value is in that variable at that point in your program.
Load... |
Forum: Visual Basic 4 / 5 / 6 Apr 6th, 2009 |
| Replies: 18 Views: 1,956 So, you answer my question with another variable. That's interesting. And so, if I ask you what the value of Param1 is you would give me another variable?
Perhaps Param2? |
Forum: Visual Basic 4 / 5 / 6 Apr 5th, 2009 |
| Replies: 2 Views: 738 A pole display is like any other device.
Printer.Print
MsgBox "Hello, World"
You need to have an object that has methods, properties, and or events. A pole display is an object. But VB6 has... |
Forum: Visual Basic 4 / 5 / 6 Apr 5th, 2009 |
| Replies: 18 Views: 1,956 Text2.Text has a string value: e.g. "Joe", "Schmo","123", etc. If you put a break at this section of the code, what is it returning? |
Forum: Visual Basic 4 / 5 / 6 Apr 5th, 2009 |
| Replies: 18 Views: 1,956 .Command1 Text2.Text
What values are you getting for Text2.Text? |
Forum: Visual Basic 4 / 5 / 6 Apr 2nd, 2009 |
| Replies: 2 Views: 446 Hangman. I always thought you guessed letters and not words. Have they come up with a new way of playing the game?
I would say that you need to set up a string array that matches the word that you... |
Forum: Visual Basic 4 / 5 / 6 Apr 1st, 2009 |
| Replies: 2 Views: 544 Option Explicit
Private Sub Form_Load()
If App.PrevInstance = True Then
MsgBox "Program already running.", vbInformation, "Program status"
' End the program
End
End If... |
Forum: Visual Basic 4 / 5 / 6 Apr 1st, 2009 |
| Replies: 5 Views: 714 It would appear that your problem is that every time your brute force loop finds an item it adds it to the list.
Instead of adding the item to the list in the nested if end if, count the... |
Forum: Visual Basic 4 / 5 / 6 Apr 1st, 2009 |
| Replies: 11 Views: 1,021 Here's a couple of questions for adamsn. But in the mean time, I am tapping into the cosmic spirit and trying to pick up your vibes. Hmmmmmmmmmmmmm. Hmmmmmmmmmmmmmmmmmm. Hmmmmmmmmmmmmmmmmmmmm. ... |
Forum: Visual Basic 4 / 5 / 6 Apr 1st, 2009 |
| Replies: 11 Views: 1,021 Like he said, be specific.
But check your installation paths. Do not add any of your files to the system path: e.g. c:\windows\ ..........
Finally, Microsoft is becoming wise and not allowing... |
Forum: Visual Basic 4 / 5 / 6 Mar 31st, 2009 |
| Replies: 20 Views: 1,186 Microsoft says the Redim Statement is to be used with arrays declared with empty parentheses. I guess you could try otherwise; but why?
But I think I see your problem. Forgive me, if you've... |
Forum: Visual Basic 4 / 5 / 6 Mar 31st, 2009 |
| Replies: 20 Views: 1,186 I think the key word is preserve. The whole purpose of the Preserve key word is to preserve data.
It's intended use is when increasing the size of the last dimension of a multimensional array.... |
Forum: Visual Basic 4 / 5 / 6 Mar 31st, 2009 |
| Replies: 13 Views: 1,153 Go to this link (http://mysolutions.redpages.ph/companyproduct-3723.html) and click on the Inquire Now button, fill out the information.
Request an SDK, an ActiveX control, or a link to a PDF for... |
Forum: Visual Basic 4 / 5 / 6 Mar 30th, 2009 |
| Replies: 13 Views: 1,153 Manufacturer, Model Number.
Coudn't really tell you without the manufacturer, model number. But just about anything is possilbe with VB6.
I just want the model number and manufacturer's... |
Forum: Visual Basic 4 / 5 / 6 Mar 30th, 2009 |
| Replies: 13 Views: 1,153 Yes, that's not a problem. But don't hold your breath. But we still could use a manufacturer and Serial Number. Anyone can look on the internet and download the PDF manual from the manufacturer.
... |
Forum: Visual Basic 4 / 5 / 6 Mar 30th, 2009 |
| Replies: 4 Views: 610 It might be a good idea to add a module to your program and declare some Public Arrays there in that module.
Public Grades(0 To 8) As String
Public Points(0 To 8) As Integer
Then you... |
Forum: Visual Basic 4 / 5 / 6 Mar 30th, 2009 |
| Replies: 13 Views: 1,153 Ok. (1) Who is the manufacturer, and (2) what is the model number.
We should be able to help you from there.
If not, do you have the manual? If all else fails, read the manual. |
Forum: Visual Basic 4 / 5 / 6 Mar 30th, 2009 |
| Replies: 4 Views: 1,349 Visual Basic really doesn't have any operators that deal with bit shifting directly like C (<< or >>).
But in the C language the COLORREF data type contains the RGB value with a high order byte... |
Forum: Visual Basic 4 / 5 / 6 Mar 29th, 2009 |
| Replies: 18 Views: 1,611 That's funny: it works on my vb6 program. Actually, that's the method that I learned from a Microsoft CD on VB6 programming fundamentals. I've been using that method for years. It's odd that it... |
Forum: Visual Basic 4 / 5 / 6 Mar 27th, 2009 |
| Replies: 4 Views: 1,349 Option Explicit
Private Const RGB_R = 1
Private Const RGB_G = 2
Private Const RGB_B = 3
Private Sub cmdFindColor_Click()
Dim lngColor as Long, intRGB as Integer, lngRGBValue as Long
... |
Forum: Visual Basic 4 / 5 / 6 Mar 27th, 2009 |
| Replies: 3 Views: 513 This link appears to be a good way to go. (http://support.microsoft.com/kb/q129796/)
I've used the way I explained, but this appears to be a simpler way and is pretty well documented. |
Forum: Visual Basic 4 / 5 / 6 Mar 27th, 2009 |
| Replies: 3 Views: 513 I take it you're trying to write a program that will install or setup your program? That's pretty difficult to achieve with vb6 language alone and probably the easiest route is to use some Window... |
Forum: Visual Basic 4 / 5 / 6 Mar 26th, 2009 |
| Replies: 18 Views: 1,611 Use the Form_Unload() event
Private Sub cmdX_Click()
unload Me
End Sub
Private Sub Form_Unload(Cancel As Integer)
Dim intReturn As Integer |
Forum: Visual Basic 4 / 5 / 6 Mar 26th, 2009 |
| Replies: 16 Views: 1,214 Just click inside the gray column to the left of Call Main_ON().
Put a question mark before the variable name and press enter in the Immediate Window. The next line should show the value of the... |
Forum: Visual Basic 4 / 5 / 6 Mar 26th, 2009 |
| Replies: 16 Views: 1,214 Put a break at Call Main_ON and use your immediate window to check the values of strUserName , strPassword and the values in your arrNames. |
Forum: Visual Basic 4 / 5 / 6 Mar 26th, 2009 |
| Replies: 16 Views: 1,214 You left out an End if in the Nested If ...End if
If strUsername = arrNames(intArray, 0) Then
If strPassword = arrNames(intArray, 1) Then
varFound = True
... |
Forum: Visual Basic 4 / 5 / 6 Mar 26th, 2009 |
| Replies: 16 Views: 1,214 I don't see anywhere in your code where you load the values for array. I would go ahead and do that in the load event. As long as you have the array declared in the beginning
Option Explicit
Dim... |
Forum: Visual Basic 4 / 5 / 6 Mar 25th, 2009 |
| Replies: 16 Views: 1,214 Private Sub Form_Load()
'Disables password box
Call Disable_Passwordbox
Dim varUsername As String
Dim varPassword As String
varUsername = txtUsername.Text
varPassword = txtPassword.Text
End... |
Forum: Visual Basic 4 / 5 / 6 Mar 25th, 2009 |
| Replies: 18 Views: 1,956 I would say that your problem stems from .rsCommand1.State <> 0 Not every property and method is supported by every type of Database: In your case an Access database.
It looks like the State... |
Forum: Visual Basic 4 / 5 / 6 Mar 25th, 2009 |
| Replies: 4 Views: 471 You can learn here. But you need to list what types of hardware you have. There are several types of cash drawers: serial port connection, those that connect to a receipt printer, etc.
The Typical... |
Forum: Visual Basic 4 / 5 / 6 Mar 25th, 2009 |
| Replies: 6 Views: 729 The thread has been marked solved. I guess you figured it out? |
Forum: Visual Basic 4 / 5 / 6 Mar 24th, 2009 |
| Replies: 6 Views: 729 ' Use the Change Event of the text box
' In this example txtDateChange is the other text box.
Private Sub txtDateChange_Change()
Dim strText, vNewDate As Variant, intEntered As Integer
... |
Forum: Visual Basic 4 / 5 / 6 Mar 24th, 2009 |
| Replies: 6 Views: 729 ' Use the Change Event of the text box
Private Sub txtDateChange_Change()
Dim strText, vNewDate As Variant, intEntered As Integer
strText = txtDateChange
If IsNumeric(strText) Then... |