132,729 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for katwalatapan

Hello, I have a query on dynamic allocation of memory in C. I am storing 4 seconds of audio data in a buffer allocated with sufficient memory using malloc function. If I wanted to record another 4 seconds of audio in the same buffer, I would have to increase the …

Software Development audio c
Member Avatar for katwalatapan
0
185
Member Avatar for Dasau

When I put these code in my project. It suppose to display error box when no input is enter, but there no dialog box is pop up. What else do I need for this code to work? Here part of the code I want it to work [CODE] if( costKwhrField.getText().length() …

Software Development java java-swing
Member Avatar for stultuske
0
107
Member Avatar for arafat_alam

i am facing problems of destructor in the following code.destructor is not working.can any one help plz???? [CODE] #include<iostream> #include<cstring> #include<cstdlib> using namespace std; class strtype { private: char *p; int len; public: strtype() { p=(char *)malloc(sizeof(char)); *p='\0'; len=0; } void getString(char *str) { len=strlen(str); p=(char *)realloc(p,sizeof(char)*len); strcpy(p,str); } void …

Software Development c++
Member Avatar for arafat_alam
0
132
Member Avatar for srinath3

[CODE]#include<iostream.h> class alpha { int x; public: alpha(int i) { x=i; cout<<"\n alpha constructor"; } void show_alpha(void) { cout<<"x="<<x<<"\n"; } }; class beta { float p,q; public: beta( float a,float b):p(a),q(b+p) { cout<<"\n beta constructor"; } void show_beta(void) { cout<<"p="<<p<<"\n"; cout<<"q="<<q<<"\n"; } }; class gamma:public beta,public alpha { int u,v; …

Software Development c++
Member Avatar for srinath3
0
171
Member Avatar for crocodal21

hello all i have a finished program that i worked on last week and i think is running well but i wanted to know how to convert it to have JTextField where the user inputs a value which must appear in the upper part of the frame. There should be …

Software Development java
Member Avatar for crocodal21
0
483
Member Avatar for adam84

I have a form called privateOrder, and two other forms. in the first form when I double click on a datagridview it opens the privateOrder form. in the second form I have a button, when I click it also calls the privateOrder form. I want to know if there is …

Software Development vb.net
Member Avatar for adam84
0
95
Member Avatar for JAM1011

Hey all, I wondering if you could help me get my head around this problem. [CODE] connetionString = "Provider = Microsoft.ACE.OLEDB.12.0;Data Source = KellihersLawnmowers.accdb" cnn = New OleDbConnection(connetionString) cnn.Open() overDue = "SELECT tblCustomer.*, tblMachineHistory.*, tblPayments.* FROM (tblCustomer INNER JOIN tblMachineHistory ON tblCustomer.Customer_ID = tblMachineHistory.Customer_ID) INNER JOIN tblPayments ON tblMachineHistory.Machine_ID = …

Software Development microsoft-access open-source vb.net
Member Avatar for JAM1011
0
93
Member Avatar for lewashby

I'M reading the book that's in the title. Let me show you what's going on. I'M given the following code, an example of Inheritance. [CODE]using System; namespace CritClone { class CritViewer { static void Main(string[] args) { CritViewer cv = new CritViewer(); }// end main public CritViewer() { Clone myClone …

Software Development c c# c++
Member Avatar for apegram
0
146
Member Avatar for james0192

Hi, i'm writing a project for my A-level course in python and ive come to a problem, i know the forum rules say not to expect a quick sollution and i dont want that as i like to understand things instead of doing them blindly. i've written a class which …

Software Development gui python tkinter
Member Avatar for james0192
0
3K
Member Avatar for Kruptein

Again I have problems with my classes :s I want to test if there is still text in the text_ctrl, if so it should give a warning in which you can chose to cancel, save or continue; but somehow the [icode]deditor.st = "continue"[/icode] is not passed :s [code=python]#!/usr/bin/env python # …

Software Development python
Member Avatar for Kruptein
0
123
Member Avatar for Eternity[LK]

Hi. I have never used a command-line compiler before and I'm very confused now. I need to use this compiler for my home assignments in one of my subjects in University. I installed the compiler but I don't know how to use it. Help file says: [I]To see a list …

Software Development c c# c++
Member Avatar for Eternity[LK]
0
143
Member Avatar for tetron

Hi I have what at first seemed to be a very simpe problem: I have a Microsoft Package that requires me to use nmake to make a lib file. I am unfamiliar with make files as I use visio and XP. Now I had to move somethings due to restricted …

Software Development c++ microsoft-access
Member Avatar for mitrmkar
0
523
Member Avatar for antihero0021

Trying to use an oledbdatareader to search through a table in my Access database. When I hit the command button to search it throws an error that says no data exists for row/column, but if I execute the command against the database it returns exactly what I am looking for. …

Software Development microsoft-access open-source
Member Avatar for antihero0021
0
482
Member Avatar for dsit86

Hi everybody, I need to consume a web service through a .net mobile application - i have written both the web service as well as the mobile app. However there is an issue when emulating the system as the .net emulator cannot understand the ''localhost'' url. Is there a solution …

Software Development asp.net
Member Avatar for dsit86
0
108
Member Avatar for ronyyy

how i can solve this problem..... generate the following staircase pattern(using loop operation) 1 2 4 3 6 9 4 8 12 16 5 10 15 20 25 6 12 18 24 30 36 7 14 21 28 35 42 49

Software Development java
Member Avatar for ronyyy
0
105
Member Avatar for Lolalola

Hi, i download wmi from this: [url]http://timgolden.me.uk/python/wmi/index.html[/url] (windows version) [CODE=syntax] import wmi c = wmi.WMI () for process in c.Win32_Process (): print process.ProcessId, process.Name [/CODE] And run this script in Python 2.6 IDLE Show this error: Traceback (most recent call last): File "C:\Users\lola\Desktop\test.py", line 1, in <module> import wmi File …

Software Development python
Member Avatar for Lolalola
0
165
Member Avatar for bobsta

I am trying to render a very simple scene by loading various parameters from a file (MLC.txt) When compiling I receive the following error main.cpp: In function ‘void renderScene()’: main.cpp:77: error: ‘pBeam’ was not declared in this scope H

Software Development c++ image opengl
Member Avatar for bobsta
0
242
Member Avatar for wtzolt

I need help with something I'm working on. I'm new to python so bare with me. I have a string being randomly generated in such format (example): [CODE]F' B D D2 A2 C'[/CODE] [I]6 Letters from A to F with ether a number " 2 " or " ' " …

Software Development python
Member Avatar for wtzolt
0
122
Member Avatar for mmasny

Hello, I can't understand what compiler wants from me. I trying to create quite a big class structure with many abstract classes. Below is a part of the code with some of them. The compiler doesn't like my classes and says the he needs more constructor which I don't understand. …

Software Development c++
Member Avatar for mrnutty
0
171
Member Avatar for sidlampard

hi i m new c# and this is my very 1st project ,here i want to add or view data and this is the code i have used.everything works fine but i cant navigate through records properly,i m working with 2 tables i.e BankMaster and BranchMaster [ICODE] private void branchmaster_Load(object …

Software Development dataset
Member Avatar for kvprajapati
0
717
Member Avatar for nimmyliji

Hi, I want to parse a date and change the format using python. Date has the format like 'Mon Feb 15 2010' and i want to change the format into '15/02/2010'. Any one can help me. Thanks in advance. Nimmy

Software Development python
Member Avatar for nimmyliji
0
45
Member Avatar for TechSupportGeek

Hello world, I would be grateful if you helped me. I've built a text editing application and I would like it to load values/user settings from the Windows Registry. Here's my code but it is somehow wrong (I believe it whatsoever has to do with wrong syntax but it could …

Software Development microsoft vb.net
Member Avatar for TechSupportGeek
0
244
Member Avatar for jallan2010

Please help me for my syntax error? and I want to show all the First Middle and Last Name in the listbox i.e. into Listbox First Middle Last Amit Anoop Motwani

Software Development vb.net
Member Avatar for jallan2010
0
172
Member Avatar for terabithia

Hi.. I suppose to have a programe to read a data from a file and enqueu it to the Queue. The programme works like a Priority queue whether the ladies queue need to be inserted to queue first before the gentleman... But i think i need to try first how …

Software Development c++ ios queue
Member Avatar for scott.vass
0
3K
Member Avatar for bd338

Hello everyone! This is the code for my A86 Assembler: [CODE] jmp _executor _executor: mov ah, 00 mov al, 18 int 10h end _executor [/CODE] It Assembles fine, but when I try to run it, I get this dialog popping up, saying: [QUOTE] This system does not support fullscreen mode. …

Software Development assembly
Member Avatar for Harko33
0
201
Member Avatar for collegegirl7

I have an application in which I am using vb.net and excel. Daily readings are taken, written into vb.net and then saved into excel. At the moment i have it set so that: [code] If Gdate = "12 February 2010" Then .Range("C4").Value = TextBox1.Text .Range("C5").Value = TextBox2.Text .Range("C6").Value = TextBox3.Text …

Software Development vb.net
Member Avatar for collegegirl7
0
207
Member Avatar for mansi sharma

can somebody tell me how to get file type..of any file..For .txt file file type is [B]Text Document[/B],for doc file - [B]Microsoft Word Document[/B] & so on. Plz help me out,I m not finding anything on the net related to it.

Software Development file-system vb.net
Member Avatar for kvprajapati
0
952
Member Avatar for telepip

I cannot directly open the process who's output I need. And there is no keyboard commands to highlight text in anyway. I've found that I can find the process ID and create an object associated with that ID, but because I have to redirect the output upon initialization, I don't …

Software Development
Member Avatar for kvprajapati
0
1K
Member Avatar for srinath3

[CODE]#include<iostream.h> class invent2 class invent1 { int code; int items; float price; public: invent1(int a,int b,float c) { code=a;items=b;price=c; } void putdata() { cout<<"code:"<<code<<"\n"; cout<<"items:"<<items<<"\n"; cout<<"value:"<<price<<"\n"; } int getcode(){ return code; } int getitems() { return items; } float getprice() { return price; } operator float(){ return(items * code); } …

Software Development c++
Member Avatar for srinath3
0
439
Member Avatar for adel_elrefaey

i recieve error message when execute my code note my code has now errors when build the solution i work on laptop with windows xp sp2 and vc++ 2008 error message misa.exe - Unable To Locate Component x This application has failed to start because MSVCR90D.dll was not found. Re-installing …

Software Development c++
Member Avatar for adel_elrefaey
0
118
Member Avatar for COKEDUDE

Can someone please explain the meaning of these return 1 vs return 0 vs break. I know 1 generally means true and 0 generally means false but how would they effect a return statement? Also when would you wanna use a return statement instead of a break statement and vice …

Software Development c
Member Avatar for WaltP
0
257
Member Avatar for XodoX

Hello, I'm trying to do the following program in JAVA. I find JAVA very confusing. Liked C++ much better. Anyway, here's what I'm trying to do: [quote] Develop a program for a small auto dealership. This program will keep track of the auto inventory using an object of the class …

Software Development java
Member Avatar for BestJewSinceJC
0
628
Member Avatar for chixm8_49

Hello. I am having a problem with this certain code. Every call with this method (listI()) will return a node. After the list reaches null, it will go back to the start. On the first call on the tester, there is no problem. But when the method is called for …

Software Development java
Member Avatar for BestJewSinceJC
0
102
Member Avatar for SmackFN22

I am trying to write a program that will work like a hangman game. I have a loop that assigns the characters to their spot in the string and is supposed to end if the newly assigned string equals the original word. If the letter guessed is correct, nothing should …

Software Development java
Member Avatar for SmackFN22
0
107
Member Avatar for Kligham

Hi, I'm having trouble getting my sendmessage function right. I want to send a click on a specific coordinate to the window. I know this is the api: [CODE][DllImport("user32.dll")] public static extern int SendMessage( int hWnd, // handle to destination window uint Msg, // message long wParam, // first message …

Software Development api
Member Avatar for privatevoid
0
127
Member Avatar for Bash23

Ok I'm trying use scrapy (python module) to get stats off [URL="http://www.nfl.com/stats/categorystats?archive=false&seasonType=REG&statisticPositionCategory=RUNNING_BACK&d-447263-o=2&conference=null&d-447263-s=RUSHING_40PLUS_YARDS_EACH&experience=null&d-447263-n=1&season=2009&qualified=true&Submit=Go&tabSeq=1&d-447263-p=1"]Here[/URL] and I got the Xpath using Xpather plugin. [CODE]/html/body[@id='com-nfl']/div[@id='doc']/div[@id='doc-wrap']/div[@id='main-content']/div[1]/div[2]/div[1]/form/table[@id='result']/tbody[2]/tr[1]/td[2][/CODE] The prob is that the TRs contains all the players and TD inside TR contain all the stats. What Xpath do I use or how do I loop through …

Software Development xml
Member Avatar for varun0703
0
132
Member Avatar for jballen87

I'm trying to create a program in C# that allows for arithmetic of Complex Numbers. Just adding, subtracting, multiplying and dividing. Anyone got any suggestions?

Software Development c c# c++ mathematics
Member Avatar for ddanbe
0
857
Member Avatar for Cort3z

Hi. Im working on a text-based "game" that uses strings to generate maps. So I need to split these strings into bits that i can work with, but somehow the .split method kills the white space in my string. How can I get around this? Of course I can force …

Software Development java
Member Avatar for masijade
0
171
Member Avatar for VibhorG

I have made a window application using Visual Studio2008,C#,MS Access database. In my application there are three tables "country","state","person" .On the form,there are 2 comboboxes one for "country" and other is for selecting "state" , also a textbox for entering the name of a person for each country-state pair. Now …

Software Development database-design dataset
Member Avatar for VibhorG
0
103
Member Avatar for geoffy0404

is there any place i can find some Open Source cell phone code written in Java, where i can use a IDE and check it out and maybe even test it on my phone?

Software Development ide java open-source
Member Avatar for geoffy0404
0
156
Member Avatar for klactose

Hello all, When I try to compile a small program I am getting an error that I do not quite understand. I get this error: media_tracker1.c: In function 'add': media_tracker1.c:152: error: expected expression before ';' token when I try to compile this code: [CODE= "c"] #include <stdio.h> #include <stdlib.h> #define …

Software Development c
Member Avatar for klactose
0
100
Member Avatar for jigglymig1

I have to write a program that accepts a pointer to a c-string as its argument. The function should return the charater that appears most frequently in the string along with the number of times it appears. for example, if i input "hello dolly" the output would be: "l sppears …

Software Development c c# c++
Member Avatar for r.stiltskin
0
161
Member Avatar for sivaslieko++

hi, I have a problem with BST. For example after the insertions of below numbers, 23 1 45 2 3 5 52 234 31 The output should be like this way: [B]23[/B] [B][/B][B]1,45[/B] [B][/B][B]-,2 | 31,52[/B] [B][/B][B]-,- | -,3 | -,- | -,234[/B] [B][/B][B]-,- | -,- | -,- | -,5 …

Software Development c
Member Avatar for lotrsimp12345
0
114
Member Avatar for jemz

hello please help me on this...i have txt1.text that can input only pcs and ream ..my problem that if the user will use the uppercase PCS it will not accept because my trapping is.. if Trim(txt1.text) <> "pcs" and Trim(txt1.text) <> "ream" then msgbox "please input pcs and ream" exit …

Software Development visual-basic
Member Avatar for jemz
0
94
Member Avatar for pamelaanne05

[CODE]if(num/100>=1) { x=num/100; switch(x) { case 1: cout<<"one hundred "; break; case 2: cout<<"two hundred "; break; case 3: cout<<"three hundred "; break; case 4: cout<<"four hundred "; break; case 5: cout<<"five hundred "; break; case 6: cout<<"six hundred "; break; case 7: cout<<"seven hundred "; break; case 8: cout<<"eight …

Software Development c++
Member Avatar for EngSara
0
141
Member Avatar for ccie007

Hi Friends, I have no clue how to solve following C++ question.I am a learner.Thank you in advance. Question -- Simulation and use of random/io libraries A recent New York Times article featured a report on the usability, stability, and effectiveness (or lack thereof) of current electronic voting systems. By …

Software Development c c# c++
Member Avatar for jonsca
0
212
Member Avatar for C+Marshall

here's another one that i've been struggling with. I need to create a phone number that can not have an 8 or a 9 in the area code. I thought it would be smart to simply generate the area code one number at a time .............. num1 = generator.nextInt(7)+ 1; …

Software Development java
Member Avatar for kvass
0
97
Member Avatar for ccie007

Hi frens, I couldn't compile this solution code given by my university on visual studio.Visual studio works fine with other C++ files. Here are the question and solution code pasted below.I wonder if anybody could try to compile the solution code on thier machine and see if they can run …

Software Development c c# c++ visual-studio
Member Avatar for ccie007
0
167
Member Avatar for kfancy

Hi all. Please edit/add/help me make this blackjack program work. Thank you. class Card: def __init__(self, suit, rank): self.rank = rank self.suit = suit if self.rank == 1: self.rank = "Ace" self.value = 11 elif self.rank == 11: self.rank = "Jack" self.value = 10 elif self.rank == 12: self.rank = …

Software Development python
Member Avatar for woooee
0
170
Member Avatar for PDB1982

I have to create a program that handles random birthdays between 2 and 50 students (depending on what the user inputs), and calculates the random birthday (1 to 365) and then determines whether or not students share the sam birthday, and how many students share it. I'm stuck on how …

Software Development c++
Member Avatar for jonsca
0
198

The End.