132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for daino

I am going to work on building a database application. One part of this is parsing pdf files which will feed the data into the database. Will be using SQLite build it C which has wrappers for Perl so there's not problem there. From what I understand, Perl is a …

Software Development pdf perl sqlite
Member Avatar for Kwetal
0
263
Member Avatar for aratnon

sorry i'm new at c i want to read these data from txt file. A 7 c 5 y 6 U 9 j 4 Z 3 z 5 0 here is my code while(feof(input)==0){ char c; int num; fscanf(input,"%c%d",&c,&num); printf("%c:%d\n",c,num); } but result in console is not same as txt …

Software Development c
Member Avatar for deceptikon
0
242
Member Avatar for TheEroteme

I came up with a bit of code that I think will theoretically factor any given integer within the range of integers. I'm posting this thread to ask two questions: First, is there any way that I can do this more efficiently, and second, what is the easiest way to …

Software Development c c# c++
Member Avatar for Kwetal
0
180
Member Avatar for rutuja8

I AM WORKING ON A PROJECT IN WHICH I AM SAVING AN IMAGE IN ACCESS DATABASE,RETRIEVING THE IMAGE,UPDATING THE IMAGE AND THEN WHEN I TRY TO RETRIRVE THE UPDATED IMAGE I GET AN ERROR "PARAMETER IS NOT VALID" SO PLZ POST THE CODE FOR UPDATING PLS REPLY SOON ITS URGENT

Software Development image vb.net
Member Avatar for rutuja8
0
162
Member Avatar for Yarra

Hi i have a quick question. If i have a java application are their any third party applications that can help me run it on an html website without porting it to a JApplet.

Software Development java
Member Avatar for NormR1
0
265
Member Avatar for paryudi

I am creating a program that will do 67,108,864 calculations using Netbeans. But when I run it, there is an error message: java.lang.OutOfMemoryError: Java heap space. I have tried several things to overcome this problem: 1. I changed the setting of VM Options of the Project Properties. I even set …

Software Development java java-netbeans
Member Avatar for JamesCherrill
0
683
Member Avatar for kanjali

HI, How to use multiple forms in c# windows application? Where i need to fetch the information form "Form2" to "Form1". Here Form2 is used to get information from user and again those informations will be used in Form1. Please suggest me to do this. Thanks a lot, Anjali :)

Software Development c#
Member Avatar for pavithra R
0
2K
Member Avatar for angel06

Option Explicit Dim score As Integer Private Sub Command1_Click() Dim Values(3) As ColorConstants Values(0) = vbRed Values(1) = vbBlue Values(2) = vbGreen Dim RandomNumber As ColorConstants RandomNumber = Values(Rnd * 2) Label1.BackColor = RandomNumber Randomize End Sub Private Sub Command2_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As …

Software Development vb.net
Member Avatar for angel06
0
197
Member Avatar for zukushikimimemo

mov eax, 4 mov ebx, 1 mov ecx, msg1 mov edx, len1 int 80h mov eax, 3 mov ebx, 0 mov ecx, num1 mov edx, 2 int 80h mov eax, 4 mov ebx, 1 mov ecx, msg2 mov edx, len2 int 80h mov eax, 3 mov ebx, 0 mov ecx, …

Software Development assembly
0
97
Member Avatar for john.mcdonnell.777

I have this code and I have been trying to figure it out for a while now but i cant get it to work .My basicproblem is I cant get the paint part or the programme to work properly. I have done several paint programmes in the past but i …

Software Development image java java-swing
Member Avatar for JamesCherrill
0
248
Member Avatar for lmd141

Hi there, I'm fairly new to this C++ thing so I hope you can help. I'm writing a program that prints out the coordinates of atoms in a simulation box (30x30x30). I have a fair few header and .cpp files so I'll only paste the bits that are faulty. I …

Software Development c++
Member Avatar for ravenous
0
258
Member Avatar for priyakumar

Hi, How add Crystal Report Version 11 in VB6. At present I have been using Crystal Ver 8. I need to upgrade to Crystal Ver 8.5 or above to implement exporting rpt's to pdf. Now, I have installed CRystal report 11 Developer edition in my system and from VB i …

Software Development pdf visual-basic
Member Avatar for AndreRet
0
6K
Member Avatar for t888eddy

In a forest n animals has homes. Each home has m racks, each rack for each of the m products which the animals can buy from the shop. From the shop, only the king can buy and only in the first day of the month. The king needs to know …

Software Development c file-system
Member Avatar for t888eddy
0
226
Member Avatar for lukerobi

I am currently trying to load a few script through boost python. I ran into some trouble today while trying to launch idle from it however and I cannot figure out the cause of the issue. This is on a windows 2008 machine, and I am currently running Python 3.3 …

Software Development python tkinter
Member Avatar for lukerobi
0
415
Member Avatar for manish.mehta

Hi, I am using Selenium Grid and running my test cases on remote machine. And i am also using Screen recorder to record video for my test. When i start Screen recorder, it only starts in the hub machine (my machine). So i thought to run the Screen recorder on …

Software Development java
Member Avatar for Nutster
0
761
Member Avatar for ITshard

sorry for my english but im really so desperate. This is due next week monday, and i don't know what do to or even where to start. Our professor didn't explain this homework , she just gave us a photocopy problem, we dont have any reference to look at. soo …

Software Development java
Member Avatar for stultuske
0
345
Member Avatar for ms_farenheit1

I am trying to implement a JScrollPane, containing a JTextArea, whose vertical scroll bar automatically remains as the bottom when new text is added, if it is already at the bottom, and stays in place otherwise. I have found a solution that seems to work, except when I move the …

Software Development java
Member Avatar for NormR1
0
667
Member Avatar for ChaseRLewis

My question is basically if I have a 4D vector like _declspec(align(16)) class Vec4 { float x; float y; float z; float w; } and I want to use operators like `Vec4 a(Vector4.One),b(Vector4.One),c(Vector4.Zero);` `c = a + b; //Creates a 4th Vector4 here that is wasted` It would seem it …

Software Development c++
Member Avatar for mike_2000_17
0
165
Member Avatar for behemothdave

Alright so essentially I need to create a class that houses the methods and then call the methods in the form but I can't seem to find out what the right code is to call it. I think there may be an issue with the conversion from a double to …

Software Development vb.net
Member Avatar for Albireo6972
0
335
Member Avatar for boxofsnacks

import java.awt.*; import java.text.NumberFormat; import java.util.Locale; import javax.swing.*; public class SalesFigures { public static void main (String[]args) { float prod1 = 0, prod2 = 0, prod3 = 0; float prod4 = 0, prod5 = 0; String inputString; int prodId = 1; // Need user input to determine outcome while (prodId …

Software Development java java-swing
Member Avatar for NormR1
0
437
Member Avatar for benk1

Hi everyone I have a simple piece of code thus: char userChoice = '\0'; validate:; printf("Please make a choice [y/n] \n"); //fflush (stdout) ; scanf("%c", &userChoice); if(userChoice != 'y' && userChoice != 'n' ) { printf("\nInvalid input; please enter y or n. \n "); userChoice = '\0'; goto validate; } …

Software Development c
Member Avatar for WaltP
0
150
Member Avatar for rithish

#include<stdio.h> int arr[20]; int main() { int n,i; printf("Enter the size of array\n"); scanf("%d",&n); printf("Enter the elements:"); for(i=0; i<n; i++) scanf("%d",&arr[i]); merge_sort(arr,0,n-1); printf("Sorted array:"); for(i=0; i<n; i++) printf(" \n %d",arr[i]); return 0; } int merge_sort(int arr[],int low,int high) { int mid; if(low<high) { mid=(low+high)/2; merge_sort(arr,low,mid); merge_sort(arr,mid+1,high); // Combine merge(arr,low,mid,high); } …

Software Development c
Member Avatar for WaltP
0
108
Member Avatar for dragonofspam

Hello, I am trying to write a program that will calculate the volume of a hole to be dug for a pool or spa. I have some radio buttons that the use can select. Once a button is chosem, the user enters information and then can hit the calculate button …

Software Development gui java java-swing
Member Avatar for dragonofspam
0
3K
Member Avatar for np complete

What is it : A simple logic (text based) game, in which you are required to identify the counterfeit coin within 3 chances. How it works : You are given 'x' coins ( best is to play it with 12 coins ). You are asked how many coins you want …

Software Development algorithm c++
Member Avatar for WaltP
0
361
Member Avatar for Dili1234

hi i'm doing a vb application to inventory mangement system Private Sub AppendItem(ByVal Major As String) myConnection = New SqlConnection(connectionstring) myConnection.Open() Dim TempData As New DataTable myCommand1 = New SqlCommand("Select Departement,Suject_Name From Major Where MajorName='" & ComboBox1.SelectedItem & "'", myConnection) myCommand1.ExecuteNonQuery() 'sqlcmd = New SqlCommand("SELECT P_Id,P_Selling_Price FROM Product_Details WHERE P_Id='" …

Software Development vb.net
0
84
Member Avatar for Cupidvogel

I am trying to send sms through Way2sms using Perl LWP. The login part is being successful, after which I save the cookies to a local file. The welcome page after being logged in shows a Send SMS link, clicking on which one is redirected to another page with two …

Software Development open-source perl
0
108
Member Avatar for sanjeewa.abeywardana

How can I **convert this code to csharp code**, seems to be simple but little confused. Dim Temperature As Integer = 30 Select Case Temperature Case 31 Console.WriteLine("stay in bed") Case 32 Console.WriteLine("play the lottery") Case Else Console.WriteLine("Just read the newspaper") End Select

Software Development vb.net
Member Avatar for sanjeewa.abeywardana
0
88
Member Avatar for jsco2289

B)(i)Create a class file BankAccount.java under c:\myjava folder. Declare a String member type variable called accountType and a double member type variable called balance. There are three account type values allowed: "student", "basic" and "advanced" . (ii)Create a method called minimumBalance which takes one argument of type String (acccType) and …

Software Development java
Member Avatar for NormR1
0
231
Member Avatar for Stupid.Widget

**Hi, I'm a current, beggining java student and I am completely stumped! i have been searching the web for help but i just cant find a solution, nor can I tell if i'm on the right path with my code. For this weeks assignment I have to write a Java …

Software Development gui java publishing
Member Avatar for JamesCherrill
0
226
Member Avatar for Valiantangel

Hey guys i am struggling a bit with Jframe.Pretty new to JFrame. I hav a file in Picture class and need to bring the BufferedImage to the DrawingImageControlPanel.How do i do this. I know the template for doing this is as stated below. public class ClassName extends JPanel { instance …

Software Development image java
Member Avatar for NormR1
0
182
Member Avatar for swaggerCurioS

After I implement the following function: void List::insert(int index, const ListItemType& newItem) throw(ListIndexOutOfRangeException, ListException) { int newLength = getLength() + 1; if ((index < 1) || (index > newLength)) throw ListIndexOutOfRangeException( "ListIndexOutOfRangeException: insert index out of range"); else { try { ListNode *newPtr = new ListNode; size = newLength; newPtr->name …

Software Development c++
Member Avatar for Ancient Dragon
0
364
Member Avatar for Simes

So I am working on a Traffic Simulator and I am having a fair bit of trouble with it. I need the menu to display, user chooses the option enters a value for the option and then either it loops with the menu again and they can set other options. …

Software Development java
Member Avatar for JamesCherrill
0
255
Member Avatar for SnHnBoLt

#Dictionary practice def menu(): print("1. Add name and number") print("2. Print the directory") print("3. Quit") options = 0 directory = {} while options < 3 : menu() options = int(input("Enter your desired option :")) if options == 1 : print("You selected to add name and number") name = input("Enter name …

Software Development python
Member Avatar for TrustyTony
0
353
Member Avatar for PinoyDev

Good day Gentl'men! Is there a way in c++ to convert a string variable that holds time of format like "17:30" to time_t variable? Lets say!: #include<iostream> #include<ctime> using namespace std; int main() { time_t timein,timeout; float timediff; string stimein,stimeout; cout<<"Enter time-in: "; cin>>stimein; cout<<"Enter time-out: "; cin>>stimeout; //convertion from …

Software Development c++
Member Avatar for deceptikon
0
4K
Member Avatar for Manu Krrish

XML,Excel Macros Hi I am working on some stuff where i need to Import the data present in XML file to excel sheet. i wrote below code for it Sub ImportXMLtoList() Dim strTargetFile As String Application.DisplayAlerts = False strTargetFile = "C:\BookData.xml" Workbooks.OpenXML Filename:=strTargetFile, LoadOption:=xlXmlLoadImportToList Application.DisplayAlerts = True End Sub But …

Software Development visual-basic xml
Member Avatar for AndreRet
0
822
Member Avatar for I_m_rude

Can anyone give me the nest links so as to learn socket programming in C from net ? As i have searched net a lot and also have read many things, but i want you all to tell some more better links. thanks in advance.

Software Development c socket-programming
Member Avatar for deceptikon
0
175
Member Avatar for New22010

Formatting a date, In VB6 I could specify the a date that was so many days from today and change the format of the output in a nice and easy statement: Format(Now - 1, "yyyyMMdd"). I am trying to learn vb2010 and am getting an error on that statement: *Operator …

Software Development vb.net
Member Avatar for New22010
0
203
Member Avatar for r0n

hi everyone is there anyway to get all cell values of a column in the jtable? for instance i have to get all the values in column1 which are all integers and sum it up to the textbox. :) thanks!

Software Development java
Member Avatar for JamesCherrill
0
2K
Member Avatar for jhonhiel.abasolosasaban

i cant run my program even my directories are correct.......!! my flashdrive is in (F;) then in my directories are: Include Directories F:\TC\INCLUDE\ Library Directories F:\TC\LIB what will i do.....??

Software Development c
Member Avatar for np complete
0
106
Member Avatar for 47pirates

Hello guys i trying to manage the size of two jpanel according to the size of Main Jframe. I using netbeans drag and drop Jpanel1 is big and another one is small. wat i need to do is to change those panels size when main frame is resized> how can …

Software Development java java-swing
Member Avatar for JamesCherrill
0
199
Member Avatar for Geowil

At the moment I have one question about vectors but I want to leave this open ended so if I obtain more questions I can come back here. So I was looking at different containers for a player inventory that can be dynamically changed on the fly due to events …

Software Development c++
Member Avatar for Geowil
0
256
Member Avatar for klactose

Hello all and Happy Thanksgiving, I am converting a program from Lisp into C#. Everything is going well for most of the program but there are 2 functions where I don't really understand what is going on because I am not very well versed in Lisp. I originally submitted the …

Software Development c#
Member Avatar for d2010
0
390
Member Avatar for tiredoy

As I describled,I want to use the macro TRACE in conventional chracter-mode programming. When I try directly using the command TRACE(...),I encounted a mistake tips which says that TRACE ,identifier not found. So,what should I do to solve this problem?

Software Development c++
Member Avatar for vijayan121
0
212
Member Avatar for phorce

Hello, having a weird problem and wondering if someone can help me.. Basically, I'm trying to read in a .wav file, and I have read in the header information and that's all fine, it's just the data.. Here is the code: bool Wav::readHeader(ifstream &file) { file.read(this->chunkId, 4); file.read(reinterpret_cast<char*>(&this->chunkSize), 4); file.read(this->format, …

Software Development c++ file-system
Member Avatar for Ancient Dragon
0
236
Member Avatar for umesh.sahni.35

i have record saved in access database. with few fields, like item,rate,qty,total, p_date. i need to generate report of system date record only. suggest me that this sql statement will work or not, select*from table1 where p_date=date$;

Software Development sql visual-basic
Member Avatar for Nutster
0
202
Member Avatar for Nutster

I am pretty new to programming in VB.Net, but I have been programming in other languages for a couple of decades now, including VB5/6 and C++. When I am using a **Try** - **Catch** block to handle exceptions, what is the point of a **Finally** section? Wouldn't it be just …

Software Development programming-construct vb.net
Member Avatar for Reverend Jim
0
298
Member Avatar for scarletfire

hi, i am trying out past year questions for a resit and am stuck with the question below. Question 1 In the following you may assume the existence of the ListIterator<e> interface and LinkedList<E> class with the following methods public interface ListIterator<E> { E next(); boolean hasNext(); } public class …

Software Development java linked-list
Member Avatar for JamesCherrill
0
209
Member Avatar for AdmiralDonkey

Hi all, I have a robot which detects an object using hsl filtering and a blob counter to draw a rectangle around the object. What I am trying to do is get the robot to move to its right if the object is on the right side, else it moves …

Software Development api
Member Avatar for AdmiralDonkey
0
281
Member Avatar for Captain_Jack

Hello there! This forums has helped me a lot to learn programming now I need your help again. I'm try to figure out a way to create a folder based on users input in Textbox on desktop. Public Class Form1 Dim username As TextBox Private Sub TextBox1_TextChanged(ByVal sender As System.Object, …

Software Development vb.net
Member Avatar for Captain_Jack
0
325
Member Avatar for Azurea

I've read that one should use cin.get() instead of system("pause"). Why is that?

Software Development c++
Member Avatar for WaltP
0
617

The End.