199,114 Archived Topics
Remove Filter ![]() | |
Hi there, I need to call a dll file that was written in VB.Net, in my java application using the jacob [com.jacob.com] , after successfully registering the dll file, I am trying to instantiate an ActiveXComponent object using my dll, : [QUOTE]ActiveXComponent myComp = new ActiveXComponent("Myfile.dllfile");[/QUOTE] where Myfile.dllfile is currently … | |
Per the title, I'm trying to make my GUI change with the RadioButton selection. Specifically, I want to control which JLabels and JTextFields are displayed based on the RadioButton selection. Right now, my GUI displays the Employee ID, Last Name, First Name, Credit Rate, and Credit # Labels, and their … | |
Hi, I'd like to edit database with quickedit, the script is work fine if in the first page, but if in the other page it go to top page again when I click on it. How to fix so it won't reload to the top page. Here is the main … | |
Hi there, I think I have made a mess of the site I am working on, and I was wondering if anybody can help me understand how to fix this issue (if it is an issue at all) Basically on this page I have 14 pictures http://antobbo.webspace.virginmedia.com/petras/test/czech_republic.htm and my script … | |
Hello! I want to ask you guys if anyone can help me correct my current program to read graph from a file instead of adding manual matrix in program. Example graph: graph.txt 8 1 2 3 1 3 6 1 8 1 2 3 2 2 8 2 3 4 … | |
Hi All....this looks like a nice place to ask questions :) I'll start off by saying that I'm a total noob. I have a DIV with a static height set. Some dynamic content is being loaded into the DIV via PHP. My problem is, when I click on a link … | |
hi i write this code in perl i dont know why that not work... sub Again { $dirtoget= $_[0]; if(opendir(DH, $dirtoget)) { @thefiles = readdir(DH); closedir(DH); if(@thefiles) { foreach $f (@thefiles) { next if ($f eq "." or $f eq ".."); print "$f\n"; if(-d "$dirtoget/$f") { Again("$_[0]/$f"); } } } … | |
Is there any standard function in gcc that is equivalent to getch() so that I can read the input without hitting enter key? ![]() | |
import java.sql.*; import java.util.ArrayList; import java.util.Iterator; /** * * @author Animesh Pandey */ public class dbConnect{ jaccardIndex ji; public float calcJaccard(String s1, String s2) throws Exception { ji = new jaccardIndex(); float sim = ji.Jaccard(s1, s2); System.out.println("calcJaccard"); return sim; } @SuppressWarnings("static-access") public int getLength(String s) throws Exception { ji = … | |
I wrote this program... Just gave a try!! i got a problem with searching a string in file.. the **"checkp"** used in the login function, returns a value **"1"**, whereas it must return a value **"0"** Hence my program fails... what i felt is, the file i'm opening, **"web_reg.txt"**, in … | |
![]() | Hi All, I have to split a text into words using both spaces and punctuation as delimiters. Punctuation includes characters like .,!?:;'"- I am using the split function as it follows: [CODE]wordsArray = strLine.split("[.,!?:;'\"-]+\\s*");[/CODE] However, this only splits my text by spaces and ignores other characters I've set as delimiters. … |
![]() | I have problem with this part of the code private char encryptChar(char c, int shift) { if (Character.isLetter(c)) return (char) ('A' + (c - 'A' + shift) % 26); else return c; } private String encryptMessage(String msg, int shift) { String result = ""; for (int i = 0; i … ![]() |
a class of 20 students. The information of each student contains ID, Name, Sex,exam Scores (3 quizzes per semester), mid-term score, final score, and total score #include<stdio.h> #include<conio.h> void main() { struct student { int id; char name[20]; char sex; int mid; int final; int total=mid+final }; int i struct … | |
#include<stdio.h> #include<conio.h> void main() { struct student { int id; char name[20]; char sex; int mid; int final; int total=mid+final }; int i struct student b [19]; for(i=0;i<20;i++); { printf("student %d enter your details\n\n",i+1); printf("enter your id"); scanf("%d",&b.id); printf("enter your name\n"); fflush(stdin); scanf("%s",&b.name); printf("enter your sex\n"); fflush(stdin); scanf("%c",&b.sex"); printf("enter mid … | |
Hi, I'm looking for a way to write a recursive method which convert a decimal to value to its binary equivalent. I can write a method which returns the result as a String, but I can't figure out to write a method which makes calculation with integer values and returns … | |
hi i am trying to change an input from upper case to lowercase.I am not getting it right.When i key in say Liverpool or TIGERS it only show l and t respectively. Need assistance #include <iostream> #include <cctype> #include<iostream> using namespace std; int main() { char s; cout<<"Name your favourite … | |
iam trying to store all the data in to a struct so i can change it later. //this data is in file abc 1 11 22 def 2 33 ghi 0 22 11 33 asd 2 i was planing on making a array of structs. so 1st line will have … | |
So, I have this following snippet of code: if (isset($_POST['type1'])) { mysql_query("UPDATE table SET status = 1 WHERE id = '". $_GET['repid']."'", $c2) or die(mysql_error()); } if (isset($_POST['type2'])) { mysql_query("UPDATE table SET status = 1 WHERE id = '". $_GET['repid']."'", $c2) or die(mysql_error()); } if (isset($_POST['type3'])) { mysql_query("UPDATE table SET … | |
I again have a C code that i need in c++ #include <stdio.h> void hexDump (char *desc, void *addr, int len) { int i; unsigned char buff[999]; unsigned char *pc = addr; // Output description if given. if (desc != NULL) printf ("%s:\n", desc); // Process every byte in the … | |
I wrote about this the other day but do not think I explained it too clearly...I shall try again... So my problem is this...when I am trying to allocate memory to a pointer, it fails. This is my MatrixClass definition.. class MatrixClass { public: MatrixClass(int m, int n); MatrixClass(void); virtual … | |
trying to copy pointer in array. lets say *pointer has the value "COMPUTER". and i want to store in array[o]; note: i want to use strcat to do this and i do not want to do some thing like "array[0]" char test[10]; char *point; //has the value "COMPUTER" for(int i … | |
So I have not generated the event for the picturebox but lets say the picture box is "private void pictureBox2_BeverageItems" followed by curly bracelts . I have been looking all over and couldnt find a correct implementation my guess is to probably use "streamreader" but im still fairly new to … | |
include<stdio.h> struct address{ char city[20],country[20],state[20]; }; struct customer{ int acount; char name[20]; float bal; struct address add; }; void display(struct customer * ,int); void main() { int i,size; printf("enter the number of customers"); scanf("%d",&size); struct customer cus[size]; struct customer * c[size]; for(i=0;i<size;i++) { printf("!"); scanf("%s",&cus[i].name); printf("!"); scanf("%d",&cus[i].acount); printf("!"); scanf("%f",&cus[i].bal); printf("!"); … | |
Am getting **java.lang.IndexOutOfBoundsException** while I try to uplaod a file to server. I checked the code at loaclhost and it was working fine, but after uploading it to the server am getting the error. **upload.jsp** <form action="UploadServlet" method="post" enctype="multipart/form-data"> <input type="file" name="select" value="" /> <input type="submit" value="Select Profile Pic" /> … | |
Hey Daniweb lovers, I am using a cake php framework to develop my application. The problem I am facing at the moment is that I am trying to use two different tables (let's call them users and products.) I can select users from the users table. But, I have got … | |
Well I have a 2D array matrix file like [CODE] 0.5 0.8 0.9 0.10 1.0 0.5 0.75 0.6 2.5 6.0 0.5 0.53 3.0 2.75 0.9 0.5 I want to read this file as csv and edit the file such as when the values are above (> 1) i want to … | |
I am having trouble with this part of my program assignment. I have created and compiled the three separate implementation files that design the three classes, they each have a default constructor, overloaded constructor, and a display function. //************************************************************************************************************ "When your program is working correctly, define an array of pointers … | |
i want the best secured php class to provide [B]log in[/B] feature in my web with access protection and session timeout , plz help me | |
I'm having a problem getting the number of integers greater than the average in my array to display. I keep getting "You have 1 number greater than the average when there are 5 that are greater. Pls help!!! This is the code I've devolped so far: #include <iostream> using namespace … | |
So im learning SDL to get an idea on game programming for my career as a game developer. I havent done any learning for a couple of months after getting stuck on this problem. So im using a lazyfoo.net tutorial engine. that moves a player and has a collision with … | |
Hi. I am making JMenuBars in my way but i start to understand, that my way ir crap! :D So I want to know, if there is a way, **how to know, which item from menu is set.** For example - i have menu with actors - i choose one, … | |
I am trying to create a rudimentary number guessing program with java, and it is not working out. I think i have some useless stuff in there, but whatever: import java.util.Random; import java.io.* ; public final class Number_guesser { public static final void main(String... aArgs){ InputStreamReader istream = new InputStreamReader(System.in) … | |
OK, this is probably a variation on a previous question but the original question was never resolved, so I will present it on it's own to avoid confusion. I have a member data table called 'members' Primary key is 'mem_id' I have 7 different 'position' tables called position_1, position_2, position_3, … | |
If someone can simplify this code I will appretiate since I don;t have time... !!!! Thank you in advance..!! Regards..!!! CODE::: #include <iostream> #include <iomanip> #include <cstdlib> #include <ctime> #include <stdio.h> #include <stdlib.h> using namespace std; int DisplayMenu(); //function that display the menu of the program int Quit(); //quit function … | |
How to some div value export to xml with tag in php code. I search my site and from div value export to external xml file. ?php $some_link = 'http://www.popusti.rs/'; $tagName = 'div'; $attrName = 'class'; $attrValue = 'offer-list-item'; $dom = new DOMDocument; $dom->preserveWhiteSpace = false; @$dom->loadHTMLFile($some_link); $html = getTags( … ![]() | |
Hi Guys, I am trying to retrieve all the users in the Active Directory and dump into a Sql Server Table(Sql2008). I was able to search one employee at a time but could not able to search all the employees in the Active Directory. Basically i want to retrieve 1.SamAccountname … | |
In my code below you will see at the bottom my very lame attempt at sorting the vector array of employee records by name, alphabetically. My friend tried to tell me how I'm supposed to do it, but I can't make any sense of it really, so if someone could … | |
I am trying to use the size of an array to determine how many entrys are in the array as follows sizeof(array)/sizeof(array type) = number of elements in the array. I then wish to use this to add more data to the array as follows array[sizeof(array)/sizeof(array type)] = new Object(object … | |
My code gives this error: relocation truncated to fit: R_386_16 against `.data' section .text section .data text_string db 'This is my cool new OS!', 0 global _start global print_string _start: mov ax, 07C0h ; Set up 4K stack space after this bootloader add ax, 288 ; (4096 + 512) / … | |
confused: Not sure why this function works the first time but doesn't the second or third time. Any advice greatly appreciated. This is called with ul li tag onclick which sends an ajax get call to the database so the array can only contain upto 3 matching indexes. I should … | |
Hey can u help me with this code..?? Its a simple game of moving darts I made on applet.. I want to restart the game from starting when i click replay but this ain't happening, please check the code: import java.io.*; import java.net.*; import java.applet.*; import java.awt.*; import java.awt.event.*; public … | |
Ok so i have been searching but this specific part i cant get, how do i echoinformation from my sql database with php into my div so i keep the same formating <div class="wrapper pad_bot3"> <figure class="left marg_right1"><img src="images/page1_img4.jpg" alt=""></figure> <p class="pad_bot1"><strong class="color2">Chateau Lingfield</strong></p> <p class="pad_bot1"><strong class="color2">3 baths, 6 beds, … | |
My process is to multiply the given points in B8, D8, F8, H8, J8, L8, and N8 to A3, B3, C3, D3, E3, F3, G3 respectively. this procedure is to be processed in C8, E8, G8, I8, K8, M8, and O8. after multiplying, the process should perform =sum(C8,E8,G8,I8,K8,M8,O8) to P8. … | |
JLabel[] x=new JLabel[10]; int i=0; for(component comps : a.getComponent_list()) { x[i]=comps.getType().getImg(); x[i].setBounds(comps.getPosition().x, comps.getPosition().y, comps.getType().getWidth(), comps.getType().getHeight()); System.out.println("Coming Here,"+comps.getId()+","+comps.getPosition().x); this.add(x[i]); i++; } repaint(); I want to have all the labels in their position. after this function. but only the last added label is shown. What can I do? | |
I'm trying to write a program that uses vector to store the grades for the number of students entered.But i seem to be getting some problems with my code. I am able to enter the number of students, but when it asks for the grades, the program exits. I hope … | |
Hello to all we want to lock or password to a folder in vb6 please tell me anybody thanks | |
Hi Im trying to create a web based quotation system with php and mysql. I wanted to create something like shopping basket where people store the items and when they click generate quote the system will display the quote of the items and qty selected. Only when the person has … | |
Two parted question really... First off, I've been trying to enable my SQL Server 2008 R2 to allow remote access so my friend can view it from his RDBMS (also SQL Server 2008). I've enabled TCP/IP, I've allowed Remote Access/Connection, I've opened TCP and UDP Ports and also added the … | |
Hi, I wonder what is the best way to prevent injection against user input. There are a lot of examples but one say "magic_quotes_gpc" is good but removed from PHP soon. Therefore, no point of using it. Another says "mysql_real_escape_string and addslashes" just used to clean iptuts. Etc etc. I … | |
I try to convert programType from string to integer value but it show me "Input string was not in a correct format." error..can anyone help to to solve this question? Private Sub cmbProgram_SelectionChangeCommitted(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmbProgram.SelectionChangeCommitted 'converting string to integer value' Dim programType As … |
The End.