199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for boo_lolly

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 …

Member Avatar for boo_lolly
0
3K
Member Avatar for shaun09

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 …

Member Avatar for katarey
0
119
Member Avatar for atrusmre

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 …

Member Avatar for atrusmre
0
136
Member Avatar for Sin-da-cat

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 …

Member Avatar for Sin-da-cat
0
214
Member Avatar for mattyd

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 …

Member Avatar for mattyd
0
135
Member Avatar for gsm2
Member Avatar for batista06

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) …

Member Avatar for batista06
0
105
Member Avatar for sneekula

I keep reading about endless loops, is that something you want or do you always have to control an endless loop situation?

Member Avatar for bumsfeld
0
131
Member Avatar for katharnakh

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 …

Member Avatar for bumsfeld
0
154
Member Avatar for Prahaai

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 …

Member Avatar for Prahaai
0
91
Member Avatar for nugget93

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?

Member Avatar for nugget93
0
73
Member Avatar for s88

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) …

Member Avatar for nicentral
0
88
Member Avatar for hwfa

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 …

Member Avatar for MattEvans
0
113
Member Avatar for siddhiinfomedia

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 …

Member Avatar for Ancient Dragon
0
115
Member Avatar for kaka_shi

hi members...please help me about this code...the sum code is like the attachment below...

Member Avatar for Ancient Dragon
0
160
Member Avatar for atrusmre

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 …

Member Avatar for Ancient Dragon
0
105
Member Avatar for Luckychap

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

Member Avatar for Ancient Dragon
0
140
Member Avatar for B.H

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 …

Member Avatar for B.H
0
139
Member Avatar for code321

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 …

Member Avatar for code321
0
91
Member Avatar for Dhruv Shah

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] <%@ …

Member Avatar for web_developer
0
100
Member Avatar for foo

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? …

Member Avatar for Godfear1
0
99
Member Avatar for killaruna
Member Avatar for MattEvans
0
115
Member Avatar for Luwigie

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 …

Member Avatar for Luwigie
0
170
Member Avatar for aznballerlee

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 …

Member Avatar for aznballerlee
0
166
Member Avatar for teddy13

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){ …

Member Avatar for may4life
0
107
Member Avatar for webspy

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; …

Member Avatar for webspy
0
156
Member Avatar for earlyriser

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 …

Member Avatar for earlyriser
0
202
Member Avatar for fcaserio

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

Member Avatar for fcaserio
0
105
Member Avatar for JRM

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 …

Member Avatar for ~s.o.s~
0
96
Member Avatar for jessiegirl

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. …

Member Avatar for ~s.o.s~
0
97
Member Avatar for teddy13

[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 …

Member Avatar for may4life
0
84
Member Avatar for raheleh

[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: …

Member Avatar for digital-ether
0
158
Member Avatar for bnrup

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?

Member Avatar for Ancient Dragon
0
155
Member Avatar for atrusmre

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) …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for graveman2k3

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

Member Avatar for Uncle Gizmo
0
121
Member Avatar for mcweezle

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 …

Member Avatar for WaltP
0
196
Member Avatar for steveballinger

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 ... …

Member Avatar for steveballinger
0
113
Member Avatar for pszlachetka

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. …

Member Avatar for lok_tan
0
75
Member Avatar for GreenDay2001

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]; } …

Member Avatar for Ancient Dragon
0
109
Member Avatar for jetyan

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!

Member Avatar for jetyan
0
140
Member Avatar for AnG'

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 …

Member Avatar for manutd
0
116
Member Avatar for badran

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 …

Member Avatar for badran
0
105
Member Avatar for sneekula

Which Graphics User Interface (GUI) would you recommend for a beginner? I have seen some examples of Tkinter, wxPython and GTK.

Member Avatar for vegaseat
0
435
Member Avatar for dev.cplusplus

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 …

Member Avatar for Ancient Dragon
0
122
Member Avatar for jeevitha

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 …

Member Avatar for iamthwee
0
83
Member Avatar for lazysloth

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 …

Member Avatar for lazysloth
0
123
Member Avatar for nanacat
Member Avatar for peter_budo
0
106
Member Avatar for CurtisBridges

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 …

Member Avatar for CurtisBridges
0
103
Member Avatar for msniner

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 …

Member Avatar for jbennet
0
102
Member Avatar for sneekula

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': …

Member Avatar for sneekula
0
194

The End.