132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for MattyRobot

how can I use a function inside an object? (the code is too long to put here but here's a replica) [code=c++] class example { public: example(); ~example(); void doSomthing() { afunction(); } } void afunction() { //do more things } [/code] in this example i wouldnt [B][U]NEED[/U][/B] to use …

Software Development c++
Member Avatar for rughead
0
158
Member Avatar for sophie_kiu

Question1 : how to use c++ to read/write excel file without changing it into CSV file? Question2 : How to use CSV parser in c++? Are there any examples?

Software Development c c# c++ microsoft-office
Member Avatar for Protuberance
0
334
Member Avatar for neutralfox

Hello, Hope everyone fine over here. Well ... actually i am having some difficulties to choose my final year. I want to develop a desktop application. As i am in the network security field, i want to develop a keylogger software. I am new to vb.net and i dont know …

Software Development vb.net
Member Avatar for neutralfox
0
195
Member Avatar for katwalatapan

Hello, I tried to compile a posix mq_send and mq_receive application. The msg is sent on the queue successfully, but during the receive part, an error occurs. I have attached the send and receive part of the code, please do suggest any corrections. mq_send [code=c] #include <mqueue.h> #include <stdlib.h> #include …

Software Development c queue
Member Avatar for Protuberance
0
1K
Member Avatar for TheWhite

I have 1 package that manages the main JFrame of my application. This JFrame needs to access an image (which is a resource) of another package. I was able to get it to work using: [CODE=JAVA]new ImageIcon(getClass().getResource("../"+packageName+"/icon.jpg"));[/CODE] But this does not work when using a runnable jar (getClass().getResource("../"+packageName+"/icon.jpg")) returns null). …

Software Development java
Member Avatar for majestic0110
0
119
Member Avatar for lancevo3

I am writing a method that does insertion into a doubly linked list and I was looking for some assistance with my code to see if I was heading in the write direction and what needs to be fixed to make this work. [B]Instructions[/B] template <class T> Iterator<T> List<T>::insert(Iterator<T> pos, …

Software Development c++ linked-list
Member Avatar for Protuberance
0
1K
Member Avatar for arelius

Hello all, This shouldn't be too hard to answer. I have a bunch of folders, for example WarehouseApp, WarehouseLib, etc, were in each of these folders contains a project. Whenever I try to rename one of these folders that contains a project, I get the following error and the project …

Software Development visual-studio
Member Avatar for arelius
0
105
Member Avatar for anupa

Hi, as per the requirement i was asked to create a code that fetches each line under a particular section of a text file and store it in a variable. [code]#include <iostream> #include <fstream> #include <string.h> using namespace std; int main() { ifstream ifs("catter.txt"); string line; char name[100]; char cat[100]="mkdir"; …

Software Development c++
Member Avatar for anupa
0
1K
Member Avatar for JETFUSION

Hi there all, Could anybody please help me, as to why my program is not adding the right quantity's? [CODE]// Question 2a #include <iostream> using namespace std; int main ( ) { const int NR_SESSIONS = 3; int nrAttend; int votesForS, votesForR, votesForO; char vote; // Initialise totals votesForS = …

Software Development c c# c++ session
Member Avatar for tux4life
0
127
Member Avatar for vivekarora

Hello Friends, I have a huge program having multiple malloc & free. At the end of my program, I wish to print the memory leak which has occured. There are obviously many solutions to this problem. e.g. Simplest one: 1) When you allocate the memory, keep the allocated memory pointer …

Software Development c data-structure linked-list
Member Avatar for vivekarora
0
283
Member Avatar for adam1991

I have a form with a data grid on it, theres 2 text boxes the user enters there username and password and it goes to the database that works fine..but ive got the code where it Updates the Datagrid straight away but it duplicates all the other data in the …

Software Development vb.net
Member Avatar for zakarneh
0
98
Member Avatar for vashek

Hi All, this is my first C code in my professional life. I wanted to write a common function to retrieve file content. I do not know whether below code is upto the mark or not. any Suggestions/modifications/tips are greatly appreciated. [CODE] #include <stdio.h> #include <stdlib.h> /* Function Name: get_file_content …

Software Development c
Member Avatar for wildgoose
0
431
Member Avatar for rmeltg

I've always been a little confused with this stuff... I found snippet of code and understand what all of it is doing until this line... Seems overly obfuscated... [code=c] int tmp = 0xff000000 | ((int)(val) << 16 | (int)(val ) << 8 | (int)(val)); [/code]

Software Development c++
Member Avatar for rmeltg
0
110
Member Avatar for enigma_arien
Member Avatar for Nathan Campos
0
297
Member Avatar for marky-b

With the following code, the function only msgbox's "variable declaration" and "before for/each". i put them in there for debugging when i saw that my function wasn't getting all the way through. Any suggestions? [code=vb] Option Explicit Function ArrToCSV(ByVal array) msgbox "variable declaration" Dim strTemp Dim strQuote Dim x strQuote …

Software Development visual-basic
Member Avatar for marky-b
0
90
Member Avatar for Moirae

Hello, I've written a class, and I've created an instance. When I try to debug it gives me an error and I really don't understand what that means. I looked at some other web sites but I don't understand what do I have to do. Can somebody please help me? …

Software Development
Member Avatar for sknake
0
1K
Member Avatar for sravan953

Hey guys, I have some code: [code='python'] import urllib2 as url import subprocess import os webs=open("url.txt",'r') read_webs=webs.read() def get_html(): try: req=url.urlopen(read_webs) res=req.read() return True except: print("<Error reading from the website>") def get_command(): if True: for x in res: if(x!='<'): command+=x else: break determine() command="" def determine(): format=command[len(command)-3:] print format get_html() …

Software Development os-x python
Member Avatar for sravan953
0
156
Member Avatar for asmith3006

Hi, I'm looking to write a server/client system and I want to pass a hashtable between the two. I've found lots of tutorials on making a "Chat" system which passes strings, but how can I increase this to hashtables? Thanks. Andrew.

Software Development client-server socket-programming
Member Avatar for sknake
0
467
Member Avatar for nope3d

I am having a problem in this program....can anybody help me create a BufferedReader out of this maze problem...then i have to create a text document entitled with maze.txt... well here is my program [code] import java.io.*; import java.util.*; public class Amazing{ public static void main(String[]args){ Scanner console=new Scanner(System.in); FileWriter …

Software Development java
Member Avatar for nope3d
0
127
Member Avatar for jonte

Hi, I´m new to Python and right now I´m trying to learn to parse a text. Here is my code (that doesn´t work the way I want) [CODE]text = ['Mary', 'went', 'out', 'at', '7pm', 'to','buy','some','candy'] keyPerson = ['Mary', 'Clark', 'Steven'] keyTime = ['7pm', '6am', '2pm'] keyThing =['candy','eggs','fruit'] list = [] …

Software Development python
Member Avatar for jonte
0
78
Member Avatar for katwalatapan

Hello everyone, I have installed Dev-C++ IDE on my system to run POSIX threads application. The program has compiled correctly. When I try to run the application, I am encountered with the following error Unable to locate component This application has failed to start because pthreadGC2.dll was not found. Re-installing …

Software Development c c++ ide
Member Avatar for ajay.krish123
0
253
Member Avatar for singoi

Hi friends, i have a textbox where i have a path of the pdf file. now after pressing a cummand button i want this file to be opened. my code is as follows.. [I]Private Sub wazopen_Click() Dim myfol As String Dim myfln As String Dim myfpath As String myfol = …

Software Development pdf visual-basic
Member Avatar for riteshbhushan23
0
180
Member Avatar for arelius
Member Avatar for arelius
0
124
Member Avatar for iclaat

send me any resourceful info u have on JAVA to SNIP n I'll be sooo greatful.

Software Development java
Member Avatar for eamo27
0
70
Member Avatar for smitamutha

Hi All, I want to run a java command thru java program. Can any one tell me how can i do it. Thanks , Smita

Software Development java
Member Avatar for marutiskutre
0
154
Member Avatar for Gribouillis

When several producer threads put items in a queue.Queue, and a consumer thread gets items from the queue, there is no way for the consumer thread to tell the producers that they should stop feeding the queue. This snippet defines a subclass of Queue with a close method. After the …

Software Development multithreading python queue
Member Avatar for Gribouillis
0
320
Member Avatar for jrosh

Does a .jar file run on windows with out the JVM installed?

Software Development java
Member Avatar for majestic0110
0
122
Member Avatar for octavia

Hi :) anyone can help me for my problem 1) how to convert 'unsigned char' to 'unsigned int' ... 2) need more idea about casting for embedded c after making some calculation , value from char typed array element are changed some unknown value which can't be handled. Wanna know …

Software Development c
Member Avatar for ithelp
0
159
Member Avatar for jocose

I am trying to figure out the best way to deploy a python script that I wrote. Many of the users wont have python on their machines but might want to make slight alterations to the script. What I was thinking about doing was using Py2exe to compile a script …

Software Development python
Member Avatar for sravan953
0
152
Member Avatar for bobbysox

Hi, I'm new to python, but I want to start learning :) I just wondered if anyone could tell me how to use a variable from a function outside the function?

Software Development python
Member Avatar for sravan953
0
86
Member Avatar for pilipino93

Hi there. I would like to know how to make a label blink. Like I have these 2 labels. I would like the first label to blink when the form is loaded. Then when I press a button, the blinking label will stop and I will have the second label's …

Software Development
Member Avatar for serkan sendur
0
2K
Member Avatar for nicolek808

The program requires an integer input from a user at the command args and prints out the numbers backward. I have this so far, however, it only prints 1 number, which is the number entered into args. [code=java] public class KashiwabaraNicole7 { /******************************************************************************* * Initializes program * @ param commandlineArguments …

Software Development java
Member Avatar for nicolek808
0
124
Member Avatar for shahravi88

Write a Java Program that prompts the user to enter his/her first name and last name, then displays a message to welcome the user into the class CIS 226. If the user hits Cancel on either first or last name, show the error message: [code] import javax.swing.JOptionPane; public class Assign2 …

Software Development display java java-swing
Member Avatar for javaAddict
0
117
Member Avatar for kahaj

I'm attempting to learn Java. I'm finding it to be frustrating and quite foreign from most other languages. I have something here typed exactly as the book has it. According to the book, it should be working, but it's not. Any tips would be SO great! I really feel like …

Software Development java java-netbeans
Member Avatar for javaAddict
0
121
Member Avatar for jrosh

Please let me knw a way to create an exe file (.exe) with my java application.....

Software Development java
Member Avatar for msi_333
0
116
Member Avatar for Corner

I get the following exception about 1 in 100 times. It does nothing to hinder my program at all from what I can see. What I need is the code to help me suppress this message or handle it myself, I have tried everything I have read in both help …

Software Development
Member Avatar for sknake
0
261
Member Avatar for serkan sendur

is it possible to add a reference from one project to another and at the same time visa versa. From A to B and from B to A?

Software Development
Member Avatar for sknake
0
78
Member Avatar for NinjaLink

Hello, I need help printing my results to an output file with the program that I have below. I am getting an error "too few arguements to function". It has been a couple of years since I did C++ using .txt, so any help is appreciated. Thank you. [B]Goals:[/B] - …

Software Development c++ file-system
Member Avatar for NinjaLink
0
273
Member Avatar for Alexia Noir

hi there. say i have a text file. in this text file is all the information i need for my output. the problem is, probably because i'm still very new at this, i don't know how to read this particular text file and output it onto the screen. suppose i …

Software Development c++ file-system open-source
Member Avatar for Alexia Noir
0
146
Member Avatar for TomB1988

Hi, I have been set a task that takes data from an SQL server and displays it to a 'Wallboard' (a large plasma screen on the wall). I'm just wondering what everyone thinks the best solution would be? Web-based, windowns form based etc. Another quick question, upon loading Visual Studio …

Software Development visual-studio web-server
Member Avatar for serkan sendur
0
69
Member Avatar for arunkumars

Hi, The problem is that, Am using a bitmap image and i want to click that image and place it to other location on the same form during run time, as well as use the drag and drop option, and also that image should be kept in buffer until i …

Software Development
Member Avatar for serkan sendur
0
193
Member Avatar for smco9

How do I sort an array of struct? For example: struct data { string city; string state; int zip; }; data listing[];

Software Development c++
Member Avatar for VernonDozier
0
97
Member Avatar for Lethys

Hi [CODE] void Connect() { try { ST = new WebClient().DownloadString(first_adress + "servermodule/pass.php?sno=" + servno).ToString(); } catch (System.Exception) { try { ST = new WebClient().DownloadString(second_adress + "servermodule/pass.php?sno=" + servno).ToString(); } catch (System.Exception) { if (ST == "") { DateTime dt = DateTime.Now; string c = string.Format("{0:d/M/yyyy HH:mm:ss}", dt); label5.Text = …

Software Development
Member Avatar for serkan sendur
0
109
Member Avatar for asmith3006

Hi, I have three functions, a(), b() and c(). In function a() I need to call function b() and then after a 2 second delay call function c(). However, I can't use Thread.sleep(2000) as I need to be able to keep clicking on other buttons. I think I need to …

Software Development
Member Avatar for serkan sendur
0
385
Member Avatar for robgeek

I am trying to write a program in which a big text file is read and then user searches for a word and replaces it with another word. To implement this I was thinking to store the file read into an array since that would the easiest way to implement …

Software Development c++ file-system
Member Avatar for VernonDozier
0
168
Member Avatar for jhouns

compile using A86 assembler however you can adapt it for any other one easily... It just draws out a 3D like shape. It was annoying to get the angles right but suggestions on improvement to code is appreciated. :) Adequately commented so it is understandable not fully as it is …

Software Development assembly image
Member Avatar for jhouns
0
2K
Member Avatar for smco9

I'm getting conversion errors 2446 and 2040 on the red line. Can anyone help me figure out what i've done. I'm new to C++ but I'm expereinced in C# so I do have some foundation. Any help is greatly appreciated! [CODE] string GetString(ifstream & fn, string & s, int length) …

Software Development c++
Member Avatar for Ancient Dragon
0
226
Member Avatar for serkan sendur

i need to output embedded resource in one project from another project. i dont know if it is possible, even if it is possible i cant have a reference to that project from the other one. any ideas? any existantialism?

Software Development
Member Avatar for Diamonddrake
0
138
Member Avatar for sandeep.m

Hi please help me to install libxml2-2.7.1 and libxslt-1.1.24.tar.gz fot python 2.5.2. When i try to install libxml2-2.7.1, i gets installed but when i import the libxml2 in python interpreter then i get the following error: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "libxml2.py", line …

Software Development python xml
Member Avatar for woooee
0
423
Member Avatar for catcit

Hello! I need to create a progress bar and up to this our this class [URL="http://code.activestate.com/recipes/492230/#clast"]http://code.activestate.com/recipes/492230/#clast[/URL] is the best class that fits my needs. I posted my problem at comments. Thanks, Danci Emanuel

Software Development python
Member Avatar for vegaseat
0
566

The End.