64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for adamworld

I am trying to store millions of records with address, city, state, zip, etc. I originally had one table with 17 different fields with the primary key being id. However, I soon realized after inserting almost a million, the website began to lag and was slow. What is the best …

Member Avatar for debasisdas
0
264
Member Avatar for Nerathas

Hello, I am trying to write a algoritm that calculates the second largest divisor of a number. But i have absolutely no idea what calculations are required for this. [CODE] for (ulong i = 1; i < Number; i++) { Number = .....? }[/CODE] Already know the largest common diviser …

Member Avatar for ddanbe
0
2K
Member Avatar for NOVICE3

I am writing a program that steps through a number of testing steps in one of three modes. Mode 1 is simply "run as fast as the processor can go". Mode 2 is a manual "click to advance the step". Mode three is suppossed to be a "step slowly by …

Member Avatar for NOVICE3
0
113
Member Avatar for sj5536

hi can any one suggests me how to read barcode from pdf file in java is there any library . thanks in advance actully i serached on net for that i found some library such as apose barcode reader but it is not freeware and i also found JBarcode library …

0
71
Member Avatar for sj5536

hi i want to read barcode from pdf file. that pdf file has more than one barcode i have to read second barcode then what i do for that

Member Avatar for sj5536
0
221
Member Avatar for Smartflight

Yes, I did a search, and I understand time() better than before, but I would appreciate personal help. Initially, I wanted to make a program/function that would randomly generate a number. Next, I wanted to limit it between two defined numbers. I came across rand() yesterday, and I couldn't get …

Member Avatar for Smartflight
0
267
Member Avatar for CrazyProgrammer

Hi all, i was wandering if someone good explain to me about clr? what are some advantages or disadvantages of programming c++ with clr, what are the main differences if there are any? If I understand it right clr programming is using the .NET framework, but could someone please give …

Member Avatar for CrazyProgrammer
0
157
Member Avatar for bLuEmEzzy

ei guys, i am stuck in getting unchecked in listview... pls help me... thank u :) this is my code... [CODE] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click For Each item As ListViewItem In ListView1.Items If CheckState.Unchecked Then MsgBox(ListView1.Items.Item(0).SubItems(1).Text) End If Next End Sub [/CODE]

Member Avatar for bLuEmEzzy
0
158
Member Avatar for sarifah n

hi i want to ask about how to disable the button when the datagrid have 9 rows? i want to control the button.after the datagrid have 9 rows, then the button.enabled=false. tq.

Member Avatar for sarifah n
0
135
Member Avatar for stavros141

Ok so I have this project in ming for along time now. Basically I have created a console app that works as a calculator by using mathfunctions from a DLL I also have created. Now the problem is I want to make it so that people can create their own …

Member Avatar for stavros141
0
191
Member Avatar for banannamoofin

I am currently having problems displaying a file correctly once i have written a dictionary to the file. For this program the input file needs to have the format: ID: Date: Dayskept: ProductName e.g. 1:12/12/2011:12:A This is fine the first time I read the example file into a dictionary, but …

Member Avatar for TrustyTony
0
213
Member Avatar for wewehalim

Hi, I am running this line of code to insert some data into table. I am using select case on one of the data. When I run it, this error was generated: "Syntax error (missing operator) in query expression 'CASE dbo_tblFinanceApp.UPADisclosed WHEN 0 THEN 'Undisclosed' WHEN -1 THEN 'Disclosed' END' …

Member Avatar for wewehalim
0
250
Member Avatar for plasticfood

ok i have this assignment which i'm just having problems with the iterator part of it. from the [B]ListType [/B]class, this is what i wrote: [CODE] public Iterator iterator(){ return new OrderedStringListTypeIterator(list); } [/CODE] this code is from the textbook which idk how they got theirs to work, but... [CODE]import …

0
69
Member Avatar for Suzie999

Hello all. If there is one aspect of any language I cannot understand it is regex. I have some strings I need to parse, of varying length and content, but there are patterns. There 2 base types the first always begins with [B]%zn%[/B] and can be short or long and …

Member Avatar for Suzie999
0
120
Member Avatar for lacoffo

Hello everyone :) I'm learning Java and I'm creating a pong game. There is something I don't understand how to do though. It's how do I make it so that when a button in one panel is pushed, it calls a method in another panel. Let me quickly explain the …

Member Avatar for lacoffo
0
862
Member Avatar for amie900218

hello, need help from you guys. ok, i have create a prompt box that will ask user to enter a password, and this prompt box will take user to secured page. [CODE] <script type="text/javascript"> function show_prompt() { var name=prompt("Please enter your password","Fill Here"); if (name!=null && name!="") { location.href="index.php"; } …

Member Avatar for amie900218
0
131
Member Avatar for anirban1087

Hi, I am working on some php based job. When I am accessing the pages from the same system (localhost) using IE, its work fine. But when I am trying to open the pages from a remote system using IE, the php part is not displaying. But Firefox is giving …

Member Avatar for diafol
0
135
Member Avatar for da10x

Hello, for this assignment, we have to imitate SW Airline's boarding process. I think I have everything working so far, except for the fact that my program ignores every Passenger entered into the queue except the first one. It's almost as if it bypasses the if statement asking if the …

Member Avatar for da10x
0
430
Member Avatar for branding4you

I have code like this, it shows data when tehre is data but if there is no data i want to say "no records" where am i going wrong? [CODE]<?php require_once('db_conf.php'); $sql = "SELECT * FROM tbl_holidayspecials WHERE fld_country = '$countryname' AND fld_state = '$statename' AND fld_city = '$cityname'"; $result …

Member Avatar for branding4you
0
148
Member Avatar for dospy

what's the difference between: [CODE] // main.h #ifndef X_H #define X_H #include "point.h" // supposing that point.h contains the declaration of Point class class MyClass { private: Point m_Point; //... }; #endif // main.cpp #include "main.h" //... [/CODE] and [CODE] // main.h #ifndef X_H #define X_H class Point; class MyClass …

Member Avatar for dospy
0
116
Member Avatar for d_panayotov

Hi, I tried searching but I don't know how exactly to describe my question in 2-3 words so I didn't find anything. Is it possible to do something like this?Just to get the idea... I know it doesn't work: [CODE]switch(c){ case '1':{ (...) ; break;} case '2':{ (...) ; break;} …

Member Avatar for L7Sqr
0
129
Member Avatar for Tamlyn

Hey everyone :) I've been working on the first part of a program which I'm doing in 4 steps. Here's the first step which I have completed: Function inputAndValidate This function inputs the time. The time should be entered as two separate values for the hours and minutes. Do not …

Member Avatar for Tamlyn
0
151
Member Avatar for llamaboy

Hi I am trying to store an array into a file. I have tried a few ways but I end up with an extra line at the end of the file. The only way I can do this without the line is by writing [code] ofstream myfile("Stock.txt"); if (myfile.is_open()) { …

Member Avatar for llamaboy
0
3K
Member Avatar for linezero

I am trying to move a match from a match collection to another listbox as string. here is my regex code [CODE]Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("http://localhost/pos/leftpanel.html") Dim response As System.Net.HttpWebResponse = request.GetResponse Dim sr As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream()) Dim rssourcecode As String = sr.ReadToEnd Dim r As New …

Member Avatar for codeorder
1
301
Member Avatar for Sorcher

So.. I dont know why i cant find a specific tutorial / tip on this, so i'll ask you guys. I'm trying to get $date to get the current date and insert it as the query executes. [CODE]$result=mysql_query("INSERT INTO articles (`loginid`,`title`,`author`,`body`,`date`,`category`) VALUES ('$loginid','$title','$author','$body','$date','$category')") [/CODE] this is my Database. [CODE]CREATE TABLE …

Member Avatar for tiggsy
0
151
Member Avatar for itslucky

Hi Friends, How can I create a number which will be construct with the array values. e.g. [CODE] arr[0]=2 arr[1]=5 arr[2]=8 arr[3]=4 [/CODE] now the number will be, [CODE]int num=2584[/CODE] please help me for this... Thanx...!!!

Member Avatar for Arbus
0
135
Member Avatar for HASHMI007

[ICODE]/*write a program class Rectangle . the class will have two data member to coodinates of upper left & lower reght corner of rectangle. these two data member will be object of point class. 1-The rectangle class should following function. 2-A default destructor to print a messagewheneveran objectis distroyed 3-a …

Member Avatar for Ancient Dragon
1
104
Member Avatar for d_panayotov

Hello, I have this assignment in C. The problem is that the functions have to be placed in separate files instead of just one. I haven't done that before. It seems code that would have run if the program was written in one file doesn't work when the functions are …

Member Avatar for d_panayotov
0
172
Member Avatar for JPramod

Hi, This is just a thought. So please don't get mad at me and please don't waste much time over this either. Just wanted to share something that occurred to me. Now I've done a bit of java and a bit of C. Now what I want to do is …

Member Avatar for JPramod
0
184
Member Avatar for Dragazarth

If I have 9 buttons called button1, button2 etc up to button 9 how can I change their properties using a loop? Or can I group them together? I have something like this [CODE]for (int i = 1; i <= 9; i++) { button.Enabled = true; button(i).Text = "BLAH!"; }[/CODE] …

Member Avatar for Dragazarth
0
321
Member Avatar for turt2live

Hello, For some reason when I use the particualr block of code below it will work the first time, but when called again with RemComps as true, it will work almost the way I want it to, but instead of the one set of buttons it has 2 (or the …

Member Avatar for turt2live
0
209
Member Avatar for Theanonymous

I need to write a program that calculates the squares of all numbers that are contained in a file of floating point numbers. The obtained new numbers form a new file. Like this : if the file contains the numbers 1, 2.5, 0.1, the numbers 1, 6.25 and 0.01 form …

Member Avatar for finchh
0
295
Member Avatar for Jaseem Ahmed

can u help me regarding listview control in vb 6... i want to use listview as datagrid.. i have 3 textboxes, and a list view with 3 coloums. now when i enter data textboxs, it asks "do u want to add another data?" when user enters so data, how much …

Member Avatar for peter_budo
-1
300
Member Avatar for Jaseem Ahmed

i want to delete selected record from listview and database, but when i press delete button, it deltes onlye first record of listview not selected record... here is code...[CODE] Private Delte_Click() Call Mydatacon Dim rs As adodb.Recordset Set rs = New adodb.Recordset rs.Open "SELECT * FROM AAAAA_DEMO", con, adOpenStatic, adLockOptimistic …

Member Avatar for Jx_Man
0
1K
Member Avatar for dospy

i've seen in some sources that some classes have Getters and Setters even for public data members [CODE] class Example { private: int m_ID; public: string m_Name; int m_Age; Example( ); ~Example( ); void SetName( string nName ) { m_Name = nName; } void SetId( int nID ) { m_ID …

Member Avatar for dospy
0
195
Member Avatar for HASHMI007

write a program class Rectangle . the class will have two data member to coodinates of upper left & lower reght corner of rectangle. these two data member will be object of point class. 1-The rectangle class should following function. 2-A default destructor to print a messagewheneveran objectis distroyed 3-a …

Member Avatar for HASHMI007
-3
86
Member Avatar for pseudorandom21

What would be a common strategy for using DLLs coded in native C++ in C#? I'm not really finding much good information about it, other than writing the DLL in C.

Member Avatar for mike_2000_17
0
778
Member Avatar for naseerhaider

I'm brand new to C++ ,I've written following code for finding a number's factorial,Can you please let me know how to write it more elegantly ? [CODE]#include <iostream> using namespace std ; main () { int num = 0 ; // declaring variables double result = 1 ; long int …

Member Avatar for naseerhaider
0
176
Member Avatar for penguino138

Hi. Im making a flash cards program and need help with making graphics, making a menu, making it so that they can go back in and access the decks, and making it so i can give it o other people, and a few other things. Here's my code: [CODE] import …

Member Avatar for penguino138
0
129
Member Avatar for sumprit

Hello everyone...! this is my first post here. I have a problem regarding finding the average from an arraylist containing database values. From the database using getString() method i have stored the results of 3 fields in 3 separate arrylist. now what i needed is to find the average from …

Member Avatar for sumprit
0
143
Member Avatar for RoyalElite96

Hello everyone. I am working on this forum/post/script type thing. What I want to do is convert this example to HTML. [div] [p]Some text[/] [div] Some more text [/] [/] ---> <div> <p>Some text</p> <div> Some more text </div> </div> I don't want to use [/div] or [/p] to keep …

Member Avatar for kekkaishi
0
110
Member Avatar for MaddTechwf

I want to load a Menu based on an XML document. I'm including an example from BartPE that does the same thing. I'm hoping that someone will have some experience with this before. [CODE] <?xml version="1.0"?> <NU2MENU> <MENU ID="Startmenu"> <!--==--> <MITEM TYPE="POPUP" DISABLED="@SetMenuPos( 'L','B' )0" MENUID="Programs">Programs</MITEM> <MITEM TYPE="SEPARATOR"></MITEM> <MITEM TYPE="POPUP" …

0
107
Member Avatar for YodaMerlin

I have a pointer object consisting of different arrays of variable length. I want to get one of the arrays from the pointer array and store is in a different array. How would I go about doing it? When I try the method, it gives an error: [B]initialization with '{...}' …

Member Avatar for YodaMerlin
0
240
Member Avatar for YodaMerlin

I have a variable [B]x[/B] declared as [B]int *x = y[/B], where [B]y[/B] is also a pointer variable. Is there any way to store the variable in [B]y[/B] to [B]x[/B] without making [B]x[/B] a pointer such that it would look like: [CODE] int x = y; //y declaration => int …

Member Avatar for YodaMerlin
0
161
Member Avatar for techturtle

Here's the scenario: I am coding a program that will display data from a database in a variety of fields. Some of the fields need to be read-only. Should have been simple just to set all those controls to read-only, except some of them are checkboxes, radio buttons and date …

Member Avatar for techturtle
0
407
Member Avatar for CJdamaster

Hi there, I'm calling a function which reads XML and holds results in this kind of format: Item 1: Name="", Category="", InstallerURI="" Item 2: Name="", Category="", InstallerURI="" etc. I need some kind of return variable which will be able to hold this data. So far, I have tried: [CODE]// Create …

Member Avatar for CJdamaster
0
103
Member Avatar for eskimo456

Hi there I have been building a program separately and testing the code in sections. Which is fine as it works individually. However two of the classes are designed to share variables. The idea is the first class generates a partcile and then scans through a list of gridCells. It …

Member Avatar for mike_2000_17
0
122
Member Avatar for gedas

hey, i have got a class that extends JPanel called viewPanel and in there, there is paint method. in the paint method there is a oval point drawn on it. the coordinates x and y for the point are generated by using math.random so when the program executes the point …

Member Avatar for gedas
0
105
Member Avatar for mrbungle

I have an app that writes to XML. If a text box is filled, then I write that value to the XML doc. [CODE] writer.WriteStartElement("VEHICLE_LICENSE_NUMBER") '10-28 writer.WriteString(frmCitation.txtPlate.Text.ToString) writer.WriteEndElement()[/CODE] If TEST123 is the value in the text box, this is the result. [CODE]<VEHICLE_LICENSE_NUMBER>TEST123</VEHICLE_LICENSE_NUMBER>[/CODE] Question is, if that value in the textbox …

Member Avatar for mrbungle
0
141
Member Avatar for Zababa

Hello guys! :) I just wanted to ask something so that I can clear up things in my mind. What is the difference among Carriage Return ('\r'), New Line ('\n') and Line Feed? Is it correct to say that \n = \r + LF ? Thank you in advance! :)

Member Avatar for Zababa
0
188

The End.