Hi, I'm trying to create a simple combo box with the numbers 0-9 in its list. The interface for the combo box is done through MS Visual C++, and the code that will put the data inside the combo box is contained in a .cpp file. The combo box on the interface is called IDC_COMBO. Here is the code...
I have seen some coding techniques that I am not familiar with, so I hope some of you can shed some light on them:
std::string variableA //what is the purpose of using std here?
//Can someone explain how this code actually works? I tried to name the methods and variables accordingly...
I am using Microsoft Visual Studio .NET to build my ASP.NET web application. I have several WebForms, and I cannot figure out how to code the loading of a form if a user clicks a button.
Lets say I have a WebForm named WebForm1 with a button on it and when the button is clicked I want to show...
I need to write a script to print out all user login activity. I know that the "last" command shows that information, however, I would like the output to look something like this:
Lets say user joe logged in 10 times and user sam logged in 25 times. I want output to be like this:
joe 10
sam 25...
What is the command to create a log file entry if the log file is r/w by root. As an example lets say the log file is called process.log, and that I am a regular user that can only read the file but not write to it. How do I make an entry into this log file if I do not have sudo privileges?
First of all is there a different automounter for a host computer while it is running? I know there is the boot mounter, but if there is another one I'll need to know it to do this. Lastly, what is the command to mount from an ftp server?
Example: COMM FTP at comm.gov is my main ftp server
Can someone tell me how to mount a directory from another host on startup? I know I might have to edit the /etc/vfstab file.
Lets say my current computer name is george, and I want to mount the /util directory from host name leonard onto the /util directory here on george. I know how to mount...
What is the command to see the ethernet address of a host?
Also, is there a command to see the IP address of a gateway computer on a network if I know the IP address of two of the hosts on the same network?
I have searched through the internet trying to find the answer to these questions, but no luck. The first one is about device files. I know it is best to not have user permissions to view these files, but why shouldn't a user be able to create a device file? I read somewhere that if they can...
Is there a way I can test if a combo box has been changed? I tried double-clicking the combo box and it says Combo1_Changed as the sub name, but it does nothing when I changed the value of the combo box.
I have an array with values such as:
array: .asciiz "K"
.asciiz "Y"
.asciiz "7"
When I try to show the "7" to the screen using something like this:
add $t1, $0, 2 #initialize
la $a0, array($t1) #prints a string value
li $v0, 4
syscall
Nothing shows up on the...
In assembly I find it very difficult to do anything, as I am used to programming in C, and one of the problems is figuring out how to use the stack to store values.
I know there is a separate register $sp used to put values on the stack. For example:
sub $sp, $sp, 2 #make room for 1...
I have looked in many places on the internet for solutions to my problem. I need to have a random number generator in MIPS Assembly that can generate numbers with either a given range, or from an array. I have found one generator at fivemouse.com, and it takes in a seed to produce the numbers...
Hi, I was wondering if anyone knew a function that would give me the first byte of Hex characters from a hex string. Now keep in mind that I would not know the value of the characters, so I could not use any function looking for a specific string. For example: the user enters a number and it is...
Does Visual Basic have any built in formulas for converting a hex to decimal. For example, the user inputs FF82, and I want the decimal form of this hex string.
If I have two text boxes where one lets the user enter what location to store a value in, and the other text box would be the value to store. I created several text boxes in which act as storage. So, for example if the user enters in one text box " 1 " for the location, and for the...
I was wondering if it is possible to put a calculation in an Access table. I need ages of people to be calculated, but it has to be done before the filter so that the user can use age as a filtration technique. The two variables I would need are the current year, and the birth year of the...
I have a form that contains various information about a client (i.e. name, phone number, etc.) I have a check box on the form also to add that person's name to a temporary table. But when I click the checkbox for one record, all of the checkboxes for every record are selected. I have tried the...
I have a form that allows the user to browse their computer and open a picture. I have a button that they press to display the picture they chose, and with that button I want to save the picture's path/filename to a table called tblPhoto. So far I have this:
Me.Photo = txtPath.Value 'save...
I have one main form called "frmSearchMain" that holds two subforms called "frmSearchNavigation" and "frmSearch". Before I put the subforms onto the main form I created a filter for the form called "frmSearch", and it works perfectly on that form. But when...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.