64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for MatrixCA

Does anyone know how to change the value of FS.Length? I keep getting that it's read only. I need to read a file, let's say it's 100 bytes in size. After some data manipulation, the file becomes 40 bytes. When I write the file back , it writes the 40 …

Member Avatar for MatrixCA
0
100
Member Avatar for Jennifer84

I am using saveFileDialog1 and are trying to recognice what path that was selected when "Save" the file. I have begun some code below but are not sure what and if I will write something after saveFileDialog1-> ? [code] //Get The Path that was selected when saving the file String^ …

Member Avatar for Jennifer84
0
143
Member Avatar for Jennifer84

If I am reading a .txt file with ifstream, what is the syntax to recognice if I have reached the end of file. From what I have heard somewhere before, I think it has with eof to do ? [code] ifstream File("C:\\File1\\"); std::string Line; while( getline(File, Line, ',') ) { …

Member Avatar for Jennifer84
0
274
Member Avatar for punitdam

I m retreiving some data by using cursor inside which i m calling one recursive user defind function to retrive all child data which is linked to parent. While executing i m getting error stating : [B]Maximum stored procedure, function, trigger, or view nesting level exceeded (limit 32)[/B] How can …

Member Avatar for punitdam
0
402
Member Avatar for shouvik.d

Hi All, I am need of using a excel file as a standard template and then use a list of .csv files to populate certain rows and columns of this standard template and save it with a different name so that I can always reuse the standard template and it …

Member Avatar for shouvik.d
0
168
Member Avatar for henpecked1

I'm having a little problem with a conversion error during compile. Here is the code: [code] #include <iostream> using namespace std; class costOfItem { public: costOfItem(float i_cost); void printMe(); private: const float price; }; // Free functions void displayPrice(costOfItem z) { z.printMe(); } void displayRefPrice(costOfItem &z) { z.printMe(); } void …

Member Avatar for dougy83
0
129
Member Avatar for compumasta

[code=c++] struct if1 { string idnum;//id number for the student string lastname;//last name of student string firstname;//first name of student int examscore[maxexam];//array of all the exam scores of the student int hwscore[maxhw];//array of all the home work scores of the student }; void alphasort(if1 student[], int n) //the alphasort function …

Member Avatar for compumasta
0
935
Member Avatar for Jennifer84

I am trying to check the size of a file with this code. The file is named "OneFile.txt" and is of the size 230 kb. The MessageBox will show the number 37. If I change the file so it will be 460 kb instead, still the messageBox will show the …

Member Avatar for Jennifer84
0
174
Member Avatar for OmniX

I use an array for the first time in a while loop without declaring it(as php does not need it) [code=syntax] $variable_array[] = $fetch_array['column']; [/code] As the while loop is repeating it increases the number of the array. Am I doing this right? Should I have before the loop some …

Member Avatar for OmniX
0
122
Member Avatar for Jennifer84

I have a form (Form2) that I want to write text at the top of (In the blue field where you normally can can tell what the windows/forms name is) I thought it should be like this but I cant find "Form2" after this-> What I can find is Form2_Load …

Member Avatar for William Hemsworth
0
99
Member Avatar for fox51

hey there i have a question for you guys. my program reads a file and then save each line of the file into a multimap<string,int> containing the string and the number line. i have the convert strings in alphabetical order, like take into aetk, and thats where the problem begins …

Member Avatar for fox51
0
165
Member Avatar for Jennifer84

I have a dataGridView1. In a datagrid you can manually write columnheader names. (Each Column can have a name) What I wonder is how it is possible to programatically write a name for example column Numer 1 ? I have looked at the memeber of the class but cant really …

Member Avatar for Jennifer84
0
111
Member Avatar for Jennifer84

I have a checkedListBox1 wich consist of a many lines with text. What I am trying to do is to search trough this checkedListBox1 to see if "Hello" could be found in this box and if it is found, this Item(Line) will be selected. I am not sure what could …

Member Avatar for Jennifer84
0
145
Member Avatar for ceyesuma

If I have this line in the code[icode]java.util.Collection search = searchQuery1.getResultList();[/icode] Is this a collection of <list>? and can I find out if search should be named"Search" or does it have to be instantiated of something?

Member Avatar for Ezzaral
0
126
Member Avatar for rickarro

I'm trying to get this script to work and it is only giving me a blank white page, can someone take a look at it and see if you can tell whats wrong with it. [code] <?php // Show simple format of the records so person can choose the reference …

Member Avatar for rickarro
0
357
Member Avatar for Mr.Wobbles

I am trying to insert tables into a database that I created at runtime, I am using MS SQL Server Express, and I have tested this query and it works, in the sense that a table is created. However the small text field (stringText [char]) only has a length of …

Member Avatar for campkev
0
155
Member Avatar for veledrom

Hi guys, Both cursor works if i don't use them in one Stored procedure. Both cursors return TRUE for(cursor_x%found). But, insert into process doen't work in cursor_1. Is there any structure problem? Thanks [code] CREATE OR REPLACE PROCEDURE ADD_RENTAL_SP IS -- cursor1 CURSOR cursor_1 IS SELECT ...... rec1 VARCHAR(15); -- …

Member Avatar for veledrom
0
123
Member Avatar for blackhawk9876

[code=cplusplus] #include <iostream> #include <iomanip> #include <fstream> using namespace std; void DisplayTitle(); void DisplayBal(double); void GetData(int& , double&); double ProcessCheck(double, double); double ProcessDeposit(double, double); double ProcessATM(double, double); double ProcessSvcChg(double); struct transrec { double credids; double debits; double service charges; }; const double CHARGE = 10, ATMFEE = 2; int main() …

Member Avatar for William Hemsworth
0
181
Member Avatar for sch0009

Hi there, I have a data set ([url]http://app.lms.unimelb.edu.au/bbcswebdav/courses/600151_2008_1/datasets/entertainment/moviestats_large.csv)[/url], and i was just wondering the best way of tackling the question stated below: Which director is the most productive? I an new to python and wondering if anyone could help me out a little on this problem. I have considered trying …

Member Avatar for bvdet
0
264
Member Avatar for Oxiegen

Hi, it's me agin. I would like to know if it's possible to customize a tabcontrol, so that I can have the tabpages shown horizontally when alignment is set to left or right. If so, could someone give an example, or a link, of how to accomplish this? I've been …

Member Avatar for Oxiegen
0
360
Member Avatar for veledrom

Hi, Where is the mistake? It doesn't work. thanks [CODE] CREATE OR REPLACE TRIGGER A_ACCOUNT_EKLEME BEFORE INSERT ON A_SIPARIS CURSOR CURSOR_TARIH IS SELECT TARIH FROM A_ACCOUNT where TARIH = SYSDATE; FOR EACH ROW BEGIN IF CURSOR_TARIH%NOTFOUND THEN INSERT INTO A_ACCOUNT (TARIH, PRICE) VALUES (SYSDATE, '1'); END IF; END; [/CODE]

Member Avatar for veledrom
0
121
Member Avatar for priyav

hai everybody, i have a problem in jsp that i should access my application only by login. in my project when i give this url in my address bar "http://localhost:8080/jsp-examples/InvMgmt/test/stockrequisition.jsp". it directly goes to the stockrequisition page. i dont know how to use the session variable. here i am sending …

Member Avatar for peter_budo
0
130
Member Avatar for swapna7999

hi i want only that part of a picture which is visible in picturebox the picture may be larger than the picturebox but i want to copy only the visible part anybody help thank u vey much

Member Avatar for swapna7999
0
69
Member Avatar for swapna7999

hi i have two forms in the first form i used form2.show and in the second form from1.show but i want to reload form1 again on button click event in form2 is it possible to reload the form as it was first appeared thank u very much

Member Avatar for swapna7999
0
95
Member Avatar for sampathw

Hello, I'm developing a web theme. Before the last div tag(Which simply has an image), I have added a java script which is calling a remote server for an image output. the last div tag image doesn't get loaded until the javascript execution completes. Please let me know a way …

Member Avatar for sampathw
0
119
Member Avatar for ayman86

here is what i have to do: [url]http://www.sendspace.com/file/og252q[/url] this is what i have so far. [url]http://ayman86.pastebin.org/34381[/url] its pretty much the code in the pdf file with defined functions of quick sort, bubble sort and better bubble sort im not sure how i implement "size of array increment, and number of …

Member Avatar for ayman86
0
128
Member Avatar for Borderline

The following code given to me in another forum, as a "simple photo gallery" code, but I'm still experiencing problems with it. I don't know how to make the two pages interact correctly. I am assuming the [REF] etc sections are causing the problems, but I don't know what they …

Member Avatar for Borderline
0
91
Member Avatar for anandbabukumar

hello friends, im a php developer, am buliding a online memorial site.where the customers will register their Date of birth in a registration form .it will probe through mysql db.and i hav to send a mail for their birthday wishes in forcoming years automatically from php scripts..is it possibel.. give …

Member Avatar for nav33n
0
121
Member Avatar for Igor_MK

Hello, I have a project to make a text comparer. I've downloaded almost 90000 texts from a site, parsed them and stored the texts in a file(150MB). So now, a new text is in another file and should be compared with the others, and return a result of 20 most …

Member Avatar for woooee
0
168
Member Avatar for jamesbond110

Man, I'm so new. I'm trying to script something for a game. so here's what I got: [code] program twars; const Color = $FFFFFFFF; FISTS = 0; DEAGLES = 1; MP5 = 2; AK74 = 3; STEYR = 4; SPAS = 5; RUGER = 6; M79 = 7; BARRETT = …

Member Avatar for jamesbond110
0
288
Member Avatar for Clockowl

Hai all, I ran into a strange issue I never experienced before. Pointers are passed to function, the function allocates memory to them with calloc, and right before the return sanity checks if the pointers still != NULL. That check succeeds, but upon returning and sanity checking in the calling …

Member Avatar for Clockowl
0
102
Member Avatar for SelArom

when working with strings, I can check if it has a value by doing something like if (s == "") but how do I accomplish this with integers? I thought maybe initializing to a dummy value like 0 or -1, but what if those values might be valid? should I …

Member Avatar for SelArom
0
271
Member Avatar for mom_of_3

I have a question about using define(). I am using this function for other constants across my script ,but am looking at developing a set of language files. For example I was thinking of having one eng_defined.php and one fr_defined.php each containing the same named constants but the output would …

Member Avatar for mom_of_3
0
100
Member Avatar for sibotho

Hi All I have a table (contactDetails) in my database (Sql express) with username,password, email, contactNo, bySMS and byEmail columns. I have 2 radiobuttons in my application smsRB and EmailRB, when the user registers he must select either smsRb or EmailRB. if smsRB is selected, a "Y" is inserted under …

Member Avatar for sibotho
0
117
Member Avatar for lllllIllIlllI

Hi i was wondering the best way to time how long a function/program takes i cant work out how to do it. I tried fiddling with the time module yet i keep doing the wrong things.

Member Avatar for woooee
0
84
Member Avatar for antwan1986

Hi everyone and thanks for reading! I have a MySQL database with a table called "lessons". Inside lessons there are about six or seven fields holding information about piano lessons. The table looks like this: [CODE]vid int(10) (Primary Key) title varchar(50) date date teaser varchar(500) description varchar(2000) vurl varchar(50) extra …

Member Avatar for antwan1986
0
114
Member Avatar for Traicey

Im new to ASP and would like to know which one is the best when coding to ASP between VB.Net and C#.Net Thanx in advance

Member Avatar for majestic0110
0
141
Member Avatar for dan_e6

hey guys. just wondering what it means when a function has this in it.... void add(string title, string authors[], int nAuthors); the [] next to authors. what does this mean?

Member Avatar for dan_e6
0
265
Member Avatar for jinx_uk_98

Hi, I'm creating a web database as a bit of learning project. In short it's going to a on-line menu viewer, where people can upload (type in) their food/takeaway food menus. The problem I'm having is with the design and as each outlet can have a differing number of starters/mains/deserts …

Member Avatar for jinx_uk_98
0
85
Member Avatar for rodG

[code] # This is meant to draw Start and Stop buttons and a label # The Start button should start a loop in which the label # is configured to change colour and text. # At each pass through the loop the variable self.stop is checked: # if True the …

Member Avatar for rodG
0
4K
Member Avatar for ceyesuma

I attempt to create a string variable to a setter() that is used as query property What am I missing in the procedure to implement a simple query on the database? It stops here. [code] searchList1 = java.beans.Beans.isDesignTime() ? java.util.Collections.emptyList() : searchQuery1.getResultList(); [/code] [code] @Action public Task searchSplash() { if …

0
74
Member Avatar for nandhinijp

At the time of login Redirect to one page particularly.In my site Users can view some of the pages without login. My question is If i am in x page.At that page i want to use login page.After login I want to return that x page.But its constantly navigated to …

Member Avatar for nandhinijp
0
85
Member Avatar for lllllIllIlllI

Hi My question is: i made a program that counts up and up continuously in the background but i want it to print what number it is up to when you press a certain button such as ENTER. I have tried using raw_inputs() but all that happens is it keeps …

Member Avatar for a1eio
0
8K
Member Avatar for Mackjan

I have a list for exemple: a = [ 9,6,5,4,1,0,0,7,6] . By this function I want to delete all element which content zero and delete all element which content duplicate. But it doesn’t do exact what I want. [CODE]def rensa(a,b): j=0 for i in a: if a[j]<= 0: del a[j] …

Member Avatar for Mackjan
0
112
Member Avatar for edek

Is there any difference between C and C++ pipes implementation? Is there any C++ library that makes using pipes easier? I ask those questions because there are many 'wrapper' classes in C++ that wraps C (like string, vector etc.) Is there anything that 'wraps' pipes? <Thanks>

Member Avatar for Nick Evan
0
214
Member Avatar for still_learning

Hi, I could use a little help if anyone would be willing. I have some vectors which I am using to store input from a text file. Now I want to be able to store user input into a vector and output it to that file so that it replaces …

Member Avatar for still_learning
0
207
Member Avatar for Tess James

i need to have a hyperlink on the page having the graph code which, when clicked takes me to another page.. what should i do..please help.... thanks in advance.. :)

0
66
Member Avatar for Nithya.G

iam having some elements in xmlfile , and i want to fill tat element's values in aspx file's dropdown. how to do. Ex: iam havin <font>Times New Roman</font> in xmlfile. now i should fill "timesNewRoman" in a dropdownlist . how to do.

Member Avatar for Nithya.G
0
76
Member Avatar for ray_broome

I'm trying to carry out the following delete statements [CODE]DELETE FROM images AS i WHERE i.image_id = 803 AND i.plant_num = 2277 LIMIT 1 DELETE FROM images AS i WHERE i.image_id = 804 AND i.plant_num = 2277 LIMIT 1 DELETE FROM images AS i WHERE i.image_id = 805 AND i.plant_num …

Member Avatar for mwasif
0
3K
Member Avatar for dark_ivader

Hello, ive recently been making a program, and am trying to do some file i/o so that it can log information. Ive been trying to do it via a class. Well, i ran into a problem just clearing the char arrays (for my purposes they need to be cleared to …

Member Avatar for Lerner
0
113

The End.