199,114 Archived Topics
Remove Filter ![]() | |
please help me how to use the printform in vb.net 2008 i need it for my project please help me. thanks | |
We are going to create a compiler like program where when we inputed character or multicharacter it will retrieve to the database the equivalent symbol of that character and place it to another textbox.. Example input: (1sttextbox) Line1: main() Line2: { the output is: (2nd textbox) Line1: WordSymbol, SpecialSymbol,ProgramParameter, OpenParenthesis, … | |
Hello all, This is my first post in thins forum and I hope a newbie like me makes some sense with my questions. I have a floating value float f = 5.3606; and I output a value cout<<pow(f,n); when n goes above 6, the representation of the floating number changes … | |
i am new to swings and i don't properly know where and how to use drawString in swings !! please help!! import java.awt.Graphics; import java.awt.*; import java.awt.Graphics2D; public class Main extends javax.swing.JFrame implements Runnable { String m1="hello"; Thread t =null; boolean flag; /** Creates new form NewJFrame */ public Main() … | |
Hello, I have a question about array lists, specifically how to pass array lists to a method. Then once in the method how to do simple algorithms. My example is I have three array lists, two of which have static double numbers and the third who's numbers are the end … | |
Hi I am trying to add a text in php where a "<" and ">" sign exits in a string, however when I view the string I get '%3C' and '%3E' respectively. I tried most of the php functions related to html entities such as: htmlentities html_entity_decode htmlspecialchars I viewed … | |
Hello, I'm a Java developer, but only for curiosity i want to learn Assembly, someone can post some good resources to begin. Thanks, Nathan Paulino Campos | |
hey, I am writing a password cracker. But I now have been thinking about separating the word generator from the actual encrypt and check function (for the sake of flexibility and convenience). I noticed John the Ripper does some operations like this. I was thinking something like this: [CODE]wordgen --stdout … | |
Hello, I have this reservation form found on the main page of: [url]http://www.avis.com.lb/[/url] As you can see the current month "August" is selected as the default month and so is the year and day (the day is programmed to jump 2 days ahead for the renting of the car...) However … | |
the idea i cant find anything about it via google. so hence this post. i want to have atleast 5 questions to ask that will be (key word: randomly) displayed when someone wants to reply. meaning the person has to answer correctly. i DO NOT WANT WHATS 5+5 KIND IF … | |
I realize that Java doesn't literally allow you to pass functions as arguments. And I've seen threads that address this topic with regular members, but I can't seem to adapt it for static methods. I have two classes that act kind of like two different "datasources" (A and B). They … | |
Okay so I posted my [URL="http://www.daniweb.com/forums/post936498.html#post936498"]first large project[/URL]a few weeks ago (2 or 3 i think) and now I finished another one! It is smaller then the 1st (about half the size) but still pretty cool I think. Anyway. It is called uCount and it is something I put together … | |
I recenty had a telephone interview in which I was asked about the internal implementation of the virtual mechanism. I described roughly that a table is compiled with the class (at the top of the memory block?) which holds pointers to the addresses of the appropriate method implementation according to … | |
Hi Folks !! i have a string like this. [ICODE]"../images/gallery/New-Goa-Park-in/86ffbca77051448489aec640d288153a.jpg"[/ICODE] from this path i want only [ICODE]../images/gallery/New-Goa-Park-in/[/ICODE] how can i do it? Please help Thanks. | |
Hello Dear Friends, Consider we have an php file called index.php how can i add a code to (index.php) so that when it excute (run) on any website for example (anysite.com) it call an text file (license.txt) which is on my server and also in same time it record the … | |
why he put this symble ( p-> ) before each variable? what is it means [code=cplusplus] p->fx[0] = (-p->x[0]*p->x[0]+p->x[1]); //-x1*x1+x2 /*function 2*/ p->fx[1] = (p->x[0]/(double)2.0 + p->x[1] + 1); for (i=0; i<NumFun; i++) if (MINMAX[i]==0) //minimiza p->fx[i]=-1*p->fx[i]; evaluaciones++; } /*Put here the contraints*/ void restricciones(individuo *p) { p->factible=1; //first constraint … | |
need help 1. Which of the following options is a correct C++ instruction to calculate the number of containers filled with milk that can be sold? 1. nrContainers = totalLitres - litresLeftOver; 2. nrContainers /= 5; 3. nrContainers = totalLitres / 5; 4. nrContainers = totalLitres % 5; 5. nrContainers … | |
I have just completed my java code for the game engine maze I have been working on. We are told to download MARS and from java code it in assembly. I have never learned assembly. So I am completely lost. I so far downloaded MARS and uploaded my java code. … | |
Before I say anything else, I do realize that there are numerous threads on this topic, but I haven't been able to fix my problem. Okay. Well, here's my problem. I'm writing a map editor for the game that I'm working on, and the map is oftentimes much larger than … | |
I just started learning Python last week, and I was having a few issues with doing a GUI app in Tk. My main problem is this: I have a list (each member of the list is a frame with a picture and some text in it) that populates itself by … | |
hello im new here on the forum.. so im using phyton 2.5.4 and i need help to finish this count loop [CODE=Python]while not inloged and not ended: sleep(1) print Time Time = Time - 1 if Time == 0: # os.system("shutdown -s") ended=True[/CODE] so now the count works good but … | |
I have written this code which reads a file and stores it in a struct. and from struct it saves the data in a new file. The file name is inserted by the user and new file name is also generated dynamically. But it is giving error. HEAP CORRUPTION DETECTED: … | |
I need help with a task: [QUOTE]For example, given the input: [CODE]doubloons[/CODE] your program should output: [CODE]Yarrrrrrr[/CODE] [/QUOTE] I don't know how to do the python script. I have never done Python before. Cohen ![]() | |
[CODE=JAVA] import javax.swing.*; public class TimeDeposit{ public static void main(String[] args){ String choice1, choice2,monthlySales,income; int value1, value2; // to display value of a variable DecimalFormat num=new DecimalFormat(",###.00"); JOptionPane.showMessageDialog(null,"Monthly Sales In $","Bank", JOptionPane.INFORMATION_MESSAGE); JOptionPane.showMessageDialog(null,"the Interest is 0.025"num.format(monthlySales)+"income is"+num.format(income),"Bank", JOptionPane.INFORMATION_MESSAGE); choice1=JOptionPane.showInputDialog("The time less than: "); value1=Integer.parseInt(choice1); choice2=JOptionPane.showInputDialog("The deposit is greater than: "); … | |
Hi I would like to know if there is any way to obtain a float result from a division between two integers other than using "from __future__ import division"? I am not looking for the .0 'trick'. Example 4/5.0 = 0.8. I want to be able to do 4/5 = … | |
I have one custom validator, one textbox & one button..I m checking the length of data entered in textbox. VB CODE [code] <asp:CustomValidator ID="CustomValidator1" runat="server" OnServerValidate="ValidateThis" ErrorMessage="The username must be 8" ControlToValidate="TextBox4"></asp:CustomValidator></td> [/code] [code] <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script … | |
Hi! I'am trying to make a program that dispalys a label with a image, but the rest of the program is "invisible", The problem I got is when I set the opacity, it affects the whole frame. This was ofcourse excepted, but I have not yet been able to make … | |
Hello all I need some tips from people who are familiar with Oracle dba. i m trying to get OCA exam and i just finished reading my first chapter and now i m on chapter 2 and its telling me to download the dba software. so i m very confuse … | |
I'm having trouble with this program from right out of the book. Its just supposed to write an integer array to a file that it creates. I've compiled it without any errors, but when I try to run it, it fails and tries to debug. can anyone help me figure … | |
Hi there I am currently completing a uni assignment using php and I thought it was finished until the lecturer dropped a bombshell and added another requirement. I have a contact us page which was basically just a shell (dead) page, he nows tell us that we have to do … | |
i got create combobox and i want show item at combobox from my database data. i set datasource from properties.. but for displaymember i try to use coding. [CODE]cmbPelan.DisplayMember = "Pelan" cmbPelan.SelectedIndex = -1[/CODE] but result like image me attach. i want my combobox show item like 1 2 3 … | |
if i have a java interface on a website and that interface contains a box where a user enters a string and then submits it. If I wanted to rapidly submit strings from a list I had (in a text file say), how would I go about doing this? I … | |
Hi. I am asking help for something that I have already done. However, I believe there is a much better way to do it. I am pretty novice to python and I don't know (yet xD) all of its capabilities and I am sure some of you will find this … | |
Hi, i am developing a simple web application for fault reporting. Users log into the system and report a fault which is then added to a database. I want to be able to email the system administrator a log file containing the information which has been added to the database. … | |
I can't figure how to get this going, for every object I create I want to add that to the existing array. I read about arraycopy but I don't know how to increase the existing size of the array and always end up with array out of index error... [code=java]A … | |
Hello I have made a function that determines whether 2 words are an anagram or not. [B]My Problem is:[/B] that if the word contains 2 or more of the same letters(eg hello, arrest, gall) the function doesn't work even when the 2 words input are an anagram, If i input … | |
Hello. I am an international student trying to solve my assignment which requires to implement Circular Linked List. I asked my lecturer to check my work and she said that I solved it but actually still using the normal Linked List (Linear). She hinted me that I need to modify … | |
Hi everyone, I have a problem about inheritance and I can not solve it since Monday. I have two classes [B](Student_Patient and Emp_Patient) [/B]inherited from [B]Patient[/B] class. [B]Patient [/B]class and [B]Doctor [/B]classes are inherited from [B]Person [/B]class. The [B]Doctor[/B] class has a member function[B]double get_fee_of_doc() const;[/B] which returns a double … | |
Hi all, I'm trying to implement a C-style union in C#. Found things on the web, but I have a problem. Depending how I initialize the fields in the union I get different results. Can anyone tell me what am I doing wrong here? Here is my code: [CODE=c#]using System; … | |
#include <time.h> // double RAND_MAX = 4294967296.0; //2147483647; // void aleatorio(); void warmup_random(double); void advance_random(); int flip(double); double randomperc(); double aleatorios_0_1(); long rnd(long, long); double Rseed; /* Random numbers seed */ double oldrand[55]; /* Array of 55 random numbers */ int jrand; /* current random number */ /* Initialize random … | |
Hi everyone, I'm having the error msg. "ıbmdadb2" E_FAIL(0X800004005) when I try to delete a row on the dataset. I populate the table in many combination of selections, no problem. But when I try to delete a line, I can do it on gridview but I cannot do it on … | |
I want to get the width & height of the image file.. Mine code is currently getting the file size, I also want to get the width & height.How to get width & height,kindly help me. [code] Imports System.IO Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e … | |
I was wondering if anyone could help me out with this issue. I am creating a basic function that will handle movement of an item that is absolutely positioned on a webpage (function moveElement). I begin with the onload event item which calls function prepare which calls function moveElement with … | |
Hi everyone! I am starting my first year of college classes next week with an intended entry into a computer science major. I am most proficient in Java and PHP, and understand that C++ and the former are vastly different. In doing some research, I have found that my professor … | |
hi,i am new to vb 8 and i am now facing the problem to write sql statement. i want to retrieved data from MS Access by select the date using date time picker. so my problem is how to write the sql statement. My code is as below: sql = … | |
how to generate number and characters together randomly. I know how to generate numbers randomly, but not getting anywhere with random character generation. Please help.. Thanks | |
[CODE]"SELECT * FROM tblKalender order by datum asc where datum > '" + Format(System.DateTime.Now, "MM-dd-yy") + "'"[/CODE] | |
I am doing a tutorial on Assembly, and I have ran into this error: [icode]fatal: Unable to open include file "includes/asm_io.inc"[/icode] Here is my code: [code=assembly] %include "includes\asm_io.inc" MOV EAX, 3 ;EAX = 3 ADD EAX, 4 ;EAX = EAX + 4 INC EAX ;EAX++ CALL print_int ;cout << EAX … | |
In an attempt to make my if statements cleaner, I figured out a simply way of making them quite a lot shorter. Instead of doing this: [code=python]elif talk_in == "quit" or talk_in == "q" or talk_in == "exit" or talk_in == "x":[/code] I can do this: [code=python]elif talk_in == ("quit" … | |
Hi, I have a requirement where i have a windows server with IIS and PHP 5. My PHP script creates a file and windows OS is not allowing me to create a file using fopen function. It gives Permission Denied error. Can anyone give an idea where i can internally … |
The End.