64,152 Solved Topics
Remove Filter ![]() | |
Hi, I have used datagrid to display details. I want to use to link button columns in a grid wherein both the link button column has a different navigation url . For one column i can write in the selected index changed but how can i write the url for … | |
Hello, C newbie here... below is a driver for a pretty simple function which is supposed to read in n chars from input and store in a char array. [CODE=C]#include <stdio.h> #define SIZE 81 void get_str (char * array, int n) ; int main (void) { char instr [SIZE] ; … | |
Hi, I m trying to scroll the JLabel by adding JLabel to Jscrollpane,I can see the scrollbar,but I can't scroll as well as I found JLabel's are misplaced.Can anyone please help me to solve this. The following is the code, [code=java]class outerWindow extends JFrame implements KeyListener,ActionListener { Container c = … | |
I'm a graphic designer with very little HTML knowledge who has inherited the maintenance of non-profit agency's website. They have javascript drop-down menus as the part of their main navigation. Up until now, I've only had to change the text or change the size of the menus. But now, they've … | |
Hello Everybody, If I'm a Java Newbie I am even more hopeless in VB... I'm using the Trial version of VB 8. I need to find out why am I getting an InvalidCastException on the line in red... I tried taking the .Text out but then it won't recognize it. … | |
Hi, I am trying to make a table that has following columns: site id,txn id,txn name,target id,target db there can be any number of rows in the table and each row has at least one different column entry with respect to other rows.Now i wish to delete from database data … | |
Is there anything in C# that does the same function as strtok in C++. For example if I had the following C++ program how would it be written in C#? [code] // crt_strtok.c /* In this program, a loop uses strtok * to print all the tokens (separated by commas … | |
Hi All, I am trying to send some data using Ajax and recieve that data in php code using _POST method. But my data contains "&" and _POST method takes it as a seperating token and data after tht does not get passed. Does anyone has a solution to this. … | |
Now i know how Display someones information from DataBase after loggin In using php. Now i want to understand how can i arrange the profile. So that the profile will be more proffesional. For example. a table in which someones info are, including picture,message,video, even a search box if one … | |
Hi all, I'm trying to figure out how I can call the function estimate from the main. It takes as input: [code=c] float data[], int n, int m; [/code] and should output the float *xms and the float array float d[]: [code=c] float *xms, float d[] [/code] I don't know … | |
Can we do like this in enums enum myStringEnum { enumItem1 = "value 1", enumItem2 = "value 2", etc } i.e.spaces in the string value, I know we can assign int value to enum but I m not sure whether string values (with spaces) can be assigned to enums. If … | |
I have created an application in VS 2005 pulling reports created in Crystal Reports XI Release 2. My problem is I have a couple of reports that have linked subreports on them. Does anyone know how to pass a parameter value to a subreport in .NET? I have the following … | |
Hello everyone! I am writing a music database, and I need to insert into album table the path to its cover. However, not every album has a cover in its directory, so I've made an algorithm that only gets the albumID that has a cover. My question is - how … | |
Hi all, I am new here and to programming and i am currently trying to build an interactive form for my works. I have my form which at the moment saves text from textbox1 to a .txt file and also i have succeeded in being able to read this back … | |
Couls someone help me fix this code, I think I need to put in a function and a return but i'm not quite sure. All the code does is return the value # for everything even letters [CODE=php]$letter = ucfirst($_POST['tut_name']); $letter2 = $letter{0}; if($letter2 = 1) { $letter3 = '#'; … | |
i have once again been asked to fix some code on a website. this time the website is meant to have a content management system but once again the person who made the original website did not complete what he started. the content management system side of it is using … | |
Hi friends, I have written a function which inverts a dictionary. The code is as follows: [code=python] def histogram(s): d={} for c in s: #print c, d.get(c,0) d[c]=d.get(c,0)+1 return d def invert_dict(d): inv={} for key in d: val=d[key] if val not in inv: inv[val]=[key] else : inv[val].append(key) return inv hist=histogram('parrot') … | |
I cant seem to figure out whats wrong with this code, I am trying to generate random floating point number numbers with values from 0 to 1 with positive and negative values here is the code [CODE]#include <stdio.h> #include <stdlib.h> void populate(int generations) { int seed, ttt; seed = 456739853; … | |
I am trying to set up a database on the server and keep getting the same error message. it say to me that it was successful in connecting to the db but access is denied for the user. what is causing this as the password and user name that is … | |
Hello all, This is my first post here, this board seems to contain interesting stuff regarding C++, that's why I subscribed into it. Ok, let's go the problem... I have a class with two methods into it: floodLog writeToLog floodLog is intended to create threads that will execute the method … | |
How can i allow a user to select only 2checkboxes, if they choose more then 2an error message will appear saying you can only select 2, heres my code below where the checkboxes are used. // Loop through data and display [code=php]while($a_row = mysql_fetch_assoc($result)) { echo "<tr>". '<td style="color: black;"><input … | |
Hi...Plz i'm facing some problems on how to make my program work successfully. i'm a beginner in the c++ and i have an assignement to make a text editor using the devc++..it requires certain functions and i've written this code so far but i can't handle except the choice number … | |
Howdy, hoping I can get alittle help today. First off I have a real bad habit of learning one thing, and getting very fascinated by it and going off on a tangent using what i learned in as many ways as I can think of. Im a very new person … | |
I would like to populate a listbox with multiple columns of data retrieved by a query. I am using the Listbox.DataTextField = "SpaceID" to get one value but can't seem to append others using lines like Listbox.DataTextField = "SpaceID" & " " & "SpaceName" Is there a way to do … | |
I'm having a tough time conceptualizing this problem. I have a recursive function computing the number of possible combinations of two numbers. I have it working fine, just need one thing sorted out. My output needs a counter to increment each recursive step. Like this: Level 1: ... Level 2 … | |
Hi all The following query works and gives me the desired results. The only problem is that it is very slow, and I suspect it is because of the multiple sub-queries included in it. The table, RESULT, has multiple records per athlete, per stroke, per distance stored in the order … | |
Hey, Any Idea why this section of code would give me these linker errors using Visual Studio 05 in a console application and using winsock2.h: error LNK2019: unresolved external symbol __imp__WSACleanup@0 referenced in function "void __cdecl CloseDevice(void)" (?CloseDevice@@YAXXZ) error LNK2019: unresolved external symbol __imp__closesocket@4 referenced in function "void __cdecl CloseDevice(void)" … | |
Membership method needed in order to delete the user according to his provideruserkey. There are two overloads for the membership.deleteuser method but none of them accepts object provideruserkey as a parameter thanks | |
Hi there I'm having some problems with my form. I'm generating my form through php and I can't quite figure out how to echo <?= $_SERVER['PHP_SELF']?> for the action in my form tag. at the moment what I have is this: [code=php]echo "<form name=\"tsgh_add\" method=\"post\" action=\""; ?><?= $_SERVER['PHP_SELF']?><? echo "\" … | |
where does website administration tool keep the access rule information? I have searched the membership tables but couldnt find any related info. Thanks | |
Hi, can you guys please tell me how I can print a screenshot of a form? I am linking to a database and I want to print the form with the names of fields etc... Cheers | |
Is there anything wrong with this script? [CODE]<?php $username=""; $password=""; $database=""; $rom_name = $_POST['rom_name']; $rom = $_FILES['rom']['name']; function getExtension($str) { $i = strrpos($str,"."); if (!$i) { return ""; } $l = strlen($str) - $i; $ext = substr($str,$i+1,$l); return $ext; } if (empty($rom)) { $result = '<font color=FFFFFF>Please choose a ROM … | |
Hi friends, I am trying to write a histogram function in Python. This is what I have managed so far: [code=Python] def histogram(s): d={} for c in s: if c not in d: d[c]=1 else: d[c]+=1 return d h=histogram('brontosaurus') print h [/code] However, I want to use the get() function … | |
Howdy, Im a beginner to programing and Ive chosen python as my first language to learn. I have recently completed my first "non-tutorial" code. I wrote a book modeled after the old "Choose Your Own Adventure" books. When ran it asks for your name, and puts you into the story, … | |
I'm a student enrolled in a University beginners programming course. The problem is: [B]Write a program capable of using month and day of a given date to calculate the number of days from january 1 that it represents. Make the program capable of computing values for as many as 20 … | |
HI all , I have a question about Ajax. FIRST : Can I call ID from the other files who contain J.S. code with ID ? SECOND : I have Index.html , prototype-1.6.0.2.js , and I want to make changes from files2.html to files3.html . Can I do that ,and … | |
I wonder how it is possible to open 2 instances at the same time of a Form. Normally when you ex press a button to open another form, one instance of that form is opened. If I put these 2 lines inside a buttoncontrol, first one instance is opened and … | |
please help me.. there anyone know how to reverse strings??? i really don't have idea for this.. please helps... | |
Hello. I just started with assembly. In my emulator (emu8086) this code work perfectly. But when i write it out to a floppy it doesn't work. I know that if i write out one letter at time, it works. Is it impossible to write this way? [CODE=asm]#make_boot# org 7c00h jmp … | |
Take (10) integers, store them in 1D array then do the following: 1. find the max and min number of them 2. find the average 3. sort these numbers in ascending squence the first two questions are quite easy but my problem is in sorting those numbers...anyways, i came up … | |
Hello, can anybody help me in getting this code running also in firefox and safari. The goal is to display images scrolling from right to left on my screen ... Here is the code I use : <script language="JavaScript1.2"> //Specify the slider's width (in pixels) var sliderwidth=840 //Specify the slider's … | |
I have been trying to figure something out ever since I started doing C++, My goal is to code my own game and coming to think of that.... I have read many articles about how U go about on doing that and as far as I have read C++ is … | |
I have a question about reading array from file. I wrote some array at file like below. file name: xy0.dat [2, 4, 6] [4, 8, 12] ... ... Now, I want to read this array(not string) at my original file. I want to define x0[0] = [2,4,6] and x0[1] = … | |
Hello everyone, I am making a program which acts like a library system. There are two classes: Book and List. The List class contains all the linked list information; [CODE] struct ListNode { ListItemType item; ListNode *Next; };[/CODE] Now, my problem is in the Book class file (Book.cc). I have … | |
After looking at compile errors because I was not overriding this function ( although being convinced that I was) I have a query for all you C++ buffs in the audiance. What does the ^ do in the following line. [CODE] virtual System::Object ^ Clone(void) override; [/CODE] I know this … | |
I'm trying to show a dialog message if the user clicks a button and a text field is empty. [code=java] Action listener - if(event.getSource() == cmdSaveSettings) if(txtPlayerOneName.getText().equals(emptyText)) { JOptionPane.showMessageDialog(null, "alert", "Please enter player one's name", JOptionPane.ERROR_MESSAGE); } [/code] Ive add an action to listener to the button and the textfield: … | |
Hi guys! I was wondering if any of you guys would be able to help solve what is probably a simple problem.... I am using dreamweaver / asp/ access to create a dynamic web application. I have created a record set which queries the database and displays the results. The … | |
Hello Jx_man, I have been trying to download the zip file you sent to Neji on [B]Get all users[/B], but it appears to be corrupted. I will be grateful if you could resend it to me. Thanks in advance. | |
I am completely new to asp.net. I just started to learn. I created a .html file which I then changed to .aspx. After I changed it to .aspx I can't open it through my internet explorer, what can be the problem. | |
I have a program that suppose to print out a student information so I have to use Alert in order to make this a success but my JAVA SCRIPT is not producing anything, I dont know what Im missing in my code please have a look at it.... its quite … |
The End.