43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for thanaras

Hello. I have a grayscale image that i want to process. I take the raster and then i want to scan the pixels and once i find a non-black pixel, i want to make an operetion(which doesn't matter right now). When i have an ARGB image i do this int[] …

Software Development image java
Member Avatar for Ezzaral
0
126
Member Avatar for kv79

Hi to all ,just a small question. When i read in the book for Win32 API tur. in c++, this: " cbSize The size of the structure. " I asked my self ,what sturcture? I tought we useing class.

Software Development api c++
Member Avatar for kv79
0
115
Member Avatar for Noliving

Hello everyone, my problem that I'm have is that I have to get the volume and the surface area of a sphere using a class. I believe I was able to do that part of the problem correctly. The issue I'm having is getting that information to print from the …

Software Development python
Member Avatar for imamyth
0
113
Member Avatar for __vmware__

Hello, I have problem witch i've been working on for a couple of days now with no real progress. The problem is that i'm trying to search trough a array of pointer for a certain value. If the value exist return that value to be used in another function, but …

Software Development c++ visual-studio
Member Avatar for __vmware__
1
109
Member Avatar for ssriram

Hi all, I'm working on a GPS/GSM based project and I want to convert the RMC parameters to BINARY format. Actual RMC Sentence looks like this: $GPRMC,171004.031,A, 3658.4246,N,12201.3362,W,23.44,255.42, 060206 Interpretation as follows: 171004.031 = UTC of position fix (hours, mins, secs, decimal secs) A = GPS Status, Valid (V = …

Software Development c
Member Avatar for Belrog
0
211
Member Avatar for Oxiegen

Hi! Sorry about my bad grammer and/or spelling. English is not my native language. I don't know if this already have been asked and answered, however... I'm currently developing a program in which it will be possible to select table fields from a database and set various criteria using dropdown-lists. …

Software Development vb.net
Member Avatar for Oxiegen
0
236
Member Avatar for eranga262154

Hi all, I have a string(not a CString), actually a file path. As an example, [CODE]c:\Test\MyProject\G00062_002_01.srf[/CODE] Then in following way get some data. [CODE] string FullPath = c:\Test\MyProject\G00062_002_01.srf string filePath = FullPath.GetFileTitle(); string groupID; string sessionId; string partID; groupID = filePath.substr(1, 5); sessionId = filePath.substr(7, 3); partID = filePath.substr(11, 2); …

Software Development c++
Member Avatar for Duoas
0
115
Member Avatar for vonzul

This program should traverse a directory and save the file names into an array so I can manipulate data within the files. The problem is that the program prints the name of the files in the first loop, but it only saves the last file name in the array. Below …

Software Development c
Member Avatar for vonzul
0
3K
Member Avatar for jmasta

I'm getting a whole bunch of null pointer exceptions when I run my program. Here's the info: My program takes a text file (myIn.txt), will keep individual totals of all the characters, then put them into an ordered linked list. Now I need to build a pseudo-Huffman binary tree, with …

Software Development java linked-list printer
0
93
Member Avatar for kittycat07us

Hi. I was wondering if someone could help me with this program.. the purpose of this program is to play tic tac toe, and I'm having difficulty getting it to compile. I have gone through it several times. I would most appericate it if anyone could look at it and …

Software Development c++
Member Avatar for Ancient Dragon
0
89
Member Avatar for kv79

Hi to all, just a small question? This is typed in the book. hInstance is used for things like loading resources and any other task which is performed on a per-module basis. What is pre-module basis. Google won't help.

Software Development c++
Member Avatar for kv79
0
93
Member Avatar for squidd

I have one form that is doing a security check. if the serial number or whatever is found, then a button will appear to open the actual program. Welp, that isnt working out so well. How do I have a Tbutton open another form and close the first form? This …

Software Development pascal
Member Avatar for squidd
0
467
Member Avatar for kidjl

i need a little help with the function, i created 9 buttons in VB6 at runtime. I set them to swap colors when each time the button is clicked. However, i want all the buttons to stop swaping colors when all 9 buttons are in the same color. so i …

Software Development vb.net
Member Avatar for jbennet
0
103
Member Avatar for lacy1104

I am working on a project in which i have to use Classes and do multiple things with different sorts of data. The basic question i have though is this: what am i doing wrong here in terms of this class declaration etc...i get ton of errors and cant seem …

Software Development c++
Member Avatar for Ancient Dragon
0
292
Member Avatar for Underdog67

I'm having a lot of difficulty trying to figure out how to label headings in a 2D array using enum type. Here is the basic for-loops to read in and out the values of an array. (This is a 5x5 array). [CODE] #include <iostream> #include <fstream> #include <iomanip> #include <cstring> …

Software Development c++
Member Avatar for Duoas
0
2K
Member Avatar for claudiu_is

I`m creating a desktop application which need s to store some data. I would probably store no more than 100rows with 10-15cells. Question is, should I use csv or an sql database; which one is accessed faster ?

Software Development java
Member Avatar for Ezzaral
0
154
Member Avatar for ENG ISE student

I am getting an error i dont recognize and dont know what to do to fix it and input would be great. The error is: [CODE]prog4.cpp:23: error: no matching function for call to 'std::basic_istream<char, std::char_traits<char> >::get(char [500])'[/CODE] [CODE] #include <iostream> #include <ctype.h> #include <cstring> using namespace std; void encrypt(char ch, …

Software Development c++
Member Avatar for Ancient Dragon
0
100
Member Avatar for edouard89

Hello All, well this is my first post after a while of inactivity. I have run into a problem. I have an assignment for school, but when I debug my program using Dev C++(BloodShed) it give me a segmentation fault. I am reading from a file that looks like this: …

Software Development c
Member Avatar for edouard89
0
154
Member Avatar for Dio1080

My tic tac toe board is done, but I need it to show up in the Dialog box, not the console, how would I do that? Here is my code: javax.swing.JOptionPane.showMessageDialog(null, "\n-------"); for (int i = 0; i < 3; i++) { System.out.print("| "); for (int j = 0; j …

Software Development java java-swing
Member Avatar for Ezzaral
0
131
Member Avatar for poonams

hi all, I am to pass two values from form f1 to form f2.i wrote a code on keypress event .It works good.But on loading of f2 i want to close f1.I wrote this on f1 Dim f As New frmattendance f.Owner = Me f.Show() f.txttdays.Text = days f.l2.Text = …

Software Development vb.net
Member Avatar for poonams
0
445
Member Avatar for jonnim

I am trying to collect data from a log file. The data will collected into records based on policy number. I have created an object describing the data below: class fwpolicy: def __init__(self, policy_id, fr_zone, to_zone, src,dest,serv): self.policy_id = policy_id self.fr_zone = fr_zone self.to_zone = to_zone self.src = src self.dest …

Software Development python
Member Avatar for vegaseat
0
101
Member Avatar for twooften

I have been trying to figure this one out for a while, so please don't laugh. I know it is a little messed up. I didn't include the whole code, if necessary I will post more. The line indicated is giving me a "cannot convert from 'HGLOBAL' to 'int *' …

Software Development c++
Member Avatar for ithelp
0
236
Member Avatar for Dio1080

can anybody see anything worng? I'm returning these to the main sO=ScoreO(O); sX=ScoreX(X); These are my two methods: [java] //method to tally the score for x public static int ScoreX(boolean X){ int scoreX=0; if(X==true){ scoreX+=1; } return scoreX; } //method to tally the score for x public static int ScoreO(boolean …

Software Development java
Member Avatar for Dio1080
0
91
Member Avatar for FireSBurnsmuP

Alright, here's the code: [code] for ( map<string,int>::iterator word = mostUsed.begin() ; word != mostUsed.end() ; word++ ) [/code] and the error by g++ - (using make) [code] error: conversion from 'std::_Rb_tree_const_iterator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >; int> >' to non-scalar type 'std::_Rb_tree_iterator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >; int> >' requested[/code] Okay... …

Software Development c++
Member Avatar for FireSBurnsmuP
0
447
Member Avatar for nmnative

This is what I have written so far for my homework. No, I am not asking for someone to do my homework just to help me with what I have so far. This is a Restaurant menu created for a web site, I am very close to getting it finished, …

Software Development microsoft visual-studio
Member Avatar for nmnative
0
126
Member Avatar for controlsi

Hello, well this portion of code is basically just the structures from the program. everytime i compile the program i get an error at the INFOstructure. i am using these structure in a program that read from a file and prints the data to the screen. my problem is that …

Software Development c data-structure
Member Avatar for controlsi
1
85
Member Avatar for Tight_Coder_Ex

How would I declare a pointer to MINMAXINFO that is passed to WPARAM In WM_GETMINMAXINFO wParam is a pointer to a place on the stack that holds MINMAXINFO. I've tried[code]MINMAXINFO *Info; Info = MINMAXINFO *wParam;[/code]and several other variations to no avail. Thanks

Software Development c++
Member Avatar for Duoas
0
123
Member Avatar for Ccrobinson001

I need some real serious help. I have been trying to get this program to work for the last past week and everytime I get one part to work and try to complet the next section the previous section craps out. I have to write a program that reads from …

Software Development c++ ios
Member Avatar for Ancient Dragon
0
228
Member Avatar for johnnyjohn20

Hi, Im trying to filter a user number entered by the user so that it is between 3 and 31 and odd. I also want the prompt to enter the user number to loop if the user number entered does not meet the requirements. This is what i have: [code] …

Software Development c++
Member Avatar for johnnyjohn20
0
1K
Member Avatar for mauro21pl

Hi guys I started to learn java and have a little problem\. When I try to compile my little program it says : assgn2.java:40: variable overnight might not have been initialized System.out.println(overnight); [CODE]How is that? The code: import java.io.*; public class assgn2 { public static void main(String[] args) throws IOException …

Software Development java
Member Avatar for Black Box
0
139
Member Avatar for staneja

I am executing a project that have 100 jar file attached to it I am able to execute it in Eclipse but i want to run it from batch file but the problem is that i am not able to set class path , whereas in eclipse we can direclty …

Software Development java
Member Avatar for ~s.o.s~
0
98
Member Avatar for degamer106

So we're supposed to modify this class, which implements Comparable, so that it accepts any type of object. The Comparable interface contains the method signature for compareTo, which I need to implement. What I'm uncertain of is how to implement this method. I know that compareTo is supposed to return …

Software Development dataset java
Member Avatar for degamer106
0
86
Member Avatar for mathijs

i have created an oxo game. wich is a game where you try to get 3 in a row in a 9-square field. i got it running but i have one question. for the computer's moves i predicted what the user would do (2in a row) and then made the …

Software Development python
Member Avatar for mathijs
0
108
Member Avatar for MadeInHungary

I like to receive data on SOCKET. I call the recv() method with required params: char* buff = new char[len]; memset(buff, 0, len); if(recv(sck, buff, len, MSG_PEEK) == SOCKET_ERROR) { cerr << "String Receive Error - code: " << WSAGetLastError() << endl; } The recv() method copies data to the …

Software Development c++
Member Avatar for MadeInHungary
0
150
Member Avatar for johnroach1985

Hi. I am trying to figure out this code I found on the net that allows users to chat with each other. It gives a thread error that I just can't fix. Please help me. This is the Form1.cs file [CODE]using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; …

Software Development assembly dns
Member Avatar for johnroach1985
0
209
Member Avatar for kv79

Hi to all, I have Windows XP professional SP2 and Dev-C++ and when i go to the Device Manager -> Keyboard-> Resources i see I/O Range 0064-0060 and the ports have also addres. And all other things wich have addres. My question is ,is it really addres or i am …

Software Development c++
Member Avatar for Salem
0
162
Member Avatar for stilllearning

Hello, I looked for this on the forums, and found an invalid link to a tutorial. But I'd appreciate it very much if someone can point me to a tutorial on hash tables, that includes a basic implementation in C or C++. Thanks a lot.

Software Development c
Member Avatar for stilllearning
0
150
Member Avatar for zandiago

Good day. My semester of c++ is coming to an end. I've got to complete a total of 7 assignments within the next 3 weeks. I've completed 5 out of the seven. I've got two left (1 has a separate thread by itself). So you can also take a look …

Software Development c c# c++ printer
Member Avatar for zandiago
0
979
Member Avatar for iggy78

#!/bin/bash # Bash script that will produce a text file that has a list of the files in the present working directory cd /bin ls -d ls -d >>file.txt #!/bin/bash #Bash script that will copy all the files in one directory to another directory ls -d mkdir /EgorDir cp*.*ls-d /EgorDir …

Software Development shell-scripting
Member Avatar for iggy78
0
81
Member Avatar for Danii

Hi Please help me with this problem Write the definition of a class Play containing: An instance variable counter of type int , initialized to 0. A method called increment that adds one to the instance variable counter . It does not accept parameters or return a value. A method …

Software Development java
Member Avatar for Black Box
0
226
Member Avatar for Sturm

For homework I'm apparently supposed to implement some functions defined in [icode] <algorithm> [/icode]. So this is what I have so far: [CODE=c++]template <class I> bool m_equal( I b, I e, I b2 ) { for ( ; b != e && b == b2; b++, b2++ ); return b …

Software Development algorithm c++
Member Avatar for Sturm
0
127
Member Avatar for ferhatkuskaya

I used 3 timer component and I m using one checkbox. And I have three procedures for timer1, timer2 and timer3 and I writed below these in my unit code explorer. Note that band1,band2 and band3 are images that will be animated ordinarily. [COLOR="red"]procedure TForm1.Timer1Timer(Sender: TObject); begin timer1.Enabled:=true; timer1.Interval:=2000; band1.Visible:=true; …

Software Development pascal
Member Avatar for Duoas
0
103
Member Avatar for Barefootsanders

Hey everyone, I was wondering if someone could explain to me the following bit of code. I understand != in logic but i dont know how to read it like this: [CODE] float y = 0.01, x = 0.005, z; z = 2 * x + (y != 0.001); [/CODE] …

Software Development c
Member Avatar for Aia
0
113
Member Avatar for tarekkkkk

just plz 1) correct my faults and help me 2) on freazing the command by:getch(0) 3) where to put it and the include<conio.h>,plz i have a test tomorow on devcpp compiler: #include<stdio.h> void fill-mat(int x[10][10],n) { for(int i=0;i<n;i++) for(int j=0;j<n;i++) scanf("%d",&x[j]); } void print-mat(int x[10][10],n) { for(int i=0;i<n;i++) for(int j=0;j<n;j++) …

Software Development c++
Member Avatar for tarekkkkk
0
126
Member Avatar for dreddick4

I have to program a simple calculator, i had all of my functions working seperatly but now that they are all together the add and the average won't compute. The problems started when i tried to get the program to loop back to the menu after you get a total. …

Software Development python
Member Avatar for vegaseat
0
105
Member Avatar for piers

I have been given a homework this is it: [QUOTE]Homework 7 Due in your lab in week 10 For this homework you are expected to write one program, which consists of a main method and an insertWord() method. You must work on the program outside the formal laboratory sessions. The …

Software Development java session
Member Avatar for iamthwee
0
99
Member Avatar for im_desperate

code: def rpn(): list = [] while 1: x = raw_input(" ") if x in ["+","-","*","/","%"]: y=str(eval(list[-2]+x+list[-1])) list[-2:]=[y] elif x == "": break elif x == "=": print y else: list.append(x) How can i modify my rpn calculator in order to: 1)accept random number x = random number e.g x …

Software Development python
Member Avatar for im_desperate
0
128
Member Avatar for toko

i have made a program that gives a defenition of a short form e.g. ;-) = wink [CODE]#include <iostream> using namespace std; int main() { char input[20]; char correct1 [] = "CU"; char correct2 [] = ":-)"; char correct3 [] = ":-("; char correct4 [] = ";-)"; char correct5 [] …

Software Development c++
Member Avatar for toko
0
94
Member Avatar for balla4eva33

I have a new project I'm working on, and I'm stuck. Notice in my code below that I originally had [B]return dayInMonth;[/B], but commented it out as it was returning the year as 27 in the array and the month and dayInMonth both as 1. My year and month should …

Software Development c++
Member Avatar for balla4eva33
0
120
Member Avatar for tones1986

Hey Folks. I am working on a project in which i have to use Classes and do multiple things with different sorts of data. The basic question i have though is this: what am i doing wrong here in terms of this class declaration etc... i have looked around on …

Software Development c++
Member Avatar for tones1986
0
122

The End.