199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for greatdevelopers

A DELETE statement requires an exclusive lock on a table.If there are a significant number of deletes while simultaneously there is also a lot of SELECT traffic, this may impact performance. One trick that can be used is to turn the delete into an insert! Consider the following example: [B]CREATE …

Member Avatar for kronass
0
97
Member Avatar for rmcgrady

Hi forum, Trying to create an RSS feed for my blog (not using a blog host or blog software). Seems to me the best way for me to do it is to use PHP in the XML to draw the last X posts from my MySQL database. So first, I …

Member Avatar for barbz
0
212
Member Avatar for love_dude1984

hi.. i just wanted to knw What is BusinessLogic Class in C#?? how it can be used in a program? & which namespaces should be used to access this class..?? i tried adding new namespaces bt it is not working. i will b reli happy if anyone helps me.. thanx..

Member Avatar for serkan sendur
0
175
Member Avatar for SallyJ

I need some advice from people who know what they're are talking about. The question I am struggling with is below and my attempt is below that. Can you tell where I'm going wrong? Thanks. I'm trying to acheive this: (A) Read the first name and the surname of a …

Member Avatar for threat
0
161
Member Avatar for mpete16

Hello there. I'm having a problem with a linker error. I am trying to compile a project (just a hobby). It manages to compile, but I get a link error when trying to link. I don't see anything wrong with the code at all. I am using Dev-C++. This is …

Member Avatar for nexocentric
0
151
Member Avatar for love_dude1984

hi.. i have problem in which im using a login form as my first form.when i log in, a 2nd form shows up with a button. when i click on the button i want a messagebox to be appear with a certain msg. i want to change the font of …

Member Avatar for Ramy Mahrous
0
72
Member Avatar for yesntu09

Hi everybody, So i am totally new to the programming world but I have manage so far to learn how to connect to mysql database to Java and execute a simple query. However, I would like to know if there's a way I could make this query to look like …

Member Avatar for javaAddict
0
108
Member Avatar for yuri1992

hello to all , i have problem , my sql table called Kings and its look like this ID Game1 Game2 Game3 Game4 Game5 Game6 Game 7 Date Username 1 213 222 323 232 522 212 122 3.4.09 user1 2 214 212 325 432 262 222 292 3.4.09 user55 3 …

Member Avatar for Ramy Mahrous
0
100
Member Avatar for tayhaithian

i have problem that in showpane Modify and Delete pane3 eventhough clicked delete button for the action but the combobox "Select Book" doesnt update in the list that the deleted book still exist. What happen ? any guide ? thx in advance . [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; import …

Member Avatar for javaAddict
0
131
Member Avatar for ankit894u

[CODE]#include <iostream> #include <fstream> using namespace std; void PrintError(fstream&, char, bool&); int Conversion(fstream&, char&, bool&); int main() { fstream InFile; char Bit; int Decimal; bool BadBit = false; //Open file to read InFile.open("f:\\Binary.txt",ios::in); //Read the first bit of the number InFile.get(Bit); //continue reading all numbers till the end of file …

Member Avatar for WaltP
0
146
Member Avatar for cool_aj

Hi everyone,this program prompts a user for a leap yr code and a day code resulting in an entire year's calendar.The result displays months one below another.Can some one tell me how to make it print 2 months next to each other,that is JAN FEB then MAR APRIL below them. …

Member Avatar for cool_aj
0
115
Member Avatar for rlaknar

Hi. I am developing an e-mail application for lab works. I am using servlets mainly along with JSP and using HTML with CSS. I have two questions.Please tell me the solutions. Its important and its urgent. 1. As usual I give the provision for attachments.I wrote code for uploading files …

Member Avatar for rlaknar
0
134
Member Avatar for abhi_elementx

hello . I am trying to simulate the MD5 hashing algo. My code: [CODE] private void jButton1MouseClicked(java.awt.event.MouseEvent evt) { try { MessageDigest object = MessageDigest.getInstance("MD5"); String str = jTextField1.getText(); byte arr [] = str.getBytes(); object.update(arr);//update the md5 object with the message arr = object.digest();//calculate the digest str = IntegerToHex(arr);//convert to …

Member Avatar for abhi_elementx
0
125
Member Avatar for rana03

Hi, Can somebody let me know how to check whether particular network drive is mapped or not e.g x:\\share1\share2? Regards, Rana

Member Avatar for rana03
0
234
Member Avatar for gunman

Hello guys, I am converting my servlet page into mvc form and struck at perticular point. I am using DAO class and VO class for database related tasks.Here I am sending u a little bit of my code segments so taht u can understand my problem. In DAO class:- //I …

Member Avatar for amarjeetsingh
0
198
Member Avatar for maliha

hi evrybodt plzhelp me in vb6 hough transform for circle detection.....i need its code as soon aspossible.....

Member Avatar for maliha
0
82
Member Avatar for turbomen

The following is a simple program on 'while ... do': program dowhile; {$APPTYPE CONSOLE} uses SysUtils, Ourcrt; Var my_words: string; begin [COLOR="Green"] my_words:=''; writeln('Enter some words (type "stop" to finish):'); readln(my_words);[/COLOR] while (my_words<>'stop')do begin clrscr; writeln('You typed:'); [COLOR="Red"] writeln(my_words); writeln; writeln('Enter some words (type "stop" to finish):'); readln(my_words);[/COLOR] end; end. …

Member Avatar for FlamingClaw
0
150
Member Avatar for tamil.munusamy

Hello, When the JS file is not working at the time of Ajax files is called. on first time the onmouseover JS is working but , if you call the ajax JS is not working.

Member Avatar for tamil.munusamy
0
94
Member Avatar for BehzadSh

hi, if I had: [code=C++] char* arr; [/code] and want to add character one by one into [B]arr[/B]. How could I? I don't wanna use vectors! thanks

Member Avatar for BehzadSh
0
295
Member Avatar for genuis1

hi, everyone i'm new in java programming i need help in my simple project i have list contain names of persons from db .. i finished it using access ... the problem that i wanna to 'when i select any name of this two window open and chat between each …

Member Avatar for genuis1
0
77
Member Avatar for JAMartin6815

I getting an error from a code that I have been working on. The error is Exception in thread "main" java.util.InputMismatchException at java.util.Scanner.throwFor(Unknown Source) at java.util.Scanner.next(Unknown Source) at java.util.Scanner.nextInt(Unknown Source) at java.util.Scanner.nextInt(Unknown Source) at sample2.AdditionalMethods.main(AdditionalMethods.java:57) My code for the information is package sample2; public class shape { private String Name; …

Member Avatar for JAMartin6815
0
230
Member Avatar for rEhSi_123

I am begginer in C so please be easy on me.....:-) Anyways....my query is I have a server and a Client program written in C(attached below) for test in UNIX/LINUX in which the client sends a request to the server and the server then sends back the request to the …

Member Avatar for jephthah
0
173
Member Avatar for Duki

I'm going to be working on a summer research project with my college's robotics team. My task is going to be to develop a program to communicate with the robot via 802.11g. I would really like to stick to straight C++, and if I can't then C# is also an …

Member Avatar for Duki
0
114
Member Avatar for jackVB

I want to update data using DataGridView in Visual Studio2008 with the following code. But it is not working. Plz help me. Private Sub btnUpdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnUpdate.Click cmd = New Odbc.OdbcCommand("UPDATE Table1 SET Name") Me.Table1TableAdapter.Update(DataSet1.Table1) MsgBox("Updated") End Sub

Member Avatar for c0deFr3aK
0
118
Member Avatar for philtron

this is giving me an error at the line that says loc = (zip.find("605", 0)); can't tell why?!? [CODE]void calcShippingCharge(string zip, int RATE605, int RATE606, int &chg) { //search zip code for proper prefix int loc = 0; loc = (zip.find("606", 0)); if (loc >= 0) chg = RATE606; else …

Member Avatar for philtron
0
105
Member Avatar for goldstmarc

Hey everybody, I am trying to initialize a deck of cards using a structured data type. Here is the currently relevant portions of the code: [code] struct ACard { int Num; char Pic; }; void InitiateCard(ACard Card[]) { for (int i =0; i < 13; i++) { Card[i].Num = i; …

Member Avatar for siddhant3s
0
121
Member Avatar for ferroariel

Hi u all!!! I have a website, dedicated to beauty products for women, ok? Sometime ago a friend of mine told me "hey! why don´t you send that info through MSN?". I liked that, so I downloaded an autoresponder code from here: [URL="http://nayyeri.net/blog/auto-responder-add-in-for-windows-live-messenger/"]http://nayyeri.net/blog/auto-responder-add-in-for-windows-live-messenger/[/URL] So I simply added this routine to …

Member Avatar for ferroariel
0
109
Member Avatar for HB25

Hi I will explain what I am trying to do: I have used MYPHP admin to create a database where user booking details will be stored in a table called bookings. Now I need to retrieve all the bookings for a specific date. For achieving this I have created two …

Member Avatar for Josh Connerty
0
208
Member Avatar for ranjithnagaband

Hi i have one small application which includes clients registrations and contact details.Now i want voice recording which records the customerts conversation with the web site holder n tht conversation has to store in database. So i need a PHP application which supports the voice recordins.

Member Avatar for digital-ether
0
774
Member Avatar for bdrose64

Hi, I am trying to create a mortgage calculator per an assignment and have it working ALMOST perfectly. I just need to add a loop to make it pause when the screen is filled and wait for an ENTER until the loan balance is 0. Can someone help me? Here …

Member Avatar for VernonDozier
0
98
Member Avatar for helixkod

I am having trouble printing onto a JPanel. I am able to print any string that i want to. here my code: [CODE]import javax.swing.JFrame; import java.awt.BorderLayout; import javax.swing.JLabel; public class TestDraw { public static void main(String[] args) { final int WINDOW_WIDTH = 300, WINDOW_HEIGHT = 300; DrawPanel panel = new …

Member Avatar for sillyboy
0
167
Member Avatar for valtikz

What will be the code for not overwriting the text file you make. [code]ofstream myfile; myfile.open (home/.test.txt); myfile << "test"; myfile.close(); [/code] Because the test.txt is needed to create only just once after you load the widget. I inserted that code to the mainWindow but whenever I loaded the mainWindow …

Member Avatar for valtikz
0
80
Member Avatar for AntonioMG

Im having this exception when i use the class vector: [code] vector <int64> p; dsdriver::EngineAdmin ea; p= ea.getEngineIds(); [/code] And EngineAdmin is: [code] class DSUTIL_EXPORT EngineAdmin { public: static vector<int64> getEngineIds() ; [/code] When i use p=ea.getengineIds(); its throw me an exception in xmemory: [code] void deallocate(pointer _Ptr, size_type) { …

Member Avatar for nexocentric
0
525
Member Avatar for ryan311

help please, how to save a data between the time of what user input in the 2 textbox. 1 textbox is for intime and the 2 one is out time. for example if the user input 7:30 - 9:30 Am Intime all i want is this is the only time …

Member Avatar for ryan311
0
127
Member Avatar for lolaabbydawn128

I have a very hard programming challenge and i need help... I have nothing so far, so im hoping somebod could help me build it... Im to write a program that uses a structure to store student name, student ID number, pointer to and array of test scores, average test …

Member Avatar for Ancient Dragon
0
104
Member Avatar for legendarya49

This is the input that I am trying to load up the array with: 11 13 7 10 XXXXXXXXXXXXX X JX AX X X XXXX XXXXBX X X X SX X X X XXXX XXX X X X X X X X X XXXXXXXXX X X X X X XXXXXX …

Member Avatar for Ancient Dragon
0
187
Member Avatar for DealthRune

Hi, I'm new to C++, and I made this program that makes either 1, or 2 pop up. And for 1, a text field is suppost to pop up to show you won, and if 2 pops up, it's suppost to say you lose. I got everything down (The unmber …

Member Avatar for DealthRune
0
111
Member Avatar for totalnoob

Hi! I was wondering if there is any way to just include a small part of a file? If I write include("c:\wamp\www\somefile.php"); then the whole file is included. I would like to only include the half of the file or a variable. Is this possible? Thanks in advance!

Member Avatar for totalnoob
0
95
Member Avatar for kbmmartin

After this code executes [CODE] ptr = new myStuff; // some code ... delete ptr; [/CODE] the memory allocated is freed but ptr still contains the mem addr of the 1st byte of the previously allocated mem. Is there some history to this? Why didn't the C++ standard also have …

Member Avatar for siddhant3s
0
6K
Member Avatar for Aeterna

How can my VB.net application interact with windows modal dialog boxes? For example when you click an HTML <input type=file> the dialog that opens is a windows form that isn't in my application, so how can I manipulate it?

Member Avatar for Aeterna
0
235
Member Avatar for OffbeatPatriot

The problem seems pretty simple but I haven't figured it out yet. I'm using wxWidgets to make a gui and this function gets called when I press enter while in a text field. [code=c++] void Camera_Settings::on_exposure(wxCommandEvent &event) { wxString temp = exposure->GetValue(); char *value = (char *)temp.mb_str(); char *hex_string = …

Member Avatar for OffbeatPatriot
0
155
Member Avatar for smitem03

Hey guys below is my full code of the program I am trying to run. I want to save the data automatically. It goes through many areas but the save area is not working for some reason. Errr...I have spent many hours and it is very basic code probably because …

Member Avatar for jephthah
0
152
Member Avatar for DJInsane

It is a grading system, but its not calulating the grades [ICODE]#include<stdio.h> #include<conio.h> #include<string.h> #define max 2 void Cal_semester_Grade(char studname[][25],int gradeavg[][1],int examAvg[][1]); void Class_Grade(char studname[][25],char classname[5], int classgrd[][3],int gradeavg[][1], int Maxtestscr[][3],char subjectname[15],int classprectge[][3],int finalClassgrade[][1]); void Exam_Grade(char studname[][25], int examMarks[][2], int MaxExamTest[][2],int Examperctage[][2],int examAvg[][1],int finalExamgrade[][1],int paperweight[][2]); //void search_name(char); void Menu(); char …

Member Avatar for Ancient Dragon
0
115
Member Avatar for drjay1627

hey can someone suggest the best way to get the list of files in a directory. i only need files no need directories. given a folder, i want to write a program that gets all the files in it. its part of a much bigger program. appreciate any help. many …

Member Avatar for jephthah
0
115
Member Avatar for zynap

Hello, I am trying to add hyperlink to my mysql query result. I have a table called EastLondon which consist of the following: [code] (restaurant_id INT UNSIGNED PRIMARY KEY, restaurant_name VARCHAR(20), phone_number VARCHAR(20), picture varchar(8), website varchar(40)); [/code] I extract all these info into a table using php. What I …

Member Avatar for ShawnCplus
0
4K
Member Avatar for lolaabbydawn128

I have a very hard programming challenge and i need help... I have nothing so far, so im hoping somebod could help me build it... Im to write a program that uses a structure to store student name, student ID number, pointer to and array of test scores, average test …

Member Avatar for lolaabbydawn128
0
180
Member Avatar for cppStudent

Hi guys, I just can't figure out how to traverse trough this heap. It's a 4-heap and I'm trying to implement a toString method for it. It should return a string and must be recursive. Like pre-order traversal. I'm lost with it. [CODE=java]public String toString(int index,String out) { int child …

Member Avatar for cppStudent
0
670
Member Avatar for theduff

I am writing a program that will reverse the order of ASCII code. The user input a character and output the reverse 7 bits of it. EX: 011001 to 100110. I am trying to understand the sll and srl instructions better and how they are used because they seem to …

Member Avatar for theduff
0
3K
Member Avatar for ADVAD

Hi I am writing to a text file but end up having several duplicates in the text file, this is a basic program I am creating using PHP and HTML. How is it possible to fwrite only when record exists. Thnx [code]<?php $FirstName = $_POST['FirstName']; $LastName = $_POST['LastName']; $Email = …

Member Avatar for ShawnCplus
0
251
Member Avatar for the_ripper

first of all i am new here so hi everyone! I am looking for a program that can generate binary patterns like the ones shown below. i know there are generators out there but i cant seem to find any, been searching for hours:( i want to generate code like …

Member Avatar for the_ripper
0
131

The End.