199,113 Archived Topics
Remove Filter ![]() | |
Hey all, I'm having trouble with an assignment for my C++ class. The .pdf has the assignment parameters, and the .cpp file has what I've written so far. Right now I've written the program enough to make sure the two strings (LastName and FirstName) get swapped correctly and put into … ![]() | |
I want to paste some text in clipboard into Ms Word. I wrote this following code [code] a:=findWIndow(pchar('OpusApp'),nil); b:=FindWindowEx(a,0,pchar('_WwF'),nil); c:=FindWindowEx(b,0,pchar('_WwB'),nil); d:=FindWindowEx(c,0,pchar('_WwG'),nil); SendMessage(d,wm_paste,0,0); [/code] and it didn't work. But i wrote the code below to paste into Wordpad,and it works fine [code] a:=findwindow(pchar('WordPadClass'),nil); b:=FindWindowEx(a,0,pchar('RICHEDIT50W'),nil); SendMessage(b,wm_paste,0,0); [/code] Am I made some mistake … | |
Hi I am designing a web application. the structure is like this. request for product -> controller.jsp ( based on URL forward the request) -> products.jsp Here request can come from any of the pages and products.jsp refer to different jsps for different product. In general, there will be so … | |
Hey! I have a string str = "12354" . i want to create another string str2 with only the first two elements of the string str ie i want str2 = "12". can someone please tell me how i can do that? | |
Hello there! Right, Im designing a simple program for college. Its just a basic wage input program and it works fine. On the final screen I want the user to have the option of going back to the start of the program. 'Do you wish to start again?(y/n)' so if … | |
Hey guys I was hoping someone could shed some light on some research I'm doing. Basically, I want to know if I can use PHP to read n number of cells from an excel file. Based on each cells color, I want that cell value to be written to a … | |
Hello, everyone. I've been working on an application that will be able to accept customers and bills of an electrical service company. While testing this application, I've come across an error message saying Null Pointer Exception. Okay, here are the details. The application is actually an entire GUI project. It … | |
Hi! Everybody, I have several c++ sources files as following: main.cpp: [code]#include "A.hpp" int main() { return 0; } [/code] A.hpp: [code]#ifndef A_HPP_ #define A_HPP_ #include "B/B.hpp" #endif /* A_HPP_ */ [/code] B/B.hpp: [code]#ifndef B_HPP_ #define B_HPP_ class Foo { int foo(int val); }; #endif /* B_HPP_ */ [/code] B/B.cpp: … | |
what java code for output repeated continuously by requesting the user to input data&number? | |
How do I read something from DOS? For example, doing a command in DOS, like 'dir'/etc. and writing the output to a variable in python? I know about the listdir() function, 'dir' in DOS is just an example. | |
can more variables have the same value in an enum ? eg. [code] enum boolean { true = 1, false = 0, TRUE = 1, FALSE = 0 }; [/code] | |
main manu 1 for Addition 2 for Subtraction 3 for Multiplication 4 for Division 5 for Choice not in list | |
Hi All Anyway to add a note inside the email saying here is your file after attching a file in unix?? For example my script is fine attaching the excel file but i would like a message inside the mail too and not in the subject title. [QUOTE]/usr/bin/uuencode $adhocreport $adhocreport … | |
Hi! i just want to ask how to end a session after a transaction. Here's the flow of my app...after updating information in the database, a confirmation page is invoked, in this page, a button which will display the first page is displayed. when i click that button, the text … | |
Hi for my assignment i have to create my own greater than operator for a string class. Basically the class acts as the std string class library but i gotta edit the greater than operator in it. The assignment says upper and lower case should be treated as equal eg … | |
The following bit of code is to send a string of data to the usb port. How can I modify the code so I only send one byte of data to the usb port instead of a string? private void usb_OnSpecifiedDeviceArrived(object sender, EventArgs e) { this.lb_message.Items.Add("My device was found"); //setting … | |
I have heard a lot of talk about hashtables from time to time. They are supposed to be very cool ways of storing data where the index you use to look up the data is somehow the data itself. But hashtables are not part of the C++ standard template library... … | |
I am completely new to C++. I want to know how to make a simple text program that takes user input and performs one of two operations depending on what the user entered. thanks for all help. | |
hellow i make a javascript function. i can call it via onLoad attribute and via form input. but there must be someother way to call the function, i mean from script. can anyone help me out here. thanks in advance - iqbal | |
Hi everyone, I'm busy working on a program that needs to store settings somehow, and have the settings saved. I don't know how to do this, so I've written a test program. The object of the test program is to enter a 4-digit password, (sort of like a locker lock) … | |
I'm using the following tutorial to learn Python: [url=http://openbookproject.net/thinkCSpy/index.xhtml]How to think like a computer scientist[/url] I'm running the following code and I get an error: [CODE]from gasp import * begin_graphics(800, 600, title="Catch", background=color.yellow) set_speed(120) ball_x = 10 ball_y = 300 ball = Circle((ball_x, ball_y), 10, filled=True) dx = 4 dy … | |
Hi everyone, I'm new to wxpython, so I apologize in advance if this has a simple solution. The GUI I'm working on has the following basic structure: [I]def function(time) -> initialized from frame and generates data needed in panel class panel -> displays data and images generated in function class … | |
Hey I'm new to programming but I know enough now that I have been trying to program my own game. I works, but I think my code is too complicated. Does someone want to test it and give me some suggestions? Thanks! | |
Can someone point me in the appropriate direction to learn the proper use of tagging Information on data with Java Annotations? I've used them before (@Override, @Deprecated and @SuppressWarnings(sp) ) but I'm interested in creating my own for testing-purposes and possibly for medium-to-big projects. I need to understand when to … | |
I want to change the results of function deal() below which fills out a string array. In the watch window I can change the result of the memory location that the pointer points to, but not the string that begins at that address. Is it possible to keep the memory … | |
I have constructed a source code for Java Payroll Part 3: I'm receiving the following error when I try to compile my program: PayrollPart3.java:56: 'else' without 'if' ^else Any advice would be appreciated to why I am getting this error. Thanks! [code=java] // Fig. 1.3: Payroll Part 3 // Program … | |
Hi! We know that (1-x)^n = Sum_{k=0}^n C_k^n (-x)^k. Now, suppose we do not know that the sum on the right can be evaluated using the simple formula on the left, and would like to compute it directly. Then, for x=0.998173 the code produces a negative answer for value of … | |
Hi there all! I do not have a great knowledge of php but I do know basic html. I have a javascript popunder script that I would like to try on my site that runs on a php script. I know how to insert this script into an html page … | |
I NEED HELP WITH THIS PROBLEM!!!! ANYONE!!!! /*3. Write the function: double max_norm(double *v, int n) to compute the maximum norm of vector v[] with n elements. The max norm of a vector is computed by taking the maximum absolute value of its elements. In prob3() compute x1[]=a[][]*x0[], call max_norm() … | |
Hey All, I am trying to write a php script and would like to have an autosuggest text box with data from a mysql database. This would be for designating a town in a form. The sql query I would use would be. [CODE]<?php $connection = @mysql_connect($server,$dbusername,$dbpassword) or die(mysql_error()); $db … | |
Hi, may I ask for a little help ? I don't know how to type a command for selected radio button. I mean - for example - if radio button is selected do this... I know there is a function KeyPress, but do not know how to use it, thanks … | |
this is my code [CODE]Private Sub Command1_Click() Dim maximum, minimum, highest, lowest As Integer Dim num(1 To 5), i, j, z As Integer For i = 1 To 5 num(i) = InputBox("number") Next i highest = num(1) lowest = num(1) For z = 1 To 5 If num(z) > highest … | |
Can Anybody Put Me Through Out To Add Image To My Database? I've Been Trying But Easy. Get Any Solution Pls Reply Me Or <Snipped>. Thanks. | |
A programmer has been asked to implement a simple game that requires the use of a board to position and manipulate some objects represented by symbols. The programmer has implemented the board as a two-dimensional array of characters. The following constants have been declared as global to the whole program: … | |
I want to disable the ALT CTRL DEL process in vista...Any body help me....Currently i am developing a proejct LaptopLock...Now its work in XP smoothly...But in Vista ALT-CTRL-DEL is a problem...? | |
I'm trying to detect googlebot, or more to the point have some code not run when googlebot is viewing the page This is what I am using if (strpos(strtolower($_SERVER[‘HTTP_USER_AGENT’]), "google") === FALSE) However google bot appears to be still running the code, anybody any ideas? | |
in my pop up window if user want to go parent window only by cancel button or submit , in this way i use all attributes [CODE] popupWindow=window.open("pharma_finance_master_bank_add.jsp?ma="+ma+"&gr="+gr+"&na="+na+" " ,"mywindow", "height=400, width=600,titlebar=0,resizable=0,menubar=0,toolbar=0,location=0,directories=0,scrollbars=0,status=0"); [/CODE] but i can't disable the X (close) on the top right, could u plz help me regarding … | |
We pulled this from[Vbasic.net](http://vbasic.net/detail.aspx?tid=105). A friend of mine has it running on his home server but I keep getting errors on our production mahcine please help!!!! Thanks!!! Generating random passwords can increase the security of a website by taking the process out of the hands of the user, or simply … | |
hey all:) is there is a code in assembly language similer to if - else statement in c language??:?: i want to write a program to calculate the factorial of any no. using assembly and i need if - else statement in this program plz help me as fast as … | |
[COLOR="Green"]downloaded file show only 0byte nothing in download file............... this file uploading codes... [/COLOR] [COLOR="Red"]Code:fileload.html[/COLOR] [code]<html> <head> </head> <body> <center> <form method=post action="loadfile.php" ENCTYPE="multipart/form-data"> <h4>Enter the Following Details</h4> <table border=1> <tr> <td> Enter FolderName</td><td><input type="text" name="fname"> </td> </tr> <tr> <td> Title</td><td><select name=title> <option value ="resume">resume</option> <option value ="resume1">resume1</option> <option value … | |
in my form there is 4 fields in that 2nd one is list box in that if u select item have to open pop up window and in that pop up window after enter all values( 4 fields) when click submit button window have to close and control come back … | |
Hi, I create dbf.php file to connect database and require dbf.php in main.php but, doesn't work. Thanks dbf.php [code] <?php $conn = mysql_connect('localhost', 'root', ''); if (!$conn) { die('Could not connect: ' . mysql_error()); } else { mysql_select_db('dbf', $conn) or die('Could not select database.'); } ?> [/code] main.php [code] <?php … | |
hello friend, i require help for forget password please provide code for this please Thank u in advance Rakesh Nagekar | |
the code worked perfect on Friday and when I come back today and try.. the RAM alone works fine in the T-SQL but the Mfg, Make, GraphicsCard and GraphicsVersion do not work atall.. they dont give me any queries atall in the data grid view o/p.. why am i stuck … | |
hello,i need to make an if statement for a mortgage application in vb.net, basically i have a list box for the DOB called cmbDOB, and a label to show the maximum mortgage. But i dont know how to make the if statement-it has to show the maximum mortage in the … | |
hi all, I want to run vb program through vb.net program is this possible in vb.net and i want to show output in some container. In VB it is possible through Shell command but it runs the program seperately but i want to run program through vb.net and want output … | |
O.K. I wrote my own version of the Addiction Solitaire game using a JFrame and it worked. I want to put it on the web, so I'm converting it to a JApplet. I have 52 PNG files, one for each card, that I need to be able to access for … | |
like i m plannin 2 go for some language nd m completely confused... in between vb.net and asp.net...... could any one let me know which one is for what nd more applicable nowadays in industry... like my main emphasis is on website developement.....nd o also want to develop an inventory … | |
hi everyone, iam having a textbox in my application containg a calender iamge as shown below,which when clicked displays a calender,on clicking on the calender,the date is displayed in the textbox. [code] <asp:TextBox ID="txtfromdate" runat="server" Width="100px"></asp:TextBox> <A id="A5" href="javascript:show_calendar('aspnetForm.ctl00_ContentPlaceHolder1_txtfromdate','','','DD/MM/YYYY');" runat="server"> <img id="Img5" border="0" height="20" src="../images/cal.gif" runat="server" alt="Pick a date" width="24"/></A> … | |
people! I noticed that when a web page displayed is sent to the printer for a hardcopy, some sometimes annoying and unnessary headers and footers are printed alongside the main document. This are usually the file paths of the document being printed. I believe there is a way this "feature" … |
The End.