64,152 Solved Topics
Remove Filter ![]() | |
This is an offshoot of a specific problem I've posted in the C# forum. However, it applies to C++ as well. If you have opened a file, specifically, an image file, but would like to rename (or, as MSDN says, 'move) the directory the file resides in, what are the … | |
I have a fairly simple set of controls that make up an image viewer. The goal of this software is to allow image captures to be stored in a temporary directory, viewed in the image viewer, and then have the user able to choose to delete or save the contents … | |
Hello, I installed PHP 5 on my Server 2003 machine with IIS and got that working properly. I want to connect to my school's MS-SQL student database, but PHP balks when it hits "mssql_connect" (or whatever the statement is). How can I set this up so I can actually connect … | |
Is there a way to do math with hexadecimal numbers in Python? | |
Hi guys! sorry if this question has been asked b4. I just wanna know what is the difference between a==b and a is b? Thanks | |
Is possible to display animated image?for example [URL="http://tibia.gamigo.de/images/monster/demon.gif"]this?[/URL] thanks:D | |
Please help me !!!!! I want to know how to sort a list of records in a text file. I want to sort them by customer number. Here's whats in my module Public CustomerArray() As CustomerRecord Public Type CustomerRecord Number As String Name As String Address As String Town As … | |
I keep getting this error when ever I try to update or delete a record from my site. The error that I keep getting is "The string is not closed" I have use an example straight from the book so I don't know where to go. Here is my code … | |
Hi Guys, I am trying to design a program whereby the user will click on button in a form and the system will upload a form from a different excel/vb file entirely. Please could someone tell me how that works or if it is possible at all? Thanks. Ini :?: | |
I had that problem a few days ago about running external python programs, which I know know can be done with [code]execfile("filename.py")[/code] But I now have a new problem.... Here is my program I am making for myself: [code]import random from Tkinter import * mainWindow = Tk() strGame="" def dieSimulator(): … | |
Hello! Now I have another problem. I have successfully implemented cross-page postback with ASP.NET 1.1 using: [code] [COLOR=#0000ff]Protected[/COLOR] [COLOR=#0000ff]Sub[/COLOR] submit_Click([COLOR=#0000ff]ByVal[/COLOR] sender [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]Object[/COLOR], [COLOR=#0000ff]ByVal[/COLOR] e [COLOR=#0000ff]As[/COLOR] System.EventArgs) [COLOR=#0000ff] For[/COLOR] [COLOR=#0000ff]Each[/COLOR] o [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]Object[/COLOR] [COLOR=#0000ff]In[/COLOR] Page.Request.Form [COLOR=#0000ff] Dim[/COLOR] ctlName [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]String[/COLOR] = o.ToString() [COLOR=#0000ff] If[/COLOR] [COLOR=#0000ff]Not[/COLOR] ctlName.StartsWith(UniqueID & [COLOR=#800000]":"[/COLOR]) [COLOR=#0000ff]Then [/COLOR][COLOR=#0000ff] … | |
Hi, all! I've been trying to pass a javascript variable to an asp.net webapp through a hidden input field. All according to post [URL="http://www.daniweb.com/techtalkforums/thread26184.html"]http://www.daniweb.com/techtalkforums/thread26184.html[/URL]. But something seems to be garbled. Here's what parts of my aspx code looks like. [code] ... [COLOR=#0000ff] var[/COLOR] src = document.documentElement.outerHTML; document.getElementById([COLOR=#800000]"pSource"[/COLOR]).Value = src; } … | |
How do i return a boolean array? i get an error stating that i can't cast from boolean[] to boolean. I have something like below. [code] method logic... boolean [] information = {true, false}; return information; // this line does not work. [/code] Thanks sj | |
hellooo. i've been working with this form lately, and i cant seem to figure out how to make the success/error pages redirect to another page. any tips? [PHP]/////////////////////////////////////////////////////////////////////// //Don't edit below this point if you aren't sure what you're doing! // /////////////////////////////////////////////////////////////////////// $good = "Thanks for emailing me!"; //above is … | |
J don't know how to detect mouse click and how to get cordinates of mouse pointer in the moment of click? J need functions that detect mouse click on console. | |
Hello, These past few months I have been working with the C language. Before that, I was writing console applications with C++. I eventually got to the point where I couldn't seem to do anything more with C++, so I decided to use C as I know it is better … | |
I'm having trouble with a module in my program that is supposed to read in the files in a directory and return those with the .xml extension. When I import the module from the command line it works perfectly and will return a different list as soon as I change … | |
Can anybody show me, how can we collapse, expand a pane/window in python? Thanks in advance for the help!!! | |
I'm not sure if this is the right place to put this. Here goes: I would like to convert a html page to an image. I've done googling. Most of the findings led me to downloading sharewares. As this project has a tight budget, I reckon I should build something … | |
hi i got this program how do i sort this....thanx alot [URL="http://www.ee.umanitoba.ca/~pcard/371/assignment1.py"]http://www.ee.umanitoba.ca/~pcard/371/assignment1.py[/URL] | |
hallo i need 2 deal with each digit after the floating point. ex . 12.5678 i need 2 compare the 12.5 with another number and then the 12.56 and then 12.567 and so on till 4 digits is there is a function that takes the int number and one number … | |
I'm trying to use the google/python api, but i keep getting this error thrown at me: HTTPError: HTTP Error 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. I also get this error when trying to use … | |
Hi all. We are into a student information system project and we want to send confirmation to student that his course is abt to start on so and so date from our website but we are unable to do so..Is it becouse of Source code problem or some connections problem … | |
Hey guys, I was wondering if there is a way to include other python programs in your python program. Sorry if there is another thread about this I looked and was unable to find one. | |
All, Here is some JavaScript I found. It creates a small scrollbar, which allows a user to scroll though a series of 5 images. The images represent votes, and the user can then press a "Rate us" button in order to cast a vote. As you can see in the … | |
Hi, How to insert blob into MySQL using ODBC in C#. My application is windows application. Thanks Ramana | |
I have a form set up with 3 select lists where a user can select the date. and from there I insert it into one field in an Access database using this query. [code] <cfquery name="CheckDate" datasource="Rumors_Forms"> INSERT INTO BusTable (Name, Req_Date, Req_Time, Address, Email, PhoneNumber, Reason) Values('#form.Name#', '#form.Month#/#form.Day#/#form.Year#' ,'#form.Req_Time#','#form.Address#','#form.Email#','#form.PhoneNumber#','#form.Reason#') … | |
Greetings, I maintain a web page for the engineering department where I work and I was trying to make a humorous tool for the web page. Basically it is a form with three categories... Good/Fast/Cheap. Good meaning - a work product that is correct/accurate/etc. Fast meaning on or ahead of … | |
I want to generate all substrings of size k-1 from a string of size k. e.g 'abcd' should give me ['abc','abd','bcd','acd'] Order of these strings in the list doesnt matter. Also order doesnt matter inside the string e.g 'abc' or 'bca' or 'bac' is the same. The following code doesnt … | |
The question is simple... Can Perls LWP::UserAgent handle proxies that require authentication. I have UserAgent running well, but the documentation doesn't mention authenticated proxies. Any help would be great. Thanks | |
how to read spread sheet in python. I have a package XLW to generate a spread sheet, but i din't find method to read. How to read spread sheet? Please help me. Thanks, kath. | |
Ok, I am using a datagrid with paging enabled. It works fine if number of pages is 10 or less. Where I am running into problem is if there are more than 10 pages An example: paging looks like this Pages 1 2 3 4 5 6 7 8 9 … | |
I have done programs that print themselves on execution,but is it possible for a c program to execute itself or another c program whose path is specified?? | |
hi all, Suppose, I have a string stored in a character array. I want this string to be stored in a file. If I do fopen and use the write mode ,the contents of this file will be junk.. How can I store the string as it is inside the … | |
hi, have a little problem using fstream. first here is the code... [code] #include<iostream> #include<fstream> using namespace std; int main() { string word; ofstream outl("biscuit.txt", ios::out); cin>>word; outl<<word; system("pause"); return 0; } [/code] using this, i can type a word into the input screen and it saves whatever word i … | |
I AM POSTING A SECOND TIME ON THIS. I NEED SOMEONE TO HELP!!! TO TELL ME WHERE MY MISTAKE IS: THE JPEG PHOTOS DO NOT DISPLAY CLEARLY AT ALL.... CAN YOU HELP PLEASE!!! Thank-you Kindly, Puddin ____________________ This Is My User Form Is The Error Here? ____________________ <?php include 'db.php'; … | |
Hello, When I compile the following code I get this single error: In constructor `Point::Point expected `{' before ':' token ()': I cannot figure out what is wrong. What am I missing? Thanks. Header file [code] #include <iostream> using std::cout; using std::endl; class Point { friend void setX( Point &, … | |
[code] from Tkinter import* okno=Tk() okno.title('Pomoc please') platno=Canvas() platno.pack() def volana_funkce(event): print event.widget oval1=platno.create_oval(10,20,30,40,fill='red',tags='klik') oval2=platno.create_oval(50,70,80,90,fill='blue',tags='klik') platno.tag_bind('klik','<1>',volana_funkce) mainloop() [/code] how to get a name of widget if click on them?e.g i klik on oval1 and function volana_funkce will return oval1.. thanks | |
I want to use wxpython, but when I installed it python didn't recognise the module. I've looked everywhere for help but gotten nowhere so could someone help me out? | |
I want to generate all size 2 strings from a list of size 1 string e.g featureList = ['a','b','c','d'] gives ['ab','ac' etc] I wrote this code [code] def genC(featureList): for i in range(0,len(featureList) - 1,1): for k in range(1,len(featureList) - 1,1): if i+k <= len(featureList)-1: colocn = featureList[i] + featureList[i+k] … | |
Hi All, If the user is to input text - alphabetic or numeric, when is it advantageous to use [I]getline[/I] rather than [I]cin[/I]? It's obviously easier to code something like [inlinecode]cin >> favoriteVacationSpot;[/inlinecode] than something like [inlinecode]getline (cin, favoriteVacatioSpot);[/inlinecode], so I don't see the advantage of using [I]getline[/I]. If anyone … | |
this code is for a login page but i have a problem with it [COLOR=#ff0000][/COLOR] [CODE] <%@ Page Language="VB" Debug="True" %> <%@ import Namespace="System.Data" %> <%@ import Namespace="System.Data.oledb" %> <script runat="server"> Sub LoginBtn_Click(Sender As Object, E As EventArgs) dim con as oledbConnection= new oledbConnection dim comm as oledbcommand = new … | |
Is there any way in CSS (without using any JavaScript) which allows us to NOT to have scrollbars next to "certain contents" only. I'm getting my inspiration from this website: [url]http://www.tristarwebdesign.co.uk/templates/templates/infinity/index.html[/url] My very top space is for "company's logo" & I don't want a scroll bar appearing on the right … | |
Hi All, Short story: How do you compile two .cpp files at once? Text excerpt: "Step-by-Step 4-1: 1. Open [B]apstring.cpp[/B] and [B]stringex.cpp[/B] into a project in your compiler. The file [B]apstring.h[/B] must also be available to your compiler." All three files are downloaded from the Instructor's Text Resources of my … | |
Hi All, The program below is returning the following data... A 1 AB (empty line) 3 9 ...when it should be returning... A 1 AB 2 ABCDEFG 7 I've tried changing the assignment code statements to read [inlinecode]MyString = MyString + "B\n"';[/inlinecode] and [inlinecode]MyString = MyString + "CDEFG\n";[/inlinecode], but that, … | |
I've got a 2 tricky questions for u. Can anyone write: 1). A "Hello World" program in 'C' without using any semicolon. 2). A 'C' program without using any loop (if, for, while,etc...) to print numbers. A friend gave me those questions but up till now i have not been … | |
I have tried and again I cannot figure it out. Everything is working... Only the jpg, JEPG like these do not show up correctly... Can you see the mistake? If you do please spell it out for me. Much appreciated, again, puddin. Here is my form and process photo code: … | |
Is there an easy way for me to combine these two programs? What I am wanting to use an array for the different loans. Display the mortgage payment amount for each loan and then list the loan balance and interest paid for each payment over the term of the loan. … | |
Helo !!! I was trying to implement linked list in which the data field is Generic... the structure details are.. [code]typedef struct node { void *data; struct node *next; }gnode; [/code] Now to add a node into it, and i have written this function. [code]void insert(gnode **head,void *data,unsigned int size) … | |
[COLOR=blue]i wrote this code in the display of a page[/COLOR] sub Display() dim strcon as string ="Provider=Microsoft.Jet.OLEDB.4.0;DataSource =Sales.mdb" dim strcommand as string ="Select * from sales" dim myconnect as oledbconnection = new oledbconnection dim myAdaptor as oledbDataAdapter = new oledbDataAdapter dim salesDS as DataSet = new DataSet myconnect.ConnectionString=strcon myAdaptor.SelectCommand=new oleDbComman(strcommand,myconnect) … |
The End.