43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for omri374

Hi, I'm programming an application that records video samples of 5 seconds each. the recording takes place inside a loop. I use MFC and DirectShow The thing is, that the main thread must pause for 5 seconds while the sample is being recorded. in order to do that, I can …

Software Development c++ multithreading
Member Avatar for omri374
0
383
Member Avatar for Oritm

Hello all, I'm used to java programming and php. I'm trying to learn C++, but it's rather difficult for me. Basic in java: String message = "Test"; String temp = "This is a " + message; temp now contains "This is a Test". In c++ i tried everything, a + …

Software Development c++
Member Avatar for Lerner
0
140
Member Avatar for .11

I have the log file blackjacksample.txt $10000 3 [2H, 4C, KC, 5D] $10 [QS, QD] $5 [AC, 3C, 4D] $25 [10H, 5C, 7H] [7C, 5C, 10H] $20 [JH, 3C, 8H] $15 [3H, 6D, JC] $5 [AH, KH] [9C, JS] $40 [5C, 7H, 3D, KS] $30 [9C, 10D] $50 [AD, 10C] …

Software Development java
Member Avatar for .11
0
114
Member Avatar for dpreznik

I am facing a problem with a CArray. I have a class member of type CArray<MyType, MyType&> m_MyArray; When the object is destroyed, of course the destructor of CArray<MyType, MyType&> is called. Here is the destructor: [CODE]template<class TYPE, class ARG_TYPE> CArray<TYPE, ARG_TYPE>::~CArray() { ASSERT_VALID(this); if (m_pData != NULL) { for( …

Software Development c++
Member Avatar for Tom Gunn
0
213
Member Avatar for Nathan Campos

Hello, I'm really starting in Assembly, but i want to know if it's possible to develop for ARM devices like those who run Windows CE, because i have an Jornada 720 and i want to develop to it, i'm already a Java developer, but Assembly will be another language that …

Software Development assembly
Member Avatar for jsuvrat
0
153
Member Avatar for chico2009

Hi All I am trying to learn Python and cannot get aroud this problem for the life of me. I have generated a sript as follows, called xandy.py def xandy (x,y): if x < y: print x, "is less than", y elif x > y: print x, "is greater than", …

Software Development python
Member Avatar for chico2009
0
111
Member Avatar for ubi_ct83

Hi all, its me again.can i have a function that return a double array?

Software Development c
Member Avatar for kvprajapati
0
177
Member Avatar for sab786

hey does anyone know if there are any modules that i can download that if i feed in x, y values i can make correlation plots and other types of graphs Thanks

Software Development python
Member Avatar for sab786
0
93
Member Avatar for wewehalim

Hi, i need help in building a program about automata cellular. So, there is 4 state of cells, `0 = space, 1 = ".", 2 = "+", 3 = "#"` This state is continuous from 0 - 3, after 3, it will be back to 0. we need to compare …

Software Development algorithm c c# c++
Member Avatar for wewehalim
0
532
Member Avatar for lllllIllIlllI

Hi, Just wondering if someone could explain why this is happening: [code] >>> example = "" >>> example in "Hello there" True >>> [/code] I'm confused as to why [ICODE]example in "hello there"[/ICODE] gives a True value as return.

Software Development python
Member Avatar for sravan953
0
156
Member Avatar for kkcaddy

Hi everyone am new to java-ing i cant seem to create a class for my first application my "Hello World" when i type javac helloworld it returns that javac is not a in the path and i have created a path for java. Please help me.

Software Development java
Member Avatar for kkcaddy
0
101
Member Avatar for jrosh

I created a table in mysql db. it has a column with auto increment value. i checked inserting data through mysql console putting jst ' ' to the place of the auto increment value in the query. it worked ok. but when i do it through my java application (using …

Software Development java sql
Member Avatar for masijade
0
89
Member Avatar for facadie

1. How do i close 2 forms in runtime. Eg. I click BTNCANCEL in frm1 it will open frm2 and i want to click BTNNO in frm2 to close all forms in the runtime. How do i go about doing that. [frm2 is just asking the user whether to save …

Software Development
Member Avatar for facadie
0
122
Member Avatar for Demonisya

Hello guys i need help on my program factoring.... i have the progam here but the bad news is it is been giving me -3242 or infinite number as an output... I already been so busy changing any thing but i cant make the output correct the way it should …

Software Development c++
Member Avatar for minigweek
0
2K
Member Avatar for treyd

Okay here is the just of my assignment: Write a test program that creates an Account object with an account ID of 1122, a balance of 20000, and an annual interest rate of 4.5%. Use the withdraw method to withdraw $2500, use the deposit method to deposit $3000, and print …

Software Development java
Member Avatar for masijade
0
291
Member Avatar for hket89

Can I return an array from a function?

Software Development c
Member Avatar for wheel
0
156
Member Avatar for xfreebornx

[CODE]#include <iostream> #include<vector> #include<ctime> #include<algorithm> using namespace std; struct student { int id; char name; char nationality; char gender; student() : id(0) , gender(' ') { } student(int i, char g) :id(i), name(g) { } }; void insert(student array[]); bool sortByID(const student& a, const student& b) { return ( a.id …

Software Development algorithm c++
Member Avatar for hao001
0
320
Member Avatar for ofir0803

Hi I hope u can help me... i have a code that connect to mysql db and it works fine. [CODE] using System; using System.Collections.Generic; using System.Text; using MySql.Data.MySqlClient; using MySql.Data.Types; namespace MySqlExample { class Program { static void Main(string[] args) { string host = "localhost"; string database = "articles"; …

Software Development asp asp.net open-source
Member Avatar for sknake
0
188
Member Avatar for Cory_Brown

I need to populate an array with the items a user has selected in a listbox. Example: Listbox contains A, B, C, D, E User selects B, D, E create an array containing B, D, E What method would I use to do this? I've found plenty of info for …

Software Development
Member Avatar for Cory_Brown
0
165
Member Avatar for ellimist14

Sorry about a n00b question but I'm having trouble. I'm messing around with linked list to try to get a good handle on them for the program I have to write. The program below was intended to fill a link list with structures then print out each structure. Instead it …

Software Development c++ data-structure linked-list
Member Avatar for ellimist14
0
116
Member Avatar for MrNoob

hello i m suppose to do this program which should pass array of ptrs to a structure intilise and put student[i] info in each array i did most of it but now i got problem coz i cant just pass address of structure since its an array of ptrs to …

Software Development c
Member Avatar for MrNoob
0
152
Member Avatar for destined2bbless

You have been asked to develop an application that will read book information from a text file to determine which publishers you use. The application will print a report of all unique publishers used. Johnny Smith xxxxxxxxxx Harper Collins Freedie Jones xxxxxxxxxx Harper Collins Lilly Laine xxxxxxxx Penquin Bobby Crosby …

Software Development java
Member Avatar for ~s.o.s~
0
110
Member Avatar for bal_1991

okay..so here's the thing......i have a test comin up tmrw regarding stacks and queues using templates....but my knowledge abt templates is minimal...could you plz suggest some links so as to understand templates from the scratch??? thnkx bal_1991

Software Development c++
Member Avatar for bal_1991
0
92
Member Avatar for arunkumars

Hi, In my current project, Am drawing a set of boxes, all at run time, and inside them i have called few bitmap images for each box, this also happens at run time. now i need to click that image, the image should be selected and that image shud appear …

Software Development
Member Avatar for arunkumars
0
202
Member Avatar for MrNoob

hello i m doing some function for saving a structure of some employee to text but i want to do it using ptrs to struct normally i tried first using ptr to struct in some main function to test some stuff abt it but i get runtime error [code] #include …

Software Development c
Member Avatar for yellowSnow
0
128
Member Avatar for freelancelote

Hi, I'm trying to print a string on the center of a window using GridBagLayout. All I see printed is a part of the string I expect (the current month) instead of the whole string. I don't seem to be able to spot where the error is and I'd appreciate …

Software Development gui java java-swing
Member Avatar for freelancelote
0
209
Member Avatar for jrosh

When i run a java file through comand prompt it says.. "Unsupported class exception error"...Bad version number in .class file. (compilation is ok. this happens @ runtime) i checked the versions of jdk & jre . Both are same which is 1.6.0_01. When i compile and run the same code …

Software Development java
Member Avatar for peter_budo
0
108
Member Avatar for facadie

I basically new to C# and i need some help=) I have 3 combo box, 5 textbox and 3 buttons. One of the button[BTNAPPLY] is disabled and when we type in detail in textbox or change the selection in the combo boxx in runtime, it will be enabled. How do …

Software Development
Member Avatar for sknake
0
175
Member Avatar for atch

Hi, guys. Just installed new borland c++ 2010 - I think it's quite cool. One question though, where can I find comment and uncomment command? Thank you

Software Development c++
Member Avatar for atch
0
159
Member Avatar for dissident85

Hi all, I just had a simple regular expression question. Why does this only match the first character in the string? it should find the 'a' no matter where it is in the string, right? [code=python]C:\Python26>python.exe Python 2.6.2 (r262:71605, Apr 14 2009, 22:46:50) [MSC v.1500 64 bit (AMD64)] on win32 …

Software Development python
Member Avatar for dissident85
0
90
Member Avatar for BlackPhoenix

I'm working on a project. It involves networked code, so I wanted to send it to a friend to test it with. I sent him only the .exe in my Debug folder, and it had an error on opening. It said something similar to "can not open because side-by-side config …

Software Development c++ operating-system
Member Avatar for BlackPhoenix
0
104
Member Avatar for nunos

Can someone please tell me what I am doing wrong. I know this is easy, but I haven't managed to make it work properly. [code=python] overwrite = None while overwrite != 'Y'.lower() or overwrite != 'N'.lower(): overwrite = raw_input("Do you want to overwrite (Y/N)? ") [/code] It doesn't exit the …

Software Development python
Member Avatar for sravan953
0
1K
Member Avatar for tig2810

Hi again I thought I had this sorted until I realised the date I needed to convert was 91202 (YmmDD). Also, when specifying the format, I have no idea the relevance of the lower-case/capitalisation of the letters (YmD etc?) Any help appreciated. [code] private static string ConvertDT(string date, string informat, …

Software Development
Member Avatar for ddanbe
0
121
Member Avatar for geoffy0404

I am just starting out in C, i am doing this from what i remembered from the class i take and i just cant find whats wrong with this[CODE]#include <stdio.h> int main() { char lol[30] = ("hello everybody"); printf("%c", lol); return 0; }[/CODE] when i compile, i just keep getting …

Software Development c
Member Avatar for geoffy0404
0
78
Member Avatar for hkseo100

Hey guys. This looks like the right place to ask this question. I just started Python, and I'm still getting familiar with syntaxes and such. Right now, I'm trying to make a program that will make an Isoceles triangle with Turtle module and math module I really don't know what …

Software Development python
Member Avatar for hkseo100
0
361
Member Avatar for nunos

I was googling for a way to reverse a string and I found this. [code=python] >>> 'asd'[::-1] >>> 'dsa' [/code] It works, but there was no explanation where I got if from. Can someone please be kind enough to explain it. Thanks.

Software Development python
Member Avatar for nunos
0
339
Member Avatar for javanub123

i started learning java yesterday and its my first programming language to learn. ive covered most of the basics and such but im stuck at one thing i have a program written that asks for a password i want it to compare the user input to the actual password using …

Software Development java
Member Avatar for javanub123
0
98
Member Avatar for khanalone1

Dear All, I have been stuck and confused while bringing changes in this program which i got from [url]http://www.dreamincode.net/code/snippet76.htm[/url] This program uses a simple 0xFACA character and adds and subtracts for doing encryption and decryption. Now what i want to use is asymmetric encryption technique or we can say part …

Software Development c++ encryption
Member Avatar for khanalone1
0
528
Member Avatar for brando|away

Im trying to extract an icon from a resource file (.dll) and i need to use the function ExtractIcon() What namespace/class is it in? or is there another way to extract an icon from a dll file?

Software Development
Member Avatar for Diamonddrake
0
120
Member Avatar for Lingson

Hi, I was trying to use Checkbutton widget from Tkinter and I searched here in the forum for example code how to apply it, and I couldnt find any. So I have to test it myself using some documentation of Tkinter. Since I couldnt find any relevant code in this …

Software Development python tkinter
Member Avatar for sneekula
0
4K
Member Avatar for karen.tao

When I enter a string that it not in the list, I get this error in my enum CrimeType class: IllegalArgumentException, no enum const class CrimeType.a(in java.lang.Enum [code] public void enterCrime() { Crimes crimes = new Crimes(); System.out.print("\t\tEnter crime: "); crimeName = In.nextLine(); if("murder".equals(crimeName) || "arson".equals(crimeName) || "assault".equals(crimeName)) { crimes.daysToStay(3); …

Software Development java
Member Avatar for masijade
0
275
Member Avatar for dgr231

Hey guys, I am still pretty new to C++ and am completely self-taught up to this point. I am currently learning about try, throw, and catch statements for exceptions and am trying to incorporate this into my programs. I know that normally when you allocate new dynamic memory, if the …

Software Development c++ visual-studio
Member Avatar for gotorightway123
0
1K
Member Avatar for heels

Hi, I am facing problem with my coding but can't seems to find the problem with it. Can someone guide me? [code] //for loop for (line=1; line <=height; line++) { for(col=1; col <=line; col++) { if (line%2 !=0)// odd line { if (col%2 != 0)//odd line,odd col System.out.print(A); else //(col%2 …

Software Development java
Member Avatar for heels
0
221
Member Avatar for tig2810

Hi all I want to create a method that converts from one time or date format (as a string) to another by specifying the inputformat and the outputformat. I can do the output as below but I'm struggling on how to specify what the input format is. Can anyone help? …

Software Development
Member Avatar for tig2810
0
181
Member Avatar for yonghc

After a brief and rocky relation, I have had jilted Borland 5.02 and found new love for CODE::BLOCK only to discover a while ago that Borland could compile a code snippet which CODE::BLOCK couldn't. In the working program produced below, CODE::BLOCK gave out an error message and failed to compile …

Software Development c++
Member Avatar for yonghc
0
433
Member Avatar for manutd4life

hi all i need is the comments for this piece of code here it is: [code=vb.net] Private Sub populate() con = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _ System.Environment.CurrentDirectory.ToString() & "\DataBase.mdb") ' con.Open() dAdapt = New Data.OleDb.OleDbDataAdapter("select * from Watches", con) dSet = New DataSet dAdapt.Fill(dSet) dBind.DataSource = dSet dBind.DataMember = dSet.Tables(0).ToString() …

Software Development dataset open-source vb.net
Member Avatar for sknake
0
110
Member Avatar for fareast87

Hi everyone! I'm developing some kind of program of handling an images and someone suggesting to me to use PixelGrabber class. I try to use it but I don't know what its return value. Is it some kind of integer value on pixel number 1 or any idea? And where …

Software Development java
Member Avatar for fareast87
0
102
Member Avatar for babbu

this is my code [code] dataGridView1.Rows.Add() dataGridView1.Item(0, dataGridView1.Rows.Count - 1).Value = cboColourCode.SelectedText.ToString dataGridView1.Item(0, dataGridView1.Rows.Count - 1).Value = txtQty.Text.Trim.ToString dataGridView1.Item(0, dataGridView1.Rows.Count - 1).Value = cboQty.SelectedText.ToString [/code] only a blank row is added in the datagrid

Software Development vb.net
Member Avatar for babbu
0
96
Member Avatar for sravan953

Hey guys, I have made a program called 'tLapse', here's the code: [code='python'] import subprocess import time import os print("Welcome to tLapse...") time.sleep(3) os.system('cls') try: com=open("action.txt",'r').read() condition=True except: print("File error") raw_input("<Any key to quit>") condition=False if(condition): clock=raw_input("Enter time duration after which\nuser-specifiedaction will be\npeformed.\n\nFormat- [hh:mm][24- hour format]: ") def app(path): ext=path[-3:] …

Software Development os-x python
Member Avatar for sravan953
0
139
Member Avatar for fafi_ali

Hello everybody, Is that posible to Add parameters to crystal report programmatically. [I]I mean adding not passing.[/I] Thanks.

Software Development
Member Avatar for fafi_ali
0
854

The End.