199,114 Archived Topics
Remove Filter ![]() | |
I have a really wierd problem using OpenGL. I've verified all my code passes the correct mesh, correct texture, to the correct shader. When I use the same texture with multiple instances of the same mesh and the same shader located at different locations on the screen it shows up … | |
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. | |
![]() | 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)) { … |
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? | |
Hello folks, I need to create a html table dynamically, so I used HtmlTable and HtmlTableCell ... but I need to put inside a HtmlTableCell another HtmlTable object, so the structure will be: HtmlTable | ---HtmlTableRow | ---HtmlTableCell | ---HtmlTable I hope someone could help me Thanks Omar | |
[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; … | |
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] | |
Hi, I m getting this compiling error in asp.net .. "Could not write to output file 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\needsunlimited\a2548f63\3bfeee38\App_Web_eg94tkhh.dll' -- 'Access is denied. '" Please any Help me.. | |
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 … | |
![]() | I recently came across an example where binary data was stored in a column which related to the sum of all foreign key id integers. This was the scenario: id [int] from [int] message_title [varchar,100] message [text] to [int] I assumed the 'to' field was a foreign key on the … |
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 … | |
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 … | |
Hello all. I wasn't sure if I should post this here or under DB? I'm a PHP user that is new to C#/ASP.NET/MS SQL. I have a table with rows of string values (not sure why they were made strings as they are numbers but thats what they are). I … | |
I'd like to redirect the user to another page, i.e. after a login check. I'm used to doing this via header location directive, it's all ok, but, if I'd like to print a message and redirect the user in 2/3 seconds, like on this forum when you login? Is it … | |
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) */ … | |
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] … | |
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 | |
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 … | |
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 … | |
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 … | |
Ok; I have a table with a list of products, for example ProductID Name Price 1 Red 2 2 Blue 1 3 Green 3 4 Orange 3 5 White 4 6 Blue 5 I want to give people the option of "featuring" products, and also to be able to control … | |
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) { … | |
Hi all, I am trying to update Table[land] with the following data (simplified): [u]Scenarios:[/u] Num_1 like [A-Z], Num_1_Index like [1-9] Num_2 like [A-Z], Num_2_Index like [1-9] ..... Num_26 = [A-Z], Num_26_Index = [1-9] --------------------------------------------- Update land set Num_1_Index = case when Num_1 like 'A' then '1' when Num_1 like 'B' … | |
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 = … | |
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) $ … | |
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 … | |
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 … | |
| |
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 … | |
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); … ![]() | |
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] | |
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 … | |
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 … | |
Hi, [B]This was Mysql Backup Batch Script [/B] Script named as [B]mysqlbackup.bat[/B] REM [at] echo off for /f "tokens=1" %%i in ('date /t') do set DATE_DOW=%%i for /f "tokens=2" %%i in ('date /t') do set DATE_DAY=%%i for /f %%i in ('echo %date_day:/=-%') do set DATE_DAY=%%i for /f %%i in ('time … | |
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 … | |
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> … | |
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) … ![]() | |
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 … ![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
HI all, I have make two form. one in which i will fill value then is will go in next page after submitting with $_Post['value'] . But i need this value in my javascript code in next page . So how i can fetch this value in my javascript code. … | |
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 … | |
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? | |
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, … | |
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 … |
The End.