132,726 Archived Topics
Remove Filter ![]() | |
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++ | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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++ | |
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 = … | |
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 | |
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 | |
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 | |
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++ | |
| |
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 | |
![]() | 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 |
![]() | 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() … ![]() |
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 | |
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 | |
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 | |
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 … | |
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 | |
| |
send me any resourceful info u have on JAVA to SNIP n I'll be sooo greatful. Software Development java | |
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 | |
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 | |
Does a .jar file run on windows with out the JVM installed? Software Development java | |
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 | |
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 ![]() | |
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 ![]() | |
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 | |
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 | |
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 | |
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 | |
Please let me knw a way to create an exe file (.exe) with my java application..... Software Development java | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
How do I sort an array of struct? For example: struct data { string city; string state; int zip; }; data listing[]; Software Development c++ | |
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 | |
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 | |
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 | |
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 … | |
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++ | |
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 | |
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 … | |
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 |
The End.