132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for maxiam

Hi I am trying to learn c++ by using it where I can at work. Usually I can muddle through by searching forums and although I might not end up with an elegant piece of code, my programs seem to work ;) What I am trying to do, is open …

Software Development c++ file-system ios
Member Avatar for maxiam
0
139
Member Avatar for rk4088

Hi all, I'm having the situation to calculate as follows: The time difference between 4:00pm and 1:00 am is 9 hours. This is derived by subtracting 4 from 12 which equals 8 and adding 1 hour for the time between 12:00 and 1:00. I'm having 2 datetimepicker in starttime i've …

Software Development vb.net
Member Avatar for Jx_Man
0
1K
Member Avatar for lfrazier

Hello Everyone! I just joined the community. I need to let you know up front that I am not a programmer. I am starting the journey by learning VB.NET. I downloaded MS Visual Basic Express 2008. I need to do some straight forward apps such as collecting user input to …

Software Development sql vb.net visual-basic
Member Avatar for Jx_Man
0
101
Member Avatar for himsymcpp

hi friends, I am having a problem with IO operations in C++. This is the path: ----------------- C:\Symbian\9.1\S60_3rd_MR\Epoc32\winscw\c\system\Apps\test\ I am having 4 files say f1.txt (size 400 KB) f2.txt (1 kb) f3.txt (1 kb) f4.txt (1 kb) These four files reside in the following above given path. The files in …

Software Development c++ file-system
Member Avatar for Ancient Dragon
0
128
Member Avatar for Venks

Hai Friends Iam using RMI concept for my project, i want to connect client and server by using internet connection , but its working fine on LAN connection, it gives following Exception [code] java.lang.RuntimeException: java.rmi.ConnectException: Connection refused to hos t: 125.17.11.229; nested exception is: java.net.ConnectException: Connection refused: connect at Client.init(Client.java:23) …

Software Development client-server java java-swing
Member Avatar for Venks
0
224
Member Avatar for Black Magic

Hey, I know this question has been asked allot but I am wanting to know of where I could get a simple window GUI book, I am not wanting winprog, but infact a book, and tbh could you direct me to a good book, but is quite slow and has …

Software Development c++ gui
Member Avatar for Narue
0
283
Member Avatar for dinilkarun

I would like to collapse whitespace in a string of the followinf foramat using a some pre defined functionalities. XXXXX<space>-<space>XXXX shoud be converted to XXXXX-XXXXX XXXXX<space>-XXXXX shoud be converted to XXXXX-XXXXX Please help

Software Development python
Member Avatar for dinilkarun
0
236
Member Avatar for Pgmer

Hai all, in my appliction Im writing functionality to find keywords entered by user if keyword found i need to return the 10 words before keyword and 10 words after keywords, Im able to find the keywords using Instr method.. Im not getting how to get 10 words Before and …

Software Development vb.net
Member Avatar for Pgmer
0
200
Member Avatar for Q8iEnG

Hi guys :) I'm working on a project ( a game ) this is the code [CODE]#include <iostream> #include <fstream> #include <string> using namespace std; //####### Begin Class Node ########### class Node { public: string data; Node* link; Node(string x) { data = x; link = NULL; } }; //####### …

Software Development c++ file-system
Member Avatar for Q8iEnG
0
208
Member Avatar for HLA91

Hi Guys This has been going on for a while but now I have finally decided to do something about it. A few weeks ago I compiled a small C program from a book I was reading. It compiled fine but I wanted to make a slight change to the …

Software Development c
Member Avatar for HLA91
0
105
Member Avatar for nanawan

hi... when i save a data from text box it didnt show at the listview how to do that? and someone please check my delete coding Private Sub cmdSave1_Click() If MsgBox("Are you sure you want to save?", vbYesNo + vbQuestion) = vbYes Then Set rec = New ADODB.Recordset rec.Open "Select …

Software Development listview visual-basic
Member Avatar for nanawan
0
107
Member Avatar for Reg74

I'm getting the above error at this section --> SetCurDir ("\\Cls000008\actuarial_data\Xtractor") in my code below ... please help ! _____________________________________ Option Explicit Private Declare Function SetCurDir Lib "kernel32" _ Alias "SetCurrentdirectoryA" (ByVal lpPathName As String) As Long Public Sub Extract_POL(strinputfile, lngTOTpno, blnPOL, blnIDAT, blnTcode, _ blnHPTAR, blnTerm, blnOccode, blnAge, blnPollines, …

Software Development visual-basic
Member Avatar for Reg74
0
438
Member Avatar for ryan311

can anyone help me? where can i DOWNLOAD visual basic language for free? please help me thnx!!

Software Development visual-basic
Member Avatar for bornok15
0
83
Member Avatar for k.wiseman

Hi! I just started poking around with Python recently, and I decided to do a text-adventure game project to practice some of the core concepts. Trying to think of ways to go about it, I stumbled on this DaniWeb post: [URL="http://www.daniweb.com/forums/thread55140.html&highlight=python+text+rpg+tutorial"]http://www.daniweb.com/forums/thread55140.html&highlight=python+text+rpg+tutorial[/URL] Gave me a lot of inspiration, and I took …

Software Development python
Member Avatar for k.wiseman
0
157
Member Avatar for Acidburn

Hey guys I'm new to C#.NET but I'm trying to create my own Form using my own GUI code. However I'm unsure which project I need when using Visual Studio 2008. A normal person would assume that selecting Windows Forms Application would be correct. However you'd be wrong it would …

Software Development c c# c++ gui visual-studio
Member Avatar for vuyiswamb
0
190
Member Avatar for red devils

Hi, i'm new to C programming and i could use some help with an assignment. i would like to store a word in a linked list, with each letter of the word in a separate node of the linked list. i would then like to traverse the linked list to …

Software Development c linked-list
Member Avatar for red devils
0
174
Member Avatar for ac3this

I have to design and implement a new linked class called StudentList, to represent and manipulate the records of students enrolled in a course. The data field for each record in StudentList must contain: student name (string type) studentId (int) (from 0 to 10000) dept (string) major (string) In the …

Software Development c++ data-structure engineering linked-list
Member Avatar for VernonDozier
0
151
Member Avatar for tirso

Hi to all, I want to create an application containing a lot of fields, my problem is the client want to maintain the records of payment and the date. I have created database containing only one tables. How can I handle this kind of database management, the goal is, if …

Software Development microsoft-access vb.net visual-studio
Member Avatar for sierrainfo
0
94
Member Avatar for iansane

Hi, I am trying to learn how to read the binary of a file, such as a jpg. I got something going here but at run time in windows it says there is an error and the file must close. I'm not even sure if I'm going in the right …

Software Development algorithm c++ encryption ios
Member Avatar for Ancient Dragon
0
933
Member Avatar for Vallnerik25

I have seen that I can use a variable as the specification for the dimension of a one-dimensional array to be allocated by the "new" keyword. The book I'm reading explains that this can be extended to two or more dimensions but with a restriction, only the left-most dimension can …

Software Development c++
Member Avatar for Vallnerik25
0
108
Member Avatar for Fuse

I have a problem guys. It's due to duck typing. Now I expected to run into something like this sooner or later, but I can't help but feel there's a better solution. [code=Python]import re def patternMatching(pattern, string): matchList = re.findall(pattern, string) print '\n'.join(['%s' % v for v in matchList]) [/code] …

Software Development python
Member Avatar for paddy3118
0
138
Member Avatar for HeroOfTime

Hi. I am attempting to make a program that plays a midi file, like a [URL="http://java.sun.com/j2se/1.5.0/docs/api/javax/sound/midi/Sequencer.html"]sequencer[/URL] would do, but also have the sequencer send off any NOTE_ON or NOTE_OFF messages to an external method. I have looked through the api and cannot find exactly what I am looking for. I …

Software Development api java open-source
Member Avatar for HeroOfTime
0
131
Member Avatar for besktrap

Hi everyone! I'm new here, so just letting you know that. Anyway. I'm currently writing somewhat of a game in pygame and had a few questions for anyone who would be able to help me. I have created a python program that moves and object in a window, and I …

Software Development python
Member Avatar for besktrap
0
107
Member Avatar for GGAB

Hi, I've searched far and wide but I haven't found exactly what I need. I have to programs communicating through named pipelines (windows XP). One is sending strings to another. The one who's recieves inserts them into an array. Now, here's the problem: this program is multi-threaded, each thread has …

Software Development c++
Member Avatar for GGAB
0
143
Member Avatar for michinobu_zoned

Take the following code: [code]#include <stdlib.h> int main(int argc, char **argv, char **envp) { int sum; atoi(&argv[1]);//statement with no effect. Passing argument 1 of ‘atoi’ from incompatible pointer type atoi(&argv[2]);//statement with no effect. Passing argument 1 of ‘atoi’ from incompatible pointer type sum = argv[1]+argv[2]; //error: invalid operands to binary …

Software Development c
Member Avatar for dwks
0
2K
Member Avatar for Shaun32887

My boss has recommended a hash table, but I'd like some second opinions as to what you think the best way to accomplish this task is. My problem is that I don't know C++, so I've been learning things as I needed them to finish this project. I'm kind of …

Software Development c++ data-structure
Member Avatar for Shaun32887
0
118
Member Avatar for krazineurons

hi friends! i was searching for a base conversion script in python when i was stumped with the following code snippet [code language=python] >>> number = 1000 >>> hex2bin = {"0":"0000", "1":"0001", "2":"0010", "3":"0011", "4":"0100", "5":"0101", "6":"0110", "7":"0111", "8":"1000", "9":"1001", "A":"1010", "B":"1011", "C":"1100", "D":"1101", "E":"1110", "F":"1111"} >>> "".join([hex2bin[h] for h …

Software Development python
Member Avatar for krazineurons
0
157
Member Avatar for dab

I'm trying to upload a file to my PHP form on my website. I have no idea how to go about this. I'm sure I need to break down the file into a transferable form, I'm not sure where to go about this. Then I need to send an HTTP …

Software Development php vb.net
Member Avatar for dab
0
212
Member Avatar for beamkirk

// I am trying to complete this for my class I am taking. Can anyone assist me in completing the task a ?Newbie is struggling with. [code] import javax.swing.*; import java.awt.event.*; import java.awt.*; import java.util.*; // program uses class Scanner /** * * */ public class Inventory { /** * …

Software Development java java-swing
Member Avatar for Ezzaral
0
111
Member Avatar for Q8iEnG

Hi guys :) Thanks first for the help, yesterday.. I really did well in my exam :), thanks a lot again :) Well, I guess I need a little bit help in this I have a file, and I want the whole paragraph in the file to be inserted in …

Software Development c++ file-system
Member Avatar for Q8iEnG
0
122
Member Avatar for &rea

Hello! I have got an image and I want to change the value of his pixels and paste it into another image. pixel(r,c): is actual pixel b: changes from 0 to undetermined number, for example 100. The problem comes for example when b=2;I think that the method doesn't understand the …

Software Development c++
Member Avatar for Prabakar
0
202
Member Avatar for mike issa

Im writing a code and included many library files (.lib) with it , when i compile all is fine 0 errors and 0 warnings , but when i built i got problems. when using VC 6.0 i got this warning [CODE]LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of …

Software Development c++
Member Avatar for mike issa
0
337
Member Avatar for mod_motox

Hi All, I work on C++, and I am using an number of hash maps in my code. The problem is that, erasing of all the map iterators does not work, I get segmentation faults. If I dont erase the iterators, then everything works fine. I am afraid if I …

Software Development c++
Member Avatar for Duoas
0
174
Member Avatar for jithusdani

Hi folks, In My Application i have used the date function to find the difference between two date.but while executing is showing that runtime erroe 424,object required. Can anyone plz help me fast... This is the code i have used Dim date1, date2 As Date Dim diff As Long date1 …

Software Development visual-basic
Member Avatar for Jx_Man
0
165
Member Avatar for jbimontes

this is a simple quiz program for addtion that generates random numbers and records the attempts and correct answers that were taken. i have a problem, i need to have the percentage of the scores. i have a text2(number of attempts) text3(number of correct answers) the text4 should automalically have …

Software Development visual-basic
Member Avatar for Jx_Man
0
141
Member Avatar for warun

Dear All, i have been working on a DataGridView for quite few days. Now its comes that a particular column has to show user name in display and in internal it should return user id. DataGridView is populated from a DataSource which will only supply user id. anybody knows there …

Software Development vb.net
Member Avatar for warun
0
87
Member Avatar for tactfulsaint

Hello everyone, please i need help, i have been trying to send and retrieve password and username to the database using RMI. please i need a code snipet that can help me to achieve that. i use MS Sqlserver 2000.

Software Development java
Member Avatar for tactfulsaint
0
82
Member Avatar for zguidon

Hi everybody, I have a DataBase defined in Access. One column is auto incremented. I am trying to insert a row through a code in C#. I don't include data in the auto incremented column, because it is auto incremented..., but the computer returns that the number of columns does …

Software Development c#
Member Avatar for Ken Sharpe
0
410
Member Avatar for raphaelsolis

can somebody tell me the codes for updating the datagridview records.. here's what i wanna do. for example there are 3 columns name , middle , last. i want to update last but the problem is my datagridview doesnt update and still remain the same record but no errors..

Software Development
Member Avatar for Ken Sharpe
0
115
Member Avatar for Beemer

Hi all , I have a program I have written for a question , but it has one problem I dont seem to be able to solve , the last part has to calculate the average hours spent on each module , yet it keeps coming up with answers I …

Software Development c++
Member Avatar for Beemer
0
105
Member Avatar for flash121

Greetings, I'm trying to write a function which gets two pointers as parameters. The first one "points" to the start of the first linked list, the second one is currently on null, but it will later serve as a pointer to the start of another linked list. The function is …

Software Development c++ linked-list
Member Avatar for flash121
0
100
Member Avatar for geeths

i need to develop an instant messaging using Jabber. Can anyone suggest me which jabber client api is the best for developing IM in java. Any samples on jabber client will be helpful. thanks & regards,

Software Development api java
Member Avatar for amjad277
0
77
Member Avatar for cam875

Ok, a few questions on fstream with C++ and winsock 1. Is it possible to search all the tagged lines that say Item I.D. for a specific value that is a variable such as CharacterItemID is 108 than search all the tagged lines that say Item I.D. for 108 and …

Software Development c++ client-server
Member Avatar for cam875
0
185
Member Avatar for Scruffstone

Hi All, I'm trying to pass a variable from a form to a perl script. It produces the error:- "CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers." when run it (call it from the click of a submit button on an html …

Software Development perl
Member Avatar for Scruffstone
0
53
Member Avatar for rriiddaa

hi all my name is rida i'm from lebanon 21 years old i'm in CNAM university and studying informatic i have a project about java language and i didn't know any thing about this language since i have an accedent in the begining of the year and i didnt watch …

Software Development java
Member Avatar for javaAddict
0
163
Member Avatar for rickstar123

Hi All, Im desperate to write a hex file in Delphi. Effectively I have a Decimal value, say 580 which I convert to Hex: 02 44 And I need to put this into a Hex file (multiple times) - 25000 times per file Each line in a similar hex file …

Software Development delphi file-system pascal
Member Avatar for Duoas
0
2K
Member Avatar for bjaanes

Hi =) I am very new to c++ and have started messing around with some lines of code, but I am totaly stuck on this one: [CODE] #include <iostream> #include <string> #include <sstream> using namespace std; int main() { int antnames; cout << "How many names do you want to …

Software Development c++
Member Avatar for Nick Evan
0
147
Member Avatar for integer*09

Hi all, the while loop in my code dont seem to be working as i wanted it to. I wanted it to constantly check if new data is available in the sample.txt but curently after the button click it just finished with one try. is it i put everything into …

Software Development c++ ios
Member Avatar for Ancient Dragon
0
142
Member Avatar for all blacks

The program i am working on currently need to read a file and write into multiple files. Basically i am supposed to separate all the classes in tat file so i actually added an comment line to the file, i extract the classes according to the comments. Now i would …

Software Development c++ ios
Member Avatar for mitrmkar
0
148
Member Avatar for Dannyo329

I 've linked the two files together, main.cpp and myClasses.h, I've declared a variable, but what I'm asking is can you access a variable from myClasses.h? Here's a example of what I got so far: [CODE] //main.cpp #include "myClasses.h" #include <iostream> using namespace std; int main() { ClassOne myClass_instance; s …

Software Development c++
Member Avatar for Dannyo329
0
105

The End.