132,726 Archived Topics
Remove Filter ![]() | |
I am making a program where I need to dynamically add buttons to a form. When the form loads anywhere from 0-30 buttons will need to be loaded. When a button is pressed it needs to run a common function, but pass a unique parameter to the function so it … Software Development vb.net | |
Hi All, I try to ping my server with my application but cannot make it.....anyone can help me in VB.net 2003 , if use vb.net 2005 it already ok..plzzz Software Development vb.net | |
Hi good day.! Im so confused why my code to get the total records in a certain table in sql server returns false. Im already connected to sql server and set-up a table named "loanlist".This table contains 10 records. But when i want to get the recordcount, it will returned … Software Development sql visual-basic | |
The basic set-up is: [CODE=python] class A(): def __init__(self): self.var = 1 @staticmethod def do_stuff_with_var(self): # A method which uses self.var ... class B(A): def __init__(self): A.__init__(self) b1 = B() b2 = B() list_of_B_instances = [b1, b2] for instance in list_of_B_instances: instance.do_stuff_with_var(instance) [/CODE] However the last line of code raises … Software Development python | |
Hey there, I have a simple question: How can I read three characters by three characters from a string (character array) in C? Thanks for your help. Software Development c | |
hi plz help. Trying since 1 week. acwl1 line we james line rx sijith fff xw nisha nnn w /sijith line r /Arjun line w vineeth line r acls2 faculty x arrr line2 w Rahul line3 wx Arjun line1 m /Tom line wr ac01l2 lineN w aclM1 line1 rw Ram … Software Development c file-system | |
IN THE NAME OF GOD HELLO TO ALL i wanna build a program that when it run, in one form equal rows in a DB , build button and with every button clicked, run program that addressed in programaddress column. i build buttons and assign to a array of button. … Software Development | |
This is my code that I'm using: [code=C]void create_project_go() { FILE *fp; FILE *fopen("/usr/lib/htmlexamples/default.html", "r"); };[/code] and i get this error: [code]/home/miguel/Documents/packing/create_project.c||In function ‘create_project_go’:| /home/miguel/Documents/packing/create_project.c|40|error: expected declaration specifiers or ‘...’ before string constant| /home/miguel/Documents/packing/create_project.c|40|error: expected declaration specifiers or ‘...’ before string constant| /home/miguel/Documents/packing/create_project.c|39|warning: unused variable ‘fp’| /home/miguel/Documents/packing/create_project.c||In function ‘get_project_info’:| /home/miguel/Documents/packing/create_project.c|46|warning: … Software Development c | |
I am writing a program that uses structure named movieData to store the following information about a movie: Title Director Year Released Running Time (in minutes) The program should create two movieData variables, store values in their members, and pass each one, in turn, to a function that displays the … Software Development c++ data-structure | |
Hi guys, I will keep this post short in order that I first confirm that I am in the right place. Basically, I want to begin a personal project to build a GUI program to play the card game 500. I have completed one year of university programming with a … Software Development gui | |
hi people, i am currently doing database C# using visual C sharp express and i am really new towards database programming. I actually taken my database from mc access using oledbconnection. One of the column in my database contain many words seperated by a comma in each particular row. I … Software Development | |
can anyone plz tell me how can we implement hash tables with chaining i mean insertion using link lists! i have to submit it on 22 and i haven't got a clue how to do it! Software Development c++ | |
Am having problem calling a simple stored proc to insert data from a java program. The insert statement works fine when called directly with prepare statement. But when I use call it through a strored proc I get an error. jar file is ojdbc5.jar. - oracle10g. Then i tried another … | |
and it looks like this: [CODE] void Functions(int s) { s += 5; } [/CODE] then can i call it somehow in c, c++, or cocoa something similar to [CODE] void DoSomething(int s) { Function* function = myfile.readFunction(Functions); execute(function(s)); } [/CODE] any help would be appreciated thanks in advance Software Development c++ | |
Hello All, I am not knowledgeable in VB nor in MS Access, so kindly excuse my ignorance. I received an MS Access database which is unable to open on my computer (for whatever reason), but is able to open on 5 different computers. At first I thought it was an … Software Development visual-basic | |
Hi Every Body I am new born in C++ I am facing and error for last 3 days I tried my best with all what I knew but FAILED..... Error is - " Linker Error: Undefined Symbol Library::code in module PRGDONE.CPP" I am using Turbo C++ 3.0 of Borland Here … Software Development c++ | |
Hi All, Does anyone know which file manipulation library is faster between c's FILE and c++'s fstream? I would suppose that c++'s fstream would be the faster but I just wanted to see some expert advice/opinion on this. I googled the internet without finding anything concrete. If there is any … Software Development c++ | |
Hi Forum, I am a total newbie, so please be gentle!! I am trying to extract data in many text files that looks like this: 0.0 -0.9 0.3 -0.4 0.6 -1.0 0.9 0.3 These colums always appear on the same line number. What I want to do is to get … Software Development python | |
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(); } … Software Development c++ | |
From the point of view of a command line programmer (whose been at it for 25 years) what is the difference between MFC and .net? | |
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 … | |
this is my code and it says i have problem in line 5 which i couldnt solve . can anyone please help me with this soon! [code=java]import java.text.*; public class SavingsAccount { private double static annualInterestRate; //declare static variable private double savingsBalance; //instance variable public SavingsAccount(double bal); //constructor { savingsBalance= … Software Development java | |
Hi Folks I need to modify a .txt file using a C program. The file contains name and phone number of my friends like below: Mark 07915588623 Phill 07542535698 Claire 07825698745 ... ... . . ... If one of my friends phone number is changed (i.e. Claire 07985413791), how could … Software Development c | |
Write a program to compute the aritmetic mean (average), median, and mode for up to 50 test scores. The data are contained in a text file. The program will also print a histogram of the scores. The program should start with a function to read the data file and fill … Software Development c | |
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 … Software Development python | |
I'm having a problem deciding how to handle a situation. I'll briefly explain whats going on before I ask the question(s). I have a viewObject (bean) and what it does is display information that is gathered. To keep it from getting too complicated I'll say I have 3 jLabels. One … | |
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)); … Software Development java | |
listen i jst want to do internal mapping of my university...for that purpose i dnt understand how to locate different sides of my university...as in university u have classrooms ,library,canteens...etc... so if any new person enter in my university i jst give them thz map so that he can go … Software Development | |
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. … Software Development visual-basic | |
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 … Software Development java java-swing | |
I'm having a problem parsing a webpage to extract data from a table. Ideally I'm trying to extract the table with id="ctl00_ctl00_MainContent_PM_MainContent_gv_Portfolio" (see html below) I don't have a problem entering the website and downloading the html, it's beautiful soup that's tripping me up. My python code and downloaded html … Software Development html-amp html-css http-protocol open-source python window-manager xml | |
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 … Software Development file-system vb.net | |
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 … Software Development | |
Hi all, i've found several x86 codes checking if the string is palindrome or not. but i need something different. a procedure which receives the starting address of a text (in SI) stored in data segment and returns the number of palindrome words in the text into CX. Only word … Software Development assembly | |
Hi guys, I'm new to programming and am trying to get better by writing "useful" things. Here is a very simple stock portfolio tracker that I started yesterday. It is not very complex and I feel like I'm not really improving my skills since it uses mostly beginner concepts, but … | |
I'm starting to experiment around with Java Web Start since applets have some limitations. I'm using Net Beans and it's working fine except that I get this pop-up when I run it: [quote] The application's digital signature cannot be verified. Do you want to run the application? [/quote] It would … Software Development java | |
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 … Software Development java java-swing | |
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 … | |
I'm using python & i am trying to match ";" in a line: [CODE] for page in css: f = open(page, "r") lines = f.readlines() count = 1 obcount = 0 ebcount = 0 probwithfile = False for line in lines: [B]if not re.match("^{$", line) or not re.match("^}$", line): if … Software Development python | |
I'm very confused. I'm suposed to expand this pointer-based list class in this program by setting ListItemType to int then adding methods to find the smallest number, the largest number, and the average of the list. Before I added the findLargest function the program would compile but, when ran, gave … Software Development c++ linked-list | |
I am having a problem in implementing of sieve of eratosthenes.. please check the code and tell me the error [CODE] #include<iostream> #include<cstdio> using namespace std; int main() { int i,j; long array[100001]; int count=0; for(i=1;i<100001;i++) { array[i]=i; } for(i=2;i<100001;i++) { if(array[i]!=0) { cout<<""<<array[i]<<endl; int j=0; j=i*i; while(j<100001) { array[j]=0; … Software Development c++ | |
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 … Software Development caching | |
how can i convert a string to password types like base64 or md5? Software Development | |
Hi, Im new to VB. Im just trying to do a simple if statement that will open a specific form based on user input. The database requires me to scan in a barcode from a card. I then want to check if that barcode number is already in the database. … Software Development visual-basic | |
I want to get all the files from my local directory in my web page the same code works fine and it returns all the files when i run the code on the local system but when i'm trying to do that online it gives me error. the error is … | |
Hey guys, Can I tell istream to ignore ALL the characters until the delimiter char? It can be done with a loop but it's kinda weird I can't tell istream "discard until this char" imho, so maybe there's an hidden option somewhere. Thanks in advance! Software Development c++ | |
well, I created an C#.NET application that close other applications that are consider to unwanted, so, my application list all the running processes and search for unwanted apps, my application uses Timers and Threads. So the problem ocurs when execute an batch file like this: [CODE] pause My_app.exe Exit [/CODE] … Software Development | |
I am coding a program and have this function where i need to delete a record. The current code i have at the moment deletes a record but only deletes the top record but i need it to delete the record the user has selected. This is the current code: … Software Development vb.net | |
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 … Software Development c++ |
The End.