132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for crbsathy

Hi Friends While adding record in Ms-Access using ADODB... Last record in the database is replaced instead of adding .. I dont know why?? Plz any one help me.. [U][U] Code :[/U] Private Sub cmdAdd_Click() If ((IsNumeric(txtincome.Text) = True) And (IsNumeric(txtmobile) = True) And (IsNumeric(txtnum) = True)) Then Datacontrol.Recordset.MoveLast Datacontrol.Recordset.AddNew …

Software Development visual-basic
Member Avatar for debasisdas
0
70
Member Avatar for JackDurden

So if I have a header file like this: [CODE]template<typename T> class snake { public: void example(); private: T *start_Ptr; };[/CODE] and then a source file like this: [CODE]#include <iostream> #include <stddef.h> #include "foo.h" using namespace std; template<class T> struct node { T data; node *next; }; template<typename T> void …

Software Development c++
Member Avatar for Sci@phy
0
88
Member Avatar for rrreeefff

Hello, I am working on a non-recursive function that computes a to the power n. I have one error which is cpp(23) : error C3861: 'mypower': identifier not found [code=cplusplus] #include "stdafx.h" #include "stdio.h" double power(float a, int n); // function prototype// int main (void) { float a; int n; …

Software Development c
Member Avatar for devnar
0
498
Member Avatar for smile4evr

hey all... my project is showing some error in this code... plz help... [code] Dim RS As New adodb.Recordset Dim getname As String Dim logginname As String getname = "SELECT E_name FROM Employee_Details WHERE E_ID ='" & logid.Caption & "'" CN.Execute getname RS.Open getname, CN Label7.Caption = RS.Fields(0) [/code] thnx! …

Software Development visual-basic
Member Avatar for smile4evr
0
82
Member Avatar for uae_uae99

hi everone ,actually i need ur helps. i have to submet my final project next week on 14/10 and i didnt star yet .therefore, i wanna star this week but i dont have enogh ideo 4 my topic (my topic is make program for sell and rant a car ) …

Software Development c++
Member Avatar for VernonDozier
0
90
Member Avatar for l_03

hello guyz,,do you have any sites to recommend for me on tutorials??? we are about to make a code on shopping cart,,but it's not that easy,, our list of products and shopping cart are stored in a "text file",,which is accessed by the "java file",,to access,,we should use the import …

Software Development java
Member Avatar for sbhavan
0
159
Member Avatar for dinilkarun

hi, I would like a alert message to pop up on a EVENT of Mouse click in the Custom tree control and CHECKLISTBOX. Please assist me capturing the MOUSE CLICK event and pop up the alert message or FRAME with message. Your response will be highly appreciated. Regards Dinil

Software Development python
Member Avatar for dinilkarun
0
129
Member Avatar for RouseA

I am trying to define peripheral ports in an embedded application as variables at fixed addresses (e.g. PortA is at address 0x10010). I could do this using #define: #define PortA *(u32*)0x10010 However, this wouldn't allow me to view the value of PortA in a watch window when debugging, since there …

Software Development c
Member Avatar for Salem
0
154
Member Avatar for Korg

I'm very new to C++ , and if anyone could, could they give me the code for just a simple program, that would click a link on a webpage continuasly for you :p Thanks :)

Software Development c++
Member Avatar for chococrack
0
178
Member Avatar for skatamatic

Hi, I'm not sure I understand my teacher properly, but he wants me to use the CCTOR of class CPt in the CCTOR of class CCanvas to fill a dynamically allocated array. I'm at a loss of how to call it...maybe a little code will help this make more sense: …

Software Development c++
Member Avatar for skatamatic
0
176
Member Avatar for Ellisande

While working on my CS project, I coded the following line: [code] if(...*stuff* || *morestuff* || *evenMOREstuff* || (strcmp(argv[5], "yes") && strcmp(argv[5], "no"){ cout << "Improper arguments." exit(1); } else{ do more stuff} [/code] Where argv[5] is a program argument supplied by the user. Either a yes or a no …

Software Development c++
Member Avatar for Narue
0
97
Member Avatar for totalnoob

Hi! As you can see by my name I'm new to programming. I have a program that only works partially. It consists of two functions. One function creates a text file and reads it and the other one creates a binary file and reads it. The text file part works …

Software Development c file-system
Member Avatar for totalnoob
0
80
Member Avatar for Guskayak

I built my website using no Java so I'm quite ignorant. I'd like to use the "send to mobile" button from another site on my own website but I don't know if it's possible to do. Can anyone tell me the code I need to paste into my website to …

Software Development java
Member Avatar for Guskayak
0
107
Member Avatar for n8thatsme

Ok, so I have an array of objects that have 3 get functions. Get last name, get first name (both strings) and get salary. What I'm trying to do is get a user to enter First name and Last name and it search the array for the persons first and …

Software Development c++
Member Avatar for n8thatsme
0
203
Member Avatar for skatamatic

I'm not too sure why I'm getting memory leaks...hopefully someone here is wiser than me, and can help me find it :P . [code=cplusplus] #include "Canvas.h" CDrawer CCanvas::gCanvas(RGB(0,0,0), 1); int const GREEN(20000),BLUE(50), RED(200), THICK(3); CCanvas::CCanvas(void): _iSize(0), _cptPoints(0) { } CCanvas::CCanvas(CCanvas const & tmpCanvas): _iSize(tmpCanvas._iSize) { if (_iSize > 0) { …

Software Development c++
Member Avatar for ivailosp
0
319
Member Avatar for soniarani

[I]i need d code for online examination project[/I]

Software Development java
Member Avatar for PoovenM
0
60
Member Avatar for bulawa2002

Hi guys, I've developed a web app which is to be hosted. Its all about stock trading. A customer can log on and checks his/her account, place sale or purchse order for stocks etc. But I equally want customers to be able to use their cell phones to achieve most …

Software Development
Member Avatar for bulawa2002
0
157
Member Avatar for Necron_99

We just started to learn decisions, and I'm confused. Wonder if someone could help me figure this out. In this assignment, you are going to calculate how much a BahnCard costs to buy, using the following rules. * BahnCard25. The card costs 110 euros for a first class card and …

Software Development java
Member Avatar for scorio
0
91
Member Avatar for En-Motion

I have to write a program where a user trys to pick a number. The code i've written below always exits after 2 guesses abd says the guess was correct even if it's wrong. Can anyone see what i'm doing wrong? Thanks [code]# include <stdio.h> # define NUMBER 50 int …

Software Development c
Member Avatar for En-Motion
0
104
Member Avatar for hapiscrap

[code=cplusplus] #include <iostream> #include <fstream> using namespace std; int main() { int numberofemployees; int employeeid, hoursworked; float hourlyrate, grosspay, taxamount, netpay; const float TAXRATE=0.10; ifstream fin("C:\Dev-CPP\employee.txt"); while (!fin.eof() )} fin >> employeeid >> hoursworked >> hourlyrate; cout<<"EMPLOYEE ID IS: "<<employeeid<<endl; cout<<"THE HOURS WORKED ARE: "<<hoursworked<<endl; cout<<"THE HOURLY RATE IS: "<<hourlyrate<<endl; …

Software Development c++
Member Avatar for Sky Diploma
0
217
Member Avatar for chanda gul

Hi, I am trying to list all the files in a drive. when i use "*" instead of "C:\*" in findfirstfile() function then it works fine and lists all the files in the current directory but it does not work when i use "C:\*" and does not list files. can …

Software Development c++
Member Avatar for chanda gul
0
151
Member Avatar for sleepytoast

first time here so I'm sorry if I didn't do something correctly. I need to find the total number of floors, rooms on each floor, how many empty rooms there are, occupied rooms on each floor, find occupancy rate, and the "Heartbreak Floor". Which has to display the floor with …

Software Development c++
Member Avatar for sleepytoast
0
102
Member Avatar for TheBeast32

Hi, I'm taking a programming class at my school. My teacher gave us a pdf that said "..You will be writing a program that can read a bitmap and insert a secret message into the bytes of the picture in a retrievable way using the picture as a cipher and …

Software Development c++ encryption pdf
Member Avatar for TheBeast32
0
128
Member Avatar for chris5126

HI guys, I need to create a windows service that runs a constant ping request to a list of servers and puts the data back into a text file for each server. It will read in from a text file with ip addresses in. It will also need to do …

Software Development windows-server
Member Avatar for LizR
0
2K
Member Avatar for aanya

Iam new to perl. This is my problem. I have calculated the distance using the formula my $distance = sqrt(($x2 - $x1)**2 + ($y2 - $y1)**2 + ($z2 - $z1)**2); and the value of $distance looks like this: 3.72851967944384 5.83210433720111 7.12922562414741 10.2322964186931 11.2073015931579 11.882666956538 14.4465118281196 16.0581479006765 17.2278339903773 Now I have …

Software Development file-system perl
Member Avatar for aanya
0
134
Member Avatar for mrrko

Hi guys! Well they gave me this work, that says as follows: Write a program to score the paper-rock-scissor game. Each of two users types either P, R, or S. The prgram then announces the winner as well as the basis for determining the winner: Paper covers rock, Rock break …

Software Development c++
Member Avatar for mrrko
0
2K
Member Avatar for Baradaran

Hello to everyone, I have a database with several representatives in different cities, sometimes there are many representatives in one city. The search is like: [code] sql_representatives.source = ("Select ID, CITY from REPRESENTATIVES Where PROVINCE_ID = " & LST_PROVINCE.ItemData(LST_PROVINCE.ListIndex) & ";" [/code] The above sql return all cities in the …

Software Development visual-basic
Member Avatar for Baradaran
0
123
Member Avatar for kudusan

i have a problem creating games with C++, if anyone has a source code in C++, please share with me, i need help, simple game is okay e.g: snake, arkanoid i just need a source code for a simple game, without open GL or something like that (because i can't …

Software Development c++ open-source
Member Avatar for Salem
0
307
Member Avatar for siddhant3s

Hi, and here i am throwing a "not the exact version" of my problem, but if this is been solved, my problem is done. Lets suppose i am building a application in c++ that will simply display the content of a text file. I absolutely can make the app take …

Software Development c++ file-system
Member Avatar for siddhant3s
0
115
Member Avatar for Traicey

Can anyon help me with the code to delete from file using the delete method or function void delete() { } Thanks in advance

Software Development c++
Member Avatar for unbeatable0
0
120
Member Avatar for sunveer

How can i print the lower and upper triangles of matrix Please guide me in writing the code. i don't know even how to start writing the code. Please help.

Software Development c++
Member Avatar for n1337
0
119
Member Avatar for nehansh

I would like to work with the MFC classes. As far as I Know these are not included with the Visual C++ express edition but only with the standard edition . can i get these classes for free elsewhere or do I have anyother option? please help.

Software Development c++
Member Avatar for jencas
0
94
Member Avatar for stockton

I have some C code that, when compiled under Linux, works perfectly as a CGI. This same source compiles perfectly with Visual C++ producing an exe. My question is how do I use this as a CGI in a Windows, Apache environment. Can I just place the exe in the …

Software Development apache c++
Member Avatar for stockton
0
121
Member Avatar for maydhyam

Hi, Could anyone help me with this problem, the following code contains the GUI for a chargeback application which was handed on to me. I want to be able to test the components DC1 and DC2 to make sure information was entered when the btnGenChargeReport button is clicked... :?: I …

Software Development gui java java-swing
Member Avatar for maydhyam
0
759
Member Avatar for spinnaret

Hello, Does anyone know how to pass a prameter to vb.net program that will run behind an exist vb 6 program. I have been given an instruction to write the new functionality in vb.net and integrate it with vb 6. Many Thanks S

Software Development vb.net visual-basic
Member Avatar for Teme64
0
120
Member Avatar for jeevsmyd

Hiii I just made a small [B]Memory game[/B] with the help of many of the members of [I]daniweb[/I].... Now I have a screen clearing problem... The program is simple...The compiler shows random numbers,then the user inputs the number within a time limit... there is a scoring key.... but I want …

Software Development c++
Member Avatar for Ancient Dragon
0
124
Member Avatar for brimzi

hi,am a final year student thinking of making an application able to track people from a live camera.the idea is for the application to automatically identify certain actions eg person attempting to enter certain doors etc.in other words the application should be able to know the location of a person …

Software Development
Member Avatar for brimzi
0
111
Member Avatar for smile4evr

i hv a vb6 form connected to the ms acess... it has multiple tabs so if a user wants to make any one of the two then a unique key should be followed... preferably the key should be followed by the system year as this could be used for many …

Software Development visual-basic
Member Avatar for Teme64
0
264
Member Avatar for Geard2

I was wondering if anyone happens to know any good c++ books to learn linked list (single, double, and/or circular)? Something that has explains with code to show how to do it and explanations to the code if possible.

Software Development c++ linked-list
Member Avatar for Sky Diploma
0
90
Member Avatar for LiquidCobra

The assignment problem below ask me to calculate the number of months it will take to pay off the loan and the total amount of interest paid over the life of the loan. I'm having trouble trying to find the right algorithm for the monthly payments. Could you please take …

Software Development algorithm java
Member Avatar for stultuske
0
144
Member Avatar for vskumar19

Hey can there be any reasons for the program that is written to play audio clips is not givin any response!!!! i wrote program correctly but i cant hear any sound from the audio device.. Anyone give solution plzzz!!!

Software Development audio java
Member Avatar for stultuske
0
86
Member Avatar for mikeregas

I need this to been done recursively, it works but I was told that it is not recursive does anyone have any ideas or suggestions [code=language]#include <stdio.h> #include <string.h> #define TRUE 1 #define FALSE 0 main () { char decision; char str[30]; int isPalindrome = TRUE; int choice = TRUE; …

Software Development c
Member Avatar for ArkM
0
143
Member Avatar for gopi17

hello guys, can anybody help me with smart devices....i need a good website to learn abt this with tutorial and example...can anyone supply me with links??? thanks Gopinath..

Software Development vb.net
Member Avatar for isaackhazi
0
188
Member Avatar for ChroNoS

I have written a program that reads a text file and then saves it as an image file.Although the program is reading the file but its having errors saving it as an image file. Please Help! [ICODE]Option Explicit Private Const SRCCOPY = &HCC0020 Private Const MERGEPAINT = &HBB0226 Private Const …

Software Development visual-basic
Member Avatar for ChroNoS
0
154
Member Avatar for l_03

hello guyz,,do you know any best sites that could help me making codes in "shopping cart"??hope you can help me.thank you ahead...

Software Development java
Member Avatar for sbhavan
0
240
Member Avatar for mikeregas

my question here is two fold I am new to recursion and I am not going to lie. I dont get it at all, well at least the code part. is this considered recursive? and the second question is how do I make a loop that would let the user …

Software Development c
Member Avatar for stilllearning
0
74
Member Avatar for justinlake888

I am working on a code and I want it to ask if I want it to enter another number... when I hit "y OR Y" it repeats but the code. I don't know how to make it output "bye" when I type "N or n". Can someone please help …

Software Development c c# c++
Member Avatar for stilllearning
0
114
Member Avatar for launic

I'm trying to go through a directory and put all of the files into a vector of strings. My problem is that the name of the file is stored, but not its location. Because of this, when I go to open the file later in another function, it doesn't recognize …

Software Development c++
Member Avatar for stilllearning
0
98
Member Avatar for StainlessSteelR

I am having a hard time with my homework and I was wondering if someone could help. I have to create a program that uses a while loop to ask questions about a hotel. It first ask the number of the top floor then asks How many rooms are on …

Software Development c c# c++
Member Avatar for VernonDozier
0
191
Member Avatar for patricksquare

[code=c] x=0; t=0; int t2=0,t3; while(t<=ref) {t3=t2; for(x=0;x<jbn;x++) { if(t==cpy2[x].at) { if(q>=cpy2[x].bt) { t2+=cpy2[x].bt; tt[x++]=t2; cpy2[x].bt=0; qq++; } else if(q<cpy2[x].bt) { t2+=q; cpy2[x].bt-=q; cpy2[x].at=t2; qq++; } } else break; } t++; if(t3==t2) {t2++;} }; [/code] assuming the values are cpy2[0].at==1 cpy2[0].bt==2 cpy2[1].at==2 cpy2[1].bt==3 cpy2[2].at==4 cpy2[2].bt==4 q==2 qq is just an …

Software Development c first-post
Member Avatar for WaltP
0
112

The End.