64,152 Solved Topics
Remove Filter ![]() | |
Hello Friends, Any body help me to convert the code from Delphi to vb 6.0 const C1 = 43941; C2 = 16302; function BorlandEncrypt(const S: String; Key: Word): String; var I: byte; begin SetLength(Result,Length(S)); for I := 1 to Length(S) do begin Result[I] := char(byte(S[I]) xor (Key shr 8)); Key … | |
Hey people wats up . People ... I need your help . I want to learn php , ok i know the basics of php from w3schools but in w3schools all the php lessons are not too advanced , so if you know a website where i can learn advanced … | |
This is the error i get when im trying to Run my AccountServ.exe it pop ups an error DB LOG Connect Failed. SQLSTATE:IM002 error:[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified | |
i want to insert rows one by one into a database in the sql server 2005. the problem is that i have tried all possible but the rows just dont get added to the database, i get an exception on executing this code, i get this exception Unhandled Exception: System.IndexOutOfRangeException: … | |
Hi, I have abstract base class with some kids deriving from it. I want its kids to be concrete classes But I don't want to implement the all methods of the class. I'm trying to find a trick to go around doing this and I'm running out of thought on … | |
i made a PHP page that calculating bill of medical institute. i need to print the bill from this page. bt using window.print command it print whole page with buttons also.. bt i dont need no buttons.plz help me to print bill.. thnkuuu | |
i created one blog . In that i put other site links . When users clicked that link it opened in the same tab . i need html codings to open in another tab if users click that link . please help | |
![]() | Sorry about asking all of these questions, but I am making an app and I have had a request for when the user types into the text box he can automatically hit Enter and it will navigate to the specified destination. However I have tried EVERYTHING and I cannot get … ![]() |
How do I configure the PasswordRecovery object so that I can pull the password from the webservice rather than allowing direct access to the sql server database? Where does PasswordRecovery even do the sql for getting the users password from the database? All the examples I've found show the PasswordRecovery … | |
I have two forms. Form A and Form B. Form A has a datagrid that is populated from a SQL Database Table query. When a button is pressed Form B is launched that allows you to add a record to the database table. I need for the datagrid to be … | |
i am trying to review what C++ stuff i have learned last year before high school starts, but the code i am writing does not run properly after i compile it. the code compiles the code does not execute. the code does not execute after Recruit() runs C_Name() to get … | |
![]() | Hello there my second topic I need to write a function that writes 10 random numbers into a file. I came up to this point: [CODE]#include "stdafx.h" #include <iostream> #include <fstream> using namespace std; int main(){ ofstream outfile("C:\\Random"); //Random as in you can put any file you want for(int i … ![]() |
I want to display date and time on top of the form where normlly written form1 forms name i want to display date in formate of for example 23 August 2010 and time in this formate 12:33:20AM Please please help. | |
Hi All Can someone pls help me on this one. Under nested 'if' conditions inside 'case', i have 2 sections. If i choose to go to section 1 or 2, when i am done, how can i return back to the primary 'if'. Any help will be highly appreciated. This … | |
Hi all, basicly, I'm writing some code so that when a user clicks on an image, a div will be displayed where the user has clicked. My jQuery code isn't working, so wondered if anybody knew how to fix it. All of this is in my document.ready() function. [CODE] $("img.image").click(function(e){ … | |
Hi, I have a software which contains a jar file. To use it I need to type "java -cp IPC.jar ipc.IPC -c CCl4 -t > CCl4.txt" in the command line. I want to invoke this in C#. I used this following code but it is doing nothing, no errors. [CODE] … | |
I'm trying to write a Windows App that will let me write or draw in a window and still see what's below. Kinda a transparent Notepad with Borders. It's easy to create a transparent Window using: CreateWindow() with wndclass.hbrBackground = (HBRUSH) 0; But in the CALLBACK WndProc() where I'm drawing, … | |
Dear All, I'm trying to sort a list of structs using STL library. [CODE] struct myStruct { int i; string s; }; bool compare(int first, int second) { if (first < second) return true; else return false; } int main() { list<myStruct> myList; /* Pretend that myList has elements with … | |
Hi coders,I have a small problem regarding pointers, I am a bit weak in pointers and need to understand why the following is wrong: [CODE] int main(void) { char *a; gets(a); return 0; } [/CODE] This causes an exception, please explain the error. I am using Turbo C as compiler, … | |
[CODE] Integer i = 5; Integer j = 5; if (i == j) System.out.println("true"); [/CODE] ^ Prints true [CODE] Integer i = new Integer(5); Integer j = new Integer(5); if (i == j) System.out.println("true"); [/CODE] ^ Does not print true. I understand that in the second case, the == is … | |
Hi there, I believe I am having trouble with the response that is received by the Ajax request. I have posted something similar to this but the response returned was XML not plain text (or html). I am guessing this should be easier but I can't figure out or find … | |
I am writting a large if / else tree in an existing website. My include libraries have to be put into the html program using a scripting language called SpeedScript. These includes bring in the login data that I am testing in my if tree. Instead of using the if/else … | |
Is it possible to create a hard page return in your PHP code so that wehn the user prints the output, the page break will occur where it is defined? If this is possible, how is it done. I have not found anything in my Google searches. Any help is … | |
Hey guys, check this out: [CODE] File test = new File(path + "person.data"); FileOutputStream fos = new FileOutputStream(test); ObjectOutputStream oos = new ObjectOutputStream(fos); Person p = new Person(); Person p2 = new Person(); p.setName("Sub Zero"); p.setGender("Male"); p2.setName("Sonya Blade"); p2.setGender("Female"); ArrayList<Person> people = new ArrayList<Person>(); ArrayList<Person> people2 = new ArrayList<Person>(); people.add(p); … | |
Hi, I got some zip files on my server people can download and am having a strange problem. Can't remember if i ever checked in IE but in FireFox, Google Chrome, Opera everything is fine. When i download a file from my website in IE the file is getting corrupt. … | |
Hey, I'm trying to make a way for the user to click a link in an email agent and the submit button (previously hidden by css) and it then becomes unhidden. [code=javascript] function showSubmit() { var submit = document.getElementsByName("submit"); if (submit.style.display=="none"){ submit.style.display="inline"; } } [/code] Then the html: [code=html] Click … | |
Good day, I'm having problems seeing how the recursion is working with this program. I've traced it but I don't understand why after if(num >0) is false it returns to the statement following the last function call and then seems to start the recursion again, but backwards? What I see … | |
Hi, I recently started learning C++ because i wan to develop games, anyway i just got to file i/o part and i got a problem with the binary file read. I created a class to test the binary file i/o: [code=c] #ifndef KAIZOKU_H #define KAIZOKU_H #include <string> #include <fstream> class … | |
i have a bit a weak understanding of those 2 concepts. could you explain to me what is happening in that part of the code? [CODE] public class Part5{ public static void main(String[] args) { // Object[] zoo=new Object[4]; // zoo[0]=new Cat(); Object[] animals=new Object[4]; animals[0]=new Cat(); animals[1]=new Dog(); animals[2]=new … | |
Hello! I am trying to edit a csv file. This is my original csv file [CODE]"TINAMIFORMES",,,, ,"Tinamidae",,, ,,"Tinamus",, ,,,"tao","Grey Tinamou" ,,,"solitarius","Solitary Tinamou" ,,,"osgoodi","Black Tinamou" ,,,"major","Great Tinamou" ,,,"guttatus","White-throated Tinamou" ,,"Nothocercus",, ,,,"bonapartei","Highland Tinamou" ,,,"julius","Tawny-breasted Tinamou" ,,,"nigrocapillus","Hooded Tinamou" ,,"Crypturellus",, ,,,"berlepschi","Berlepsch's Tinamou" ,,,"cinereus","Cinereous Tinamou" ,,,"soui","Little Tinamou" ,,,"ptaritepui","Tepui Tinamou" ,,,"obsoletus","Brown Tinamou" ,,,"undulatus","Undulated Tinamou" ,,,"transfasciatus","Pale-browed Tinamou" … | |
Hi, I want to connect to a external server to either copy image.jpg to my local computer or list all the files stored in a path. How can I do this? I think cURL is used but examples on the web are not working for me. Thanks in advance For … | |
I have been reading through many blogs, the MSDN website, and Google search results trying to figure this out... At what point, or in what situations would someone ever want to have multiple projects under one solution? I have thought about having a project that contains forms and some "core" … | |
Hi Folks, Windows/Python3.1.2 I'm totally at a loss with this one... The code is supposed to open a file (postscript with UNIX LF-only EOL characters), look for and change a line, then write the lines back. It works fine, except for the fact that I can't dissuade Python from writing … | |
hello, for my application I have created a database containing a table where my clients data is stored before they are allowed to use the website. When they are allowed, the info on this table has to be transferred to 3 different tables, using the insert...select-statement. Doing this I don't … | |
Hello, I’m just trying to get the link and id name passing to other page, but when moving on the link the mouse, it shows only the first word of the ID. Here is the example. [CODE] <?php $id ="CURSO DEL RITE(CALEFACCIÓN,CLIMATIZACIÓN Y ACS)"; $link = "http://www.ginerllinares.es/prog_curs/sem/inscribir.php"; $path = "<a … | |
I want to be able to input two (2) 'grades' exactly like they are in the String array and have it come back printing BOTH showing the grades, again, as well as the grade score corresponding to those grades. For example: input C- (enter) B+ (enter) output does: ONLY the … | |
This one might be a challenge... Okay some of you might have an inkling what i'm trying to do already from the last thread (thanks for helping!) but I figured I should start a new topic for a new problem so that people can search solutions easier. I've got multiple … | |
Hi Daniweb. I just read the other threads on regex and couldn't find the help I am looking for. The problem is simple. I have a bunch of settings in a .xml file which I read into my program. One of the settings is '*.txt', which is used for regex … | |
Hey, I'm trying to find any tutorial on taking user inputted text and displaying, on that page or another. I know how to upload a file, or provide that service to the user so I figured it might be similar, but I couldn't find any help on this scanning google. … | |
Hi friends . recently i create one blog for music . i want to knw how to add the Songs in blog for Online hearing . . . please help . . . i searched one day and did not found . please help | |
Can anybody help me? I am following instructions about how to put an Iframe in my app. Here is the code for the button: protected void Submit_Click(object sender, EventArgs e) { //frame1 = (HtmlGenericControl)this.FindControl("frame1"); HtmlControl frame1 = (HtmlControl)this.FindControl("frame1"); frame1.Attributes["frameborder"] = "0"; frame1.Attributes["scrolling"] = "auto"; frame1.Attributes["width"] = 640 + "px"; frame1.Attributes["height"] … | |
Hello everyone, I am trying to process various texts by regex and NLTK of python -which is at [url]http://www.nltk.org/book-[/url]. I am trying to create a random text generator and I am having a slight problem. Firstly, here is my code flow: Step-1)Enter a sentence as input -this is called trigger … | |
I would like to learn how to program in Java. Does anyone have any textbook /other resource suggestions? | |
Hi, So, I did create a client and a server, and all of them work pretty well. When I send messages to the server, rather than sending one message at a time, I put the information in a class, say like a Person class - I put set the Person's … | |
While I know how to set this up perfectly, I was wondering, is it possible to set up my jdbc connection with my access database so that I have to put in a username and password? I would really like to do this with access, if it's possible | |
Hi, I am new to perl and have been getting decently good at it. Now i am getting into doing plots with perl. I read some articles/examples on how to create plots using perl It mentions using GD::Graph Module However when i try to plot I get Can't locate GD/Graph/bars.pm … | |
Hi, How do I change the query below to search in two fields instead of just one? For example, I want the query to search two fields: job_id and jobtype - instead of just job_id. [CODE]$query = "SELECT lastname, firstname, state, zip, jobtype, otherjobtype, nightavail, weekendavail, ptft, resume FROM data … | |
Hi, I have built an entire site with my localhost on my computer, as you do. and everything has worked fine. I have no issues. and still dont' However, I just uploaded it, and am getting this error: [CODE] Warning: Cannot modify header information - headers already sent by (output … | |
ok i am writing a program that ask for the amount total and amount tender. then i'm supposed to calculate a combined amount of coins and dollars to make up the change amount. i know how to split out the dollar amount, but i'm stuck on how to calculate the … | |
Hey guys, I'm trying to mix php and it's not working. I made a form that takes user input and changes the website they input to it's IP address. Next I tried to put that IP as a variable $ip and tried to put that variable in a link(href="") and … |
The End.