199,114 Archived Topics
Remove Filter ![]() | |
let's just say that this page i'm writing is called 'registry.php'. this page will be more-or-less a template, however contents of this page will vary depending on one variable. the variable is the ID number of a newlywed couple (in the database). the content of registry.php will contain tables. each … | |
I'm trying to validate some fields in my form but can't get it to work. I think it's because of the submit button code. Could someone please help identify the problem? [code]<script language="JavaScript"> function validate_form ( ) { if ( document.leaveform.dc1.value == "" ) { alert ( "Please select start … | |
Say I have an edit box in a MFC application (let's call it IDC_EDITBOX), and I enable (because I have it greyed out by default)it using [code=c]GetDlgItem(IDC_EDITBOX)->EnableWindow(TRUE)[/code] How do I set the focus to that control? In other words, when I enable the control, how can I get the cursor … | |
I'm pretty much new to using files, so I'm not sure if this is a banale question. Here's the assignment: "[I]Each line of the file dec.txt contains a whole number (>0). Write a program that creates a file called hex.txt. Each line of this file is to contain a string … | |
I am working to add some simple user input checking into my program; there are three (3) int choices from a menu-- 1, 2, or 3. The user must choose one of these. I am able to check whether or not the input is 1, 2, or 3-- but I … | |
i need a spider mailling maching from anybody plssssssssssss | |
Hey, while doing an assignment I came across a code. however, when I run it I get no output. would like to know why if anyone knows..... [code] #include <stdlib.h> #include <stdio.h> int main(int ac, char** av) { unsigned register int j,sum,dcnt, limit; unsigned int number,max; if (ac != 2) … | |
I keep reading about endless loops, is that something you want or do you always have to control an endless loop situation? | |
Hi all, Platform: winxp Version: Python 2.3 I have a task of reading files in a folder and creating an one excel file with sheets, one sheet per file, with sheet named as filename. I am facing problem in handling special characters. I am using XLRD and XLW package to … | |
Hello. I have this problem: I have a let's say [1000] char string and i want to split and print this on the screen on more lines, so that each and every line has MAXIM 43 characters. The string may contain spaces and the words would be printed on the … | |
I really dont know what category this should go in but, I would like to connect to a server made in vb to get data, how would i do this and how would i get php to send data to the server? | |
the problem is that, the function is only replacing the number that I want to delete with th number after it, but everything remains the same after. e.g. it is showing me 1 2 3 5 5 6 7 8 9 10 [code] #include <stdio.h> int rem(int a[],int pLen,int pos) … ![]() | |
I'd like to build a structure in Javascript. I think it will be an array in which each element will have multiple properties. For example var person = new Object(); person[0].firstName="John"; person[0].lastName="Smith"; person[0].phoneNumber="555 1234"; person[1].firstName="Jane"; person[1].lastName="Robinson"; person[1].phoneNumber="555 6789"; etc. and then things like document.write(person[0].firstName); This doesn't seem to work. What … | |
Hello Friends... I've written a code for Simulating Paging algorithm using LRU... The code is in the attached file. Now on windows... it is executing perfectly, giving the output i desire... but on Linux REGAL gnu compiler, it is giving me the error... Error file is attached... as error2.jpg SEGMENTATION … | |
hi members...please help me about this code...the sum code is like the attachment below... | |
I am writing a MFC application and would like to change the font size of some of the static text. So I use the following. [code=c] CFont m_font; m_font.CreatePointFont(120,"Times New Roman"); m_Test.SetFont(&m_font); m_Test.SetWindowText(strTest); [/code] Now my question is, how to I get the layout editor in Microsoft Visual C++ to … | |
I have just started C++, i have problem in understanding virtual functions. can anybody tells me what are v.f. and most important what is there importance in C++. Thanks | |
My problem is....i have done a project in VB.NET with SQL SERVER as the database. My project was running perfect until last day when i tried to run the project i got some errors. Errors : 1) Could not copy temporary files to O/P directory 2) The file Call Center.exe … | |
Hi all... I have just started scripting in KShell and I have this code that extracts information out of a database under different fields. Now, if I further want to refine the data that is being extracted, say matching with a particular term under a particular field, can you please … | |
Hello Everybody, I want to know that how we can delete the record from the datagrid only, that data should not be deleted from the database. i.e., It should not be seen in webpage,but it should remain in the database. Please help me out soon.My existing code is: [CODE=asp.net] <%@ … | |
I am still struggling with understanding the creation of objects. For example. int[] x = {4,5,6}; int[] y = new int[x.Length]; Why is it that for the first array, we can initialize it without the use of the new keyword yet in the second line, we need the new keyword? … | |
how can I force program in pascal to write its own source code from .exe file?:-| | |
Hello there. This is obviously my first post on DaniWeb, as I just found the site in searching for a solution to my issue. I've read over the site rules, as well as the forum rules regarding homework help. Let me start out by saying I am [U]not[/U] looking for … | |
I'm having a hard time generating a "secret word" that is random. I'm taking a random word from the wordList array, and using it in the playOneRound function. Here is part of my instructions: [code] Using wordList[wordnum] as the secret word, this function plays one round of the game. It … | |
Hi everyone, av been trying to come up witha program that will tell if a string is a plindrome.This wat i did and i can't realise the error; [code] #include<iostream> #include<string> using namespace std; int main(){ string s; string s2; getline(cin,s); s2=s; string::iterator pos; string::iterator pos2; bool check;check=true; for(pos=s.begin(),pos2=s.end()-1,pos!=s.end(),pos2!=s.begin()-1,pos++;pos2--;){ if(*pos!=*pos2){ … | |
I'm working on a plugin system for my application. The plugins are in the form of a dll loaded by my application using [inlinecode]LoadLibraryEx[/inlinecode]. I store information about each plugin in an arrray of structs: [code] typedef struct _InternalPluginInfo { UINT ID; HMODULE Module; int Flags; PluginInfo Info; } InternalPluginInfo; … | |
Hello. I'm having problems filling an array from a text file. I cann't figure out how this works with getline. I can read read and store ALL the lines, but what I'm trying to do is to store ONLY the names of the employees (from the text file) to a … | |
Can a query running a selected database access a table on other database? How do I grant this kind of access? Going further, can a Foreign key be created among diferent databases? I'm running around this doubts for a while. Any help is welcome. []s | |
Wrestling with more concepts here... Other than the syntax, there doesn't ssem to be much difference between the aggregation and public inheritance. Pretty much they allow the usage of functions from another class-right? One can slightly modify the the inherited function but not the aggregated ones? Why so many ways … | |
In need some homework help again. Please I am new at this and PLEASE PLEASE do not post YELLING post at me for wrapping the code because I don't know what that is. If you would like to explain it to me in plain english I am willing to learn. … | |
[code]//This progam accepts marks of 4 different subjects by 5 students. //Then calculates the average score of each subject and displays the result. #include<iostream> using namespace std; //This functions, get the average of each subject. int avrgProg(int PDenis,int PTriza,int PWinnie,int PTeddy,int PJoy); avrgProg= avrgp; avrgp=(PDenis+PTriza+PWinnie+PTeddy+PJoy)/5; return avrgp; int avrgSD(int SDDenis,int … | |
[COLOR=#000000]Hi every body [/COLOR] [COLOR=#000000]I don't JavaScript language well. I want to know about visibility or disable html's controls on a web page. I have a web page and I want disable some controls and print my page and after that the controls back to preview condition.[/COLOR] [COLOR=#000000]Pleeeeeeeeeeeeeeas help me:sad: … | |
I know absoulutely nothing about compiling source code other than you need MS Visual Studio to compile it. I have the express (free) version of it, can you compile in this version? | |
I am writing a MFC application and need to have the program pause for a few seconds. I am trying to use the OnTimer event and am having troubles. The following code causes the program to freeze and stop responding [code=c] m_iCount = 0; SetTimer(ID_TEST_TIMER, 1000, NULL); while(m_iCount <= 5) … | |
I'm try to let a form have a drop down bar (linking to a field in a table) which when any name within it is click it will display on the report that area | |
So I have been plugging away at this program. I had to create a menu and have 3 sections. Section A asked for a limit, then the user enters that many numbers and it tells them which number was the largest. DONE that. Section C quits the program.. that works … | |
I'm trying to write a function that takes an array of unsorted positive integers N elements long. The function should return the same array (no new allocations) with all duplicated integers replaced with -1 and moved to the end of the array. So for example, the string: 1136788999 becomes ... … | |
Hello, I'm having a Form.Show() hang up on me. I currently have one class that has a listen() method that runs in its own thread. Then I Have another class that is my actual Windows Form with all the GUI stuff. The listen() method calls methods of my Windows Form. … | |
![]() | here's a piece of window procedure. What does DefWindowProc do in this program. [code] LRESULT CALLBACK WndProcedure(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam) { switch(Msg) { case WM_DESTROY: // user wants to exit PostQuitMessage(WM_QUIT); break; default: // Hand off unprocessed messages to DefWindowProc return [B]DefWindowProc(hWnd, Msg, wParam, lParam)[/B]; } … |
If I want to see a Dll file of a Program,and I have not find it in the declares and the 'system' file. I know it is there,how can I find it? thank you! | |
Once I completed the following code, compiled.....this is what displayed: Number of 'mild' jars sold. (That's it). Is there something wrong with my C-prompt? Did I miss something? the code is sappose to: [COLOR=#000000]Prompt the user to enter the number of [/COLOR][COLOR=#000000]jars sold for each type. Once this sales data … | |
Well i am running my site [URL="http://www.it101.uni.cc"]www.it101.uni.cc[/URL] , i am planing of adding a php back end to this site... I was thinking of making some simple and that works... in a Slackware type of way... so that you would be able to control everything with the help of a … | |
Which Graphics User Interface (GUI) would you recommend for a beginner? I have seen some examples of Tkinter, wxPython and GTK. | |
Hi again, I have the following question, I have the following problem: I have an array and a function that receives the array, the problem is that the function is declared like this [code] void MyFunc(int **my_array) { for ( i=0; i<10; i++) (*my_array)[i] = 0; } [/code] And when … | |
need visual basic codes for dictionary search to take care of situations when people type in wrong spelling. Examples like google search engine, when people type in wrongly search engine actually helps to correct the words that are spelled wrongly Also need visual basic codes of auto fill in of … ![]() | |
hey i wanted to start a tomagatchi clone project with vb.. im having problems with it... cann't get it so that as time pass( every 1 minute) that the hunger,boredom, and need to poop increase i tried to use the timer but i cant get it down... an example would … | |
I'm posting the specs. I still can't figure it out but I'm trying. | |
Here's a better explantion. Thanks! This part"A" is already finished: A). Create a menu with the following options, (1) Add, (2) Update, (3) Delete, (4) Sort, (5) Print, and (6) Quit. Create an array of 10 strings up to 25 characters long and initialize each one to "none". Each item … | |
I was just wondering whether there is a software-based web server that can provide ASP and/or ASP.net functionality, just like IIS would to Windows. Reason why I asked is because I shuffle between Windows (home) and Macs (work) and the only things that I carry around with me is a … | |
I have a color data file that gives the color name and its RGB values, for instance like this: [CODE] red RGB(255,0,0) green RGB(0,128,0) blue RGB(0,0,255) brown RGB(165,42,42) gold RGB(255,215,0) maroon RGB(128,0,0) [/CODE]I like to create a color dictionary from this file that looks like this: [CODE] {'red': (255,0,0), 'green': … |
The End.