43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Wiki_Tiki

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++
Member Avatar for Tigran
0
142
Member Avatar for tzushky

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] …

Software Development c c# c++ python
Member Avatar for tzushky
0
277
Member Avatar for Smithy888

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
0
65
Member Avatar for Smithy888

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
Member Avatar for Smithy888
0
85
Member Avatar for fatasscp

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
Member Avatar for me_roy
0
189
Member Avatar for QuantNeeds

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++
Member Avatar for QuantNeeds
0
418
Member Avatar for QuantNeeds

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++
Member Avatar for QuantNeeds
0
1K
Member Avatar for henpecked1

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++
Member Avatar for ArkM
0
2K
Member Avatar for docaholic

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
Member Avatar for docaholic
0
160
Member Avatar for CoolGamer48

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++
Member Avatar for Prabakar
0
92
Member Avatar for pavel989

does the order of the headers matter? and in reference to pointers and dynamic memory, that is ram, right?

Software Development c++
Member Avatar for pavel989
0
144
Member Avatar for raymarquise

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
Member Avatar for vegaseat
0
129
Member Avatar for Motvel

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++
Member Avatar for Motvel
0
153
Member Avatar for gispe

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++
Member Avatar for gispe
0
84
Member Avatar for gouki2005

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
Member Avatar for gouki2005
0
208
Member Avatar for gispe

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++
Member Avatar for Prabakar
0
90
Member Avatar for Ballantine

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
Member Avatar for Ballantine
0
722
Member Avatar for plike922

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
Member Avatar for Ancient Dragon
0
122
Member Avatar for manzoor

[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
Member Avatar for manzoor
0
540
Member Avatar for gispe

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++
Member Avatar for gispe
0
73
Member Avatar for bprabhumdu

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
Member Avatar for bprabhumdu
0
146
Member Avatar for Mazille

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
Member Avatar for Mazille
0
2K
Member Avatar for bloody_ninja

[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
Member Avatar for Alex Edwards
0
438
Member Avatar for CoolGamer48

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++
Member Avatar for CoolGamer48
0
81
Member Avatar for Lukezzz

I have created a listView on my Form. In the properties I have created 2 Columns. What I now wonder is how you can put text in each column. I have tried out this code but no Text is coming up in the listView1 at all. Could I be on …

Software Development c++ listview
Member Avatar for Lukezzz
0
114
Member Avatar for TheBeast32

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
Member Avatar for TheBeast32
0
1K
Member Avatar for Billg

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 …

Software Development python tkinter
Member Avatar for vegaseat
0
107
Member Avatar for plike922

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
Member Avatar for Prabakar
0
180
Member Avatar for @bhi

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
Member Avatar for @bhi
0
150
Member Avatar for gispe

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++
Member Avatar for gispe
0
103
Member Avatar for praksk

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
Member Avatar for dmf1978
0
475
Member Avatar for triadR

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
Member Avatar for triadR
0
250
Member Avatar for gispe

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++
Member Avatar for ArkM
0
94
Member Avatar for sddproject

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
Member Avatar for sddproject
0
199
Member Avatar for tapaditap

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 …

Software Development c++ ios
Member Avatar for ArkM
0
110
Member Avatar for Tigran

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++
Member Avatar for Frederick2
0
126
Member Avatar for plike922

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
Member Avatar for VernonDozier
0
236
Member Avatar for plike922

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
Member Avatar for dmf1978
0
179
Member Avatar for Frederick2

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 …

Software Development c++ ide
Member Avatar for Frederick2
0
326
Member Avatar for Gaurav arora

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
Member Avatar for Gaurav arora
0
121
Member Avatar for ChrisP_Buffalo

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 …

Software Development python regex
Member Avatar for bvdet
0
5K
Member Avatar for Tekito

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
Member Avatar for Tekito
0
100
Member Avatar for PoovenM

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
Member Avatar for jlm699
0
263
Member Avatar for Alex Edwards

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 …

Software Development assembly ide
Member Avatar for Narue
0
140
Member Avatar for all blacks

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++
Member Avatar for ivailosp
0
206
Member Avatar for socrates25

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++
0
80
Member Avatar for jimbobjoe

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
Member Avatar for javaAddict
0
90
Member Avatar for plike922

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
Member Avatar for plike922
0
117
Member Avatar for robertmacedonia

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++
Member Avatar for Wiki_Tiki
0
202
Member Avatar for xxjinseruxx

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 …

Software Development c c# c++
Member Avatar for xxjinseruxx
0
999

The End.