132,726 Archived Topics
Remove Filter ![]() | |
Hi.. I have a question regarding the configuration manager.. Why is it that the samples on the MSDN Learning center cannot be compiled using the default settings? With Itanium as the active solution platform by default, the compiling gets skipped.. However, when I change this to Win32, it compiles.. Isn't … Software Development c++ | |
I read that STL containers will allocate elements in the heap but the container objects are allocated in the stack. Therefore, in the code below do I need to first clear off the elements of vector "vec" from the heap before deleting "sub" in order to avoid memory leak? Or, … Software Development c++ | |
I have posted the related topic in the Java forum! Now, i am having a very differnet problem altogether. 1. i am being able to call the C program from the Java frame using a "Button" in the inteface. 2. But the problem i am facing now is that the … Software Development c | |
I'm trying to read a com port. I can create it, change the dcb, set the timeouts and see the input buffer using ClearCommError. But I can not read it. When the program hits the ReadFile() statement it never comes back. Here is some of the code: [ICODE] char CMyClass::EIA232_Open(HANDLE* … Software Development c++ | |
this is wat i hav been doing but its not workin.i am not able to write the code for searching #include<iostream.h> #include<conio.h> #include<stdlib.h> #include<stdio.h> #include<string.h> //***Record structure declaration*** struct Details { char name[30]; char sex; char status; char title; char address[40]; char qualification[10]; char experience[20]; int telephoneno; int membershipno; int … Software Development c++ data-structure | |
Hi all, I am trying to optimize one of my applications by cutting down on the number of function calls I am making. I have decided to do this by reading definitions out of a file and using them as the argument for the function. [code] char registryHive[MAX_PATH]; ZeroMemory ( … Software Development c++ | |
in VC++ 2005 I tried to create directory using CreateDirectory(_T("c:\program files\Testing")) But it is not created in c:\program files\ it is created in loged in Users appdata folder how can i overide this senario in vista (windows folder and System directory) please give any link or information Software Development c++ windows-vista | |
Ok so ive strted to try and teach myself C++ cause in a few years when i go to college i wanna study computer science or engineering. I downloaded Dev C+++ and followed some small simple tuts on how to do C++. 2 of the tuts started off simple and … Software Development c++ engineering video | |
my script try to combine a variable(include space) with another variable, and put them together as a command's parameter, I put "" for the variable which includes space, but it is always broken into two strings and make the command fail. [code] bash-3.1$ ./space.sh ./param -J "t space" sleep 10 … Software Development shell-scripting | |
I want to be able to do this: Pass a parameter to my main program like "parallel = yes" and then many functions down in the hierarchy (ie main calls "Function1" which calls "Function2" which calls "Function3", etc) I need to see the value of "parallel". I'd hate to have … Software Development c++ | |
Hi. I have previously designed an ASP.NET system that interacted with SQL Server 2005. I now want to design a desktop application using Visual Studio 2008 that interacts with an SQL database. I had planned to use the same sort of coding to implement this new system. For example - … Software Development asp.net database-design sql visual-studio | |
Ok, first of all this is the first time I've used the forums on this site cos only recently joined. I've been studying computing at college for about 5 years and graduated from Sunderland Uni in 2006. Throughout the time I was at college the programming languages we were studying … Software Development vb.net visual-basic | |
[ICODE] #include<stdio.h> struct student{ int id; char name[30]; int mark; }; void main() { FILE*fp; struct student stud; int id_no; fp=fopen("data.txt","r); printf("enter id no : "); scanf("%d",&id_no); while(fscanf(fp,"%d %s %d",stud.id,stud.name,stud.mark)!=EOF) { if(id_no == stud.id) printf("%d %[^\n] %d\n",id_no,stud.name,stud.mark); else printf("Error !\n"); } fclose(fp); } [/ICODE] Hello Everyone,I am stuck at the … Software Development c | |
[code] #include <cstdlib> #include <iostream> #include <string> using namespace std; string name = ""; int main(int argc, char *argv[]) { cout << "Hi, whats your name? "; cin>>name cout << end1<< "Well Hello " << name.c_str() << "Please provide me two numbers on 2 seperate lines "; cin>>number1; cin>>number2; cout(number1+number2) … Software Development c++ | |
Hi People, I have been given to work on this program written some 15 years ago for data acquisition but i cannot figure out how to get this to compile as i am getting a lot of compilation errors. Any insight would be highly appriciated. Thanks in advance argus [code=c] … | |
Hi there. i am new to C# programming. I am developing an updater that would update our product. I want to program the close button so if clicked the application should not close but rather hide. I have a notification icon from where the user can call it back. I … Software Development | |
hi ppl, im havin a problem with declaration of functions, its givin me errors on the functions i made. [code=cplusplus] // empleados.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> using std::basic_iostream; char menu (char); void ingresar_legajo_hijos (int &, int &); void ingresar_horasTrabajadas_valorHora (int … Software Development c++ | |
hi guys, I'm new to C language and am currently using an online tutorial, ive been doing prety well on my own until now. Basicly the problem is with the "while" command, when i copy and paste the code im working with from the tutorial site into a word pad … | |
Anyone know how I would set an image for the cursor in Pygame? Software Development python | |
It`s a very simple windows application but It should be run on a LAN. Here is what I want to make its a kinda game: Someone runs the application for the first time,others will join him from their own workstation (they r all on a same LAN) So now they … Software Development | |
The Task The range R(v0, a) of a projectile fired with initial velocity v0 at an angle a is given by: Your task in this test is to write a function to calculate the range, then to produce a table of ranges for prescribed values of velocity v0 at an … Software Development c++ | |
Hi ALL, I want to print some lines from file like example ===== RECOVER DATABASE ALTER DATABASE OPEN; ALTER TABLESPACE TEMP ADD ALTER TABLESPACE TEMP ADD STARTUP NOMOUNT CREATE CONTROLFILE REUSE DATABASE -- SET STANDBY TO MAXIMIZE PERFORMANCE MAXLOGFILES 16 MAXLOGMEMBERS 5 MAXDATAFILES 512 MAXINSTANCES 1 MAXLOGHISTORY 7260 LOGFILE I … Software Development shell-scripting | |
the problem is to find the minimum numbers to be popped from an array to make it sorted. so for example 12534756, you can pop all but one, but it's best to pop 5 and 7 cause it's the least needed to make it sorted. I'm having difficulties finding a … | |
I am having trouble reading in data from a file. The data file store the information of albums and its respective track info eg 1234 //this is id number Scarlets Walk //album name Tori Amos //artist 24 //price 2 //stock Pop //genre Track A //track name 10 30 //track length … | |
Hi happy people I've bin trying to sort items in a list box, the problem is obviously: It doesn't work Please, any modifications to the code below is fully and unconditionally allowed. [code=C++] void __fastcall TForm1::btnSortClick(TObject *Sender) { //sort ascending if (rdAscending->Checked){ bool swopped = true; int iEnd; int arr … Software Development c++ | |
so this is what I have done [code] #include<iostream> #include<string> void menu(); using namespace std; char choice; void digcom (); void matrices (); int main () { menu(); return 0; } void menu() { cout<<"\tMENU" <<endl<<"MATHEMATICS(matrices select A)\n"<<"DIGITAL COMMS select B\n"<<"c TO EXIT"<<endl; cin>>choice; while(choice!='c') { switch(choice) { case ('A') … Software Development c++ mathematics | |
Hi fellows, I have learned to create stored procedures,but dont know on how to implement it in my code...I have a dataadapter called ada and a dataset ds..The form consists of three textboxes and a combobox...I need the valuse from the database to the comboox...How to fill the dataset and … | |
hello coders, I am facing problem to filing my programm. it opens the intended file but problem is it is not saving any datas. I want to see the results in notepad or word. I am using windows vista and my soft is dev C++. I dont want to use … Software Development c++ windows-vista | |
Howdy, Im getting the "'.class expected" error and I dont know what to correct. The code is [Code] import java.io.*; public class TeamHeight { public static void main (String[] args) throws IOException { double[] height = new double[11]; double sum = 0; System.out.println ("The size of the array: " + … Software Development java | |
Good morning, good afternoon and good evenings (to cover almost all posibilities) The error message is as follows in DEV-C++ compiler [QUOTE] Compiler: Default compiler Building Makefile: "I:\cpp\Makefile.win" Executing make... make.exe -f "I:\cpp\Makefile.win" all g++.exe include/Test.o include/Objeto.o include/ConjuntoBase.o include/IteradorBase.o include/ConjVector.o -o "TestEstructurasDiscretas.exe" -L"C:/Dev-Cpp/lib" include/ConjVector.o(.text+0x45):ConjVector.cpp: undefined reference to `vtable for ConjVector' … Software Development c++ | |
This is due Sunday, and I still do not have all of my errors out of the way to see if it runs correctly. Please help I am down to 16 from 20. Errors: ompiling 1 source file to C:\NetBeansProjects\SCHOOL1\JavaApplication55\build\classes C:\NetBeansProjects\SCHOOL1\JavaApplication55\src\javaapplication55\Inventory6.java:146: ')' expected getProductName(), getProductNumber(), getBaseAmount(), getBasePrice() getProductYear() ); C:\NetBeansProjects\SCHOOL1\JavaApplication55\src\javaapplication55\Inventory6.java:146: … Software Development gui java java-swing open-source storage | |
I have a very simple class [code] class Point { public: Point(); Point(double x, double y); double x_; double y_; } [/code] the problem is, I can't assign my class to another instance, ie: [code] Point A(2,4); Point B(); B = A; [/code] It says the lvalue must be modifiable. … Software Development c++ | |
Hi everyone, I'm busy working on a word processor in Visual C++ 2008 and I need some help with a Print option, and a Page Setup option. What I'm trying to do is print the contents of a RichTextBox control (txtdisplay), and can't find any way to get it to … Software Development c++ | |
im a highschool student and i really need help bout this.... how can i make a program that will enter my name and display it automatically..... Software Development c++ | |
I am creating a msi file in windows installer. When the msi is executed, it register some dlls in the registry. I renamed a dll in the code and i manually want to rename the dll in the registry. How can i do this Thanks in advance | |
Hi, I've created a partial class : Control for designing the shape of my polygon. It works well but there's one problem that I tried to find on net but I get nothing. I've created one int named 'size'. Then I created a function named 'Growing' for 'get' and 'set'. … Software Development | |
Suppose we have to write a program where a mark out of 60 is entered and then the corresponding symbol has to be displayed. A message indicating whether the person has passed or not, should also be displayed. We decide to write the program in three steps. You should submit … Software Development c++ | |
Hi, I have a swing app where I am using (among other things obviously) an editable JComboBox and a jButton. when the JButton is clicked, it does some processing and uses the value in the JComboBox as one of it's inputs. I'm finding that everything is fine when: - The … Software Development java java-swing | |
Hi I'm new to Visual Basic and writting code for excel. My first attempt at writting a piece of code is to format a range of cells to display a particular date and time format. dd/mm/yy hh:mm. My problem is that I have written the code that uses a drop … Software Development visual-basic | |
VB6.0 The following is how I open the Excel file, what I need to know is how to see if it is already open, and also a new Sub to close the file. [code]Private Sub Command1_Click() 'Place statement here to see if already open, if so then Goto 1 Dim … Software Development visual-basic | |
VB6.0: Writing an argument to see if an Excel file is already opened before opening the Excel file, because if the file is already opened the Excel file opens as read only. If it's already open I want to skip to the next "goto" label (ie: "File Already Opened"). Thanks, … Software Development file-system visual-basic | |
Please excuse me if I'm posting something that's been asked 100 times. I've done some searching but can't find what I'm looking for. Also please forgive my greenness, I've only been at this for a week now. I've have extensive experience with shell scripting, some C++, although non of the … Software Development python shell-scripting | |
I intend on creating, or at least simulating, Artificial Intelligence in a birthday gift I am making in python. The basic package is planned to be a multi-purposed program mostly concerned with entertaining. I am attempting to create Sally, the programs 'brain' if you will. Basic Idea came from the … Software Development python | |
I am looking to print some text files locataed in my local drive, i tried everything i know to do that but no luck so far Hope i can get a hand from here Thanks Software Development visual-basic | |
[code]/*Imports Java library files*/ import javax.swing.JOptionPane; import java.text.*; /*Filename for programs class*/ class KwikKapers { /*Runs program- method*/ public static void main(String[] args) { KwikKapers optpane = new KwikKapers(); } /*Constructor*/ public KwikKapers() { /*Instruction to begin start menu method*/ Startmenu(); } /*Method for main start menu*/ public void Startmenu() … Software Development java java-swing | |
When i run the program it shows the first line then blank i dont know whats wrong! [CODE]#include <cstdio> #include "simpio.h" #include "strlib.h" int main() { int i, d, t; printf("This program generates all perfect numbers from 1 to 100.\n"); t = 0; for (i=1; i<=100; i++) { for (d=1; … Software Development c | |
I was trying to create a control script for an HP procurve switch. The chararcters being returned from the python telnet read_until command appear to contain a variety of unexpected characters. See example below. When accessing the same device using the default redhat telnet client the characters do not appear … | |
Looking for help : I run abc.py with normal output as I expect, but get error in abc.pyc. Below is what I have done. Would you tell me what I have mistaken ? Thank you very much !! abc.py #!/usr/bin/python import datetime test_time = open('test.time', 'w') test_time.write('oh, today is\n') test_time.close() … Software Development python |
The End.