132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for vineeshvs

1. any problem if i dynamically allocate memory and use only a small part of it? 2. can i free the dynamic memory after each time the function is executed?

Software Development c motherboards-cpu-ram
Member Avatar for vineeshvs
0
324
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 …

Software Development java
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] …

Software Development c++
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 = …

Software Development vb.net
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 …

Software Development c++ queue
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 …

Software Development java
Member Avatar for Taywin
0
104
Member Avatar for bharath54321
Member Avatar for Taywin
0
321
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 …

Software Development c++
Member Avatar for winrycool1
0
167
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 …

Software Development vb.net
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) { …

Software Development
Member Avatar for Accendo
0
1K
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++ …

Software Development c++
Member Avatar for margeaux54
0
102
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 …

Software Development visual-basic
Member Avatar for AndreRet
0
818
Member Avatar for Jaseem Ahmed

i have a database, i want to make it connected in vb.. tell me the coding for editing any record.

Software Development sql visual-basic
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

Software Development c#
Member Avatar for RobbertKeesing
0
213
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 …

Software Development c
Member Avatar for george61
0
871
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 …

Software Development
Member Avatar for vedro-compota
0
142
Member Avatar for cloudspade

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

Software Development 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

Software Development java
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 …

Software Development c++ file-system ios
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 = …

Software Development c# oracle
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 …

Software Development gui vb.net visual-basic web-browser
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, …

Software Development c#
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 …

Software Development java
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, …

Software Development c++
Member Avatar for VernonDozier
0
2K
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 …

Software Development visual-basic
Member Avatar for AndreRet
0
118
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 …

Software Development visual-basic
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 …

Software Development
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 …

Software Development java open-source
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 …

Software Development
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 …

Software Development c file-system
Member Avatar for James Lloyd
0
999
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 …

Software Development
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 …

Software Development c++
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 …

Software Development java sql
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; …

Software Development c++
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 …

Software Development java
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 …

Software Development visual-studio
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 …

Software Development c
Member Avatar for WaltP
0
137
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] …

Software Development java programming-construct
Member Avatar for jon.kiparsky
0
2K
Member Avatar for chanthung

hi all, Here is my code to insert and update my Access database. Problem is after the data gets updated, after a while, all the records in the database disapears...??? I am quite confused....pl help whth my code..thanks [CODE] Dim icode As Integer frmEdit_Items.ITEMTableAdapter.Insert(Me.TextBox1.Text, Me.TextBox2.Text, Me.TextBox3.Text) frmEdit_Items.ITEMTableAdapter.Fill(frmEdit_Items.KiranSDBDataSet.ITEM) frmEdit_Items.ITEMTableAdapter.Update(frmEdit_Items.KiranSDBDataSet.ITEM) icode = …

Software Development vb.net
Member Avatar for chanthung
0
187
Member Avatar for Zephyr-

Hey guys, I'm doing a class called "Greyhound" (I need to do a greyhound race for a book) Each greyhound has a corresponding picture box because they race along a horizontal track. So, my question is, let's say you have an instance of PictureBox: [CODE]PictureBox MyPictureBox = new PictureBox();[/CODE] What …

Software Development
Member Avatar for Zephyr-
0
107
Member Avatar for jkoske

[CODE] template <class T> class Llist //.... //Iterates to position and sets pointers to node at position-1 and position. template <class T> void LList<T>::iterate(Node<T>*& previous, Node<T>*& next, unsigned short pos) { //some code } //Start Iterator template <class T> inline Iterator<T> LList<T>::start() { //some code } template <class T> class …

Software Development c++ linked-list
Member Avatar for template<>
0
146
Member Avatar for tig2810

Hi all, I have a problem I always though i knew the answer to. I have a variable with spaces and I want to perform an operation on each. VAR="THIS" "THAT" "THIS AND THAT" "THIS AND THIS" for i in $VAR do echo "$i" done I thought that I should …

Software Development shell-scripting
Member Avatar for cfajohnson
0
146
Member Avatar for azibhai4u

Hiii all I am using java 1.6 and RXTXComm package (Javax.comm) package. I can read data from a electronic weighing machine. Now I have to set the weight as zero. I can tare this weight by sending T command to serial port. I had tried several times but no response …

Software Development java
Member Avatar for ferdousKhanom
0
662
Member Avatar for mitrious

In the last chapter of my book we implemented a simplified version of the vector class In the chapter I'm studying now we're implementing a simplified version of the string class ... which uses my version of the vector class (called Vec) to hold chars. [CODE]Str(const char* cp) { std::copy(cp, …

Software Development c++
Member Avatar for mitrious
0
168
Member Avatar for etypaldo

Hey, I am doing a 'Helicopter'-style game for a project where the player holds the spacebar for the main sprite to go up, releases to go down. Objects come from the right side of the screen at random y-cords moving until they hit 0 on the x-cord. The player must …

Software Development python
Member Avatar for Clotoss
0
368
Member Avatar for arjunaw

In a unix pthreads based app I'm working on, I have objects of a particular class (call it class foo) being created in multiple threads. I need a specific public method of class foo invoked at or after 60 seconds of the object coming into existence (it is not imperative …

Software Development c++ unix
Member Avatar for arjunaw
0
4K
Member Avatar for Fattman

Hi All if anyone could help me that would be great! currently i have an array which enables a user to input: Student Name Maths Mark English Mark Science Mark Array: StudentArray(25,3) i have this array output the data to a listview box. Column 1: Student Name Column 2: Maths …

Software Development data-science listview vb.net
Member Avatar for Fattman
0
271
Member Avatar for ctpsolo

So I am having trouble with the most popular error ever, memory access violation. To make a long story short I am dabbling with an old program I once wrote, it's main purpose is to parse some stuff and download some files. (It's too huge all in all so I …

Software Development c++
Member Avatar for ctpsolo
0
194
Member Avatar for aqnie

hey I am new in C++ and I have finished my code but my Prof. asked me to write pseudocode and I have no idea what that is and I dont know how to write it. Can somebody give me some example how to write pseudocde from this code. [CODE]//This …

Software Development c++
Member Avatar for aqnie
0
120

The End.