Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~16.3K People Reached
Favorite Tags
Member Avatar for iamthesgt

I am working on a Windows application, and I have a Settings Dialog box with 5 text fields. I currently get the values of each text field with: GetDlgItemText(hDlg, IDC_EDIT_SIPADDRESS, sipAccount->sipAddress, 80); GetDlgItemText(hDlg, IDC_EDIT_USERNAME, sipAccount->userName, 80); GetDlgItemText(hDlg, IDC_EDIT_PASSWORD, sipAccount->password, 80); GetDlgItemText(hDlg, IDC_EDIT_HOST, sipAccount->host, 80); GetDlgItemText(hDlg, IDC_EDIT_STUN, stun, 80); And then …

0
87
Member Avatar for iamthesgt

I have a class Client that is the main class for my Windows C++ application. Inside the client class, I have a number of variables and functions. One variable I'm having trouble with is the manager: private IRManager* manager; The main function of my class is int APIENTRY InnoVisitClient::_tWinMain(HINSTANCE hInstance, …

Member Avatar for theguitarist
0
526
Member Avatar for iamthesgt

I am going to redo the interior of my truck (a 1998 Chevy K1500 Pickup) and want to mount a Android tablet in the dashboard to replace all my stereo and environment control (maybe vehicle lights too). My plan is to write an Android app to do this, but I'm …

Member Avatar for iamthesgt
0
121
Member Avatar for iamthesgt

For a shell script used to automatically generate c++ code files, I have to split certain names apart for them to be formatted. I split them at a capital letter, but I do not want to split if there are multiple capital letters in sequence. For example: I want this …

Member Avatar for iamthesgt
0
2K
Member Avatar for iamthesgt

I am using Awk inside a bash shell script to search header files for c++ functions so I can add these functions to another file. All of the functions I need will have form: type getName() or type setName(type value) Right now I get all the functions listed in between …

Member Avatar for iamthesgt
0
445
Member Avatar for iamthesgt

In building an application, I can make the project on one computer, but I can't on my other one. The thing that is holding me up is: [ICODE]#include <cppconn/resultset.h>[/ICODE]. I've searched but I can't find the package I need to install to get this library on my computer. I'm running …

Member Avatar for iamthesgt
0
127
Member Avatar for iamthesgt

For a (homework) project, I have a class ComplexNumber that needs to be printed. I have a number of operations that can be done on objects of the class (addition, subtraction, multiplication, division). Each operation returns a new ComplexNumber to be printed. How exactly do I print this? Do I …

Member Avatar for iamthesgt
0
156
Member Avatar for iamthesgt

In working on a logfile for an application, I needed to limit the size of the logfile to 1000 bytes. Since it is not possible to delete lines from a file in C++, I used the following steps: Rename the logfile to a temporary name. Read the temporary file. Write …

Member Avatar for iamthesgt
0
220
Member Avatar for vyrte

hello i'm writing a program in c++ and i'm using linux. i use fork() in order to create a process and then i want to wait for the child process to finish so its something like that: [CODE]pid=fork(); if(pid<0) { cerr << "Failed to fork" << endl; exit(1); } if(pid==0){ …

Member Avatar for iamthesgt
0
437
Member Avatar for iamthesgt

I am testing Linux video servers and setting them up through a web interface. The web interface is being used to set the IPv4 address, the hostname, and disabling DHCP. The web interface is run off of the video server, and accessed through a web browser. The page can be …

Member Avatar for swifttech
0
201
Member Avatar for iamthesgt

In setting up an embedded system, a Linux box needed to have a read-only root partition. However, the OS must be able to write to certain files (the drive was partitioned into /, /home, /tmp, /usr, /var with the only read-only being / ). So I created symbolic links to …

Member Avatar for iamthesgt
0
232
Member Avatar for iamthesgt

For an assignment in a computer programming class, we have to install 3 linux distributions on one machine from three different trees. I chose to install Ubuntu, Fedora, and OpenSUSE. I already dual-boot Ubuntu and Windows 7, but I'm not sure about the partitioning. I have 460GB of space in …

Member Avatar for ranger_g
0
369
Member Avatar for iamthesgt

In going through some homework, I was able to do some of the problems, but not others. For example, one problem was "Produce a list of employee last name, first name, job function, department name and department location. Use appropriate, user friendly column aliases." I finished this with this code: …

Member Avatar for iamthesgt
0
207
Member Avatar for iamthesgt

I was writing a makefile for a web interface program that installs the cgi scripts to a (Linux) OS. The makefile works fine, but it needs to be able to install to different directories for different distributions (Fedora, Ubuntu). On Fedora, the scripts need to go to /var/www/cgi-bin and on …

Member Avatar for iamthesgt
0
1K
Member Avatar for iamthesgt

This is homework. I have to write a bash shell script using awk to process three delimited text files and produce a formatted report. The three files are as follows: [CODE]GRADES file John Bunyan:90:100:75:60 Maria Montessori:80:90:60:82 Alice Cooper:75:80:54:47 Harvey Mudd:89:45:89:95 PROJECTS file test1:30 test2:30 paper2:20 exam:50 LEVELS file A:89.5 B:79.5 …

Member Avatar for Fest3er
0
296
Member Avatar for iamthesgt

This is homework. I have to create two tables with certain constraints. However, I keep getting syntax errors, and I really have no clue exactly how to format it because there are so many different 'templates' out there. Here is what I have so far. [CODE] create table Departments (Department_ID …

Member Avatar for dan420
0
177
Member Avatar for iamthesgt

In writing a CGI script, I have come across several errors. As I went through and fixed the errors, I seemed to get all of the syntax errors but as I completed the last ones, a long list of errors came up that I did not understand. In trying to …

Member Avatar for iamthesgt
0
267
Member Avatar for iamthesgt

This is another homework problem. I thought it was easier, and I wouldn't need help, but I keep getting a segmentation fault when running the program. The assignment is to use a recursive function to output the amount of candybars we can buy with a user-inputted amount of money. Each …

Member Avatar for markshah2
0
609
Member Avatar for iamthesgt

This is homework. I was writing a bash script that accepts a list of group names on the command line and produces a group report detailing the group id and the number of group members identified in /etc/passwd for each group. Output will look like: Group Report Group GID Count …

Member Avatar for iamthesgt
0
302
Member Avatar for iamthesgt

In writing a logging program for a SDK Engine, I have come across some problems. The logging function works fine when called with test programs, but when I run it in a full test of the SDK Engine, no file is ever created. I added some testing lines to make …

Member Avatar for iamthesgt
0
395
Member Avatar for iamthesgt

I've got Open SUSE 11.4 and Ubuntu 10.10 now installed on the same machine now, but I need to edit the GRUB so I can boot into them. I can boot into OpenSUSE fine, but since it overwrote the Ubuntu bootloader, I can't seem to get it to boot into …

Member Avatar for iamthesgt
0
270
Member Avatar for iamthesgt

In writing a logfile program, I need a function to output the log entries between two dates. I use [ICODE]seekg()[/ICODE] and [ICODE]tellg()[/ICODE] to save the position of the first entry to output and last entry and then go back later to output the data in between. However, [ICODE]seekg()[/ICODE] when told …

Member Avatar for iamthesgt
0
261
Member Avatar for iamthesgt

I have a CSS-styled HTML drop-down menu that I want common across all web pages. Right now, I have the HTML coding in each file, but the CSS link is broken in subdirectories so the stlying does not work. How can I get the CSS to be linked properly and …

Member Avatar for iamthesgt
0
192
Member Avatar for iamthesgt

This is homework. Here is the problem: Produce a list of employee last name, first name and department name. Use appropriate, user friendly column aliases. This is from the tables [ICODE]DEMO.EMPLOYEE[/ICODE] and [ICODE]DEMO.DEPARTMENT[/ICODE]. The relevant column names are [ICODE]LAST_NAME, FIRST_NAME, DEPARTMENT_ID[/ICODE] (from [ICODE]DEMO.EMPLOYEE[/ICODE]) and [ICODE]DEPARTMENT_ID, NAME[/ICODE] from [ICODE]DEMO.DEPARTMENT[/ICODE]. As you …

Member Avatar for iamthesgt
0
186
Member Avatar for iamthesgt

I am writing a program that writes log entries to an external text file and returns them upon request. When called, the return function should output the log entries between two user- submitted dates or outputs the last 100kb of the file if that's what's requested. The logfile stores each …

Member Avatar for raptr_dflo
0
195
Member Avatar for iamthesgt

In writing a logger for an application, the datestamp ends up adding a new line. The datestamp function is as follows: [CODE]string log_class::get_time() { time_t rawtime; time (&rawtime); string timestamp; timestamp = (ctime (&rawtime)); return timestamp; } [/CODE] This outputs something like [ICODE]Tue Sep 6 14:58:35 2011[/ICODE], but when called …

Member Avatar for NathanOliver
0
738
Member Avatar for iamthesgt

I am making a video recording program that takes input from a v4l2 webcam and outputs to an avi file. Using gstreamer in c, I have got most of the program to work, and the file is created. I can get the pipeline to display the video to the screen, …

0
161
Member Avatar for iamthesgt

In my current project (homework), I am storing a pair of values in a map. The ID is an integer, and the value is a string (name of a movie) and an integer (rating of the movie on a 1-5 scale). I need to get the elements into the map …

Member Avatar for drkybelk
0
216
Member Avatar for iamthesgt

Is there a way to move data from one map to another without it being re-sorted? Ex: I have a map of [ICODE]<int, pair<string, int>[/ICODE] where the key is the number of vowels in the string (int) and the pair contains a moviename as string and rating as int (multiple …

Member Avatar for iamthesgt
0
202
Member Avatar for iamthesgt

I was reading through the SIP documentation and was confused on a few things. I can't figure out what code to implement to open a transaction between a server and client. What IP address and port and what encoding should I use (for a video server). Thanks for any help.

Member Avatar for ziggystarman
0
315