199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for TJW

Hello: (I am using Borland C++ Builder 6 Professional) Before you jump all over me I've already read the post Returing Arrays C/C++ and completely understand. For some reason I am still having difficulty implementing in my project. Very brief Project Explanation: I am collecting data from a laser sensor …

Member Avatar for espar
0
397
Member Avatar for ricky_125

Hello, Any ideas why this is giving a segmentation fault?: #include <iostream> #include <new> using namespace std; struct List { int A; int B; List *next; }; int main(void) { int llength; llength=1111111111; List *L; L= new List[llength]; L[37370197].B=-37370197; delete [] L; return 0; } Cheers

Member Avatar for ricky_125
0
135
Member Avatar for MasterGberry

Okay, so I finished the first of a few files on the converting, and I am getting some errors, and yes I have googled them and tried to fix to no avail, I am a noob on programming and am being told to work on a high level project, which …

Member Avatar for MasterGberry
0
881
Member Avatar for PeterWaij

I hope somone can help me. I made a page and used jquery for a popup page. In the popup page i have 15 images. I want the user to select a image and once the image is clicked it must be displayed on the main page. I have tried …

Member Avatar for JCWD
0
124
Member Avatar for amir malik

hello everyone... m writin a code that will take data frm stdin from user which can b of indefinte size.. but i cant make use of static arrays....and even calloc and malloc is not working properly...what sud i do??? thanks for help...

Member Avatar for amir malik
0
285
Member Avatar for kkjay

Hi Guys. Still learning PHP and I have been trying for the last few hours to display thumbnails from a database unsuccessfully. I would like them to be in the format: image1 image2 image3 image4 image5 image6 image7 image8 image9 etc. regardless of the number of rows returned. My sql …

Member Avatar for kkjay
0
817
Member Avatar for Elandir

Hi there, I have a little problem with commands. I know this is about shell scripting but i couldn't find a thread for commandlines. So i have this assignment to "display all the lines for tcp- services and udp- services and count the lines" and i honestly don't have an …

Member Avatar for Elandir
0
210
Member Avatar for mushget
Member Avatar for anita_86

Hi! I am trying to find a hint about Hierarchical login panel in PHP which authenticates the login user and gives rights as per his position in hierarchy like follows: [QUOTE] Administrator-> Manager -> Business Developer | Programmer -> Marketing Executive [/QUOTE] Where login rights are descending as per user …

Member Avatar for pritaeas
0
67
Member Avatar for SpecialForce

Hello, I have the following code: [CODE]#pragma warning(disable: 4786) #include <io.h> #include <string> #include <vector> #include <list> #include <iostream> using namespace std; // structure to hold a directory and all its filenames. struct FILELIST { string path; vector<string> theList; }; void TransverseDirectory(string path, list<FILELIST>& theList) { struct _finddatai64_t data; string …

Member Avatar for SpecialForce
0
196
Member Avatar for BigDeveloper

Hello, I want to write a function which takes two linked list and check smaller The function CheckSmaller should return 1 if num1 points to a linked list which represents a smaller number than the number pointed to by num2 linked list. Otherwise, it returns -1. If both linked list …

Member Avatar for BigDeveloper
0
147
Member Avatar for vedro-compota

Hi guys ) Please help me - I can't understand - what's the meaning of this error message . [QUOTE]Object reference not set to an instance of an object.[/QUOTE] for this piece of code - [CODE]CityName = "NY"; this.MapCityMass.ArrayOfCities[this.NumberOfCities].CityName = CityName; [/CODE] this class's code - [CODE]public class CITY { …

Member Avatar for vedro-compota
0
197
Member Avatar for ryathegr8

hi this is my code for forget password module..... i dont know why its not working....:(( i have attached the snapshot as well.... plz help me.... error is while updating..... [code] string strCon = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString; SqlConnection objcon = new SqlConnection(strCon); objcon.Open(); string str1 = "'"+txt_EmpFP_Uname.Text+"'"; string str2 = "'" + …

Member Avatar for kvprajapati
0
71
Member Avatar for ubi_ct83

hi guys, thanks for viewing my thread. i have a program in java application and i want to connect to mysql database because i need to use database for a few parameter.the result will b showed in web-page using php. my question is how can i connect my program to …

Member Avatar for smantscheff
0
165
Member Avatar for HelenLF

I am displaying data from an sql database in a textarea which will be altered by the user then re-submitted to the database. The problem is displaying a line break. I get <br /> displayed in the textarea rather than the newline. Can anyone help?

Member Avatar for HelenLF
0
112
Member Avatar for methmignonne

hi, i want to convert a color image into a greyscale image. after loading the color image, i have to count pixel by pixel to get the frequency of the color (0-255) to be placed in an array. can anyone help me how to count the frequency? thx in advance.

Member Avatar for methmignonne
0
1K
Member Avatar for borillion

Im trying to implement JCarousel in my site and have some confusion about what to do, two files, one called similar_products_stack which contains the query: [CODE]<?php $similar_items = array(); $category_in_now = zen_get_products_category_id($_GET['products_id']); for($i=0;$i<4;$i++) { $products_query_raw = "SELECT p.products_id, p.products_type, pd.products_name, p.products_image, p.products_price, p.products_model, p.manufacturers_id, p.master_categories_id FROM " . TABLE_PRODUCTS . …

Member Avatar for Airshow
0
163
Member Avatar for anita_86

Hi!, I have a contacts table in MySQL and I want output in a select menu. Problem is, some rows dont have any record in it, and it is displayed in very odd way as it outputs blank fields and some data in between. My overall code is: [CODE]<?PHP $query=mysql_query("SELECT …

Member Avatar for pritaeas
0
120
Member Avatar for JonaRab

hey everybody can anyone helps me, please? i must program a projekt but i don´t know how i do it. the projekt: Write a program to convert from 12-hour time format to 24-hour time format. The 12- hour format has the form hours:minutes followed by either A, P, AM, or …

Member Avatar for wolfson109
0
309
Member Avatar for Dorson8009

Hello, this is a newbie question, sorry for that, I am trying to port some Java code to C++. In this code I have a hashmap connecting string values to float arrays of varying sizes. They are specified like this: [CODE=Java] HashMap <String, float[]> hm = new HashMap <String, float[]> …

Member Avatar for Dorson8009
0
168
Member Avatar for MaddTechwf

I'm trying to call other EXE's from my program I'm writing. Inside my project I have a folder called progs with exe's inside it. How can I call these from button clicks?

Member Avatar for betabasic
0
101
Member Avatar for hitomi_inukai

Hi. I'm developing a software for my degree project. I have some problems in sorting the probability item from linkedList object. Here are the snippets of my code (I have almost 400 lines, so if the below is not enough, please let me know) CLASS LINKEDLIST [CODE] class LinkedList implements …

Member Avatar for hitomi_inukai
0
109
Member Avatar for 54uydf

I can't figure out what am I doing wrong!! please help me before I lose it! I'm trying to send 2 different strings to a function that will put each word in the string into a MAP. string 1:[B] "I CAR Collision Repair Training"[/B] string 2: [B]"Autocar India"[/B] my map …

Member Avatar for 54uydf
0
156
Member Avatar for bbinais

i want the code for if user try to access the login screen for more than 3 times with invalid password then account should lock plzzzzzzzzzzzz......

Member Avatar for bbinais
0
467
Member Avatar for kvkc

Hi can somebody help at the earliest . My requirement is to download a file from the remote server and read it in order to insert into db. So, i have written a shell script that downloads the file. This has to be invoked by a java program, after downloading …

Member Avatar for masijade
0
1K
Member Avatar for dips255

I am facing a problem on setting up some cookies with asp on IE6 and IE7 I need to set following cookies when user logs in to his account. Response.Cookies("crmadmin_login_id") = session("login_id") Response.Cookies("crmadmin_cuser_id") = rsbrokercrm("cuser_id") crmuserlevel = cint(rsbrokercrm("cuser_level")) Response.Cookies("crmadmin_level") = crmuserlevel Response.Cookies("cid") = rsbrokercrm("c_id") Response.Cookies("company_name") = rsbrokercrm("Company_Name") When I comment …

Member Avatar for ArtistScope
0
113
Member Avatar for messengerman

i want to parse a file,my problem is in lines 2,3,4 of each person(every 4line make a person from my class person)numbers of my variables in lines 2,3,4 changed.i want to push_back each of variable in line 2 in a vector until it comes to "\n",i want to continue this …

Member Avatar for jonsca
0
287
Member Avatar for sunny124

Hi, I'm trying to insert data into array after I retrieve it from database but I keep getting this error message: 'Fatal error: Cannot use object of type stdClass as array in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\DeliciousCupcakes\system\application\models\cupcake.php on line 22' Please help me. The framework I'm using is codeigniter. DefaultDirectory.php file …

Member Avatar for sunny124
0
260
Member Avatar for bbinais

please help me.... i want a error message "invalid user name or password" when i input wrong username or password in the login page. i can do it in an another page .but i need the error message in the same loginpage like gmail(between username and password). this is my …

Member Avatar for bbinais
0
4K
Member Avatar for shailaja mohite

hi i had create classic asp one application in which send emails using smtp server using my domain name but it display error("transport of connect to the server failed") how to send emails..

Member Avatar for ArtistScope
0
285
Member Avatar for david56connor

Hi, I have a piece of code which loops through checked checkboxes to do something with each of them. After each turn in the loop I want to pause before it continues to the next checkbox until the user enters a piece of text into the text box. I have …

Member Avatar for david56connor
0
2K
Member Avatar for DaveatWinton

So i have tried basically 30 different methods of going about this all with different errors in every form and fashion. Basically all im trying to do is write to my database in some form or fashon. Im having no problems reading from it but i need to change some …

Member Avatar for kvprajapati
0
153
Member Avatar for kdcorp87

[CODE]FileInfo[] Images; Images = Folder.GetFiles("Image Files (JPEG,GIF,BMP)|*.jpg;*.jpeg;*.gif;*.bmp|JPEG Files(*.jpg;*.jpeg)|*.jpg;*.jpeg|GIF Files(*.gif)|*.gif|BMP Files(*.bmp)|*.bmp|All Files|*.*", SearchOption.AllDirectories);[/CODE] getting error here [B]An unhandled exception of type 'System.ArgumentException' occurred in mscorlib.dll Additional information: Illegal characters in path.[/B] completely confused because it works nice in other app. what i m missing? help

Member Avatar for kvprajapati
0
156
Member Avatar for venky.skcet

Hi Friends :cool: Am creating a personal diary application using VB.Net. When i publish the solution i get the .exe file. But when i install it, it gets installed in the C drive by default. My question is cant it be installed in someother drive. If it cant someone pls …

Member Avatar for kvprajapati
0
224
Member Avatar for ZEZO2010

HEllO EVERY ONE I need you help in my java code that I built on netbeans First I will example the idea of the programm GUI are containing two textfeild The first textfeild the user have to enter price The second textfeild the user have to enter weight then when …

Member Avatar for Democles
0
191
Member Avatar for kk33

Hi all , I am having problem about killing multiple treads in my program at the same time, here is my code: [CODE] int main() { while(1) { i++; HANDLE thread =(HANDLE)_beginthread(TheThread, 0, NULL); if(i==10) break; } Sleep(3000); TerminateThread(thread,0); return 0; } [/CODE] now "TerminateThread(thread,0);" will only terminate the 10th …

Member Avatar for Ancient Dragon
0
250
Member Avatar for deucalion0

Hey there guys. I was hoping someone would be able to help me figure out how to increment enumeration. I have a game that uses enumeration to get the points for killing an enemy, I want the value of the enemy to increment by 10 every time one of the …

Member Avatar for Momerath
0
153
Member Avatar for ibdatx

Hi I have two windows (Window1 and Window2) and want to set Window1 as the owner of Window2. Furthermore I want the controls on Window1 to be inherited by Window2. For instance I have a listbox list1 on Window1 and I want list1 to be in context even in Window2. …

Member Avatar for ibdatx
0
164
Member Avatar for aaronmk2

When I read in this file it reads in the entire line. [CODE] string filename ="f:\\date.txt"; FileStream f = new FileStream(filename, FileMode.Open); StreamReader stream = new StreamReader(f); int line; int[] array = new int[15]; for (int i = 0; i < 15; i++) { line = stream.Read(); // header line …

Member Avatar for aaronmk2
0
92
Member Avatar for Disloxic2

Hi Guys, I need the following code to allow all common image formats, not just .jpgs, as I now need to display animated .gif images, as well as .jpgs. How could this be done? Many thanks, Dave ps: the code below uses a loop to count through the 7 images, …

Member Avatar for Disloxic2
0
101
Member Avatar for ethanbuckley

Error 26 error C2061: syntax error : identifier 'Form1' c:\Users\Black Chocobo\Desktop\WaveMachine\managesongs\WaveMachine\WaveMachine\WaveMachine\WaveMachine.cpp 16 [CODE]// Create the main window and run it Application::Run(gcnew Form1.h());[/CODE]

Member Avatar for jonsca
0
122
Member Avatar for ethanbuckley

1>c:\users\black chocobo\desktop\wavemachine\managesongs\wavemachine\wavemachine\wavemachine\Form1.h(334) : error C3845: 'WaveMachine::Form1::filePath': only static data members can be initialized inside a ref class or value type [CODE] // the actual music file and its path is kept in the second subItem (of each track) String^ filePath = this->listView1->CheckedItems[0]->SubItems[2]->Text;[/CODE] Any suggestions

Member Avatar for jonsca
0
162
Member Avatar for saadahkh

Hi every body . iam writing a code that reads a line from input file and searches it in test file. but my getline() function reads only the first line and enters an infinite loop i have read many discussions on the topic but still unable to resolve the issue. …

Member Avatar for WaltP
0
516
Member Avatar for blueman:-0

I have device and have the driver of it ,the device send data to me by serial port how i can receive that data in java .

Member Avatar for blueman:-0
0
86
Member Avatar for blueman:-0
Member Avatar for zlloyd1

I have a project I am near completing except I cannot properly test it because the array uses sessions and is full of useless data now. I have an HTML entry form that feeds data to this PHP script: [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"> <title>Directory</title> …

Member Avatar for zlloyd1
0
157
Member Avatar for MaddTechwf

I'm trying to figure how to pull the computers workgroup name using VB.NET. Any help would be great.

Member Avatar for Unhnd_Exception
0
734
Member Avatar for tarwara

I have used mailing in asp on local host which worked fine but The prob has occurred when i hosted the pages the error message is: Failure sending mail. and the code i am using: [code] Dim message As New MailMessage message.From = New MailAddress("xxx@gmail.com") message.To.Add(New MailAddress("xxx@yahoo.com")) message.Subject = test …

Member Avatar for jugosoft
0
978
Member Avatar for mbhanley

Can anyone tell me if I am going in the wright direction with this, or if there is a better way, I am trying to create a session check so that if logged in clients change the url id number example.com?id=192 it won't show other clients contents. Its the first …

Member Avatar for paulrajj
0
179
Member Avatar for thecstudent

Hello to everyone! or should I say, "Hello World"? I am new to C and new to this forum, and this is my first post. I wrote a simple C program which I called: isitprime.c and generated [B]isitprime.exe[/B]. I can call this program [B]isitprime.exe[/B] from the command line with an …

Member Avatar for thecstudent
0
309

The End.