64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for perryg30313

I have a program that I would like to implement using Threading. I wand to load a form that takes a couple of minutes to open using threading. Here is my code [CODE] Imports System.Threading Public Class frmAdjustments Function LaunchForm() As Integer frmNewAdjustment.SetReceive(CurrentUser) frmNewAdjustment.Show() frmNewAdjustment.Hide() LaunchForm = Nothing End Function …

Member Avatar for GeekByChoiCe
0
156
Member Avatar for xirosen

HI, can anyone help me pls on how to set the paper size of my datareport on printing. here is my code but it doesn't work. I don't know the reason why it does not work on me. Printer.PaperSize = 5 'SET TO LEGAL PAPER SIZE dr1.Orientation = rptOrientLandscape dr1.Show …

Member Avatar for AndreRet
0
245
Member Avatar for zeuz

Hi everyone My intention is to enable NTLM authentification when using the native PHP SOAP client, Most of the code is copied from an php.net manual example and it is said to be working. I'm trying to override the __doRequest function in the SoapClient class and let it use cURL. …

0
146
Member Avatar for pythonbegin

Dear all, I have two columns in a tab-delimited text file. I want to randomly generate a pair of entries from column1 and column2. Example - Want to randomise following pairs so that each value will have different partner after randomisation. Actually I have a very big file with 5000 …

Member Avatar for pythonbegin
0
1K
Member Avatar for srvstv.prnc
Member Avatar for SNK111
-1
1K
Member Avatar for authi

import javax.swing.JOptionPane; class homework{ public static void main(string[]args) { String ipt,n,h,r,r2,h2,b1,b2; Double iptipt; JOptionPane.showMessageDialog(null,"1… of a Circle\n" + "2.Area of a Trapezoid\n" + "3.Volume of a Sphere\n" + "4.Volume of a Cylinder"); ipt = JOptionPane.showInputDialog(null,"Input your desired choice(1,2,3,4)"); iptipt = Double.parseDouble(ipt); if (iptipt == 1) ------ IF ELSE STATEMENTS WILL …

Member Avatar for jon.kiparsky
0
116
Member Avatar for ceeandcee

Good Evening, I have a table that has a field with 15 entrys in it. I would like to output it from a query in a table that has 3 rows of 5. However, whenever I put a <tr> inside the loop, I get 15 rows. Any idea how I …

Member Avatar for ceeandcee
0
130
Member Avatar for caribedude

Hi, I'm having some problems with this bit of code. I need to randomly open some files that have numbers as their filenames. i came up with this snippet to be able to open them from numbers 0 to 99. The code should randomly pick a number and try to …

Member Avatar for caribedude
0
283
Member Avatar for b1izzard

I got the Segmentation fault error with the following code to concatenate two strings without using string library functions. [CODE] void string_concat() { int len1,len2,i,j; char inpt_str1[30],inpt_str2[30],concat_str[60]; /*Input string1 and calculate its length */ printf("\nEnter the String 1 : \n"); scanf("%s",inpt_str1); for(i=0;inpt_str1[i]!='\n';i++) { len1+=1; concat_str[i]=inpt_str1[i]; } /*Input string2 and calculate …

Member Avatar for b1izzard
0
128
Member Avatar for slingblade

I'm trying to mod a python script that reads the OS X Dock plist. I've never seen python code before this and I can't seem to figure out if I'm encountering a formatting error or a syntax error or both... Here is the original code snippet, which returns a formatted …

Member Avatar for slingblade
0
161
Member Avatar for WarrenN

Hi I have a JavaScript function for swapping the values of rows in a table. I have a hidden field in each row to carry a record ID. As I switch the rows the function will update the hidden field but doesn't do it correctly if I switch a number …

Member Avatar for WarrenN
0
124
Member Avatar for totalwar235

this questions may be vague, but how many functions can you open up through function calls without ending the function. and example would be... [CODE] int FunctionOne(); int FunctionTwo(); int FunctionThree(); int FunctionFour(); int FunctionFive(); int main() { FunctionOne(); return 0; } int FunctionOne() { FunctionTwo; return 0; } int …

Member Avatar for Duki
1
157
Member Avatar for thunderbird123

Hello, Can anybody please tell me how to get a free internet on Samsung L170 or any other samsung mobile. I am struggling from 3 weeks and can't find anything. Please Help.... Thanks................

Member Avatar for peter_budo
0
123
Member Avatar for teedoff

Ok I have developed some cf templates to do simple cruds to our database that is newly set up. Eventually at least one more person will be performing these data entry routines. We have an office network, but I thought we had an inhouse local server, which I think we …

Member Avatar for teedoff
0
112
Member Avatar for falconwise

Original Problem I have an existing 2D array that is already filled with data for a matrix. I also have a structure that has a pointer looking like this double ** pointer. That being said. Here's a miniature version of the problem [CODE]#include <stdio.h> int main (){ int stuff [2][2]; …

Member Avatar for falconwise
0
114
Member Avatar for teedoff

Ok I know I'll get heckled for this..lol but...It's been so long since I configured my ftp login info, I have lost my password. I use Dreamweaver, so is there a file that stores your password like MySQL does? MySQL has a text file or .ini file somewhere that stores …

Member Avatar for teedoff
0
80
Member Avatar for ivan3510

Hi! Sorry for my bad english. I have one video. I want to make page that will display this video (like youtube), but I don't know how. In youtube there is a original page with video (I think, made with 'header(Content:application/x-shockwave-flash objekt)'). I want to make that too. But I …

Member Avatar for ivan3510
0
204
Member Avatar for dennishall

Hi there: The code below lays out 3 divs, the 1st. div contains a slideshow, the 2nd. div is a container for the 3rd div which contains buttons to override the slideshow and replace it with a new image in the slidshow div. All the above scenario works perfectly. Where …

Member Avatar for dennishall
0
253
Member Avatar for angel392004

i'm currently working on my thesis e-voting system. and i need to modify my search candidate and search voter form. the data from my database is already loaded in my listview when the system. what i want to do is while i am typing in the search text box, at …

Member Avatar for Alexpap
0
2K
Member Avatar for challarao

Hi! I wrote a program on iteration of numbers means-- if n=10 ---n=10/2=5 5 is odd so 3(n)+1 upto getting 1. Here is program [CODE]#include<stdio.h> main() { int i,n,c=0; printf("n= "); scanf("%d",n); while(n!=1){ if(n%2==0){ n=n/2; } else{ n=3*n+1; } printf("%d\t",n); c++; printf("%d\n",c);/*printing no of iterations of n*/ } }[/CODE] I …

Member Avatar for Ancient Dragon
0
135
Member Avatar for qwest21

Hi everyone I have to write client/server client/client chat program for at least three machines(users) connected together to chat using java My questions are 1. Do i need to have a server installed ina one of the machines. 2. Do i have to run the server side onf the application …

Member Avatar for masijade
0
365
Member Avatar for rje7

I am trying to split up the registration form into two php pages. Is it possible for the second page to submit its form along with the $_post which contains the information from the first page? well the question should be.. is there a function in php which will bind …

Member Avatar for rje7
0
127
Member Avatar for D33wakar

I was using winsound module for the first time to use it on one of my small app,and it didn't even gave me a BEEP!. I imported winsound module first. [CODE] >>> import winsound >>> [/CODE] then [CODE]winsound.Beep(37,10)[/CODE]leads to nothing! Any kinda help is appreciated.

Member Avatar for vegaseat
0
9K
Member Avatar for gchurch

hey well i have a drop down menu or four that collects the day, month, year and number of nights spent over. i'm havin difficulty caluclating the departure date with all this info. can anyone help me???

Member Avatar for gchurch
0
88
Member Avatar for Usmaan

Hi Folks, A couple of questions... If in a class I have a main which is obviously static, do I have to make every method in the same class static as well? What does static actually mean and how does it affect the program? Also.. When given a certain method …

Member Avatar for Geekitygeek
1
150
Member Avatar for Empireryan

I am writing code for a guessing game program. The game is supposed to generate a random number, 3 digit number and let the user guess what it is, providing feedback for every wrong input. It is also supposed to perform 10 iterations, keeping track of the number of guesses. …

Member Avatar for Fbody
0
531
Member Avatar for phouse512

Hello, I've looked all over for the solution to this problem, but they all present a similar solution to this one and they all don't work. I've created the JFrame in the constructor for the class that this method is contained in. [CODE] public void print() { JPanel panel = …

Member Avatar for phouse512
0
77
Member Avatar for gchurch

is it possible to use a vaiable within the date() insted of using y-m-d. i want to use $day-$month-$year

Member Avatar for gchurch
0
115
Member Avatar for yap_1991

Hi all Im experiencing problems whereby my codes can only read one file instead of all files in my directory. Does anyone know anything regarding this? Below are my codes: [CODE]import java.io.*; import java.util.*; public class extractionn { public static void main( String[] args ) { File dir = new …

Member Avatar for NormR1
0
134
Member Avatar for sabeeh ahmed

hii QUESTION: Take any 4 integers add them and print the first and last digit of the answer the restriction is that i can only use scanf command and data types.. I AM VERY THANK FULL IF SOMEBODY SOLVED MY PROBLEM

Member Avatar for sabeeh ahmed
0
93
Member Avatar for JBLDW

I have the following code section that is used for displaying a list of items and would like to modify it so it displays as a multi column display. I have been told that I need to use a counter, but I cannot find any information on how to do …

Member Avatar for JBLDW
0
214
Member Avatar for jjf3rd77

Hello all I am new to this community have found help on it without even joining however I cannot find a solution to my specific problem... Write a program that reads five numbers (each between 1 and 30). For each number read, your program should print a line containing that …

Member Avatar for hupy
0
858
Member Avatar for anoop4real

Hi, I have an sqlce query where I dynamically constructs the string by appending different strings. I have a field where I append a product name and its subname. Say for example main name "Pepsi" and Subname "Large", there are some instance where the Subname is empty and the subname …

Member Avatar for anoop4real
0
115
Member Avatar for erogol

I am searching about programming languages to choose for improving myself in one of them in the way of my aims. Thus, I want to learn what is special for python and what is the general purpose of using this language, it is suitable for what kind of programs. Please …

Member Avatar for snippsat
0
146
Member Avatar for AutoC

Hi, I have a string that looks like this \\x\\y\\z-Select * from x where y=z I need to split this at the '-' into two strings. When I use substr as, [code] string s = "\\x\\y\\z-Select * from x where y=z"; size_t p = s.find("-"); if(p!=string::npos) string query = s.substr(p+1); …

Member Avatar for AutoC
0
251
Member Avatar for jjemphoung

good day! i'm a newbie in php. but i know the basic things like what is server side and what is client side. my question is is it "OK" if i place a php script (which is a server side) in the page that my client views? i dont know …

Member Avatar for jjemphoung
0
125
Member Avatar for patton228

I have to add inputs just in case i have up to nine lines that i need to add feet values too. but im curious if i only have 5 lines to input is there a way to bypass the other inputs cause if i in put zero it has …

Member Avatar for patton228
0
156
Member Avatar for sadaka

Hey how's it goin' every body, I am pretty new to opengl so please bear with me a little k. Here goes... I downloaded glut.dll,glut.lib and glut.h. Placed them in the following directories: glut32.dll to windows system32 directory, glut32.lib to dev-cpp lib directory, and glut.h to dev-cpp gl directory. Yet …

Member Avatar for sadaka
0
155
Member Avatar for lwaterfo

Hello again everyone.. I have a form with an e-mail input. After the user enters their e-mail, I want to have the content of the form sent to them... The name of the form textfield for the e-mail is "email". How could I make this happen in the php script?? …

Member Avatar for lwaterfo
0
171
Member Avatar for cpeepee

I've read a few threads on this site; all seem to provide almost everything I need to complete this project, but I just cannot get there. What I am trying to do is, instead of reading the raw text from a local text file and counting the word, have the …

Member Avatar for cpeepee
0
154
Member Avatar for vincezed

Hi i'm new to programming . I'm creating a project in C#.net using visual studio. I'm facing problem. Creating a login button and a new login ID button. the new login ID should store the details in the database and when the same is entered in the login text box, …

Member Avatar for muzikhera
0
218
Member Avatar for bmos31

I'm having trouble even getting started with this problem. I've tried looking at other examples, but I'm completely stuck. The question and my code(not even sure if im on the right track) is as follows: Write a function called decToBinaryString that recieves a non-negative int and returns a string that …

Member Avatar for bmos31
0
195
Member Avatar for jumpdlite

i am to write a C++ program to output the binary (base – 2) representation of a decimal integer. the program should accept a positive integer from the user. After verifying that the input is valid, the program should call a function named toBin, which outputs the binary representation of …

Member Avatar for NicAx64
0
167
Member Avatar for nssltd

hi well i have been doing c sharp for a while and i think i'm getting quite good at it. I have began to add my own person touch to my applications IE custom cursors and custom buttons. I was just wondering if it is possible to make a custom …

Member Avatar for Diamonddrake
0
253
Member Avatar for civus

Hi Guys, I'm wondering if someone can help me out with a problem I've been having with VC++. I'm obviously just beginning to learn C++ and have been working with CodeBlocks and VC++ 2010 Express. My problem is that the following code compiles in CodeBlocks but gives me numerous errors …

Member Avatar for civus
0
264
Member Avatar for grahf23

Hi, i'm new to C++ and been trying to write a simple program to compare the randomly generator number with the number input. But once i got the num1 = num2; the program keep prompting for new input. Any help would be appreciated. Thanks in advance! [CODE]#include <iostream> #include <stdlib.h> …

Member Avatar for grahf23
0
157
Member Avatar for David_Omid

Hey guys, I was wondering if any of you could help me with some stuff which may seem obvious to you but I'm a beginner. I'm making a calculator and have reached the part where I am making the buttons change the string on the calculator's "screen". The way I …

Member Avatar for David_Omid
0
93
Member Avatar for CALGACUS

Hi Everyone, I'm fairly new to Java, and am having problems in trying to convert an ArrayList containing String arrays to an array of String arrays. I thought it would be relatively simple to do, but I keep running into problems. I've looked at all the examples I've been able …

Member Avatar for NormR1
0
162
Member Avatar for smohrchi

New to python and I'm trying to save and import my first modules. When I go to import my first module which I've named convert.py I receive the following error: Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> import convert File "C:\Python27\convert.py", line 1 Python 2.7 (r27:82525, …

Member Avatar for smohrchi
0
152
Member Avatar for reginaj

Hello Colleagues, I have not done C programming in years. I need some help in debugging a C program written by someone who has left our team. I have marked the lines having the error with "-->" Your kind assistance is very much appreciated. Here's the code: 1 #include <stdio.h> …

0
46

The End.