199,114 Archived Topics
Remove Filter ![]() | |
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. … | |
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) | |
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 … | |
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 … | |
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 … | |
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, … | |
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? | |
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 … | |
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 … | |
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 … ![]() | |
i have a case study about election aND i want to make a election that can call a picture | |
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? | |
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 … | |
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, … | |
[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 … | |
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. … | |
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> >&' … | |
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 … ![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
| |
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 … | |
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 … | |
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 | |
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; … | |
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 … | |
[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: … ![]() | |
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) );} | |
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 { … | |
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" … | |
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 … | |
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 | |
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 | |
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 … | |
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 // … | |
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 … | |
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 … | |
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 :) | |
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 … | |
[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 … | |
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 … ![]() | |
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 … |
The End.