199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for server_crash

I made this simple program that prints out all the factors of a given number. The only problem is that it prints out the numbers in different order...For example: factors of 12: 1*12 2*6 3*4 but this is what my program prints out: 1*12 2*6 3*4 [B]4*3 6*2 12*1[/B] It's …

Member Avatar for Momerath
0
163
Member Avatar for helbirah

Hi, i'm a newbie, and i have a trouble with a program. The program doesn't work as i desire. This is a little fragment of my program: [code=c] //Requesting data from users. cout<<"\n\nEnter your last name:\n\t"; getline(cin,flast); cout<<"\nEnter your mother's maiden last name:\n\t"; getline(cin,mlast); cout<<"\nEnter your first name:\n\t"; getline(cin,name); [/code] …

Member Avatar for jonsca
0
121
Member Avatar for MaddTechwf

After doing some searching on the site, I was able to get the following code to return the running processes on the computer. [CODE] Private Sub ProcessMonitor_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim Prc As Process() Dim x As Integer Prc = Process.GetProcesses For x = …

Member Avatar for codeorder
0
164
Member Avatar for jimJohnson

I am finishing up a program and have a few issues. I get the following error twice in the program... error C2664: 'CreateFileW' : cannot convert parameter 1 from 'char *' to 'LPCWSTR' 1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast Can someone please …

Member Avatar for luce
0
214
Member Avatar for altayar

Hello .. I am trying to open an encrypted file, and then pass it to my decryption method to decrypt it and display the text on the screen .. I'm getting a null! This is my decrypt code: [CODE] public String decrypt(String encrypted) { StringBuilder decryption = new StringBuilder(); for(int …

Member Avatar for Taywin
0
104
Member Avatar for bharath54321
Member Avatar for faizlo

Hi, I am doing a C++ self-study and I got stuck with this problem. I want to have a code that asks the suer to enter two numbers and then it lists the numbers between these two numbers. It has also to print a message if these two numbers are …

Member Avatar for winrycool1
0
167
Member Avatar for judithSampathwa

hi , can some one provide me with a tutorial in creating user group in ms sql and assigning users to that group appreciate a lot thanks

Member Avatar for judithSampathwa
0
299
Member Avatar for yoge911

hey guyz, i have created an application in vb.net and now i want to create custom uninstaller which asks for a password during uninstallation of the application. if password is correct, then start the uninstallation process else exit the process of uninstalation. i always used clickonce deployment type installation and …

Member Avatar for yoge911
0
145
Member Avatar for Accendo

I have tried having a look around on the web at different forums and can't decipher how to do this. This is my Link class: [code] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace LinkedListGen { class LinkGen<T> { private T data; private LinkGen<T> next; public LinkGen(T item) { …

Member Avatar for Accendo
0
1K
Member Avatar for markymark180

Hi apologies as I guess this has been covered on a number of occassions, but I am very much new to web devt and am struggling to patch code snippets on google results on similar sounding queries into my own. I have been coding a page, which has an iframe, …

Member Avatar for Akash Saikia
0
2K
Member Avatar for margeaux54

ı have problem with this program because ı want cin>> number; int count[number]={0}; ... .. .. for ( ............ ) count[b]=count[b] +1; ı could not such a segment in my program. my aim is that for each entered number , ı will count something ı want to learn this. devc++ …

Member Avatar for margeaux54
0
102
Member Avatar for devilstar1987

Hi Guys, I'm trying to get an image to show instead of text in this button array [CODE]$button = array( 'id' => 'not_friends', 'component' => 'friends', 'must_be_logged_in' => true, 'block_self' => true, 'wrapper_class' => 'friendship-button not_friends', 'wrapper_id' => 'friendship-button-' . $potential_friend_id, 'link_class' => '', 'link_href' => wp_nonce_url( $bp->loggedin_user->domain . $bp->friends->slug …

Member Avatar for diafol
0
107
Member Avatar for P.manidas

Dear Sir/Madam, I have used Pop Up menu to show the list_Item of a list box on Up and Down Arrow KeyPressed event. But here i can't see the list item continuously by pressing up or down keys, either i have to click/enter on that pop up menu or in …

Member Avatar for AndreRet
0
818
Member Avatar for Jaseem Ahmed
Member Avatar for Jx_Man
0
156
Member Avatar for Arjun_Sarankulu

Below is my code [code] SW = File.CreateText("D:\\PNB\\" + System.DateTime.Now.Date.ToString("ddMMyyyy") + "_" + bn + ".txt"); [/code] Here the file is create in d:/Pnb which is hard coded But i want to save it where the user want it to Can any one Help me for the same

Member Avatar for RobbertKeesing
0
213
Member Avatar for andrewschools

Hello - Looking to find a function that works just like the php function uasort() but have it maintain the relative order of items when equal keys are found. Here's my code now: [CODE] $array = array("item1"=>-1,"item2"=>-1,"item3"=>-1,"item4"=>0,"item5"=>2,"item6"=>2,"item7"=>1); function sortThis($a,$b) { if( $a == -1 || $b == -1 ) { …

Member Avatar for redfox23
0
2K
Member Avatar for klemme

Hey everyone! After some research I have found that I need some javescript help to process a users click from a html drop down select list.. I am trying to create an admin area for a website in php and using mysql database. In my admin home page, I have …

Member Avatar for Airshow
0
182
Member Avatar for george61

In the following problem I have to find the number > 40755 which is triangular,pentagonal and hexagonal. The formulas for these type of numbers are given below. As I read every hexagonal number is also triangular so we have to compare pentagonal with hexagonal numbers. This algorithm gives 9 digit …

Member Avatar for george61
0
869
Member Avatar for vedro-compota

hi there!) friends, i have deal with IEnumerable interface. At msdn there is an example but it's quite difficult to understand, so if someone can i ask to comment this lines which are in bold - [CODE]public class Person { public Person(string fName, string lName) { this.firstName = fName; this.lastName …

Member Avatar for vedro-compota
0
142
Member Avatar for manish250

hello all i am using a query [ICODE]select 'hour','filename','tot_sent_count','tot_success','tot_prm_fail','tot_switchedoff','tot_other_error' UNION select hour,filename,sum(tot_sent_count),sum(tot_success),sum(tot_prm_fail),sum(tot_switchedoff),sum(tot_other_error) INTO OUTFILE '/tmp/hourlyFileMis(2011-03-09)' FIELDS TERMINATED BY ',' LINES TERMINATED BY '\r\n' from tbl_mis where date_format(date_time,'%Y-%m-%d')='2011-03-09' group by hour,filename order by hour;[/ICODE] output is ok but one thing is not coming properly that header fields are coming at the …

Member Avatar for smantscheff
0
185
Member Avatar for jacob21

Hello, I am using a java script to select a date from date picker.After selecting date from calender,it shown in the text box but it is not saved in the database. In database takes this value 0000-00-00 for every date. Please suggest me any idea for above. Thanks

Member Avatar for perfectweb
0
171
Member Avatar for cloudspade

Hey !can somebody help me how to create a incremental search(numerical method) program using python!

Member Avatar for Zeref
0
105
Member Avatar for l_savitha

Can any one suggest how to proceed with this. On clicking on print button it should start printing on the console while the other button end is clicked it should stop printing. When print button is clicked end button click is not recognised until process is print process is completed

Member Avatar for l_savitha
0
119
Member Avatar for sreekiranws

Hello I need some help as to the limitations or flexibility of header files. I have written a code that updates a base folder when it is compared to its newer version. I have hit on a roadblock though. If a new file is added to the folder, the program …

Member Avatar for WaltP
0
215
Member Avatar for hery

Hello, How to run command SQLLoader Oracle in c#. I try my sourcode for run this SQLLoader, but nothing happen and error "No process is associated with this object.". Please tell me how i fix it. Thanks. This is my code: [CODE] System.Diagnostics.Process process1; process1 = new System.Diagnostics.Process(); process1.EnableRaisingEvents = …

Member Avatar for kvprajapati
0
1K
Member Avatar for TwijoO

As the title says i am trying to click this button... [URL="http://gyazo.com/5776f257d554f0b590944bc6474e1db3.png"]Pic[/URL] (The save one) on this webpage... [url]http://upload.youtube.com/my_videos_upload?restrict=html_form[/url] I have been trying various permutatuons of this [CODE]Dim j As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("BUTTON") For Each elem As HtmlElement In i elem.InvokeMember("click") Next[/CODE] With little luck, i also tried to find …

Member Avatar for smsmcp
0
2K
Member Avatar for VladoBG

Hey guys, i`m experiencing weird problem with an visual activeX control. I`ve created simple test winforms application on .NET 3.5 using that 3rd party activeX control. It works fine on my dev PC having VS 2008 installed... But when copy it on a machine without having VS installed on it, …

Member Avatar for VladoBG
0
184
Member Avatar for gunjannigam

I have to draw a Circular gauge using Java Graphics. Somewhat similar to the attached image, the circular gauge without the black border as in image. I tried to use two methodologies but none of them is working perfectly Firstly, I tried to draw everything using Java Graphics and then …

Member Avatar for gunjannigam
0
499
Member Avatar for hous3aholik

Hi everybody, i cant seem to make my program to pass the first user input. I know i have to put it inside a do while loop, but everyone of my attempts results in an infinite loop. I'm also aware that i should use a bool to make it work, …

Member Avatar for VernonDozier
0
2K
Member Avatar for JeanPhilippe

Hi, i'm trying to get something to work. I want to do a query with multiples "if not" conditions in a mysql query. This is working : SELECT * FROM table WHERE column!='value' This is not working : SELECT * FROM table WHERE column!='value' OR column2!='value' I've tried all kind …

Member Avatar for ifezuec
0
121
Member Avatar for critznikkian

Well im currently developing a system, a admission system to be exactly im having issues with if else statement through the search engine of my system so here it goes i have a database/table that contains name and status the name can be any string"not a big deal" then the …

Member Avatar for AndreRet
0
118
Member Avatar for McLaren

Hi, I don't undestarnd what I did wrong. When I go to joomla home, I mean [url]http://localhost/joomla15/[/url] (joomla wenbsite is placed in joomla15 folder) I get an error 404 - Component not found Yeah, I played around with components, and made some component to home menu, but now don't know …

Member Avatar for McLaren
0
82
Member Avatar for apple12

Please help me to put a condition in data report in vb 6 where in the user can choose the information that she/he want to show and printout. I used module for my connection on my database, then my problem is, as a user how can i print the specific …

Member Avatar for AndreRet
0
88
Member Avatar for bhoomikajodhani

Hello, i have created Calender for a year and i m checking the existance of each day in database and filling color accodingly.Also in my calender i can make "sunday or sturday" to normal day.My form if gettting hang. So i have used thread to load the calender but still …

Member Avatar for bhoomikajodhani
0
95
Member Avatar for caswimmer2011

Hello, I am making a simple program that has you select Bible chapters and verses. I have all the chapters and verses in separate text files. I moved them into my source package. I am having trouble finding the code to put in the program so that java will open …

Member Avatar for vadayattu
0
226
Member Avatar for Zephyr-

Hey, I have a class called Greyhounds. In the variable declarations, I have: [CODE]public Random randomizer = new Random();[/CODE] I know how to use random.next and everything. Here's where the problem is. The greyhounds class has a method Run(). [CODE]public bool Run() { int moveForward = randomizer.Next(4) + 1; currentLocation …

Member Avatar for ddanbe
0
128
Member Avatar for Piya27

Hi All, I am developing an Excel Add-in using Visual Studio Tools for Office using C#. However, the problem is that i want to use the SOLVER add-in that is available in Excel in my code. I cannot find any way or documentation anywhere for doing the same. However i …

0
266
Member Avatar for Dionysus

Hi I was hoping if anyone could help me figure out what im doing wrong. I wanted to delete a specific line in a text file using fputs...I dont know why it isn't writing on the textfile in other cases it only writes in the end of the file..' heres …

Member Avatar for James Lloyd
0
999
Member Avatar for muzmub

Hi, Im a final year computer science student, now is the time to do my final project, for us we a free to choose a project in our own, so basically i need some ideas in projects, but i was thinkling to do my project in [B]digital image processing[/B], so …

Member Avatar for Sadun89
0
290
Member Avatar for pseudorandom21

What happens when an exception is thrown from within a new thread of execution? How do I catch it? Must it be within the same thread? Also, what is the proper way to update a control residing on a form, from within a new thread? I think it would be …

Member Avatar for pseudorandom21
0
133
Member Avatar for blee93

Hi, I am doing Question 4 of the Project Euler puzzles. I wrote some code which is supposed to find the biggest palindrome from the product of 2 numbers. However, this always prints out 900099. I cannot really find any errors in this code, but if you do, please let …

Member Avatar for blee93
0
111
Member Avatar for prem2

Dear all, I have using db operations such as insert,update,select,delete in my program .I have perform this operation using the prepared statement. How to avoid the sql injection in my java program.? *)I want to know functions to avoid the escape characters in java ? *)Did any one know what …

Member Avatar for Taywin
0
1K
Member Avatar for pandaEater

How do you pass an unknown object into a function and save it? I'm trying to have a set and get function in a class I'm creating that can hold and return any object. Here are my attempts so far: [CODE] void* holder; void setHolder(void* object) { holder = object; …

Member Avatar for pandaEater
0
4K
Member Avatar for Gsterminator

The objective of my program is to sort a file of students in order from a-z using arrays. I'm using selection sort method but for some reason my code is matching what i want. for example: Enter name of a file of Students: student10.txt In forward order, students are: Sally …

Member Avatar for Taywin
0
141
Member Avatar for JudeV

What am i missing in my code. Because it is not working. According to visual studio, the istartd and iendd are unassigned local variable. [CODE] Console.WriteLine("{0, 40}", "Sphere Surface Area Evaluator"); Console.Write("\nEvaluates Surface areas of spheres of various diameter"); do { try { bError = false; Console.Write("\nEnter the starting diameter …

Member Avatar for JudeV
0
167
Member Avatar for jayzee1989

So, i have to create a program to work with a menu and run differect functions with different letters used as commands, but I cant get my program to correctly Identify if a menuinput is the same as a letter or the other. Here I keep using the letter L …

Member Avatar for WaltP
0
137
Member Avatar for ankit.pandey3

[CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Language" content="en-us" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <meta http-equiv="date" content="2003-12-02T09:54:03+08:00" /> <meta http-equiv="imagetoolbar" content="no" /> <title>Dynamically enlarge image on mouseover and mouseout</title> <style type="text/css"> body {margin:64px;} #apDiv3 { …

Member Avatar for Taywin
0
144
Member Avatar for deucalion0

Hey guys, I am building a page where I will have five links and each one will open a different image inside a div, but i need this image to be an image map, I created the image maps and the links, but I am having great difficulty in getting …

Member Avatar for Taywin
0
100
Member Avatar for insanely_sane

Ok, so you know how, if we want to output the elements of an array to the screen, we have to make a for loop right? So I have the following code... [CODE] char array[] = new char [10]; array[0] = '1'; array[1] = '2'; . . . . array[9] …

Member Avatar for jon.kiparsky
0
2K

The End.