43,549 Solved Topics
Remove Filter ![]() | |
I' ve my cookie to [CODE]Dim authCookie As New HttpCookie(FormsAuthentication.FormsCookieName)[/CODE] I've just started learning about cookies not long ago,can I retrieve the cookie that I've set by using the code below? [CODE] Dim authCookie As String = FormsAuthentication.FormsCookieName If Not Request.Cookies(authCookie) Is Nothing Then 'Display requested page Else Response.Redirect("Login.aspx?") End … Software Development vb.net | |
Hi I am trying to use replace function in c# but it doesnt seems to work.Am i doing anything wrong.Thanks [code] private void btnSpanish_Click(object sender, EventArgs e) { SimpleSpanishDict.SimpleSpanishEnglishDictionary ins = new SimpleSpanishEnglishDictionary(); Hashtable aaa = ins.AllWords(); StringBuilder insertCommand = new StringBuilder(); IDictionaryEnumerator en = aaa.GetEnumerator(); if (aaa.Count > 0) … Software Development c# | |
hi, this is something i keep running into. for example, in the following example of strtok, i'm splitting a given string on a space(" ") delimiter: [code] #include<stdio.h> #include<string.h> int main() { char str[]="1234563 34 7898"; char delim[]=" "; char* result=NULL; char new[15][3]; int i=0; int j=0; bzero(new, sizeof new); … Software Development c | |
Hi everyone! So my task is this: Make a program in C which runs three processes (A,B,C), which use a common memory (buffer). Process A generates 50 random numbers and writes then into the buffer. Process B writes down every even number into file F1. Process C writes down every … Software Development c++ | |
Hi guys, Looking at this I know it is straightforward, but that hasn't meant that I have been able to get the solution - so here I am! I am entering serial numbers into a set container which is of type string. I want to be able to enter serial … Software Development c++ | |
So for this assignment we have to inherit from the base class 'Game' I think I have with my version named 'ChildGame' I would like help with checking the syntax of my function calls from main() [CODE] /*************************************************************************************** Programmer: C.Backlund Program: TicTacToe_1.cpp Purpose: A tic tac toe game Date Created: … | |
Could someone point me in the right direction? I have two excel files that I would like to merge. Is xlwrt and xlrd the place to start? If so, are these part of the standard library? Thank you. Software Development python | |
I found that in python we have no realy private attributes.we just can use _ or __.but these are not deny access to my attributes.some thing such as private variables in c++. Is it TRUE? Realy python is week in these? Software Development python | |
Hello to everyone. I am working on pattern matching. Problem is that I have match source codes weather they are copies or not (c++ source code only). take two .cpp files and match them. and result that if they are match or not.. Please help me. Thanks in Advance. Software Development c++ | |
I have a code, so far I have a problem: what is those mean? error C2143: syntax error : missing ')' before 'constant' line 65 error C2059: syntax error : ')' line 66 error C2143: syntax error : missing ';' before '{' line 67 error C2181: illegal else without matching … Software Development c++ | |
I am having trouble understanding how an interface could improve my app. I have a DAO class for each profile that logs into the app.this DAO class will know how to insert,delete,update,remove,etc concerning that profile and the database and populating components with database data . I introduced an Interface for … Software Development java | |
Hi folks, General question here... I'm writing a program which reads a ton of source data, crunches the numbers, and outputs a few nice summary reports. The source data is a lot of individual records: [B]00001,Item1,Item2,Item3,Item4,Item5,... 00002,Item1,Item2,Item3,Item4,Item5,... 00003,Item1,Item2,Item3,Item4,Item5,...[/B] Originally, I created an object called "Record," which stored each Item. But … Software Development c++ | |
Hi there, I started Python today. My first mini-project is supposed to find strings in a text-file. Here is what I have written: [CODE] infile = open("Python/es.txt","r") text = infile.read() infile.close() print text search = 'du' index = text.find(search) if index==-1: print "nothing found" else: search, "found at index", index … Software Development python | |
All parenting jokes aside, I have a general purpose status strip on my parent form that contains a progress bar and a few labels. Occasionally a child form will execute a command that could be tracked on the status bar so my users don't think that the program is hanging... … Software Development | |
Hello again, I am trying to replace a string which is actually different from line to line in a text file. I want to end up with a filename but without the path. For example: My text file contains: C:\test\testingmore\filename.mpg C:\test\testfiles1\testfile4.mpg W:\testinglocation\testingmore\testfiles9.mpg I would like to replace the path in … | |
this is what i'm doing.. [code=c++]cout << "Value:" << endl; cin>>it; //it is int cout<<1; for (pos = v->begin(); pos != v->end(); pos++) { // pos is an iterator and v is a vector<int> if (*pos < it) { v2->push_back(*pos); cout << *pos << endl; } } cout<<2;[/code] This is … Software Development c++ | |
Hi friends, I am new to c++, just find this example from the book, but when i try to run in my visual studio,its gives problem. there is no error in the codes, it compile well, and in main screen ask the user to input the selection that they want, … Software Development c c# c++ visual-studio | |
Hello everybody, I'm working in a java interface and I'm trying to use an image as a background but nothing from the result I found in the internet seems to work well with me :/ my code is: [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.border.*; import java.awt.Color; public class … Software Development image java java-swing | |
I've got a NullPointerException at line 50 (and the init on line 12). Can't figure out why. [CODE]private String gradientText[] = { "Gradient State", "Gradient Cols" }; private String lineText[] = { "Line Width", "Dash State", "Dash Length" }; private String shapeText[] = { "Shape Type", "Fill State" }; // … Software Development java | |
Hi there, I am new to python. Can somebody tell me how can I count a given word from a file. I found lots of solution for counting all the words in a file, but not for some particular ones. Thanks in advance Software Development python | |
Hello all, I'm trying to do this homework assignment but I keep getting an error when it compiles. The problem it has is in the startlotto function but I can't find it. It says that I have 2 errors: "error C2143: syntax error : missing ')' before ';'. "error C2059: … Software Development c++ | |
Hi everyone, I'm trying to accomplish the following; I need to create 2 subprocesses and each subprocess should create a process of their own. Should look like this: [QUOTE]I'm child xxxx parent xxxx I'm the subchild xxxx parent xxxx I'm the second child xxxx parent xxxx I'm the second subchild … Software Development c | |
Hi, I was just wondering if there was any way to export the code I've written in Visual Studio to MS Word, by preserving all formatting. Since copy-paste doesn't keep the formatting, I need a way to transfer my original code to Word while keeping the formatting. And, yes, it … Software Development c++ visual-studio | |
I need to create an application that utilizes your Order class to implement a simple Order tracking system. To do this your system must be able to deal with a number of orders. Your application should have the following capabilities: 1. Create a new order 2. Update an existing order. … Software Development python | |
Hello, Please disregard any small syntax errors I have made in this question, I’m trying to simplify a program that is many pages long. I have a program that has 2 parts, main.cpp and a form GUI.h. Both have functions that pass variables between themselves and I don't want to … | |
Hello I have little problem with my code. Problem is iterator inner. How can i solve this? My code [code] map <string, map <string, string> > m; map <string, map <string, string> >::iterator outer; map <string, string>::iterator inner; m["John"]["VW"]="Golf"; inner=m.find("VW"); if(inner != m.end()) {cout<<inner->second<<endl;} [/code] Best Regards Danijel Software Development c++ | |
hi.. im goumang .. i have a database call test with fields, std name,roll number,mark,state and category(st,sc,gen). and i want to select a students from this database, based on roll number with a criteria of some cut off mark...pls help me!! i create a FORM with a text field to … Software Development visual-basic | |
I finally figured out that my applet needs to be signed for it to work. So I've spent the last few hours figuring out how to do that. I used the keytool to create my .crt file, then created the .jar file using jarsigner. After I did all of that, … Software Development java | |
hi can someone tell me how to write a code in assembly language(ASM16,TASM Compiler,Windows) to implement a simple countdown timer (to miliseconds accuracy) display on the command prompt screen? after starting the program when you press the space - the stopwatch will start - press space bar again - stopwatch … Software Development assembly | |
Hey, I noticed that I have been using var instead of string, int etc. in delegates due to a habit from another language where they were cleared after, and it just makes a temporary value for the class only, and once it has executed, is deleted. Is this the same … Software Development | |
Hello everybody, I am currently developping a GUI interface game for windows XP. I am currently having difficulty changing the background of a EDIT box created with CreateWindowEx(). It's default background is white (which is the color I want). But the user is not supposed to be able to adjust … Software Development c++ gui user-interface windows-api | |
Hey all, stuck on abit of a problem. I am outputting afew strings to a text file. However when I check the text file it has been automatically split into 2 lines. Is there anyway to force the output to remain in one line or what is the reason for … | |
Hi, i am trying to read the contents of a text file containing a single line into a string. i'm doing this in a while loop. the text file gets updated in each run of the loop and therefore the string should contain a new value in each run. but … Software Development c file-system lan-wan | |
I'm a newbie so please forgive me if this is a stupid question. I don't understand what I've missed in the code below and how I can get it to work. I have a few lines of code that works fine. It makes a * show as an error message … Software Development | |
Hello Is there a recommended way to drag a table from netbeans pallet and use ResultSetMetaData or any class to have the table change automatically for any table being displayed? thanks Software Development java | |
hi i want to redirect python compiler messages to a file. for example if i run a python which has a line [CODE=python]a=;2[/CODE] python compiler will give me an error message saying 'syntax error' how i can fetch this error and write it to a file? i run it with … Software Development python | |
This should be simple, but I think I am missing up the syntax. I am trying to make a list of the letters that appear in a string. import string values=[] values[5]="12234.7B" holder=[] holder.append(values[5].letters) This code gives me an error on the letters function. Any idea why? Many thanks. Software Development python | |
Ok, guys I know that I'm asking too much questions, it's just that I really want to understand how things work. So I have a little project: Make a program in C which runs three processes (A,B,C), which use a common memory (buffer). Process A generates 50 random numbers and … Software Development c | |
Hi, I'm writing a program that totals how long someone has worked by the starting time and the ending time. It DOES work if the times entered are both AM or PM. Like if they worked from 2:00 to 9:10, it tells me the right answer of 7 hours and … Software Development python | |
I am a relatively inexperienced coder so please excuse my ignorance. I am attempting to write a code to iterate rotations of functional groups in a molecule. The number of groups that need to rotate and the step size is based on user input. I know i can generate the … Software Development python | |
hi all! i have a table layout panel with lots of controls in it. side to it i have a combobox with 5 options "system A" and "system B" ect. when i pick one system, i clear all the controls one by one (checkboxes to check=falsa , textboxes.text = "" … Software Development | |
Hello guys, I'm making an application for myself and I need to get the coordinates of the mouse when left click was pressed. I managed to get the coordinates when I click on the form by using[CODE]MouseUp += new MouseEventHandler(KeyCaptured); void KeyCaptured(object sender, MouseEventArgs e)[/CODE] but when I click inside … Software Development | |
Hi, I was wondering if the compiler Visual C++ is smart enough to optimize code like this: [CODE=C++]string temp = "abcd"; string temp2 = "hahaha"; string temp3 = temp + temp2;[/CODE] "temp + temp2" can be replaced by "abcdhahaha" [CODE=C++]vector<char> alphabet; for (char i = 'a'; i <= 'z'; i++) … Software Development c++ | |
I've been working on an applet that gets all the links from a webpage. So far, I have it getting the source. I have found some regular expressions that supposedly will parse out the source, but it doesn't make any change to the original source. I also found some example … | |
The aim of the program is to add ten numbers then output their sum. I can do this but in a very basic way. for instance the only way I know how to do this is by adding each array and thats quite tedious and long is there any way … Software Development c | |
I've been developing console applications using C/C++. I now want to move on and create some GUI applications. For that i saw some libraries to create GUI. I think those libraries are OS dependent. How can we create GUI applications compatible with Linux, Windows and Mac, or is it even … | |
Hi , I am trying to insert chinese characters in database using sql statement but they appear as '????????' in the databse.Can anyone help me with this . Thanks Software Development | |
Hello everyone, I quite new at JAVA and one assignment is on my nose and I am going crazy.. My task is: "[I]Create a solution for the following scenario: A local community mobile college unit holds 2 different classes in literacy and numeracy for mature students. A student can join … Software Development java |
The End.