64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for sp00ks

Hello everyone, My problem is that I am creating different objects, and I want them to add themselves to either a List or an ArrayList (difference?) without having to write [I]insects.Add(spider); [/I]after each new object I create. How can I add this in the constructor of the insect class? right …

Member Avatar for DdoubleD
0
160
Member Avatar for arelius

Hello all, I am taking a course in C++ and in Ada. Our professor has given us the choice to be tested in language profficiency in either C++ or Ada. The test format will be of simpler programming problems and more geared towards shortanswer concepts. I was wondering if anyone …

Member Avatar for dgr231
0
240
Member Avatar for Kombat

p1a.c: In function `main': p1a.c:20: parse error before `char' p1a.c:46: parse error before `char' p1a.c:47: `result' undeclared (first use in this function) p1a.c:47: (Each undeclared identifier is reported only once p1a.c:47: for each function it appears in.) p1a.c:47: `basechars' undeclared (first use in this function)

Member Avatar for Kombat
0
148
Member Avatar for AceiferMaximus

Is it possible to call a .dll I made in C#, and use it in my unmanaged C++ code? If so, can someone show me an example of how this is done, or a link to go about doing it. I wasn't able to find much on google, and most …

Member Avatar for AceiferMaximus
1
2K
Member Avatar for cwarn23

Hi and I am looking for a compression mechonism that can compress text (just letters and numbers) into binary or all weird symbols. Does anybody know of any good php/mysql codes as I can't get any to work.

Member Avatar for digital-ether
0
621
Member Avatar for Rkeast

I have an application that when a new user registers, it creates a folder for that user: /users/$user_id It then writes an index.php file to that directory, that contains the following code: [CODE] <?php define('GIVE', 'TRUE'); define('GIVE_PATH', dirname(__FILE__)); require(dirname(dirname(GIVE_PATH)) . '/gp_wrapper.php'); ?> [/CODE] It uses the path info to get …

Member Avatar for Rkeast
0
177
Member Avatar for joewazen

Hello, I have many jsp applications connected to Apache Tomcat 5 and IIS 6 i need to find a way to limit the number of active users in each application either in tomcat or in IIS, i know there is a way to configure server.xml in tomcat but will that …

Member Avatar for joewazen
0
101
Member Avatar for BullzEyezz

I'm making a project that gets folder and file names in a specific path and I want to edit the folder or file names? (e.g: folder name is X.Men.DVDrip I want to change it to X Men DVDrip) I have the path of the folder, but I dont know how …

Member Avatar for BullzEyezz
0
221
Member Avatar for PoisonedHeart

Hi guys, how can I attach or link a file (an "HTML document") - a saved Web page... that when I click a command button, the "HTML document" will be executed, just like double-clicking it in the explorer window. Just view the attached image file for better understanding about my …

Member Avatar for AndreRet
0
995
Member Avatar for sulkhanz

Urgent help needed. i am a newbie, and starting to have a headache with this problem, i am using form to enter firstname so that all the details of that person can be pulled. where am i doing it wrong? its showing me the headings of firstname, lastname, and age …

Member Avatar for sulkhanz
0
118
Member Avatar for gnobber

I have this table (Account) containing fields ID and ParentID. ParentID's value is the ID of the parent account for that account. Now, I set up a trigger that on delete of the parent, all children also gets deleted. But the delete only works one level. I mean when I …

Member Avatar for gnobber
0
119
Member Avatar for AndreRet

A reply on so many data and SQL questions, this attachment has 20 forms with all different connection samples and data related queries. This will put any beginner on the right track to successful coding in vb6. I have put together this sample from numerous others over the past few …

0
859
Member Avatar for normmy

Hi all hopefully I can explain my problem correctly, this is my first post on DaniWeb. I'm currently working on a legacy medical research database that uses a Varchar field to store a decimal number, this field can also be used to store text entered by a researcher on the …

Member Avatar for sknake
0
175
Member Avatar for yonghc

Two lines in the codes below have been remarked out else compiling would fail: //arrcon[1]=*scon; //count << "arrcon[1] " << arrcon[1]; The intention was to assign character values to an array with 5 elements, each with a maximum 35 characters, declared as a string array, arrcon[5],[35]; I was trying to …

Member Avatar for yonghc
0
411
Member Avatar for drabsch

I need to create a form using code. Is there a way to do this. like in the code i need to create a form with a name, caption and text box in it.

Member Avatar for drabsch
0
3K
Member Avatar for linkpraveen

Where ever i see i find a Stack example on generics.. can anyone please point me to some real world example or sample project using Generics. Regards Praveen

Member Avatar for Rashakil Fol
0
2K
Member Avatar for carobee
Member Avatar for markfisher

Dear Programmers, Hi I wrote a simple asm program to output a char on STDOUT in windows (MS-DOS) Here is my code: ------------------------------------ .386 .MODEL FLAT .STACK 256 ;Reserve 256-Bytes .DATA char BYTE "a" .CODE _main: MOV AH, 02h ;Sub-function 02h -> Output STDOUT MOV DL, char ;Char to output …

Member Avatar for wildgoose
0
157
Member Avatar for benjaminhan

Hi All, Is it possible to filter 2 fields in Adodc? My code is shown below: *****-----*****----- With Adodc2.Recordset .Filter = "DOC_DATE = '" & myDate & "'" If .EOF Then MsgBox "Item Not found" .Requery End If End With *****-----*****----- But I need to filter another field on top …

Member Avatar for benjaminhan
0
121
Member Avatar for j_limboo

the php process the page once the vistor clicks on the php based link they go to iframe where it is html. I was looking for a function where I can insert a link call go back to the link and that sould be in html on the frames

Member Avatar for j_limboo
0
109
Member Avatar for benjaminhan

Hi, All I am trying to do 2 level filter on datagrid. First I search the datagrid for same customer number. Than search again by date. The problem I encounter is the first search works just fine (it return me records of a particular customer no.). But when it comes …

Member Avatar for benjaminhan
0
132
Member Avatar for PYGUY

HI, I've got a list of 10 websites in CSV. All of the sites have the same general format, including a large table. I only want the the data in the 7th columns. I am able to extract the html and filter the 7th column data (via RegEx) on an …

Member Avatar for PYGUY
0
1K
Member Avatar for AutoPython

The title doesn't really make sense, as a number with some thing like .23238382 attached to the back of it isn't an integer, but that's not the point. I want to make a program that places commas in the correct position in a number you give. Well, in some of …

Member Avatar for AutoPython
0
192
Member Avatar for Kombat

You are required to write a C program that accepts two decimal integers, say d and r. You may assume that the first decimal integer d is nonnegative and that the second decimal integer r which represents the radix, will be one of 2, 3, 4, . . ., 15, …

Member Avatar for yellowSnow
0
2K
Member Avatar for shine_jose

I wish to use calendar control (i e selected date is to be automatically send to the text box) .The calendar control is to come like a pop up or other way without making position change to other placed controls in the web page.please help me

Member Avatar for serkan sendur
-1
140
Member Avatar for dbmikus

I am writing a function to extract decimals from a number. Ignore the exception and its syntax, I am working on 2.5.2 (default Leopard version). My function does not yet handle 0's. My issue is, the function produces random errors with certain numbers, and I don't understand the reason. I …

Member Avatar for dbmikus
0
237
Member Avatar for lotrsimp12345
Member Avatar for blahbla

hi i need some help with adding a bunch of random numbers. i dont understand how to add them all. heres the code: [CODE]#include <iostream> #include <cmath> using namespace std; int main () { int i,x; srand (time (NULL)); for (i=1; i<=10; i++){ x=rand()%10+1; cout<<x<<endl; } system ("pause"); return 0; …

Member Avatar for blahbla
1
160
Member Avatar for Merovingian

I have two function that replace certain strings in a text file. The first one works perfectly: [CODE] Dim readAlias As String Dim RxDIR As String = Nothing Try RxDIR = Registry.GetValue("HKEY_LOCAL_MACHINE\Software\RLtd\R", "MAIN", False) RxDIR = RxDIR + "\Bin\Configuration\alias.config" Dim sr As StreamReader = File.OpenText(RxDIR) readAlias = (sr.ReadToEnd()) sr.Close() sr.Dispose() …

Member Avatar for Merovingian
0
122
Member Avatar for nateuni

My unit doesn't teach this so I am unaware about the correct syntax to go about what I want to do. I have hit google but have produced no answers to my specific problem. So here we go. I have a series of nested structs. Is this possible that instead …

Member Avatar for nateuni
0
527
Member Avatar for klabak85

Hi all, I'm a completely new user of python (and by new I mean I started using it yesterday) but I've been programming for a couple of years now in other languages such as Java. I have a question to ask you all. So what I want to do is …

Member Avatar for jice
0
150
Member Avatar for Caleb2419

I was given an assignment to create a high/low program (well, the first part anyway) that fulfills the following pseudocode: • Print instructions to the user • Start with the variables high = 1000, low = 1, and tries = 1 • While high is greater than low â—¦ Guess …

Member Avatar for Caleb2419
0
241
Member Avatar for ihatehippies

My app works fine when its a .py file, however as soon as I compile it with py2exe 0.6.9 I get LookupErrors when using the email MIME library. I tried including the "packages": ["encodings"] option in py2exe but to no avail. I'll post the relevant code and traceback. (note: not …

Member Avatar for ihatehippies
0
135
Member Avatar for Link82

Hi everyone, So I need to find out if a date entered is a Sunday. If it is, I gotta do something special with this data. I'm not sure if Datepart will help or how to use it effectively to extract if it's a Sunday or if it's 1st day …

Member Avatar for sknake
0
118
Member Avatar for gendler.max

I'm trying to learn how to add and move objects in VB6 through the code module. SO far i've figured out how to insert an object but have no idea how to change the position. This is what i have so far: Option Explicit Private WithEvents cmdOk As CommandButton Private …

Member Avatar for gendler.max
0
242
Member Avatar for Mafia619

i am tryin to make a c++ program to play tic tac toe.........there are some errors hope u guys can help me out......... [CODE]#include<iostream.h> #include<conio.h> #include<stdlib.h> char matrix[3][3]; void cou(void); int main() { int m,n; char ch='y'; while(ch=='Y'||ch=='y') { for(m=0;m<3;m++) { for(n=0;n<3;n++) { matrix[m][n]='\0'; int i,j,sum=0; while(sum<10) { if(sum==0) { …

Member Avatar for sfuo
0
280
Member Avatar for gokul.raja

Hello, This is Gokul Rangarajan. I need a suggestion or code in JavaScript which reads the MS Word document page settings and number of pages. I know how to open and read a MS Word document, but i couldn't able to get page properties. Some one please help me with …

Member Avatar for gokul.raja
0
190
Member Avatar for jamello

I have a challenge. I need to provide a solution that would enable me capture images of occupants of several motor vehicles scattered around a geographical area. These images could be still images or video transmitted over the web to my server in my headquaters. I can program in JSP, …

Member Avatar for jamello
0
86
Member Avatar for mckinnm

I have a Form A that is displayed on a thread that also contains a heartbeat monitor. When an error occurs, we need the new form, Form B to be displayed until the close button is depressed and for Form A to be non-functional until that time; however, we need …

Member Avatar for mckinnm
0
93
Member Avatar for elgarfan

Hi, I have made a little custom control which has collection of inner properties. I've also successfully tested a custom control which accepted "literal content" (innertext) into a default property. I have both models working separately, but I'd like to combine the two into one control. That is, I want …

Member Avatar for elgarfan
0
254
Member Avatar for rock9449

[code] <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <asp:TextBox ID="TxtPassword" runat="server" TextMode="Password" ontextchanged="TxtPassword_TextChanged1"></asp:TextBox> <asp:Label ID="Label1" runat="server" Text="Password"></asp:Label> <br /> <asp:Label ID="Label2" runat="server"></asp:Label> </div> <p> &nbsp;</p> </form> </body> </html> [/code] here is …

0
58
Member Avatar for SammiSmi

Hi All :) A 2003 word document has a ContentType "application/msword", but what is the ContentType of a 2007 Word document? Thanks :)

Member Avatar for SammiSmi
0
79
Member Avatar for samm22

If I have a vector v={1,2,4,6,8} and I find my maximum element of this vector using this: " vector<int>::iterator iter_max = max_element(v.begin(), v.end()); cout<<"Largest element is "<< *iter_max; " which works fine. But I need to know the position of this max element. Is it second, third or fourth in …

Member Avatar for JasonHippy
0
105
Member Avatar for shankbond

Hi, I have just downloaded the sql server 2008 version. I am currently developing a web application which is to be uploaded on the internet Now the web application and the database both will be uploaded on the same site .To be precise I am new sql server, whenever i …

Member Avatar for shankbond
0
245
Member Avatar for brando|away

Im trying to create a listview showing images with text so how exactly can i do this? (im using visual studio if it helps) Heres the code that isn't working now [code] // adding images ... imageList1.Images.Add("Unique key", Image.FromFile("...")); listView1.Items.Add("text for image", "Unique key"); /* * more * images * …

Member Avatar for DdoubleD
0
1K
Member Avatar for _taz_

I need help with a query. Looking though the forum and other online resources I can usually figure out what I need, but I'm drawing a blank on this one. I have a clients table which has client info in it, and a receipts table with receipt info. what I …

Member Avatar for _taz_
0
282
Member Avatar for avgVBUser

I'm trying to understand the sql connection a little better. I have some code that returns data via a stored procedure on the sql server. Here is the code to execute the procedure and put the data in a data grid: [code]Dim tblSteps As DataTable = New DataTable Dim cnPMSQL …

Member Avatar for avgVBUser
0
120
Member Avatar for smvec

hi... im trying to insert a row into the database... but the query is not run successfully.. [CODE]$sql = "INSERT INTO temp_db (fname,mname,lname,dob,gender,email,country,phno,mobile,userid,password,mti,rtime) VALUES ('$fname','$mname','$lname','$dob','$gen','$mail','$country','$phno','$mob','$uid','$pass','$mt','$rtime')"; $res = mysql_query($sql) or die("cud not add record"); echo mysql_error();[/CODE] this is the code..... im gettin the error from the Die part of the query.. …

Member Avatar for smvec
0
82
Member Avatar for dangari

Hi all.Am new to this forum so cut me some slack if I don't articulate my problem with utmost clarity.My problem is that I have a javascript function such as: function modReg(x,y) { <!-- var answer = confirm ("Do you really want to deregister user" +x+"?") if (answer) { document.leo["id"].value=x; …

Member Avatar for dangari
0
164
Member Avatar for geneboss

Hi Friends, I'm a newbee and trying to set up a multi step registration for my website and using the CreateUserWizard Control which should generate an automatic Unique Key assigned to the new user. This Confirmation Code(GUID) is to be substituted into the email before the message is sent. Problem: …

Member Avatar for leeward
0
203

The End.