132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for hughesadam_87

Hey guys, When using the glob import, I want it to scan all of the files in a directory, but not scan other directories in that directory. For example, say I am in a directory with the following files: [CODE]file, file1, file2, DIRECTORY1, DIRECTORY2[/CODE] When I use the glob command: …

Software Development python
Member Avatar for vegaseat
0
154
Member Avatar for C++ Obliviator

I just started with the class vector, but it didn't go so well. :( I tried this: [CODE]void Initialize() { int amount_of_char = 62; vector<char> char_table; for (int i = 97; i < 122+1; i++) // 97 -> 'a', 122 -> 'z' char_table[i] = char(i); for (int i = 65; …

Software Development c++
Member Avatar for C++ Obliviator
0
82
Member Avatar for serkan sendur

i have two cab files to install on pocket pc. after installing the second one, second one's shortcut appears twice in the programs. do you have any idea to fix this problem? thanks.

Software Development
Member Avatar for serkan sendur
0
87
Member Avatar for sravan953

I have made a Java prog which will accept a word and a sentence, and then prints the number of times the word occurs in the sentence... Here is my code: [CODE]class check_number_word { void check(String w, String s) { int l=s.length(),n=0,d=0; String s1=""; for(int j=1;j<l;j++) { s1=s.substring(d,j); if(s1.equalsIgnoreCase(w)) { …

Software Development java
Member Avatar for BestJewSinceJC
0
165
Member Avatar for BestJewSinceJC

What would be the best way to implement dynamic search? So, for example, given the words: the, then, behemoth, abchemto Typing in 'he' would return all of the above words since they all have he in them. Is the best way to do this using a Trie?

Software Development java
Member Avatar for BestJewSinceJC
0
375
Member Avatar for wendwessen

[code=c] #include<stdio.h> // Global variable declaration and initialization. can be used every where in the program body. static char grid[3][3] ={{' ',' ',' '}, {' ',' ',' '}, {' ',' ',' '} }; void Print()//--- to print the grid. prints the grid. { int i, j; printf("\t-------------\n"); for(i = 0; …

Software Development c
Member Avatar for wildgoose
0
118
Member Avatar for mypicturefaded

Maybe deleting the add-in instance isn't really the way to go. So if anyone knows how you can just kill the c# code, let me know. Link to previous post for new members. [url]http://www.daniweb.com/forums/thread199975.html[/url]

Software Development
Member Avatar for mypicturefaded
0
273
Member Avatar for mypicturefaded

I have an add-in program that has several forms. When the program is done with one form, it automatically goes to the next method it needs. (Word add-in). My problem is this...When I hit cancel, I want it to stop all actions with-in my add-in. Right now, if I hit …

Software Development
Member Avatar for mypicturefaded
0
1K
Member Avatar for phillipdaw

I don't know how to describe this error so I just took a picture. The problem involves the rich text box and numericUpDowns displaying what is behind them when the form loads. Pic on Left is wrong pic on right is right. I was drawing my oscilloscope output directly onto …

Software Development
Member Avatar for phillipdaw
0
127
Member Avatar for KirkPatrick

I'm using CsvReader/CsvWriter to read and write my data to csv files. And I have a question about appending lines of data to other certain lines. Lets say I have some data already saved, now I open my other program which has more info that I would like to add …

Software Development java
Member Avatar for KirkPatrick
0
3K
Member Avatar for coachHinesfan

Hello everyone. I have been reading c++ in the book "C++ : A beginners Guide" and I have some questions about overloading a unary operator. This is the code I have been working on/trying to understand : /* Demonstrating overloading a unary operator with a friedn function(prefix and postfix) */ …

Software Development c++
Member Avatar for Dave Sinkula
0
338
Member Avatar for daveofgv

Hello all, I have seen a couple threads on this site in ref to enabling and disabling buttons on different forms, however, I still can't get it right. I have went into the designer.cs and changed the button from private to public modifyer and placed [code] mainpage.adminpanelbtn.enabled == true; [/code] …

Software Development vb.net visual-studio
Member Avatar for sknake
0
1K
Member Avatar for kummetha

How to print the duplicates in a text file. Also the line number where the duplicate text has been found needs to be printed. pls help KZ

Software Development perl
Member Avatar for KevinADC
0
171
Member Avatar for papanyquiL

Hi all, I'm supposed to take an app which can parse the info of an xml document and output it into readable info, however I have no idea where to begin... This is what I have so far: [code] private void button1_Click(object sender, EventArgs e) { XmlTextReader read = new …

Software Development xml
Member Avatar for papanyquiL
0
149
Member Avatar for lanepds

I have defined a variable in bash [code]$ MYDATESTAMP="2009-06-25 21:57:18"[/code] I would like to pass this to perl to perform a simple date conversion. If I enter the date manually it works. [code]$ perl -MDate::Parse -le'print str2time("2009-06-25 21:57:18");' $ 1245992238[/code] My attempts to pass the variable MYDATESTAMP into this command …

Software Development perl shell-scripting
Member Avatar for lanepds
0
937
Member Avatar for malugirl4

I have to create a maze in which a robot has to follow the set of directions given and I'm so stuck on how to make the robot go through the maze. I have most all of it done but I'm still getting errors. The maze includes 1.safe place 2.chasm …

Software Development java
Member Avatar for VernonDozier
0
116
Member Avatar for whiteyoh

Hi All, im trying to get an example to work on a main class passing variables to a class to then return the value. This is the method for variables to be passed too [code] import java.lang.Math; class CalcTest { private int area; public int getArea(int height, int width) { …

Software Development java
Member Avatar for PopeJareth
0
112
Member Avatar for serkan sendur

could you please tell me how can i create c++ rapi application?

Software Development c c# c++
Member Avatar for serkan sendur
0
258
Member Avatar for larscla

Hi, For 2 days i have tried to access a button, by a string value. In javascript this would be very simple, but i can't seem to get it done with c#. Can someone please tell how me to do the following? [code] string buttonname; buttonname = "btnAdd"; buttonname.Enabled = …

Software Development
Member Avatar for sknake
0
3K
Member Avatar for chrissi

Hi, I had some irritation with a "while"- loop, which turned out to be endless. Anyway, i was able to find the problem and reduce it to be shown on the commandline: I "typeset" (and initialize) an array and an integer variable: [CODE]$ typeset -a arr; arr=(bourne again shell) $ …

Software Development shell-scripting
Member Avatar for atucsprof
0
149
Member Avatar for Recursive

I think these two code snippets should have the same effect. The current code is [code] add esp, 36 pop esi sub esp, 40 [/code] which works. I want to replace it with [code] mov esi, [esp + 36] [/code] but replacing my current code with this code has a …

Software Development assembly
Member Avatar for wildgoose
0
132
Member Avatar for wasif005

i have problem with strings is that i read a string from file and save it into another string and then compare with the another string which user enter ....basically i am going to design a login system in which first administrator make your user name and u set a …

Software Development c++
Member Avatar for wasif005
0
120
Member Avatar for kspriya01

hi how to count the cell text in the gridview.

Software Development
Member Avatar for ddanbe
0
251
Member Avatar for kux

take a look at this code: [CODE] template <class T> class C { public: class A { protected: int x; }; class B: public A { protected: void write() { cout << x << endl; } }; }; [/CODE] when I try to compile with g++ i get: test.cpp: In …

Software Development c++
Member Avatar for kux
0
144
Member Avatar for rayken1

open(FILE, "<", "numb.txt" ) || die "Unable to open numb.txt <$!>\n"; while ( <FILE> ) { chomp; $fileHash{$_} = $i++; } close(FILE); open(FILE, "<", "num.txt" ) || die "Unable to open num.txt<$!>\n"; while( <FILE> ) { chomp; if( exists $fileHash{$_} ) { } else { print "$_\n"; } } close(FILE); …

Software Development perl
Member Avatar for onaclov2000
0
144
Member Avatar for yun

Is there any better way to define PreviousDay Function??? plz let me know.. [code=cpp] enum weekdayT { Monday,Tuesday,Wednesday,Thrusday,Friday,Saturday,Sunday }; weekdayT NextDay(weekdayT day){ return weekdayT((day+1)%7); } weekdayT PreviousDay(weekdayT day){ if(day==0) return weekdayT(day+6); else return weekdayT((day-1)%7); } [/code]

Software Development c++
Member Avatar for csurfer
0
286
Member Avatar for ashishchoure

hi friends, i would like to know how to highlight text in dialog's Edit box and List box. Is there any mfc api for that ??

Software Development api c++
Member Avatar for kvprajapati
0
172
Member Avatar for Yellowdog428

I am trying to figure out how to set multiple text boxes/labels with one sql query. I dont need help connecting to the database or anything like that I just need to know how I can write one query to and set multiple text boxes with that one query. here …

Software Development sql
Member Avatar for JerryShaw
0
143
Member Avatar for the_swan

Hi everybody I interested in mobile application ….. and I want to find some ideas to do them I've heard about making some maps for the world , apply office like (word,eccess,powerpoint..etc) and controlling the devices through mobile but actually I did not like one of them .. So can …

Software Development java
Member Avatar for the_swan
0
182
Member Avatar for kostasxx

hi guys, i have this code [code] #include <stdio.h> #include <stdlib.h> int main(){ unsigned long long *x; x = (unsigned long long*)malloc(600851475143ULL*sizeof(unsigned long long)); if (x!=NULL){ printf("success\n"); getchar(); } else { printf("fail\n"); getchar(); } printf("%I64u\n",600851475143ULL); getchar(); return 0; } [/code] this is a part of some program im trying to …

Software Development c
Member Avatar for Tom Gunn
0
122
Member Avatar for JotaPe

Hi to all! I am pretty new to Xpath and I am quite lost. I use Stylus Studio Prof for all things related to XML, and I've been struggling with this apparently simple question for a few days. If I have something like: [code] <sales> <person> <id> <tag>2345X</tag> <name>Doe, Joe</name> …

Software Development xml
Member Avatar for xml_looser
0
108
Member Avatar for colmcy1

Hey all, I'm sure this is a stupid question but I have looked and I cant find :( . i am creating a dialog resource in MFC and i cant find the Controls toolbox. The first time i created a dialog resource the controls toolbox came up automatically but (stupidly) …

Software Development c++
Member Avatar for jencas
0
70
Member Avatar for Hiroshe

Warning, this post contains code for Euler problem 5. Try to solve it youself without looking at anyones code. Its alot more satisfying if you do it yourself. Hello, just found an interesting website called project euler. I managed to get to problem 5 without a too many problems. Anyways …

Software Development c
Member Avatar for iamthwee
0
116
Member Avatar for Mclovin

I want to create subfolders in already existing subfolders. For example, I have a rootdir with about 50 subfolders in it. In each subfolder I want to create about 5-6 new folders depending on the filename in the subfolder. Confusing? YeahIknow.. I think I know how to create new subfolders …

Software Development python
Member Avatar for jlm699
0
3K
Member Avatar for suretd

Hi All, I have to compile a servlet WebStocks.java. It does not compile in TextPad as it cannot locate the javax.servlet packages. I have done my homework, so I know, that the servlet package I am looking for is loaded in Tomcat in my directory: C:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet.jar I …

Member Avatar for suretd
0
174
Member Avatar for gitech

Hai Friends, i want read data from on ejar file to another jar file during runtime with out uisng network connections(like UDP, Tcp etc) and also with out creating external files, is there any way to read data? please help me.

Software Development java tcp-udp
Member Avatar for gitech
0
151
Member Avatar for iamblaise

this is the instruction: //Prompt the user with this menu: 1. Linear Search 2. Binary Search 3. Exit Item 1 is similar to Exercise 1's item 5. This time however, the linearSearch function must be implemented using recursion. Item 2 is what we call the Binary Search. As discussed, the …

Software Development c++
Member Avatar for siddhant3s
0
142
Member Avatar for gsingh2011

Hi, I want to make a program that opens a url, finds the data I need, and returns it to me. The problem is I have to login to the website, and I don't know how to do this. I've looked at some examples, and this is what I have …

Software Development python
Member Avatar for siddhant3s
0
111
Member Avatar for Edward67

i have an XML-file that i want to clean up with an XLST-file and save it as an new XML-file. I am still a beginner but like to learn more. I have used a "for-each" function but i cant find what i am doing wrong. He loops the file, but …

Software Development xml
Member Avatar for xml_looser
0
111
Member Avatar for auhuman

Hi, I am interested in developing a windows application(yet to start). This application needs a dictionary database for cross referencing similar to a unscramble app. where can i get a dictionary database for free to integrate it into my app?

Software Development
Member Avatar for auhuman
0
104
Member Avatar for Firefly1985

Hi everyone, ive been searching around for the last couple days on google and have thus far come up empty handed. im basically looking for a resource of tutorials/homework exercises which also include seperate files with a worked solution. alot of what ive already found seems to be, open notepad, …

Software Development
Member Avatar for Firefly1985
0
102
Member Avatar for nu2cpp

Hi All, I am trying to use z-buffer (also known as a depth buffer). I have researched this online and in books but all I have found so far is a brief description and then they throw an equation at you. The last line is usually, "it is very easy …

Software Development c++ opengl
Member Avatar for nu2cpp
0
2K
Member Avatar for samane

Dear all , I 'm new in vb.net , I wanna use NLP Processor in my project , but it runs with cmd.exe , it means I should open cmd.exe and type this code for run it ." c:\nlp>type\nlp\.... " I have a big problem , I don't know how …

Software Development vb.net
Member Avatar for martonx
0
662
Member Avatar for daveofgv

Hello all, I have a small problem that I would like to ask for help on. I appreciate anyone's reply. I have to convert a program of mine over to C#, however, I am new at C#. I know a good amount of VB.NET, but the C# language is a …

Software Development vb.net
Member Avatar for IdanS
0
141
Member Avatar for VBNick

Sup guys...I tried to make a little program my brother asked for to try and increase his odds of winning the lotto! lol... anywho, It compiles and runs fine on my computer, but I tried it on two different computers running XP, and it doesnt work =( Both computers I …

Software Development c++ windows-vista
Member Avatar for tux4life
0
158
Member Avatar for hjdaniel.sun

Hi, I want to use VB.NET to connect to sql server remotely and input and receive data from the server. Can anyone help me to do it? I really appreciate code example. Thank you very much!!

Software Development sql vb.net
Member Avatar for kvprajapati
0
307
Member Avatar for wxoklp

Iam doing my comp engg in india...we arent taught C in extreme detail in our univ...is it crucial or wil it make things very simple for me in the future if i make sure i get a high level training in C at this initial stage?

Software Development c++ java
Member Avatar for csurfer
0
197
Member Avatar for homeryansta

hello everyone! i usually hang around the c++ area, but I'll need to learn assembly for computer architecture 2 in the fall so here it is. I wrote a simple program to convert temperatures from C to F. PCspim doesn't like it for some reason. here are my codes, it …

Software Development assembly
Member Avatar for homeryansta
0
136
Member Avatar for yun

i want to add a line at run time in title, but i m unable to do so.. in main() getline(-,-) is working fine but not in the below code, it simply skip it when i put values for Course Name and press enter it go to the next line …

Software Development c++ operating-system visual-studio
Member Avatar for pspwxp fan
0
231
Member Avatar for S2009

Hi All I am developing a Windows Application for Library Management System. In my DataBase I have a column named IssueStatus the datatype of this column is bit and by default it adds the value as 0. When I bind the DataGridView Control to this table. The Column named IssueStatus …

Software Development assembly
Member Avatar for S2009
0
111

The End.