199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for R3AL

I have the following code: [CODE]HWND hwn= FindWindow(NULL,"CABAL"); HDC hdc = GetDC(hwn); COLORREF x; POINT m; m.x=50; m.y=50; ScreenToClient(hwn,&m); x=gp(hdc,m.x,m.y); if(x==CLR_INVALID) cout<<"CLR_INVALID\n"; cout<<"Red: "<<(int)GetRValue(x)<<"\n"<<"Green: "<<(int)GetGValue(x)<<"\n"<<"Blue: "<<(int)GetBValue(x)<<"\n"; [/CODE] The problem is gp( GetPixel ) always returns CLR_INVALID and white (255,255,255). Also, I find it strange that SetPixel works with any coordonates. …

Member Avatar for R3AL
0
177
Member Avatar for TrustyTony

While looking stuff about idlelib, I came to [URL="http://stackoverflow.com/questions/3431498/what-code-can-i-use-to-check-if-python-is-running-in-idle"]this thread in stackoverflow[/URL], so I posted own solution. I post it also here, as maybe somebody needs it (as for example \b looks ugly in IDLE)

0
259
Member Avatar for pseudorandom21

Hello all, I'm a Jr. in college and I haven't studied machine learning yet to any extent. I would like to at least know how to specify this project I have in mind though. Basically I'd like to have a number of input images to "train" the software with, and …

Member Avatar for pseudorandom21
0
158
Member Avatar for ihatehippies

I made a simple ThreadManager class that receives tasks and spawns threads to complete the tasks. Currently it keeps all the threads alive until I explicitly set threadmgr.waiting=False and all of the tasks are complete. I'm trying to eliminate the need for the former. What I would prefer is that …

Member Avatar for ihatehippies
0
177
Member Avatar for Virangya

hi.. i'm going to host my project and on clients site, a user always have to login to view what he can view. So the user has a user name and a password. Is there a way i can enable a user to login automatically without just entering user name …

Member Avatar for Virangya
0
213
Member Avatar for Motifaithed

Hi Everyone, I'm new to C++ and developing something to enhance my skill, however I find it difficult on my knowledge right now, I want to write a program similar to SMS that everytime I input a character it will automatically increase my counter, and if i will press backspace, …

Member Avatar for harinath_2007
0
157
Member Avatar for rakwel10

How can I make my website work like this: User forgot to logout its account to PC1. Then he goes to PC2 and login the same account he uses to PC1. User successfully logs in to PC2 while its account in PC1 is autamatically logged out. How is that?

Member Avatar for rakwel10
0
246
Member Avatar for rjcenteno

i have a program that reads in a file with shapes and numbers and tokenizes each line. after it tokenizes, it then calculates the shapes dimensions. what i need to do is make it so that this program reads in the file and stores every shape and its values into …

Member Avatar for rjcenteno
0
187
Member Avatar for GatorProgrammer

I am required to compute all Lucas numbers up to a certain number. To keep track of a summation, more specifically, the summation of all Lucas numbers you have encountered up to that point. A small example: If the user inputs a bound of 23: Lucas numbers up to 23 …

Member Avatar for mike_2000_17
0
168
Member Avatar for tfj

I have two projects: [B]SQLtesting[/B] and [B]Controls[/B]. Their physical locations are: C:\My Documents\Visual Studio 2010\Projects\SQLtesting\SQLtesting\ [forms reside here] C:\My Documents\Visual Studio 2010\Projects\Controls\Controls\ [forms reside here] The code shown below works fine. I run it from the project SQLtesting. It loads a listbox and a checkedlistbox with the controls found on …

Member Avatar for Unhnd_Exception
0
209
Member Avatar for bantex07
Member Avatar for Zssffssz

Ok here is what I am asking: is there any simple way to use program to program communication in a console application. Like one asks for a number and the other displays it?

Member Avatar for Zssffssz
0
102
Member Avatar for radhika kotecha

Hello, I am working with genetic programming for classification techniques in data mining. I am not very much clear about how to perform genetic programming in C. Can i please get some sample code of genetic programming... An example program for any application would be fine. I just need some …

Member Avatar for TrustyTony
0
250
Member Avatar for Dave.Rich

Hello, I am working on a program where I need to be able to send a file over the network to another computer. I would like to have a sort of system setup where each computer that is running my program will show up in an "address book" of sorts, …

Member Avatar for Dave.Rich
0
128
Member Avatar for mac.jpr

[CODE]#include<iostream> #include<math.h> using namespace std; main() { int i; float j=1.00; cout<<"enter a no"<<endl; cin>>i; float k=(float)(log (i)/log(2)); k=k%j;//------------------error-------… "%" cann`t take float vlaue. if(k==0.00) cout<<"no "<<i<" is a power of 2"<<endl; else cout<<"sorry ! i am afraid "<<i<<" is not a power of 2"<<endl; } [/CODE] i tried this …

Member Avatar for boddurakesh
0
341
Member Avatar for Spontaneous

Here is a task out of a book [quote]Your task is to write a C++ program to help you convert a number into roman numerals. Roman numerals are I for 1, V for 5, X for 10, L for 50, C for 100, D for 500, and M for 1000. …

Member Avatar for Spontaneous
0
626
Member Avatar for coolbeanbob

Hello, I am getting an error when I try to pass a linked list and an iterator to the printList function below. For some reason it does not recognize the printList function call. I get the following error on line 39. no matching function for call to 'printList(std::_List_iterator<Event, std::allocator<Event> >&' …

Member Avatar for coolbeanbob
0
444
Member Avatar for jefroxnergal

So I have this two forms.. I have a command button on the second form that when I clicked, a message box pops out and ask you if you want to go in the first form. The 'Yes' worked but the 'No' doesn't work, the first form still shows.. can …

Member Avatar for Unhnd_Exception
0
364
Member Avatar for Muhasin
Member Avatar for N1GHTS
0
89
Member Avatar for countycowpoke

I am trying to send registration/ activation information via email, but don't want to store my authentication within the vb.net app and therefore not wanting to use .NET SMTP. I have the below php script that works from a website, but I can't seem to get the variables sent to …

Member Avatar for countycowpoke
0
397
Member Avatar for naveedqadri

Hi Experts, I have visited the forum regarding this solution ,but could not get proper help. I got error : Object reference not set to an instance of an object. [code] Line 18: <% Line 19: Line 20: string proj_id=Session.Contents["proj_id"].ToString(); <-------- > pointing to this part Line 21: OleDbConnection conn=new …

Member Avatar for dnanetwork
0
115
Member Avatar for SteveWaugh

Hi, I've been trying to sort a list in ascending order for a problem in class, but my for loop isn't working. [CODE]import java.util.*; public class AscendingOrder { public static void main(String[]args) { int min; Scanner input=new Scanner(System.in); int[]list; list=new int[10]; int[]list1; list1=new int[10]; System.out.print("Enter 10 integers: "); for (int …

Member Avatar for SteveWaugh
0
236
Member Avatar for kenji

Hi, I have a really basic ASP.Net question regarding the life of variables. I'm following the book Beginning ASP.Net 4 by Apress. The question is this, I declare a list in the .aspx page and it is available for access by the corresponding .aspx.cs class similar to the code sample …

Member Avatar for dnanetwork
0
148
Member Avatar for ausgurl

Hi Everyone :) I know you don't like homework help..but I have tried to answer it and got a resit and now I have no idea!! Can someone please please help me to figure out which ones are correct??? Which of the following statements are correct when considering backing up …

Member Avatar for Reverend Jim
0
152
Member Avatar for anuj_sharma

Hi, I am trying to start to learn Delphi but I am unable to find any useful resources. I am not even able to find any IDE to download !!! I am very new to Delphi and need your help. Give me some tips to start from and then from …

Member Avatar for anuj_sharma
0
127
Member Avatar for sohel807

I have run my codes (written in Python) in my Notebook (3 GB Ram, Dual-core CPU T4500 @ 2.3 GHz) and in my lab machine (11.57 GB Ram, i7-920 CPU @ 2.67 GHz). However, I have found execution time in Notebook 250.3 seconds, and in Lab machine 333.2 seconds. How …

Member Avatar for sohel807
0
88
Member Avatar for king03

Hi there guys can anyone help me with my program. Because I have an enrollment form program for highschool students and what I want to happen is it will automatically save the information inputted to it in system, not in notepad like in file streaming. So when I open the …

Member Avatar for kapojian
0
86
Member Avatar for khushhappy

Hi, I am stuck with a problem being un-solved. Basically i want a solution in which when a User signup , he to be asked a secret Code which is only known by the [B]CS WING staff[/B]. If the user signup as other then CS WING staff section member (options …

Member Avatar for chrishea
0
100
Member Avatar for geeksforgeek
Member Avatar for geeksforgeek
0
124
Member Avatar for maroom

Hello below is the progra... i cann access araylist in the main class function.... like "LoanBook" see that in the code.... plz recity meeee folks... thanking uuuu =--------------------------------------------------------------------------= [ICODE] import java.util.ArrayList; import java.util.Scanner; // To take customer detais by using Constructor and Customer deatils class Customer { int cusId; String …

Member Avatar for JamesCherrill
0
343
Member Avatar for PixelatedKarma

Good evening, So I am working on a php application powered with a mySQL. I feel I am an intermediate programmer in php and intermediate with dealing with mySQL. I have begun to research security as it is or should be in my opinion the core fundamental when building anything …

Member Avatar for Stefano Mtangoo
0
148
Member Avatar for sofia24

Hi, I'm writing a C++ script and part of it is to connect to an SQL Server. C++ is new to me so I'm still working my way around. Any help would be greatly appreciated. Many Thanks

Member Avatar for Stefano Mtangoo
0
1K
Member Avatar for maroom

I have got errors which where commented in below program.Plz compile these program and cpy paste the code ... iam little bit confused... dudee.... [CODE]import java.util.ArrayList; import java.util.Scanner; // To take customer detais by using Constructor and Customer deatils class Customer { int cusId; String fName; String lName; long phNo; …

Member Avatar for JamesCherrill
0
218
Member Avatar for zendet

Hey im just trying to get back into c++ and i cant seem to solve why this is happning? I know theres too many header files also, i just normally leave them there in practise things when im messing with colours etc. Could you also please explain why it is …

Member Avatar for frogboy77
0
145
Member Avatar for davy_yg

[CODE] $nama = array('a' => 'John', 'b' => 'James', 'c' => 'Ray', 'd' => 'Lime', 'e' => 'Kit'); //sort ($nama); //reset($nama); $i=1; do { echo "The key is " .$i. " and the value is " .$nama[$i]; $i++; } while ($i<=5); Echo "newline"; ?> [/CODE] The following error appears: Notice: …

Member Avatar for diafol
0
619
Member Avatar for saurav2007

I got the problem with this code.. can anyone explain me the output.. main() { int i = 258; int *iPtr = &i; printf("%d %d", *((char*)iPtr), *((char*)iPtr+1) );}

Member Avatar for saurav2007
0
124
Member Avatar for kylelendo

Hii I have developed a code in which i have two check those 2 digit numbers whose 3 times sum is equal to the number eg:-27=3(2+7) [CODE] #include<conio.h> #include<stdio.h> int main() { clrscr(); int a,b,n; long sum=0; loop:for(n=24;n<=28;n++) { a=n/10; b=n%10; sum=sum+(a+b); } if(n==(3*sum)) { printf("%d \n",n); } else { …

Member Avatar for scrappy57
0
161
Member Avatar for komanche

I have written a login page but each time I login it returns a blank page even with a wrong password please help: the login page is as follows: [CODE] </head> <body> <div id="wrapper"> <form action="methods/login.php" method="post"> <ul> <li><label>Username:</label><input type="text" name="username" size="10" value="<?php echo htmlentities("$username"); ?>" /></li> <li><label>Password:</label><input type="password" name="password" …

Member Avatar for karthik_ppts
0
788
Member Avatar for rarment

I'm just starting to learn C++ and I need some help. I need to be able to read in a text file and pull out numbers from the file (like a news story, etc). I will need to be able to do other checks with the numbers as well, I'm …

Member Avatar for rarment
0
298
Member Avatar for jackparsana

Hi, Please help me to do this. I have application for send bulk SMS. But when i send SMS, like : "Hello Word" then it will message me like : "HelloWord" it remove space. so how can i manage. help me thanks in advance. jack

Member Avatar for jackparsana
0
192
Member Avatar for ktab

Hello all I was wondering how i could pass the following SLQ function to my datatable: Select sum(Quantity) from Purchases where transaction_mode=1 Thank you

Member Avatar for ktab
0
252
Member Avatar for Danielle87

I would like to make a selection menue for 2 programs that i have. A menu similar to the one below. [CODE]import sys print """Menu 1) Random 2) Search""" answer = raw_input("Make a selection> ") if "1" in answer: print "This will contain program 1" elif "2" in answer: print …

Member Avatar for Danielle87
0
356
Member Avatar for hairo

Hi friends, I need to convert this random number generator in C++ to C. Please help me. C++ code [CODE] #include <iostream> #include <ctime> using namespace std; //This class will give satisfy basic // random number considerations for // games an general apps. // WARNING: Not for Cryprographic use // …

Member Avatar for hairo
0
744
Member Avatar for cent91

i wanna use the Sleep fucntion in a CLR vc++ app, if i include windows.h it gives a huge list of errors, if i use _sleep() then it dowsnot work at many systems since its obslete. what should i do? i am bound to use CLR bcoz my code uses …

Member Avatar for cent91
0
448
Member Avatar for Oneryavuz

i have a form and i need to use mouse scroll for moving my panel. so i need to create event ( :) ok ok im not sure ) and No matter where the selected i need to use this event when i use mousescroll :) I hope i was …

Member Avatar for Oneryavuz
0
162
Member Avatar for tungnk1993

Please refer to the attached image [ATTACH]22297[/ATTACH] I want to create an application which provides toolbar 'button' like BatteryBar. Thanks for your help :)

Member Avatar for samson_zed
0
172
Member Avatar for himmat.m4

Hi, In our project I am using ajax with jquery. here I have applied some code of java script on splitting response which comes from server side. This code is working fine for small data. Whenever same application used for large data, script gives problem. This problem is value is …

Member Avatar for himmat.m4
0
131
Member Avatar for nzdude09

[code] #include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main () { int guess; unsigned int seed = time (0); srand (seed); //different spot?// int upperBound; int lowerBound; int range; char c; bool done = false; do { bool found =false; upperBound = 101; lowerBound = 1; do …

Member Avatar for Moschops
0
250
Member Avatar for aFg3

Hi people im new here. I want to work with security but i got many issues with this simple program. I want to encrypt and decrypt a msg with openssl cmds. Btw im using pipeline and process open (popen) function. Im using Fedora gcc to compile. Any help, recommendations will …

Member Avatar for Mouche
0
152
Member Avatar for Ehtesham Siddiq

hi, My application is in VS2008 coded in vb.net.I have a form with a datagridview which loads data from databaase.there is one column where data is stored separated by comma's.Like Name,Surname,LastName name this column as [B]Testing[/B].I have a checklistbox on another of my form.When the user selects a particular row …

Member Avatar for Ehtesham Siddiq
0
850

The End.