43,549 Solved Topics
Remove Filter ![]() | |
Hi, I need to know this urgently. My friends like to use my software on their computers, and after they set it up with the setup wizard, when they run the actual program, half of them get an error on their computers saying 'The application has failed to start because … Software Development c++ | |
Hello, this type of structures are confusing. I hav been working with C for a while but this subtlety is yet unknown. I have come accross such a structure in a program where suposedly it will be used for FIFO management: [CODE=C] typedef struct FIFO_TAG{ struct FIFO_TAG *NextElement; }FIFO; [/CODE] … | |
I have the following code and am trying to get a range of data in an xl file and put into an array, so I can then analyse it. The array says it is not empty, but how can I see the data as the app fails if I try … Software Development pascal | |
I am using D2005 Ent and when I used to close a project with say 5 units open, on opening it back up, the 5 units would be visible and the project would be as I left it. Recently this has changed and only a particular unit is open when … Software Development pascal | |
Hello World! I am trying to read in a list of numbers from a file and put it into an array. Please i would be unbelievably grateful if you could tell me whats wrong with my code. This is my code: [code] #include <stdio.h> FILE *fi; FILE *fo; int main() … Software Development c | |
I need help because I do not know what the error means so I am not sure how to correct this. The error states: .cpp(70) : warning C4996: 'strncpy' was declared deprecated \string.h(156) : see declaration of 'strncpy' My code is the following: [code] // set the tool name void … Software Development c++ | |
Hello, I am not sure what the error means. I think it has to do with how I called the strncpy function. My error is: .cpp(70) : warning C4996: 'strncpy' was declared deprecated My code is the following: [code] // set the tool name void Tools::setToolName( string toolNameString) { // … Software Development c++ | |
Yes folks me again, but if I don't struggle through, I don't learn it. I'm constructing my main (no interactivity at this point), and when I start to declare/create my first object, it doesn't like the string portion of the input and tells me this: error C2664: 'Contributor::Contributor(std::string,double,gender,int)' : cannot … Software Development c++ | |
how would you sort a class object? say..you have a card class, and in the card class, you can have the suits and face value of a card. how would you sort the cards by face values? (smallest to biggest?) thanks Software Development python | |
To my understanding, certain classes, like ifstream, have a conversion to a primitive data type, like bool. In other words, you can do this: [CODE] if((fin >> x) && done == false) //... [/CODE] Now, does this simply work because ifstream has the && operator overloaded, or can objects of … Software Development c++ | |
does the order of the headers matter? and in reference to pointers and dynamic memory, that is ram, right? Software Development c++ | |
Hi, I know nothing about compiling a program, but I desperately need a program that is written in python. I installed python and tried to compile it, but got errors. If someone would be kind enough to compile it for me and sent it to my email address, I would … Software Development python | |
The traditional problem with reading & writing files with iostream... I try to read "slav.txt" file, then paste this in "slav2.txt". The text in "slav.txt" is "Hello world", at console i receive "Helloworldrl" (with nospace and "rl" at end), and in "slav2.txt" i receive "drl" This is my code: [CODE]#include … Software Development c++ | |
hiii! im backk jajaja ¬¬ not funny, i know. well, im back with another problem, which is not exactly that, is more a question i wanna do. This program reads the file, the exage of an employee, the quantity of children and the position that occupies in a company. If … Software Development c++ | |
THIS MI CLASS [CODE]Public Class Formula Private a As Integer Private b As Integer Private c As Integer Public Sub seta(ByVal x As Integer) a = x End Sub Public Sub setb(ByVal y As Integer) b = y End Sub Public Sub setc(ByVal z As Integer) c = z End … Software Development vb.net | |
hi pll with all this post im makin ill probably look like i only have problems :S, but well, books dont solve all my problems :S so.... my todays problem is that i have to make a game that uses the random values of two dices, n accordin to the … Software Development c++ | |
Hi I want to capture mouse events when the mouse is positioned on the title bar of a form. In particular I want to be able to replace the standard context menu (to move, size, maximize, minimize, close) with one of my own. Can anyone help please? Software Development vb.net | |
We i compile this program is shows that percents as 0.... any suggestions. [CODE]#include <stdio.h> #include "simpio.h" #include "strlib.h" #include "random.h" #include <math.h> int main() { int g1, g2, g3, g4, w1, w2, w3, w4, p1, p2, p3, p4; string n1; string n2; string n3; string n4; //-------------------------------------------// printf("Enter first … Software Development c | |
[url]http://www.codeproject.com/KB/cpp/loggerservice.aspx[/url] In the link above there are three project files, I get it to compile the test project (the last file) with no errors and warnings. But can't compile the rest. How to compile the client source files, it contains headers and cpp source files, i created a new projected … Software Development c++ visual-studio | |
hi ppl, im havin a problem with a while loop. it just doesnt go out of it, it has the end, but doesnt use it :S the program is attached :P [code=cplusplus] // ventas_por_correo.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> int main(int … Software Development c++ | |
hello friends, how to separate all characters from a given string in vb6.0...For example if i give "welcome" in a text box ,in the same form it will print (w,e,l,c,o,m,e,).......... Thanks in advance ............... regards natraj Software Development visual-basic | |
I'm having trouble with creating a function that would generate a random word from a list of four-Letter words from a file called fiveLetterWords.txt. I know how to generate the list and print it but I can't seem to get the random part right. I have attached the fiveLetterWords.txt file … Software Development file-system python | |
[code=java]package Ninja; import java.io.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.net.*; public class NinjaServer implements Runnable { public final static int NULL = 0; public final static int DISCONNECTED = 1; public final static int DISCONNECTING = 2; public final static int BEGIN_CONNECT = 3; public final static int … Software Development gui java java-swing | |
Say I have a file file1.h: [CODE] namespace a { int Func() { return 5; } } [/CODE] and a file file2.h [CODE] #include "file1.h" namespace a { class Foo { Foo(); }; } [/CODE] and file2.cpp: [CODE] #include "file2.h" a::Foo::Foo() { Func();//<---- } [/CODE] Can Func() be referenced like … Software Development c++ | |
Hi, how would I make a program that gets input from a user, sends it to a program with popen(), gets the output, and repeats this until the program ends? I have tried, but I only get part of the output, and when I type "exit", it won't end the … Software Development c++ microsoft-windows | |
I need help on the use of Classes. I am trying to use the Font class in Python to create my own instance. Erro is no Font! I though Font was a standard class in Python. Any help for a newbie will be appreciated. ----------------------------------------------------- [code]from Tkinter import * class … | |
I am trying to create a program that finds the GCD of two numbers using the brute force... So far i have this but my problem (I hope) is that i cant get the value of g into int main() Here is my program. Any suggestions? [CODE]#include <cstdio> #include "simpio.h" … Software Development c | |
I am getting an error when using the gcc compiler saying: /usr/bin/ld: crt1.o: No such file. No such file or directory collect2: ld returned 1 exit status Can somebody please explain what this means and how it can be rectified. Is it a problem with the compiler? Thanks in advance. Software Development c | |
hi ppl im back here, but with another problem in another code. in this one i have to count how many sellers reached the top sells. thing is that if i put one that reached the top at the end, the program doesnt count it, it counts only the first … Software Development c++ | |
I am relatively new to visual basic. I need to take two 8 bit byte values, join them to makea 16 bit binary value and then separate the 4 msb as a 4bit binary vale and the 12 lsb as a 12 bit binary value. Thanks in advance for helping … Software Development visual-basic | |
hi, i've a code shown like this.. [CODE='c'] #include <stdlib.h> #include <stdio.h> #include <winsock2.h> #include <pcap.h> #include <remote-ext.h> #define ETH_IP 0x0800 // type: IP #define ETH_ARP 0x0806 // type: ARP #define ETH_ICMP 0x0800 // type: ICMP = IP #define ARP_HARDWARE 0x0001 // type for 802.3 frames #define ARP_REQUEST 0x0001 // … Software Development c | |
hi! im havin a problem with a program ive made. problem is that doesnt show messages. dont know whats wrong :S also attach the program [code=cplusplus] // cartas_paquetes_v3.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> int _tmain(int argc, _TCHAR* argv[]) { using namespace … Software Development c++ | |
Hi! I'm trying to make a coin toss program using a random generator, but i'm not sure how to upload the image of the heads and tails from its file on my PC. Image names are Tails.gif and Heads.gif . Here's the code so far: [code]Public Class Form1 Dim headCount … Software Development visual-basic | |
I'm having a problem with retrieving records from my file just started programming over a month a go please help this is for my class project. I need to do delete,update,query,and add to binary file and prompt the user to enter which record they need to retrieve and i started … | |
Hello, Lateley, I was searching for a good WinAPI book (for c++ ofcourse) After a while searching, i found this book: Programming Windows, 5th Edition by Charles Petzold The book looks good and is nice and thick (1500 pages or something) But where I worry about it the age of … Software Development c++ | |
I am trying to fix this "error C2447: '{' : missing function header (old-style formal list?)" i looked over the program and cant find anything wrong. Here is my program. [CODE]#include <iostream> #include <stdio.h> #include "simpio.h" #include "strlib.h" #include "random.h" using namespace std; #define LowerLimit 0 #define UpperLimit 200 #define … Software Development c | |
I am trying to create a program that gets the solution of a quadratic formula, but i keep getting an error and i cant figure it out. 1>quad.cpp(14) : error C2440: '=' : cannot convert from 'int (__cdecl *)(void)' to 'int' 1> There is no context in which this conversion … Software Development c | |
Just decided to try the new Code::Blocks IDE on an old ODBC program of mine that I had always compiled as a C program. I decided to redo it as a C++ program and immediately hit a nasty problem that I never ran into in C. It involves a Typedef … | |
HI all i m making a project in which i have added menu named Login which includes items like login, create new user, delete user, change password etc. i want to access these items on the basis of username. e.g. if username is administrator he can access all the items … Software Development | |
This is a follow up to my solved thread a few days ago about extracting parts of a RegEx search in a web scraping app. Now, I have a script that includes 4 RegEx searches that each work individually. Now I want to compile all 4 into a single search … | |
I'm new to class modules, and the compiler seems to be enforcing a correlation of the number of input vars for a Get and Let procedure of the same property. The Let property must always have exactly one more variable (the NewValue) than the Get procedure. So the code I've … Software Development visual-basic | |
Hi there, I'm trying to connect to a PostGIS database (which is basically an enriched PostgreSQL database) and I'm having trouble with the [I]INSERT[/I] statement. Here's my code: [code=python] import psycopg2 try: conn = psycopg2.connect("dbname='postgis' user='fdi' host='localhost' password='fdi'"); print "Database connection established" except: print "Critical Error: Unable to connect to … Software Development postgresql python | |
I've been trying to find time to learn Assembly through the HIDE HLA IDE, but I am completely ignorant when it comes to Assembly. I do not know if my code will be portable when I start learning it. Do other Assembly languages conform to the same standards, or is … | |
Read line by line from data2.txt, compare with data1.txt lines, if match , remove , else append to a new file (result.txt) . mathces are exact string matches, both are text files. And i also need to make the directory of the file to be user input, so this program … Software Development c++ | |
For my assignment i need to turn a Hilbert Curve with recursion into a Moore Curve using recursion. We are using GLUT to draw the lines to the screen. I can see the pattern i need to use with the recursion but im not sure if i need to change … Software Development c++ | |
Hi all. I have this assignment to show a panel to allow users to dynamically alter FlowLayout manager parameters. It doesnt look that pretty, but functionally it is working for the most part. I have most of it up and running, but I simply cannot get the JComboBox working. I … Software Development java java-swing | |
I am having a problem when i compile a program. What happens is that i would compile program, run it, see a problem, fix it, then try to compile it again and i get LINK : fatal error LNK1168: cannot open C:\Documents and Settings\Eric 22\Desktop\Exercises\celsFahr\Debug\celsFahr.exe(example file) for writing. I don't … Software Development c | |
Hi, it's me again with another question. Here is the thing. I have a small game - a picture is shown and you should type the name of the person that's on the picture. Then you have a "check" button which when clicked checks if the answer is correct or … Software Development c++ | |
Hey, basically im trying to create a Kill/Death ratio program where the user types x number of kills and y number of deaths and this creates an answer for ratio " :1" for example " how many kills ? 3388 " "How many deaths? 1237" "Your ratio is 12.129:1" the … |
The End.