64,152 Solved Topics
Remove Filter ![]() | |
For some reason my shutdown function that i'm making won't work. I get this error: In function `void shutdown()': expected `,' or `...' before numeric constant Here is my coding: #include <windows.h> void shutdown(); void shutdown() { BOOL WINAPI ExitWindowsEx(UINT EWX_REBOOT, DWORD SHTDN_REASON_MAJOR_HARDWARE); return; } int main() { shutdown(); } … | |
Hi PHP community. I have a PHP script on Linux (CentOS 5.2) which produces a "failed to open stream: No such file or directory" which I am out of ideas on how to solve. I am on the verge of reverting to Perl. The line generating the code is: [icode]$fh2 … | |
![]() | Hi folks, first of all sorry to say I ain't got any sample code and couldn't find anything obvious from Google and searching forums. Anyone got any ideas about integrating Joomla (latest version) session handling with a bog standard session_start/$_SESSION['user'] (etc) custom pages. Here's the explanation: I wrote a site … |
hello, I wanna create a struct in python. the struct needs to have a char and an array of chars. eg. (ruby code): [code] Somestruct = Struct .new(:character, :characterArray) structure = Somestruct.new(" ", []) [/code] How do I do this. I made a Trie in ruby and now I wanna … | |
I cannot seem to figure this out. This part of a larger script that I am writing. I have a list that looks like this. The fields are servername, port and program. How do I sort it to get a tally of what servers are listening on what ports. This … | |
is it possible to use try catch exception inside while loop? [code=java]while(username_ctr <= 5){ try{ user1 = str_div[username_ctr].indexOf("open_pm_tab",username_start); user2 = str_div[username_ctr].indexOf("')", user1); user3 = str_div[username_ctr].lastIndexOf(',', user2) + 3; str_username[username_ctr] = str_div[username_ctr].substring(user3, user2); //System.out.println(str_div[username_ctr].substring(user3, user2)); username_ctr++; }catch(Exception e){ slash1 = str_div[username_ctr].indexOf("</font", 0); slash2 = str_div[username_ctr].lastIndexOf('*', slash1); //System.out.println(slash1); //System.out.println(slash2); //System.out.println(str_div[username_ctr].substring(slash1, slash2)); //System.out.println(str_div[1].substring(slash2,slash1)); … | |
I am having a small problem locating any information on this little problem on the net so I am coming here for help AGAIN. I have a VB6 project that has a combobox. This is needing to display data from my SQL db. I have it displaying the data fine. … | |
Hi, I am trying to do something like this:- [CODE]1 10 20 30 ##########|##########|########## rect 1 rect2 rect3 5 ########### 15 user rect - (transparent and temporary based on user mousedrag) [/CODE] Now If a user clicks suppose in the middle of rect1 and drags it to the middle of … | |
I am using vb.net 2005 (express) and can't quite figure out how to do this. I have an application that reads in a bunch of data from a file into the appropriate variable arrays like I want. I used a simple solution that I found here on DaniWeb to read … | |
Hello I am getting this error message WebException: The request failed with HTTP status 401: Unauthorized.] System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +431289 System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +204 Dashboard.Crm_Deployment.CrmDeploymentService.Execute(DeploymentServiceRequest Request) in C:\Downloads\Dashboard\Dashboard\Dashboard\Web References\Crm_Deployment\Reference.cs:79 Dashboard._Default.Page_Load(Object sender, EventArgs e) in C:\Downloads\Dashboard\Dashboard\Dashboard\Default.aspx.cs:136 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 … | |
I'm having a problem with my countdown timer and am figuring that I'm missing something obvious. All I'm trying to do here is get my jLabel to countdown from 60 to 0. [code] ActionListener refreshListener = new ActionListener() { int counterLimit = 60; public void actionPerformed(ActionEvent e) { javax.swing.Timer refreshTimer … | |
So I am writing a voice activated recording program, and one of the things I would like it to do is plot the current and past volume level on a JPanel. Write now I am simply reading one byte from the audio buffer, converting it to an int, taking its … | |
Hi guys, Im pretty new to C# and I have a problem hoping that most of you could solve cause you are quite an experienced developers :) Here's my problem: I have a simple Windows Application Form with a dataGridView and a button. I want when the button is clicked … | |
What is the purpose of view state,application and session and what is the difference among them?? i googled it but couldn't get exact idea .. i'm just a beginner.. help me plz | |
am writting my class work project assignment but am stuck can some one help me out, am tring to pick data from patients table and diagnosistreatment tables which are mysql tables but the code is not working [code]<?php //This code retrieves a particulat patients record from dianosis and treatment table … | |
I want to make the clone site of [url]http://fishershippingcompany.com/home.php[/url] . is it possible in wordpress or I have to self code this all??? Please suggest me | |
Hi, I'm working on little phone book program with wxPython and SQLite. I can get database populated and can retrieve back the phones and names, but when I do fill them in ListCtrl it throws cruel errors :) Here is the retrieved data from database: [(1, u'Steve', u'Giddy', u'0654743553'), (2, … | |
I am confused by the use of an un-named namespace and its practical applications. The C++ Programming Language states that. [code] namespace { //Content } [/code] [b][COLOR="Green"]is equal to [/COLOR][/b] [code] namespace $$$ { //Content } using namespace $$$; [/code] Where $$$ is a unknown and random name. However I … | |
Hi all, I am new to threads in c++, and I must use the pthread library. The documentation is easy to understand, but there is a more general aspect that I am missing. My question is: Is it possible to give a pointer to an object's function as argument to … | |
![]() | I have some code here: [CODE]import urllib import subprocess import time open_site=urllib.urlopen("http://www.freewebs.com/sravan953/command_python.html") read_site=open_site.read() site_list=[] for a in read_site: if a=='<': break elif a!='<': site_list.append(a) site_list.remove('\n') site_list.remove('\n') site_list.remove('\r') for a in site_list: site_string=''.join(site_list) def run_program(): current=time.asctime() print 'Runnning program'+' ['+current+']' subprocess.call(site_string) def check_argument(): current=time.asctime() if str=='': print 'No command given'+' ['+current+']' … |
I have no idea why, but the form mailer I'm using is not working correctly. Granted, I'm still a newb, but everything in the code looks fine to me. I'm using a modified version of the free form mailer available at [url]www.TheDemoSite.co.uk[/url] The exact problem is this: I fill out … | |
I am having trouble with a list that doesn't want to append like they normally do. I have been messing around with it for the last couple of days off and on. For the life of me I can't seem to figure out what I am doing wrong. n=range(0,31) x=[] … | |
Hello, I am fairly new to scripting, I am interesting in writing a shell script which acts as a DOS command. I want to be able to utilize dos commands such as cd, dir, type, del, ren, and copy to do the same functions as the UNIX commands, cd, ls, … | |
[QUOTE]HI These are the forms I Have Log in,Customer,Order. They are opened In this order. At start up the Log in Form assigns the User in The Order Form and all works fine. But when I close the Order Form I loose the user. I would like to maintain the … | |
Hello, I'm writing a program for class that holds information from a parking garage and calculates the cost of parking for each vehicle and the total revenue generated. The code I've written uses a struct Car which contains variables for `Tag#(string)`, `Make(string)`, `Cost(int)`, `Time in(int b/w 1 & 24)`, and … | |
hi, How can I search from multiple tables in a db?DB I am using is MySql db. Thank You, Suhasini | |
I have python 2.4.4 installed on Ubuntu for use with Zope 2.9.8 (plone). I am moving my zope/python install from a hosted server to a new server of my own. I am setting up everything from scratch for the first time. When testing my installation, I get an error message … | |
hello friends,I made an applet to calculate sales tax but i am having a problem in executing it.It is giving error on execution. and the error it is giving is, cant create:java.lang.reflect.InvocationTargetException following is the piece of code of applet. import java.awt.*; import java.awt.event.*; import java.text.*; import javax.swing.*; public class … | |
ok so i am trying to fill a 2d array with random numbers and find the max size in each row. i don't know what is wrong with my code. here is the code [code=php] <html> <body> <title>Assign 2</title> </head> </body> <hr/><p/> <?php $arr=array(); $max_row=array(); function find_max_row() { global $max_row; … | |
Hi all, Class assignment is to list all numbers between user input. I have this much, but have no idea how to get it to list the numbers between them. I know this is simple, but it still eludes me ;) Thanks in advance! [code=cplusplus] #include <iostream> using namespace std; … | |
alright i am working on jQuery - UI Sortable Portlets and im trying to pass serialize on to the php so i can update my database with each displays column, and position so it will save for my users i have what I've done so far below if anyone know … | |
Hi, I'm trying to read data from a text file and store it into an array. I know this issue has been dealt with earlier, but none of those threads seem to be helpful in this case. Sorry in advance if I missed a relevant post. The data in the … | |
I'm trying to compare lines in two different files. The basic idea is I want to take line 1 of file 1 and compare it to all the lines of file 2 and print the results into a third file, then do the next line of file 1 and repeat … | |
Hi All I think this is my post in DW . I need a help from you guys . I have a data [code] ['\x1a', '\x05'] [/code] , and how i can convert this to ascii ?? Any ideas , please give a hint :) thanks | |
I am using python portable on a thumb drive and on some computers my script works normally, on others it does not. I Checked the paths and it had the _imaging.pyc file and the path was set up for it correctly on all computers. Is this because 1 computer has … | |
I have problem to start. I need algorithm for program that prompts the user to input a sequence of characters and outputs the number of vowel, using user-defined value returning function Vowel. Please help | |
I have this feed of classifieds that I need to convert to an .xml doc. I explode each string into an array (separated by a "|"). Everything work just fine except the string cuts off if there are any line breaks in the 5th section and everything after the break … | |
Hi, I'm new to C++, I learned to program in Java first. I'm having trouble getting this to work. I'm writing a text based version of battleship. It was going well until i tried to set the size of the ship. I'm using an int array to check to see … | |
Hi, I have been learning some c++ with a friend and saw a [URL="http://www.youtube.com/watch?v=nY8z5Eh-kcg&NR=1"]youtube video[/URL] where there were some features I just couldn't find in my version (express edition). I have to ask in which version of Visual Studio 2008 does the Project type [I]Windows Forms Application[/I] appear in where … | |
i am working on a script that uses a counter in order to display some things from a data base now when i submitt from one of the two form buttons it always returns the last variables that would have been in the index and i am trying to get … | |
I am trying to convert my c structures to c# structures. I am facing one problem as character is one byte representation in c and two bytes in c#. How to construct xyz structure with character having one byte?? | |
Hi Guys. First let me say that this site is fantastic and the knowledge spread is vast. OK, now I'm somewhat of a noob when it comes to VB.net 2008 and have not long been coding with it. I came across a problem with the cancel button on an "input … | |
Hello, I am am trying to get a ListView to populate based on an xml file. to acheive this I would like to use the DataTable. this is my XML file: [CODE]<?xml version="1.0"?> <main> <person> <id>1</id> <name><first>Joe</first><last>Blow</last></name> </person> </main>[/CODE] And the C# that I am using to read it: [CODE]public … | |
Hi all, I am trying to make a program in VB .NET that has two "browse" bottons, two textboxes which should show the full path of the files to be selected, one "Save As" button, one textbox that should show the file's full path where to be saved in, an … | |
Hi, I just wonder if this is possible. When i print a page from my localhost or web, the html link information is printed at the end of the page. How can disable it? Thanks | |
Hi All, I am new to Vb.NET. and I am Trying to develop a textpad application using richtextbox control.. Now my problem is that, while using this application. when user clicks on Close event in File Menu, I want the Editor to only close that particular file(or text) that is … | |
Hi all, I working in VC++. I have a void pointer. I am assigning a memory block to it using malloc(). void* buf_ptr = NULL; buf_ptr = malloc(1428480); I am filling this buffer using fread(). and I want to index this buffer (buf_ptr) to acces its data. How can I … | |
hi guyz im using phpmailer to send mails but into the message variable i cannot add an activation link? the link is send but is not hyperlinnked in any mails(hotmail,gmail etc) here is my code: [CODE]$mail = new PHPMailer(); //$body = $mail->getFile('contents.html'); //$body = eregi_replace("[\]",'',$body); $body = "Welcome $surname, $name … | |
I am trying to execute a exe file within' a jar file. My question: 1. How do I locate the exe within' the jar? I am using the [ICODE]runtime().exec()[/ICODE] to launch it. Right now I have to extract it then launch it, then after it's finished delete it. Thanks PO | |
I want to avoid user to press " and ' characters. What must i do in keyup event? |
The End.