132,729 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for stereomatching

I have to learn how to deal with socket programming because of my job(I don't have any experience about it) My company ask me to learn ACE because I have to maintain our ex and new products After I google the information from the internet, most of the users say …

Software Development c++ socket-programming
Member Avatar for stereomatching
0
1K
Member Avatar for bops

This is not a question about C/C++ as such, but I couldn't think of where else to put it. I would like to know how to call either gcc or g++ and specifying that all error messages that are to occur when compiling some source code are to be written …

Software Development c++
Member Avatar for swagatata
0
4K
Member Avatar for karthi_selva

Hi, i am new to pthread area. i like to pass the dynamic argument into the thread function. example [CODE]function(void *value) { printf("%s",(char *)value); }[/CODE] here i like to pass dynamic argument when thread is running. so is it possible in pthread? please share your ideas...

Software Development c
Member Avatar for gerard4143
0
127
Member Avatar for daddiedan

Hi I have a database of one table with headings as shown DONOR COURSE TITLE START DATE END DATE MIN/DEPT ANNOUNCED TO DATE RECEIVED BY HRD DONOR DEADLINE DATE FORWARDED NOMINEES BENEFICIARIES-MALE BENEFICIARIES-FEMALE NUMBER ACCEPTED REASONS FOR NON-ACCEPTANCE DATE OF ENTRY NATIONAL COUNTY The table is in access. I would …

Software Development visual-basic
Member Avatar for hkdani
0
100
Member Avatar for Alkis90

Is it possible to open programmaticaly vlc and send to it one subtitle file (programmatically too)? For example I want to run vlc(I know how to do that) and then programmatically press video-->subtitles track-->open file... If it's not possible with c# is it possible with any other language?

Software Development
Member Avatar for Alkis90
0
168
Member Avatar for Jfunch

The problem I am trying to solve is Write a program using fork() to compute average of N numbers. The parent process forks a child process that takes input from the user, adds all the numbers and returns the sum and the count of numbers to the parent process that …

Software Development java
Member Avatar for JamesCherrill
0
2K
Member Avatar for bonzo2008

Hello in a case there I wan't to change letter in an index from 0- 28 to just 0 - 26 it's commandbuttons, and the 3 letters should be dissaabled, the code is in swedish just now, but I will change that in language settings to english letters. and how …

Software Development visual-basic
Member Avatar for hkdani
0
159
Member Avatar for tomtetlaw

How can I check if my program was launched from the command line or from windows explorer?

Software Development c
Member Avatar for tomtetlaw
0
151
Member Avatar for Seba Sama

Hello! I need to import some data from a .csv file, process it and write results in an Excel file. So... I use ADODB recordsets and Microsoft Text Driver: [CODE] Dim rs As New ADODB.Recordset Dim cn As New ADODB.Connection Dim cnStr As String cnStr = "Driver={Microsoft Text Driver (*.txt; …

Software Development visual-basic
Member Avatar for ChrisPadgham
0
174
Member Avatar for infantheartlyje

Here is my code . Switch statement doesn't working in this. why? [CODE] int callprocess(FILE *File) { int Rec = 0; // record number char tcode[3]; //char buffer[30]; struct timeval b,e; long int tms,tme; do { printf("\nMenu :Init, Dummy, Add or Quit ( I, U, A or Q) : "); …

Software Development c
Member Avatar for infantheartlyje
0
184
Member Avatar for Prakash_8111

Hi Guys, how to call one shell script from another script inside a loop ? any suggestion most welcome. Prakash

Software Development shell-scripting
Member Avatar for nikita.
0
3K
Member Avatar for baltazar

Hi all, I'm having trouble coming up with the correct XSLT code and was wondering if anyone could point me in the right direction. This is what I need to do... I've got an xml tree with pages like so: [CODE] <page> <title>A<title> <subtitle>I</subtitle> <item>1</item> </page> <page> <title>D<title> <subtitle>V</subtitle> <item>7</item> …

Software Development xml
Member Avatar for mrame
0
184
Member Avatar for tenshi

hi, i'm new to vb.net.is it possible to link item in drop down list to image? for example if i click "computer" in the drop down list, the image of the computer will appear. sorry if my question sounds silly. i'm really a newbie in vb.thanks for ur help.

Software Development image vb.net
Member Avatar for tenshi
0
292
Member Avatar for ronster342000

I am writing a program that reads customer info from a file, then reads transactions from another. I am building my ADTs for this as I cannot use templates for this class yet and have a cpl of issues. The linked list contains the clientID as an int and a …

Software Development c++ linked-list queue
Member Avatar for MonsieurPointer
0
246
Member Avatar for Se7Olutionyg

I want to readfile and merge them all to the arraytotal array , It works fine for individual file, don't know why, it printed out some weird character for the final Thanks [CODE]#include <stdio.h> #include <string.h> #include <stdio.h> #include <stdlib.h> using namespace std; #include <iostream> void fnSortHeap(char array[], int arr_ubound); …

Software Development c
Member Avatar for MonsieurPointer
0
158
Member Avatar for yup790

I am trying to make a Fibonacci sequence program to display up to the nth term(only positive numbers). For some reason it doesn't seem to work. [CODE]import java.util.Scanner; /** * * @author Toby */ public class Fabonnacci { /** * @param args the command line arguments */ public static void …

Software Development java
Member Avatar for JamesCherrill
0
245
Member Avatar for Aviras

Dear Daniwebbers, I have a problem regarding the calling of methods on a protected parent object from within a child object, the protected parent object being a child object of the same class. I have a class HostileArea, wich has a "protected DungeonRoom[][] dungeon", DungeonRoom being a child of HostileArea. …

Software Development ide java oop
Member Avatar for JamesCherrill
0
223
Member Avatar for gedas

hey Guys, im creating a clas that is to be used in a HashMap to map phone numbers to name. for example : map.put( new PhoneNumber(207, 8269600, 260), “Paul”); [CODE] public final class PhoneNumber { private final int areaCode; private final int number; private final int extension; public PhoneNumber(int areaCode, …

Software Development java
Member Avatar for gedas
0
118
Member Avatar for srieja

is it possible to send data from remote object to the server in C# remoting using TCP channel???? Please reply thanking you in advance....................

Software Development c#
Member Avatar for devloper
0
368
Member Avatar for fatzky_04

Hello all! I don't know what is wrong with my program. I know i'm missing something but still i can't figure it out. #define TRUE 1 #define FALSE 0 int search2Darray(int x) { int i, j; for (i =0; i< 2; i++) for (j=0; j < 10; j++) if (a[i] …

Software Development c++
Member Avatar for stereomatching
0
96
Member Avatar for lwisnas

[code] import java.util.*; import java.text.*; public class FactorialApp { public static void main(String[] args) { // create a Scanner object named sc and intializ variables Scanner sc = new Scanner(System.in); // perform Factorial application when user enters "y" or "Y" String choice = "y"; while (choice.equalsIgnoreCase("y")) { //get input from …

Software Development java
Member Avatar for hiddepolen
0
108
Member Avatar for dwiniers

Hello there! anybody can help me how to execute this application? Thanks you very much! Here's the application goes: Write an application that contains four command buttons. The command buttons should be blue and have boldfaced, italicized caption that read change color, change bold, change height, change width. When the …

Software Development visual-basic
Member Avatar for dwiniers
0
324
Member Avatar for SCass2010

Hi everyone, I'm trying to write a script that will list all files and their details within a directory - so for example, if I have the structure /home/ /home/folder1/ /home/folder2/ /home/folder3/ It will print something like +---------------------------- | /home/folder1/ +---------------------------- | *files here* | *size* +---------------------------- | /home/folder2 +---------------------------- …

Software Development data-structure shell-scripting
Member Avatar for griswolf
0
120
Member Avatar for Se7Olutionyg

I want to open different file names, at first it work well on couple files, but it has to be in order, what if i open random file like fall01, fall05,srping09 etc Thanks [CODE]#include <stdio.h> #include <string.h> #include <stdio.h> #include <stdlib.h> using namespace std; #include <iostream> int main() { FILE …

Software Development c file-system
Member Avatar for D33wakar
0
190
Member Avatar for LMHmedchem

I have an unusual situation where I had a hard drive with some bad sectors and moved the data to a new drive. I did the move with cp -Rfp and >& logfile. I moved the data (~285GB) with about 20 copy commands. The >& should have given me information …

Software Development hard-drive perl ruby shell-scripting storage
Member Avatar for L7Sqr
0
168
Member Avatar for Zssffssz

Ok I'm working with a program that uses addresses and with all of the Interesting charecters (. / \ and spaces) I need tO get a line of characters. I know how to do this with ifstream but how would I do this with plain old cin?

Software Development c++
Member Avatar for pseudorandom21
0
104
Member Avatar for dennysimon

hello all In a cells of a datagridview I place a gif image name new.gif . I can show it immediately after the the form load even I try to print this datagridview cell(0,0) value which is an image name new gif: Object imgobj= dataGridView1.Rows[0].Cells[0].Value; but then I do not …

Software Development image
Member Avatar for dennysimon
0
200
Member Avatar for fatzky_04

Hi. I didn't declare a,b,c from the first program but i did after the first program. What am i missing? [CODE] #define m 2 #define n 2 void matrixaddition() { int i,j; for (i=0; i<m; i++) for (j=0; j<n; j++) c[i] [j] = a[i] [j] + b[i] [j]; } #include …

Software Development c++
Member Avatar for coolbeanbob
0
133
Member Avatar for Wilha

[CODE]import math print "Select unknown variable" print "a, b, or c" print equation=input("> ") if equation == a: b=input("Enter b: ") c=input("Enter c: ") a=math.sqrt(c ** 2 - b ** 2) print "a= ",a [/CODE] **i get the following traceback Traceback (most recent call last): File "C:\Python27\My Programs\pt.py", line 7, …

Software Development python
Member Avatar for TrustyTony
0
206
Member Avatar for compulove

I created an asp.net login page and I have options that if the user clicks one it can go to different pages. All the other pages are written in aspx.vb but I had to write the last in .cs. I wanted to know if I could link this page to …

Software Development asp asp.net
Member Avatar for thines01
0
158
Member Avatar for solarmotion

The program already can compile and run. But, when we enter the film's code, an error will occurred. We had no idea how to solve it :\ [CODE] public class Entity { private String itemCode; private String title; private String description; private int language; private int time; private String productCompany; …

Software Development java
Member Avatar for Prateek nandan
0
419
Member Avatar for loserspearl

I have my program all working but whenever a user clicks cancel or exit I want the program to close, not throw my catch. Whenever a user throws a catch they have to input their answer twice before it will go back to normal operations. [CODE] import java.util.*; import javax.swing.*; …

Software Development java java-swing
Member Avatar for adarshcu
0
216
Member Avatar for karmstrong

Please see that attached code. My output is as follows Please enter name : dog 0x7fff71771e60 Please Enter Type: Valid Choses Are (Game, Word, Compiler, Spreadsheet, DBase, Presentation : Game 0x7fff71771e60 Please Enter Cost: $ 20 Its like either the pointer or the getline is not clearing out memory properly. …

Software Development c++
Member Avatar for karmstrong
0
174
Member Avatar for karmstrong

I need to write a function that will use the delete command on a pointer. I'm in left field. See what I have so far any suggestions. I don't think I'm quite getting what I need to pass to the function and pass back. #include <iostream> #include "cdrom.h" using namespace …

Software Development c++
Member Avatar for karmstrong
0
129
Member Avatar for jvicta

Can anybody tell me how to fix this...i've tried many ways but it still ends up the same...??? [CODE]//Ch7AppE03JV.cpp //displays an employee's name when the employee's ID is entered //Created/revised by Justin Victa on October 14, 2011 #include <iostream> #include <string> using std::cout; using std::cin; using std::endl; using std::string; int …

Software Development c++
Member Avatar for NathanOliver
0
314
Member Avatar for moparman426

alright iam working on a microwave app its very important anyways ill give up what code ive got soo far and such but when i try to run it i get this error message : Visual Studio cannot start debugging because the debug target Microwave.exe is missing Please build the …

Software Development assembly vb.net visual-studio
Member Avatar for Reverend Jim
0
158
Member Avatar for someidiot

[CODE]#include<iostream> #include<fstream> #include<string> using namespace std; #define months 12 #define temps 2 void getData(int [months][temps],int,ifstream); void testcout(int [months][temps],int); int main() {int y=0; string skipwrd; int mainArray [months][temps]; ifstream in_data; ofstream out_data; in_data.open ("C:\\Users\\Worker\\Desktop\\Ch09_Ex09Data.txt"); getline(in_data, skipwrd); getline(in_data, skipwrd); in_data>>skipwrd; getData(mainArray,y,in_data); y++; getData(mainArray,y,in_data); } void getData(int locArray[months][temps],int x, ifstream locin_data) {int z=0; …

Software Development c++ microsoft-access visual-studio
Member Avatar for mebob
0
174
Member Avatar for felix001

I have a number of lists such as ['BLAH', 19, '11111', 'Fa0/19', '100000000'] I either need to make a list of lists or a dictionary containing lists. What would be the recommended one to do and will make the process of further sorting and text manipulation the easiest. Thanks,

Software Development python
Member Avatar for woooee
0
169
Member Avatar for Manorly

Hey guys! I'm taking a C# class this semester and I've been struggling extremely bad. It's like, I can't get my mind to think simply, everything I think, I over think. When I'm doing labs, I can break down what I want each thing to do bit by bit, but …

Software Development c# ide
Member Avatar for ShadyTyrant
0
139
Member Avatar for TheNNS

This is a somewhat big project for me as I'm not very experienced in c++. The end goal is to read a text file, and read every word in the text file. Each time a new word is read, store it in a vector. If a word is repeated, keep …

Software Development c++
Member Avatar for TheNNS
0
3K
Member Avatar for ehrendreich

I have 3 tables in MSSQL 2008 (ABSTRACT) [INDENT]tblContacts: [/INDENT] [INDENT][INDENT]ContactID: Auto Numbering Int[/INDENT][/INDENT] [INDENT][INDENT]FName: string [/INDENT][/INDENT] [INDENT][INDENT]LName: string[/INDENT][/INDENT] [INDENT][INDENT]Address1: string[/INDENT][/INDENT] [INDENT][INDENT]Address2: String[/INDENT][/INDENT] [INDENT][INDENT]City: string[/INDENT][/INDENT] [INDENT][INDENT]State: string[/INDENT][/INDENT] [INDENT][INDENT]Zip: string[/INDENT][/INDENT] [INDENT][INDENT]ContactType: int[/INDENT][/INDENT] [INDENT]tblStaff:[/INDENT] [INDENT][INDENT]ContactID: int[/INDENT][/INDENT] [INDENT][INDENT]StaffID: AutoNumber Int[/INDENT][/INDENT] [INDENT][INDENT]Title: string[/INDENT][/INDENT] [INDENT][INDENT]Unit: string[/INDENT][/INDENT] [INDENT][INDENT](etc)[/INDENT][/INDENT] [INDENT]tblMembers:[/INDENT] [INDENT][INDENT]ContactID int[/INDENT][/INDENT] [INDENT][INDENT]ApplicationDate: string[/INDENT][/INDENT] [INDENT][INDENT]Membership Date: date/time[/INDENT][/INDENT] …

Software Development mssql
Member Avatar for ehrendreich
0
143
Member Avatar for trantran

I am reading Exceptional C++ (Herb Sutter) and there is something that I don't get at all concerning vector insertion. On page 59 it says: 1) "multi-elements inserts ("iterator range" inserts) are never strongly exception-safe" 2) "for vector<T>.... inserts and erases (whether single- or multi-elements) are strongly exception-save as long …

Software Development c++
Member Avatar for trantran
0
503
Member Avatar for geekman92

hi i am trying to make a program that whilst ingame (magicka if anyone is interested) reads what is pressed on the keyboard and the simulates a combination of keyboard key down and keyboar key up and mouse press. eg if i press NumPad0 it would simulate Key Press A, …

Software Development c#
Member Avatar for cybereality
0
2K
Member Avatar for vaironl

Hello forum, vaironl here. I would like to notify you all that I'm in an IB- Computer Science class (I'm learning a lot as I go, since I promise to skip the normal CS course). I would like to know if I could design this frame for my final project, …

Software Development java
Member Avatar for hfx642
0
110
Member Avatar for vishwanath.m

hey guys i just get time limit exceeded error wen ever i submit a pgm wid large values.. how to avoid it. do not use file to store variables

Software Development c++
Member Avatar for Narue
0
150
Member Avatar for bluehangook629

Hey guys, I thought getting yesterday's date was now() - 1 but visual studio is giving me error saying '-' is not the right operator. I think now() - 1 was used in VB6. whats the correct way of obtaining yesterday date?

Software Development vb.net visual-studio
Member Avatar for bluehangook629
0
684
Member Avatar for CrazyMisho

ok i try to write a linked list of objects from one class here is the the class: [CODE] class detail{ int code; string unit; string name; float price; public: detail(int c, string u, string n, float p); int get_code(){return code;}; string get_unit(){return unit;}; string get_name(){return name;}; float get_price(){return price;}; …

Software Development c++ linked-list
Member Avatar for Chilton
0
147
Member Avatar for violette

here's my code; [CODE]SELECT b.alert_id,cur.stock_code, current_name,d.board_name,cur.year_id, cur.period_id,cur.fixed_assets, prev.year_id AS prev_year_id,prev.period_id AS prev_period_id, prev.fixed_assets AS prev_fixed_assets, (cur.fixed_assets*100/prev.fixed_assets) AS "total1", c.para1 FROM company_financial AS cur LEFT JOIN company_info a ON (a.stock_code=cur.stock_code) LEFT JOIN company_alert b ON (b.year_id=cur.year_id) LEFT JOIN ref_alert_parameter c ON (c.alert_id=b.alert_id) LEFT JOIN ref_board d ON (d.board_code=a.board_code) LEFT JOIN ref_sector …

Software Development vb.net
Member Avatar for adam_k
0
117
Member Avatar for BoBok2002

I drew a circle to represent a human face. I am drawing an arc to represent the mouth but I am having troubling positioning it in the right place. I have checked the value of x and y in the computation of the arc but can't seem to figure out …

Software Development c++ opengl
Member Avatar for BoBok2002
0
135
Member Avatar for ryufire
Member Avatar for cgsig
0
11K

The End.