43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for TheBeast32

Hi, I need to get the output of a program called with the system() function. How would I do this?

Software Development c++
Member Avatar for TheBeast32
0
377
Member Avatar for RandV80

This may be a simple answer, but after self teaching myself on vectors for a few hours of I haven't been able to find the answer. I'm using class objects in a vector, and trying to complete the delete functionality according to a class variable. [code=c++] #Identify BUFFER 8 class …

Software Development c++
Member Avatar for RandV80
0
90
Member Avatar for fmwyso

Hey, I am currently reading "Accelerated C++" (Page 100, not far) and I'm starting to get a bit confused... In console application mode for VC++ (MSVC), the code in the book works fine and everything is fine and dandy. The code looks the same as the book and it's not …

Software Development c++
Member Avatar for Wiki_Tiki
0
130
Member Avatar for gispe

hi! ive compiled a program that gives me this error: (88) : error C2296: '%' : illegal, left operand has type 'float' (94) : error C2296: '%' : illegal, left operand has type 'float' (100) : error C2296: '%' : illegal, left operand has type 'float' thing is that i …

Software Development c++
Member Avatar for gispe
0
232
Member Avatar for Nemoticchigga

I am attempting to use a queue. I am doing it just like an example i read. I am doing a vs2005 form applicaiton. [CODE]#pragma once #include <queue> public ref class DataSource { public: DataSource(void); void DSInitilize(void); char* getNextElement(void); System::Void setNextElement(char* value); private: queue<char> MessageQueue; };[/CODE] It is not finding …

Software Development c++ queue
Member Avatar for ArkM
0
136
Member Avatar for HLA91

Hi All I was reading through the swing tutorial at [URL="http://java.sun.com/docs/books/tutorial/uiswing/start/compile.html"]http://java.sun.com/docs/books/tutorial/uiswing/start/compile.html[/URL] and i copied and pasted the provided source code for the HelloWorldSwing.java program. It compiled fine but when i went to run it the following error message was returned [QUOTE]java HelloWorldSwing Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldSwing (wrong name: …

Software Development java java-swing
Member Avatar for Ezzaral
0
852
Member Avatar for Das246

Hello, I'm very much new to Python and I am stumbling on my first 'experiment'. What I want to do is create an application that operates as an on-screen log viewer where Python prints information it is processing into a wxTextCrl widget (called 'sampler' in my example). I am using …

Software Development python
Member Avatar for jlm699
0
153
Member Avatar for FullBjarne

Why doesn't this code work? [code]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Text.RegularExpressions; namespace WindowsFormsApplication2 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { for (Match match = new …

Software Development regex
Member Avatar for FullBjarne
0
152
Member Avatar for MikeyFTW

[B][U]Ok heres the deal they're both a mathematics program but i want to make it like this...[/U][/B] [ICODE]from Tkinter import * import tkMessageBox import random def ask(): global num1 num1 = random.randint(1, 100) global num2 num2 = random.randint(1, 100) global answer answer = num1 + num2 label1.config(text='What is ' + …

Software Development mathematics python tkinter
Member Avatar for MikeyFTW
0
1K
Member Avatar for OmniX

I would like to make a "changable" array. Meaning: - Not initializing the size. - Add arrays to the array. - Remove arrays from the array. I expect the array size to be 9million or something similar. Was not sure the best plan of attack after googling and reading books. …

Software Development c++
Member Avatar for OmniX
0
506
Member Avatar for nanawan

please help me.. i have 40 data to display at msflexgrid. but i cannot do that because it show too many continuations error... [code] Public Function show_msflex(SQL As String) MSFlexGrid1.Rows = 1 Set rekod = New ADODB.Recordset rekod.ActiveConnection = Con rekod.CursorLocation = adUseClient rekod.CursorType = adOpenDynamic rekod.LockType = adLockOptimistic rekod.Source …

Software Development open-source visual-basic
Member Avatar for nanawan
0
269
Member Avatar for gispe

hi ppl! im here again :S with another problem, which, is more a question about if what im doing is ok. the thing is i have to do a problem that counts the total of letters sent, the total of packages sent, total of letters and packages sent on the …

Software Development c++
Member Avatar for VernonDozier
0
148
Member Avatar for TheBeast32

Hi, I have been trying to make a dialog, but I keep getting an error. I'm using Dev-C++ 4.9.9.2, and I get this error "[Resource error] syntax error". Here's my code for the dialog: [Code] IDD_CONNECT DIALOG DISCARDABLE 0, 0, 300, 250 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU …

Software Development c++
Member Avatar for TheBeast32
0
128
Member Avatar for greyghost86

Little trouble here using enum in my program I took a section of my program to show maybe one of you have a suggestion in why I am getting an infinite loop here. I have the following statement: `enum food {Pizza=10, Lasagna=20, Chips=2, Burrito=5};` case 'c' : case 'C' : …

Software Development c++
Member Avatar for CoolGamer48
0
118
Member Avatar for Seagull One

Hello again, everyone. My program for my robot is progressing. Thanks to your help its coming along great. I've also found that I'm more and more able to solve my own problems with programming now. One thing that I can't seem to solve: I'm working on a part of my …

Software Development python
Member Avatar for Seagull One
0
106
Member Avatar for Wiki_Tiki

I need help creating an elapsed timer with visual C++ 2008. Basically what I want to do is have elapsed time in seconds, minutes and hours tick down on a 'label' control. I've gotten it all set up, including the code for starting the timer ( this->tim_main->Enabled = true; ) …

Software Development c++
Member Avatar for mcriscolo
0
379
Member Avatar for ddwyer50

Helo All, I need to write a python script that will automatically log into a website and retrieve a URL once it has logged in. I already know how to fetch the html of a page, but how do I make the script log into the page first? On the …

Software Development image python
Member Avatar for EAnder
0
219
Member Avatar for ChrisP_Buffalo

I'm trying to write my first web scraper with Python using simple regular expressions to match the info I want to extract (I realize BeautifulSoup is available, but I'm not ready to use that yet, so I want to figure out how to use reg ex first) . I want …

Software Development python
Member Avatar for jlm699
0
64
Member Avatar for krammer

I'm trying to add colors to this bash script, can anyone help? [CODE]#!/bin/bash # Script to connect to the sprint network # Colors # ESC_SEQ=“\x1b[“ COL_RESET=$ESC_SEQ“39;49;00m“ COL_RED=$ESC_SEQ“31;01m“ COL_GREEN=$ESC_SEQ“32;01m“ COL_YELLOW=$ESC_SEQ“33;01m“ COL_BLUE=$ESC_SEQ“34;01m“ COL_MAGENTA=$ESC_SEQ“35;01m“ COL_CYAN=$ESC_SEQ“36;01m“ case "$1" in connect) pppd call sprint updetach echo -e $COL_GREEN"**You are now connected to the sprint network!"$COL_RESET …

Software Development shell-scripting
Member Avatar for krammer
0
182
Member Avatar for splitfinity

Hi guys. Im trying to get a wav file to play on a mouse over event. I want a wavefile to play when the mouse pointer moves over a label and stop wen it is moved off the label. I believe this can be done using the sndPlaySound, i have …

Software Development visual-basic
Member Avatar for splitfinity
0
167
Member Avatar for phouse512

Hello, I've been wanting to learn C++ but I don't know the difference between Visual C++ and C++, is there really even a difference? Also, what would be the best compiler for me to start off with if I wanted to learn C++? Thanks

Software Development c++
Member Avatar for phouse512
0
248
Member Avatar for robertmacedonia

Hi , can anyone tell me what does this error mean? s\visual studio 2005\projects\igrabobi\igrabobi\Form1.h(124) : error C2451: conditional expression of type 'void' is illegal ? I got it when I tried to build my game. Thanks a lot

Software Development c++ visual-studio
Member Avatar for robertmacedonia
0
143
Member Avatar for Brent.tc

Hi, I was wondering how to program a device driver for Windows XP in c++. For example, say I wanted to make a device driver for a mouse (I say mouse because that seems like one of the most simple everyday 'tools', and would seem as though it were the …

Software Development assembly c++
Member Avatar for Nick Evan
0
243
Member Avatar for ricss_madara

how to write application that calculate squares and cube of the number from 0 to 10 and output in table. the program does not require any input from user?

Software Development java
Member Avatar for bloody_ninja
0
999
Member Avatar for klactose

Hello, I am wondering how do we initialize a vector (or even an array) of pointers when the objects that will eventually be pointed to don't exist yet? I've been searching the internet for a while, but most examples assume that the objects already exist. I hope this won't be …

Software Development c++
Member Avatar for klactose
0
6K
Member Avatar for dinilkarun

Hi All, Through Shell I am opening winxip32.exe in my vb 6.0 application. I want the application to wait until the shelled process has completed and then proceed with execution of the next line of code. How should I go about it. Please help. Regards, Dinil

Software Development visual-basic
Member Avatar for dinilkarun
0
76
Member Avatar for adewale1

You are required to design a control system for a car park. You should produce your own design, ensuring that you have enough features to allow you to demonstrate that you can programme multiple tasks with inputs, outputs, decisions, communication and sequencing. The system features may feature space control, entry …

Software Development c
Member Avatar for Salem
0
97
Member Avatar for 11silversurfer1

this really weird thing is happening when i try to find my mouse position of my window. If i put it to the top left of the window it is fine but as it goes further down and across it goes weird. It is really hard to explain, but is …

Software Development c++
Member Avatar for 11silversurfer1
0
328
Member Avatar for franziss

What does this error message mean? Thank you for your help Heap corruption detected at 0072FB10 HEAP[algo.exe]: HEAP: Free Heap block 72fb08 modified at 72fb1c after it was freed Windows has triggered a breakpoint in algo.exe. This may be due to a corruption of the heap, and indicates a bug …

Software Development c++
Member Avatar for franziss
0
1K
Member Avatar for linux

I want to add a list box onto a form, and have it (once the form loads), it'll list all of the files in [icode]C:\WINDOWS\[/icode]. Is there any easy way to accomplish this?

Software Development vb.net
Member Avatar for linux
0
647
Member Avatar for omrsafetyo

Hey, I'm trying to unpack certain files from a tar archive - I don't want to unpack all of the 1.2GB file, just a particular bunch of it. I tried an obvious command: tar xvf /u8/sp_archive/2005.tar *1274* All files I want to extract have "1274" in the name; I want …

Software Development shell-scripting
Member Avatar for eggi
0
164
Member Avatar for Wiki_Tiki

Hi, I've been trying this for months now, and I still can't figure out how to get MFC installed as part of Visual C++ 2008. Is there any service pack you can download? How do you get MFC (Microsoft Foundation Classes) installed?!? Thanks.

Software Development c++
Member Avatar for Wiki_Tiki
0
134
Member Avatar for raja289

[url]http://s3.supload.com/free/lastscan-...3716.jpg/view/[/url] up there is description of code and here;'s code [CODE=c] #include<stdio.h> #include<string.h> float avg(float); main() { FILE *p[2]; int k,students=10,subjects=4,i,j,id_number,date_of_birth,fail=0; float marks[100],total=0,avg; char name[30],course_enrolled[30],filename[10]; for(i=1;i<=2;i++) { printf("filename"); scanf("%s",&filename); p[i]=fopen(filename,"w"); printf("Enter Name of Student\n",p[i]); fscanf(stdin,"%s",&name,p[i]); printf("Enter Course In Which Student Is Enrolled\n",p[i]); fscanf(stdin,"%s",&course_enrolled,p[i]); printf("Enter ID Number Of %s Enrolled in …

Software Development c
Member Avatar for raja289
0
411
Member Avatar for plike922

I am wonder how do you make it that you have to letters = to one number with only typing it once? Here is my program. My problem is that the result printf("%d reversed is: %d\n",num , res); is 0 reversed is: (The number backwords). [ICODE]#include <iostream> #include <stdio.h> #include …

Software Development c
Member Avatar for dwks
0
358
Member Avatar for MLT1988

Last semester I took CSII and we built an unsorted list (C++). This summer I went thru the textbook and built an sorted list, and now I'm trying to template the sorted list, but i keep getting compiler errors like this... : undefined reference to `SortedType<float>::SortedType()' /tmp/cc0C4kB6.o(.text+0x448): In function `main': …

Software Development c++
Member Avatar for MLT1988
0
151
Member Avatar for Wiki_Tiki

Hi, I'm busy working on a word processor, and I could use a bit of help with 2 things. The Savefiledialog, and the Openfiledialog. In terms of the savefiledialog, I have all the code done, and it compiles properly: [CODE]public: void SaveFile() { SaveFileDialog^ saveFile1 = gcnew SaveFileDialog; saveFile1->DefaultExt = …

Software Development c++
Member Avatar for Wiki_Tiki
0
109
Member Avatar for Nemoticchigga

Has anyone ever seen a function call just get skipped? I am running in debug mode and it wont let me set a break point on the call and when i step to it it goes right over to the next line, no exceptions, no errors. Has anyone EVER seen …

Software Development c++
Member Avatar for Nemoticchigga
0
287
Member Avatar for Clockowl

Is there any difference between those function declarations in C++? Since in C the first states "take any and as much arguments as you like", and the latter means take none... Thanks in Advance, Nick

Software Development c++
Member Avatar for Ancient Dragon
0
69
Member Avatar for RandV80

I've built a class, one parent and multiple children, that I need to group together to eventually be stored in a single file. For the moment I've gone with something like this: [code=C++] CObject *group //CObject is the class in question group = (CObject*)calloc(1, sizeof(CObject)); //1 element just to start …

Software Development c++
Member Avatar for RandV80
0
109
Member Avatar for dmanw100

I am almost done with a project and now I would like to code an installer for it. I know there are many free solutions to make installer packages online, but I would enjoy learning how to make one from the ground up for the expirience if nothing else. What …

Software Development c++ gui machine-learning
Member Avatar for dmanw100
0
151
Member Avatar for abu taher

I use data control to link access file by data properties not code. use simple code like move next etc. I use find next to find data. but when i want to find i write the criteria like Name = taher. But i want I write only taher in find …

Software Development visual-basic
Member Avatar for electrosoul456
0
233
Member Avatar for Alex Edwards

I'm having a small design issue with a Checkers game to be done in Java-- I'm not really worried about coding it, I can do that. The problem is listing out the dependencies between classes. For example, what should be responsible for what? IF I code the program with the …

Software Development java
Member Avatar for Ezzaral
0
2K
Member Avatar for jsosnowski

I have a recurring problem: On some days, it appears that Delphi has problems with identifying some of the files in my "Uses" section. Certain files will be underscored in red zig-zag and identified in the structure window as "cannot resolve unit name ...". If I right click the unit …

Software Development delphi ide pascal
Member Avatar for jsosnowski
0
185
Member Avatar for Cosa

Hi, i am trying to write a program that would work much like the tail command in UNIX. The idea is to print the last 10 lines of a file. I started off by finding out how many lines were in the file, then attempted to seek to the appropriate …

Software Development c++ ios unix
Member Avatar for Cosa
0
4K
Member Avatar for masterjiraya

My target is to make a code of Cartesian coordinating points of a rectangle... then it must be tested by quadrilateral and square. If the tested point is a rectangle then the out put program will be like this..... Program Output: ************************************************************ ....+y .....+ ..............+ ..point a............................................................................. point b ..............+ …

Software Development c++ visual-studio
Member Avatar for Alex Edwards
0
92
Member Avatar for jackassplus

I'm trying to work out what this does: [code] ptr = input_string; dest = input_string; while( *ptr && *ptr != '\r' && *ptr != '\n' ) { if ( *ptr >= '0' && *ptr <= '9' ) *dest++ = (char) ( (*ptr) - '0' ); if ( *ptr >= 'A' …

Software Development c
Member Avatar for jackassplus
0
128
Member Avatar for FullBjarne

Hello! I have a problem with the size. I've made a function that saves the size, but each time I start the application does the size get larger then the last time. How do I fix that problem? Here are the code for the function: [code] using System; using System.Collections.Generic; …

Software Development
Member Avatar for AmirBedair
0
92
Member Avatar for oliver_mk

Hi, I am getting this error "[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied." when trying to get some data from SQL Server 2000 database. SQL Server is installed on Windows Server 2003, and i am testing the application from WinXP sp2. Testing from other machines with same settings …

Software Development c++ sql windows-server
Member Avatar for oliver_mk
0
225
Member Avatar for karang

Hi I am writing a code in which I have to display the print dialog. PRINTDLG pdlg; memset( &pdlg, 0, sizeof( PRINTDLG ) ); pdlg.lStructSize = sizeof( PRINTDLG ); pdlg.Flags = PD_RETURNDEFAULT | PD_RETURNDC; PrintDlg( &pdlg ); But I am getting an error message "[Linker error] undefined reference to `PrintDlgA@4' …

Software Development c++
Member Avatar for mitrmkar
0
940
Member Avatar for kux

I try to create a generic binary tree class but when i try to define an inserting function I get these compilation errors error C2072: 'Btree<T>::recins' : initialization of a function error C2143: syntax error : missing ';' before '*' c:\documents and settings\kux\my documents\visual studio 2005\projects\btrees\btrees\btree.h 54 Error 6 error …

Software Development c++ visual-studio
Member Avatar for ArkM
0
749

The End.