132,726 Archived Topics
Remove Filter ![]() | |
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 | |
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++ | |
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 | |
![]() | 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 |
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 | |
[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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
could you please tell me how can i create c++ rapi application? | |
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 | |
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 | |
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 | |
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++ | |
| |
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++ | |
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 ![]() | |
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++ | |
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 ?? | |
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 | |
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 | |
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 | |
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 | |
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++ ![]() | |
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 ![]() | |
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 | |
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 … Software Development apache java java-jsp open-source operating-system session | |
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. | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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!! | |
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? | |
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 | |
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 | |
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 |
The End.