199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for tomtetlaw

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; …

Member Avatar for tomtetlaw
0
87
Member Avatar for Fadam360

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 …

Member Avatar for muraj
0
169
Member Avatar for VBNick

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 …

Member Avatar for VBNick
0
285
Member Avatar for Peter_morley

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 …

Member Avatar for Peter_morley
0
152
Member Avatar for jimbennett57

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 …

0
83
Member Avatar for TheWolverine

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 …

Member Avatar for TheWolverine
0
302
Member Avatar for teedoff

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, …

Member Avatar for teedoff
0
109
Member Avatar for Duki

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 = …

Member Avatar for Killer_Typo
0
114
Member Avatar for cmccully

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] …

Member Avatar for hielo
0
87
Member Avatar for tedmyers

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 …

Member Avatar for tedmyers
0
174
Member Avatar for LianaN

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!

Member Avatar for NormR1
0
2K
Member Avatar for Anon17

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 …

Member Avatar for Anon17
0
183
Member Avatar for LevyDee

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

Member Avatar for VernonDozier
0
99
Member Avatar for coolboym99

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 …

Member Avatar for coolboym99
0
202
Member Avatar for Fadam360

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 …

Member Avatar for VernonDozier
0
81
Member Avatar for KriBez

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 …

Member Avatar for KriBez
0
110
Member Avatar for bops

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 [] …

Member Avatar for Stefano Mtangoo
0
344
Member Avatar for plasticfood

[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" + …

Member Avatar for plasticfood
0
109
Member Avatar for CasTex

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 …

Member Avatar for P0lT10n
0
164
Member Avatar for moonlite25

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 …

Member Avatar for TrustyTony
0
79
Member Avatar for ujjval dave

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 …

Member Avatar for ujjval dave
0
173
Member Avatar for youngmoolah

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 …

Member Avatar for Wolfgan
0
155
Member Avatar for Kanoisa

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 …

Member Avatar for Kanoisa
0
2K
Member Avatar for mahdi68

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

Member Avatar for peter_budo
0
125
Member Avatar for |hex

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 …

Member Avatar for |hex
0
370
Member Avatar for benhowdle89

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 …

Member Avatar for benhowdle89
0
161
Member Avatar for neoraghav

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 …

Member Avatar for neoraghav
0
2K
Member Avatar for Exile_082

[CODE]string subChoice =""; getline(cin,subChoice);[/CODE] Can anybody help me??? What these lines do? and how are to be used?

Member Avatar for Fbody
0
190
Member Avatar for bmos31

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 …

Member Avatar for bmos31
0
1K
Member Avatar for jbisono

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 …

Member Avatar for jbisono
0
340
Member Avatar for chun0216

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 …

Member Avatar for kes166
0
110
Member Avatar for alexchen

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] = …

Member Avatar for daviddoria
0
174
Member Avatar for Antikythera

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 …

Member Avatar for edepperson
0
149
Member Avatar for fire_

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

Member Avatar for mitrmkar
0
590
Member Avatar for muze

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 …

Member Avatar for muze
0
135
Member Avatar for harikrishna439

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>

Member Avatar for gerard4143
0
112
Member Avatar for nobodycool

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 …

Member Avatar for nobodycool
0
130
Member Avatar for visweswaran28

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.

Member Avatar for rohand
0
221
Member Avatar for darkwing

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 …

Member Avatar for darkwing
0
426
Member Avatar for ata_tszx

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 …

Member Avatar for jhai_salvador
0
98
Member Avatar for Davidm44

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 …

Member Avatar for Davidm44
0
73
Member Avatar for bhagawatshinde

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.

Member Avatar for Oxiegen
0
126
Member Avatar for thug line

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 …

Member Avatar for AndreRet
0
84
Member Avatar for kracko

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

Member Avatar for kracko
0
198
Member Avatar for gurushankar

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?

Member Avatar for gurushankar
0
104
Member Avatar for samm22

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 …

Member Avatar for Fbody
0
260
Member Avatar for prathoven

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.:)

Member Avatar for Momerath
0
90
Member Avatar for Renu Deshpande

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 …

Member Avatar for AVM
0
495
Member Avatar for axfv

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 ) …

Member Avatar for drjohn
0
173
Member Avatar for aska07

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 …

Member Avatar for aska07
0
598

The End.