199,114 Archived Topics
Remove Filter ![]() | |
Okay, I have a problem. In this code, after the first call to strtok, the variable becomes "developer" when it was originally "developer;developer 0;developer". I would have expected it to become "developer 0;developer" after the first call.. [code=c]void Con_Execute(char *text) { char *pch; char string[10240]; strcpy(string,text); if(!strstr(string,";")) { Cmd_ExecuteString(string); return; … | |
Hello everyone, I need to make a program for Java that has the user enter in 2 numbers,1-9, then prints a top row and column with those numbers in it, then prints a multiplication table for those numbers. I need to use a for loop or for loops. Ex. 2 … | |
Hi. I was wondering if someone could offer a bit of advice on this. I have made a web server, and everything seems to be done correctly as far as I can tell. It works and loads web pages just fine. The problem is, that when big files are requested … | |
Ive pasted the code for actor.cpp, date.cpp and the main function. This is alot of stuff I pasted but I believe it is necessary to show my problem. At first I get the date of the individuals birth and that gets displayed and everything turns out as it should. When … | |
Due to a *quirk* in our domain forest, I need to change how I'm getting a logged on user's group membership. When a user authenticates into this application I need to see if they belong to one of 4 groups. In our test environment I was using: [CODE] ArrayList groups … | |
Hi all, I am currently working on a large software project for scientific computing for my PhD research. I am working on the architecture for part of the project now, and I am struggling with how to working with a polymorphic pointer as a function input parameter, by reference. The … | |
Hi I am very new to PHP and was working through a tutorial to learn a little about PHP. I created a simple form that passes form variables to another page to be displayed. It's a coin counter that when the user enters certain amounts of different denominations of coins, … | |
Hey everyone, I'm trying to get started with SQLite. My app keeps force closing on this activity: [code=java]public class ViewActivity extends Activity { private TextView company; private BillMeDB dh; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.all); company = (TextView) findViewById(R.id.Company1); BillMeDB db = new BillMeDB(this); db.open(); long id; id = … | |
Hi all, I have an AJAX script that pulls a radio group list from PHP. I would like to then read which of those options the user subsequently selects. My AJAX script: [CODE]function showCharacteristics() { xmlhttp1=new XMLHttpRequest(); xmlhttp1.onreadystatechange=function() { if (xmlhttp1.readyState==4 && xmlhttp1.status==200) { document.getElementById("charList").innerHTML=xmlhttp1.responseText; } } xmlhttp1.open("GET","ctrPanelProc.php?selection=getCharacteristics",true); xmlhttp1.send(); }[/CODE] … | |
Hi everyone I am new to the community and been programming in java for 2 weeks. This is my 3rd program so please take it easy on me, I know there are better ways to do things but this is what I know for now. The purpose of the program … | |
Hi! I would like to add a link to JTable cell. When a user will click on this cell, then a file pointed in the cell will be opened. Could someone tell me some hints? Thanks! | |
At the moment, I have the following to do MySQL queries: [code] MySqlCommand Command = new MySqlCommand(Query, SQLConnection); IAsyncResult Result = Command.BeginExecuteReader(); return Command.EndExecuteReader(Result); [/code] This is a static command in a server in the database class, which includes a static connect/disconnect function (used once when the server starts and … | |
When creating a resume for a programming job, you want to include some source you have written right? I am updating my resume and have added 4 pages of source, is that to much? THanks | |
I'm writing up a program for a class I'm taking where I need to make a linked list stack & queue. Right now I'm not quite done, but I'm having problems calling the functions from the .h file. What's happening is in the while loop, I'm trying to get data … | |
Hello everyone, I need to make a program for Java that has the user enter in 2 numbers,1-9, then prints a top row and column with those numbers in it, then prints a multiplication table for those numbers. I need to use a for loop or for loops. Ex. 2 … | |
Hello! Finally I joined daniweb. Great stuff in here guys. Anyways lets get to the problem: I have a page where a number of topics are displayed ( they are added by admin). And to get this list I`m using this script [CODE=php] // Query the database $gettopic = mysql_query("SELECT … | |
Hello. I am currently working on a little password based file encryption feature for an application I am doing. The following is an incomplete function that I have worked on to encrypt some content and (will eventually) write it to a file. [CODE]public static void encrypt(byte [] data, char [] … | |
[CODE]import java.util.Scanner; public class Inti{ public static void main (String [] args){ Scanner kb = new Scanner(System.in); System.out.println("enter name: "); String input = kb.nextLine(); char name1 = input.charAt(0); int blank = input.indexOf(' '+1); char name2 = input.charAt(blank); int lastBlank = input.lastIndexOf(' '+1); char name3 = input.charAt(lastBlank); System.out.println(name1 + "\n" + … | |
Hello, When I try to mysql insert values with same names, it encourages this error. When I looked at the table column, I see that the row id is always "1" and it doesnt let to add same entry. [URL="http://img267.imageshack.us/img267/4123/sfff.jpg"]http://img267.imageshack.us/img267/4123/sfff.jpg[/URL] My question is, how can I add an auto increment … ![]() | |
I have this code: def rollBox(length, numDivisions, count): Angle = 90/numDivisions if count == 0: return elif numDivisions == 0: rollBox(length, numDivisions, count - 1) else: square(length) turtle.right(Angle) rollBox(length, numDivisions - 1, count) Is there any way to still decrease the 'numDivisions' parameter to zero while still keeping its original … | |
hi every one, i need your help in php code. my error is for profile page. after implementing lots of php code in this page,my page became auto refresh in every 2secound. i don't know what happend to it. i m attaching my code pls elp me. [CODE] <?php //get … | |
Hi I am trying to execute a TADODataSet by clicking on a button. As of now. whenever I run my delphi program my TADODataSet automatically activates and runs its corresponding stored procedure in sql. I want to be able to press a button on a form in order to execute … | |
Hi guys, Im working on a small console app to seek out all those pesky and disk consuming .ncb files and debug folders left from VS and destroy them so the space i need to backup the files is considerably reduced. I have got my recusrion algorithm to scan as … | |
Hi how can i read one line from string ??? i have string like this : [QUOTE]hello ; boy ; sun welcome;google;pink[/QUOTE] how can i read first line only ? thanks | |
how would i be able to make sure the user inputs the correct data. for example, if i wanted a command in my code to be run (filename). how can i display a message if the user forgets to add the name of the file or the 'filename'. i hope … | |
I'm sure this has been answered many times but its something i've struggled with doing, if i wanted a user login on one page, when, for example "John" logs in he goes to an area that only "John" can see, "Jill" cannot see this area and cant access it by … | |
Hi, I want to create a log file that captures all the actions happening...anyway i got code for that from internet. Now what i want to do is, make that [COLOR="Red"][U][B]file read only[/B][/U][/COLOR] so that the data is not modified by external application or user. [code=c++]log(char* msg) { time_t now … | |
[CODE]string subChoice =""; getline(cin,subChoice);[/CODE] Can anybody help me??? What these lines do? and how are to be used? | |
I think I'm there, but I'm not sure if the insert() is correctly doubling the dynamically allocated memory. In an attempt in my insert() I tried to: 1 double the allocated memory (not sure if that was accomplished) 2 copy original values to the newArray 3 free original space 4 … | |
Hi all, i have a little problem here trying to print a crystal report document using the PrintToPrinter method. This process is trigger by the event click in a asp:button control, basically i just saying this. [code=csharp] rpt.PrintOptions.PrinterName = @"PathToPrinter"; rpt.PrintToPrinter(1, false, 0, 0); [/code] this solution works fine if … | |
Hello, I am trying to optimize or make my code faster and I am not so sure how. So I have two level nested for loop and inside there, I assign value to the array. For example, [CODE=c]tmp[0]=*ptr; tmp[0]=100;[/CODE] I found out that the second one is faster than the … | |
How can I create the map size, [CODE] #include <iostream> #include <fstream> #include<string> using std::ifstream; bool msize(int Height,int Width){ //add code return true; } bool draw_map(char* Filename,int Width,int Height){ if(Width<1||Height<1) return false; msize(Height,Width); ifstream file; file.open(Filename); if(file.is_open()){ while(!file.eof()){ for(int x=0;x<Height;x++){ for(int y=0;y<Width;y++){ if(c!=']'){ file >> map[x][y]; file.get(c); }else map[x][y] = … | |
To start I enter some information into 4 textboxes which then the data is stored into a class. I just add the class object into the list box to keep things simple and when i click on the object in the listbox I want it to show the original text … | |
Hello. I'm creating a program with dialog editor. How can i set bitmap on button? I set bitmap at properties to True. I tried to search on google but i could only find how to set bitmap on button created with CButton. Thank you | |
hi guys...when we have used Sleep() function, then how can we get out of this Sleep() function....Lets suppose we have used Sleep() for 10 minutes and I want to terminate the prog after 2 mins, here is the situation im using [code=c] someFunc(); printf("\nProg will not terminate for next 5 … | |
I get a warning message while executing a C program containg 'gets'.Is there any way to avoid this.Currently I am using ubuntu OS> | |
Hey there folks, So I am working on an assignment for class and I have gotten a considerable amount done thus far. I am having some issues with the final important aspect though. The assignment asks that we read a .txt file with a bunch of records of cars sold … | |
Hi, I am creating web application. In that I want to set session timeout (not idle timeout). If a user logged in that time the session time will start and it automatically should detect session timeout the page should redirect to another page. How can I acheive this. | |
Hi all. I'm writing a simple GUI to display some text and update the text as I receive data from a multicast address. What I have is a Frame, and then a wxScrolledWindow that is using the Frame as its parent window. The scrolled window contains a vertical box sizer … | |
Hi, i'm a beginner to vb and i'm doing a school project on equipment reservation. I have some question that i've been having problem for weeks. 1. How do i disallow user from booking booked equipment? So far my only solution is just to check and compare the date,equipment,start and … | |
Well, I've recently been getting into developing drivers, so I thought I should make a class to programmatically start services. But of course, I ran into some trouble on the way, as usual. I'm using StartService to start it, but for some reason it just hangs, I've done some research … | |
Hi, I am new in vb.net 2008. I am developing windows application in that i am generating PDF report using iTextsharp. Problem is that how to display rtf data in pdf. | |
hello people! i need some help in making a date in date out in my program and it really gives me a "real-time" headache. the problem is, it is possible to put some warning if for example the "client" has already overstayed it accomodations. and i really have no idea … | |
hey ppl. I have many submit buttons in a form. Each of them does its thing in different php pages. But when, for example, 'add' button goes to 'add.php' it does its work but stays there) how to redirect page back? thanks | |
hi all, Im a beginner in C. Can you please help me in explaining the function of ## in the below program. #define f(g,g2) g##g2 main() { int var12=100; printf("%d",f(var,12)); } what does #define f(g,g2) g##g2 mean? | |
My professor has given me the code and I wanna run it. I use Visual Studio2008. Code contains data structure "queue". He defines one queue as "queue<int> Q;" But my compiler gives an error and says "error C2065: 'queue' : undeclared identifier" Do we need any separate header file to … | |
Hi,i'm buliding an application which accepts new password when their exists a default password [code] savedPassword = (Application.UserAppDataRegistry.GetValue("newpassword")) ? Application.UserAppDataRegistry.GetValue("newpassword").ToString() : "defaultPassword"; [/code] but i'm getting an error it says cannnot convert objet to bool..i think theirs something wrong in ternary operator. Thanx.:) | |
Hi all, Can anybody help me in resolving this issue. The details are mentioned below. I am generating PDF using <cfdocument> tag of Cold Fusion. I have a header and footer to be displayed on each page. I am rendering data in a table. If rows in the table exceed … | |
My database has a list of events, and I'd like to return it sorted by date. However, I'd like to have the past events be forced below more recent events, so I try to do this: ( SELECT name, date FROM events WHERE date >= curdate() ORDER BY date ) … | |
Hi All, I am developing a window form where in my form, i have 3 buttons, insert, delete and update, a SAVE menutoolstripbutton and a datagrid to display the data get from database. now I want is for example whenever a user want to insert a new data (click the … |
The End.