43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for techno_weenie

Hello, I'm trying to split a string into 4 separate strings using a delimiter "\n" The initial string is: "/usr/bin/ssh \n * \n 147.188.195.15, 147.188.193.15, 147.188.193.16 \n 22" I would like it to be split up into four different char's so that char *programnames = "/usr/bin/ssh \n" char *uids = …

Software Development c
Member Avatar for jephthah
0
144
Member Avatar for gunbuster363

Just as the title. I want to store some strings inside the program, and later I may store them(the string) in a text file. And I do not want duplicating strings. As I learned from school, I should use a hash table for it, but I may build a bad …

Software Development python
Member Avatar for lrh9
0
107
Member Avatar for kekekerush

Hey all, I have to program a method that is called makelist, and I'm not sure how to program it. If I already have a list in my external file, how would I grab the list from there? I was thinking of infile.get(char) and keep going until it reaches the …

Software Development c++ linked-list
0
62
Member Avatar for petzoldt01

I am newish with python (ActivePython v2.6), and I am trying to automate AutoCAD 2010 (Acad) using module win32com (using acad's COM/ActiveX interfaces). Most of the interface is pretty straight forward, but I am getting hung up on functions that need to use VARIANTS to pass numerical arrays. Im not …

Software Development python
Member Avatar for petzoldt01
0
472
Member Avatar for cubicbox

hi experts I am now writing a procedure for my main program in order to let people search for their required entries (eg. user inputs name and the program returns the name together with the tel no. etc.) The procedure is now in its simplest state as users can only …

Software Development data-structure pascal seo
Member Avatar for FlamingClaw
0
160
Member Avatar for gnarlyskim

trying to do input checking for an alpha character inputted where a numeric one is needed. I've implemented this function firstChoice() to allow a certain response is '2' or '3' was picked and then another certain response for anything other than '0 '1' '2' or '3'. I must add another …

Software Development c++
Member Avatar for gnarlyskim
0
442
Member Avatar for conord

Firstly - I'm a complete noob when it comes to Python. I'm currently trying to launch an external program called Dazzle from Python with a the path to an xml file as a parameter. I've tried a few different options and can get Dazzle to launch - but the xml …

Software Development python xml
Member Avatar for woooee
0
143
Member Avatar for PixelHead777

I'm trying to find a way to take a list of one-letter strings, for example, ['e', 'n', 'o', 't', 'r'] and find every order possible of these letters. I'll be able to, on my own, target the three words I would want for this, 'noter', 'toner', and 'tenor' (unless the …

Software Development python
Member Avatar for PixelHead777
0
89
Member Avatar for lrh9

I'm having a problem with 'os.path.getmtime'. I've been doing some research into generating '.pyc' files and I am able to retrieve the source modification time (in seconds) as recorded in the '.pyc' file. It is merely the second set of four bytes unpacked as a long integer. [code=Python] import random, …

Software Development open-source python
Member Avatar for lrh9
0
2K
Member Avatar for gunbuster363

When I am processing the data, I put them inside some beautiful data structure for convenience, but then again I am done with my work, and I want to save the result in hard drive, I need to store them in a txt file, and for later usage, I need …

Software Development data-structure hard-drive python
Member Avatar for sahiti
0
105
Member Avatar for Robbert

Hi - I have tried and tried with this, googled and what knot, but to no avail. I just need the frame to clear. The code below shows the overlay problem which I tried clearing with all types of panel.Clear() / self.panel.Clear() combos etc. [CODE] import wx class MyFrame(wx.Frame): def …

Software Development python
Member Avatar for vegaseat
0
175
Member Avatar for doctorjo5

I need to search for the hours of the day that each email was sent, then I need to create a dictionary from those. Then I need to print the dictionary at the end with the count of how many times an email was sent at each hour. Here is …

Software Development python
Member Avatar for doctorjo5
0
208
Member Avatar for dr.e

Hello.... Can someone tell me why this code doesn't workand how it should be done? DataGridView1.Item(0, 0) = ds2.Tables("tabCeniki").Rows(i).Item(0) this is the error mmgBox ........ Unable to cast object of type 'System.Int32' to type 'System.Windows.Forms.DataGridViewCell'. thx dr.E

Software Development vb.net
Member Avatar for dr.e
0
99
Member Avatar for stumbler

Hello, In the tread [url]http://www.daniweb.com/forums/thread122708.html[/url] there is shown how to do this check in .net 3.0 framework. Is there a possibility to do the same in .net 2.0? Thanks for your reply

Software Development asp.net printer vb.net
Member Avatar for stumbler
0
81
Member Avatar for yila

two static arrays size 10 need to be copied to an empty target array size 20. like this: you copy from the first array the nums till arr1[i] = 0 then you switch to the second array and copy to the nums till arr2[i] = 0. then you switch back, …

Software Development c
Member Avatar for yila
0
162
Member Avatar for Noliving

The program I'm trying to create is one where it asks for an amount of money, lets say 10 bucks. It will take the input and then randomly come up with an amount of change that equals the input. So for example if you were to enter 10 bucks it …

Software Development python
Member Avatar for lyndon enero
0
91
Member Avatar for jemz

hello please help me on this project form3 ..everytime i always add data it always already exist please help me to solve my problem..heres my code [code] Option Explicit Public con As ADODB.Connection Public cmd As ADODB.Command Public mch_rs As ADODB.Recordset, index As Integer, m_mchno As String Public sql As …

Software Development open-source visual-basic
Member Avatar for kinwang2009
0
87
Member Avatar for ssmokincamaro

Hey everyone, I'm fairly new to python and have hit a brick wall in a program I'm writing. I need to read in a text file containing values (No problems here) the text file looks like this 10, .25, .26 12, .44, .34 4, .22, .56 The numbers 10, 12, …

Software Development python
Member Avatar for snippsat
0
146
Member Avatar for abarlowa

ok I am trying to convert find cost per sq yd. in $$.$$ format. I have all the coding correct except it has more than two decimal places. Here is my code: [CODE]//delcare const const int number = 9; //declare variable double length; double width; double area; double cost; double …

Software Development
Member Avatar for abarlowa
0
158
Member Avatar for abarlowa

I need help with the errors in my code. Here is my pseudocode along with my program code following: [B][U]This is my pseudocode:[/U][/B] Start Declare Variable int length int width int area Print (“Enter length of room in ft.: “), Input length Print (“Enter width of room in ft.: ”), …

Software Development c c# c++
Member Avatar for abarlowa
0
1K
Member Avatar for higuain14

Hi I'm new to c++ programming. This is my first ever program, it calculates the average of numbers that the user input. The user can input up until 10 numbers. I get a segmentation fault for some reason. Any ideas? [CODE]#include<iostream> using namespace std; int main() { int numbers[10]; // …

Software Development c++
Member Avatar for naresh.M
0
115
Member Avatar for newcuser

I have gotten my program to the point that it allows me to enter the data I want to enter. However, I do not know how to get the program to loop back correctly and ask for salesperson number and stop the loop when I enter -1. Help![CODE] #include <stdio.h> …

Software Development c
Member Avatar for jonsca
0
203
Member Avatar for klactose

Hello all, I have a program that creates an array of structs. It is consistently exhibiting 1 of 2 problems and I can't figure out exactly what is wrong, but the problems seem related to each other. Problem 1: For some reason the category member of the mediaItem struct fails …

Software Development c
Member Avatar for gerard4143
0
174
Member Avatar for ananthaninfo

Dear Friends, I am new to Visual basic 2005 as I have used VB6 till now. I wish to do a database application using Microsoft Access 2003 and Visual basic 2005. I am very happy, if any one could give the step by step instruction to connect Access, insert, delete, …

Software Development microsoft-access vb.net visual-basic
Member Avatar for ananthaninfo
0
116
Member Avatar for gnarlyskim

As you can see I am new here. I found this site from googling a question about a getChoice() function , and I was able to learn how to implement the function in my project to fit my needs from the post. ([url]http://www.daniweb.com/forums/thread162456.html[/url]). Well anyways, I have more issues that …

Software Development c++ mathematics
Member Avatar for gnarlyskim
0
1K
Member Avatar for adrawat

Hi, Im trying 2 write the contents of a input file to an output file in reverse order using file I/O in C. Is there a more efficient way 2 do it? [CODE] int main() { FILE *fp1,*fp2; char ch,arr[100]; int i=0; if( (fp1 = fopen("input.txt","r")) == NULL ) { …

Software Development c file-system
Member Avatar for adrawat
0
399
Member Avatar for Jiwe

Hello, today I got a new issue on the program im developing so.. the issue is that I want to change a file in this path [B]C:\Users\[USERNAME]\AppData\Roaming\[PROGRAM NAME].[/B] But the thing is when a user's computer has a different language then english this path changes to something like this [B]C:\[Users …

Software Development c++ operating-system
Member Avatar for Jiwe
0
145
Member Avatar for instinctfx

I have this one specific pas file that i try to open, its just plain text in it, i can view it elsewhere (notepad, wordpad etc!) BUT [B]When i open it in d2007, she displays it as hex[/B] [CODE]756E697420494658 5F5574696C733B0D 0A0D0A696E746572 666163650D0A0D0A 7573657320537973 5574696C732C2043 6C61737365732C20 53796E634F626A73[/CODE] WTF!!! Any Ideas ??

Software Development ide pascal
Member Avatar for instinctfx
0
120
Member Avatar for Stefano Mtangoo

I work out a small project. I need to Get list of folders in each drive. Up to now I can get the drives but I have no Idea on how windows treats Drives. Does it treat them as super Directories (Super folders) that contain many sub-folders? If not How …

Software Development c++
Member Avatar for Stefano Mtangoo
0
120
Member Avatar for MrYrm

First of all im new here so Hi all.. im also new to c/c++ have been a java php and actionscript developer for some time now and finally have time to learn something new so im gonna go for c++ im just tryna get familiar with everything but i ran …

Software Development actionscript c++
Member Avatar for Stefano Mtangoo
0
122
Member Avatar for Kruptein

I have a Frame called ChangeDirPanel and an other one called MyFrame, the last one is the top-lvl window and has a function called file_show_dir which updates a listbox in that same window. (both frames have their own class, is it better to have the same class?) I want to …

Software Development python
Member Avatar for Stefano Mtangoo
0
276
Member Avatar for newcuser

Hello, I am attempting to rewrite a program in c. Here is what I have so far. Thanks in advance for assistance. [CODE]#include <stdio.h> void sales[ salesPerson ][ product ] += value; int main() { const int PEOPLE = 5, PRODUCTS = 6; double sales[ PEOPLE ][ PRODUCTS ] = …

Software Development c c++ ios
Member Avatar for mitrmkar
0
183
Member Avatar for wwsoft

Hello , I a creating program in witch objects are stored in the namespace var in var.h. How do I make the var namespace available to more than one file without having redefinition errors ? [CODE] ### var.h ### namespace var { ... } ### main.cpp ### #include "var.h" //multiple …

Software Development c++
Member Avatar for wwsoft
0
145
Member Avatar for dragontruong

I am unable to print out the error message when there is no input. I've tried different methods for it, but I can't get it to work. What am I missing? print should be: p2 invalid input but I get: p2 segmentation fault when I do this with an int …

Software Development c
Member Avatar for dragontruong
0
111
Member Avatar for mebob

i was trying to make a program that uses the chudnovsky algorithm to calculate pi with this code: [code] #include <cmath> #include <iostream> #include <cstdlib> using namespace std; float fac (float num) { float result=1; for (float i=1; i<=num; ++i) result=result*=i; return result; } int main() { double pi=0; float …

Software Development algorithm c++
Member Avatar for vmanes
0
441
Member Avatar for wdow

I'm trying to write code for a very basic version of the game 24. This code will receive either two, three, or four integers and determine if there is any way that these numbers can add, subtract, multiply or divide to the number 24. Locations of parenthesis can change as …

Software Development algorithm c++
Member Avatar for wdow
0
186
Member Avatar for ceyesuma

Hello. I am building a XML reader class DOM. Does anyone have a link that has some code where the text from a JComboBox.selectedItem()("text") for example or any text is used to find a Node in a the DOM document and then work with that nodes siblings?

Software Development xml
Member Avatar for ceyesuma
0
86
Member Avatar for katwalatapan

Hello, I have a query on dynamic allocation of memory in C. I am storing 4 seconds of audio data in a buffer allocated with sufficient memory using malloc function. If I wanted to record another 4 seconds of audio in the same buffer, I would have to increase the …

Software Development audio c
Member Avatar for katwalatapan
0
185
Member Avatar for arafat_alam

i am facing problems of destructor in the following code.destructor is not working.can any one help plz???? [CODE] #include<iostream> #include<cstring> #include<cstdlib> using namespace std; class strtype { private: char *p; int len; public: strtype() { p=(char *)malloc(sizeof(char)); *p='\0'; len=0; } void getString(char *str) { len=strlen(str); p=(char *)realloc(p,sizeof(char)*len); strcpy(p,str); } void …

Software Development c++
Member Avatar for arafat_alam
0
132
Member Avatar for srinath3

[CODE]#include<iostream.h> class alpha { int x; public: alpha(int i) { x=i; cout<<"\n alpha constructor"; } void show_alpha(void) { cout<<"x="<<x<<"\n"; } }; class beta { float p,q; public: beta( float a,float b):p(a),q(b+p) { cout<<"\n beta constructor"; } void show_beta(void) { cout<<"p="<<p<<"\n"; cout<<"q="<<q<<"\n"; } }; class gamma:public beta,public alpha { int u,v; …

Software Development c++
Member Avatar for srinath3
0
171
Member Avatar for adam84

I have a form called privateOrder, and two other forms. in the first form when I double click on a datagridview it opens the privateOrder form. in the second form I have a button, when I click it also calls the privateOrder form. I want to know if there is …

Software Development vb.net
Member Avatar for adam84
0
95
Member Avatar for JAM1011

Hey all, I wondering if you could help me get my head around this problem. [CODE] connetionString = "Provider = Microsoft.ACE.OLEDB.12.0;Data Source = KellihersLawnmowers.accdb" cnn = New OleDbConnection(connetionString) cnn.Open() overDue = "SELECT tblCustomer.*, tblMachineHistory.*, tblPayments.* FROM (tblCustomer INNER JOIN tblMachineHistory ON tblCustomer.Customer_ID = tblMachineHistory.Customer_ID) INNER JOIN tblPayments ON tblMachineHistory.Machine_ID = …

Software Development microsoft-access open-source vb.net
Member Avatar for JAM1011
0
93
Member Avatar for Kruptein

Again I have problems with my classes :s I want to test if there is still text in the text_ctrl, if so it should give a warning in which you can chose to cancel, save or continue; but somehow the [icode]deditor.st = "continue"[/icode] is not passed :s [code=python]#!/usr/bin/env python # …

Software Development python
Member Avatar for Kruptein
0
123
Member Avatar for tetron

Hi I have what at first seemed to be a very simpe problem: I have a Microsoft Package that requires me to use nmake to make a lib file. I am unfamiliar with make files as I use visio and XP. Now I had to move somethings due to restricted …

Software Development c++ microsoft-access
Member Avatar for mitrmkar
0
523
Member Avatar for antihero0021

Trying to use an oledbdatareader to search through a table in my Access database. When I hit the command button to search it throws an error that says no data exists for row/column, but if I execute the command against the database it returns exactly what I am looking for. …

Software Development microsoft-access open-source
Member Avatar for antihero0021
0
482
Member Avatar for Lolalola

Hi, i download wmi from this: [url]http://timgolden.me.uk/python/wmi/index.html[/url] (windows version) [CODE=syntax] import wmi c = wmi.WMI () for process in c.Win32_Process (): print process.ProcessId, process.Name [/CODE] And run this script in Python 2.6 IDLE Show this error: Traceback (most recent call last): File "C:\Users\lola\Desktop\test.py", line 1, in <module> import wmi File …

Software Development python
Member Avatar for Lolalola
0
165
Member Avatar for bobsta

I am trying to render a very simple scene by loading various parameters from a file (MLC.txt) When compiling I receive the following error main.cpp: In function ‘void renderScene()’: main.cpp:77: error: ‘pBeam’ was not declared in this scope H

Software Development c++ image opengl
Member Avatar for bobsta
0
242
Member Avatar for TechSupportGeek

Hello world, I would be grateful if you helped me. I've built a text editing application and I would like it to load values/user settings from the Windows Registry. Here's my code but it is somehow wrong (I believe it whatsoever has to do with wrong syntax but it could …

Software Development microsoft vb.net
Member Avatar for TechSupportGeek
0
244
Member Avatar for bd338

Hello everyone! This is the code for my A86 Assembler: [CODE] jmp _executor _executor: mov ah, 00 mov al, 18 int 10h end _executor [/CODE] It Assembles fine, but when I try to run it, I get this dialog popping up, saying: [QUOTE] This system does not support fullscreen mode. …

Software Development assembly
Member Avatar for Harko33
0
201
Member Avatar for mansi sharma

can somebody tell me how to get file type..of any file..For .txt file file type is [B]Text Document[/B],for doc file - [B]Microsoft Word Document[/B] & so on. Plz help me out,I m not finding anything on the net related to it.

Software Development file-system vb.net
Member Avatar for kvprajapati
0
952

The End.