132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for cambalinho

i know get the windows taskbar HWND: HWND GetDesktopToolBar() { return FindWindow("Shell_Traywnd", ""); } now i can do: 1 - add controls on left side(close to Start Button)... but the click messages isn't working. maybe because use the form messages procedure. can anyone correct me?; 2 - enable\visible it. but, …

Software Development c++
Member Avatar for ipswitch
0
279
Member Avatar for Mariana_1

Hi ! I am trying to do a game for children to test their attention. So I have two images and they have to find out the differences between the images. How can I open the image on c++? I also have a specie of questionair to see how many …

Software Development c++
Member Avatar for ipswitch
0
386
Member Avatar for cambalinho

heres my function for convert to client using RECT: void ScreenToClient(HWND WindowDestination, RECT *WindowRectangle) { POINT a={WindowRectangle->right, WindowRectangle->bottom}; WindowRectangle->left=0; WindowRectangle->top=0; ::ScreenToClient(WindowDestination,&a); WindowRectangle->right=a.x; WindowRectangle->bottom=a.y; } maybe have some errors too :( void Center() { RECT frm,frmparent; GetWindowRect(GetParent(hwnd), &frmparent); ScreenToClient(GetParent(hwnd),&frmparent); GetWindowRect(hwnd, &frm); ScreenToClient(hwnd,&frm); LONG x=frmparent.right/2 - (frm.right-frm.left)/2; LONG y=100; SetWindowPos(hwnd,0,x,y,0,0, SWP_NOSIZE | …

Software Development c++
Member Avatar for ipswitch
0
152
Member Avatar for tgreiner

I am trying to calculate the angle between two vectors. Here is my relevant code: cout << "\n\nPoint1 "; Point1.dump(); cout << "Point2 "; Point2.dump(); cout << "\nanswer: " << Point1.dot(Point2) << endl; cout << "\nacos: " << acos(-1)<< endl; cout << "Problem: " << acos(Point1.dot(Point2)) << endl; cout << …

Software Development c++
Member Avatar for ipswitch
0
2K
Member Avatar for hninmaung.02

I am a computer hardware technician. And I want to create some programs to use in job. I think it would be more efficient in time. I can use C++ programming language but not perfectly. So I need some helps from you. I want to write some programs with C++ …

Software Development c++
Member Avatar for ipswitch
0
327
Member Avatar for ddanbe

I recently came accross this code: Mat3D R_z(double RotAngle) { const double S = sin (RotAngle); const double C = cos (RotAngle); Mat3D U; U.m_Mat[0][0] = +C; U.m_Mat[0][1] = +S; U.m_Mat[0][2] = 0.0; U.m_Mat[1][0] = -S; U.m_Mat[1][1] = +C; U.m_Mat[1][2] = 0.0; U.m_Mat[2][0] = 0.0; U.m_Mat[2][1] = 0.0; U.m_Mat[2][2] = …

Software Development c++
Member Avatar for ipswitch
0
442
Member Avatar for Mahnoor_1

I'm working on exception handling. Here is my code, I need some help.. Requirements: => If the user push a value to stack when stack is full,it must throw an exception of type "cInvalidPush". => If the user pop a value from stack when stack is empty , it must …

Software Development c++
Member Avatar for ipswitch
0
372
Member Avatar for altjen

Im using this code to get image from SQLITE try{ String sql = "SELECT Photo FROM Pics WHERE InvoiceNumber=?"; pst = conn.prepareStatement(sql); rs=pst.executeQuery(); if(rs.next()){ byte[]imagedata = rs.getBytes("Photo"); format = new ImageIcon(imagedata); ImIc.setIcon(format); } }catch(Exception e){ JOptionPane.showMessageDialog(null, e); } `private ImageIcon format = null;` String filename = null; int s=0; byte[] …

Software Development image java sql sqlite
Member Avatar for altjen
0
192
Member Avatar for Dhana_1

a robot is programmed to move forward 'F' meters and backwards again say 'B' meters in a straight line .the robt covers 1 meter in T units of time on robot path there is a ditch at a distance FD from intial oposition in forward direction as well as a …

Software Development c
Member Avatar for rproffitt
0
171
Member Avatar for Darth Vader

Hello, I wonder how we can use lock objects between 2 different applications. In the example below we can use lock objects to let only one thread to execute the code inside the lock object at a time. This works fine within one application. Now I wonder how we can …

Software Development display
Member Avatar for JamesCherrill
0
307
Member Avatar for divinity02

Hi j I have a question and I am wondering if it can be answered. the question is, how do you calculate a teaching allowance and nis from the hours of work and rate of pay in java.

Software Development java
Member Avatar for JamesCherrill
0
191
Member Avatar for lewashby

At my current job me and the rest of the staff that work in my area are uisng a lot of files that when opened look like PDF files but there not. They're actually .exe files and the the program that opens them is called Omni Form Mailable Filler. I've …

Software Development gui pdf python
Member Avatar for Gribouillis
0
474
Member Avatar for myk45

Hi All, I am trying some experiments with pthread scheduling policies. I have a couple of apps and within all these apps, I set the thread policy to SCHED_RR and I set the priority to MAX - 1. Now, I see that the CPU utilization as reported by top for …

Software Development c++
Member Avatar for iš_iš_iš
0
240
Member Avatar for altjen

this is the code I create to import pics select image: JFileChooser chooser = new JFileChooser(); chooser.showOpenDialog(null); File f = chooser.getSelectedFile(); filename = f.getAbsolutePath(); file_picker1.setText(filename); try{ File image = new File (filename); FileInputStream fis = new FileInputStream(filename); ByteArrayOutputStream bos = new ByteArrayOutputStream(); byte[] buf = new byte[1024]; for (int readNum; …

Software Development java sql
Member Avatar for jwenting
0
248
Member Avatar for nathan.pavlovsky

Hi all! Whenever I am working with my code in my main.cpp file, I can call character-handling functions like * isdigit * isalpha * isspace * toupper without importing the `cctype` library. However, my C++ How to Program Book shows that the cctype library must be imported before the functions …

Software Development c++
Member Avatar for nathan.pavlovsky
0
263
Member Avatar for computer_man

How do I import some values from .txt files to a VB.NET DataGridView and then store them on a SQL database? I don't need all file values. I don't know how to get words after ; or ;;; or 1 SPACE or 3 spaces, and after the loop is finished …

Software Development vb.net
Member Avatar for zelrick
0
905
Member Avatar for BustACode

I found that one can use dictionaries to hold Tkinter widget config and display parameters. This then permits one to have these dictionaries elsewhere in the code for easy modification instead of buried within the code for each widget. I particularly like to place these dictionaries toward the top of …

Software Development display python tkinter
0
3K
Member Avatar for BustACode

I have been learning NumPy arrays/matrices in Python. As I worked, I found that I desired a more readable form of 3d matrices. So I figured that writing one would be a good goal and learning exercise. The goal was to create a function that would print 3d NumPy matrices …

Software Development matrix-multiplication python
0
3K
Member Avatar for Christopher_12

i need some help concerning the encryption and decryption i have a login table on my microsoft sql server 2012 but i want to do the encryption and decryption remember i have 5 departments and i want to direct each username and password to a specific department form that i …

Software Development client-server sql vb.net
Member Avatar for tarunap
0
2K
Member Avatar for neam

hi:) can you help me on my project .. what features can add on a security system ?

Software Development cybersecurity visual-basic
Member Avatar for neam
0
98
Member Avatar for Parvathiapril8

can anyone explain the meaning of Void in java..even though i referred many books,not able to understand clear as i am a learner..

Software Development java
Member Avatar for JamesCherrill
0
242
Member Avatar for Slavi

Hey guys, I am looking into xbrl files and I need to extract certain data from each of them however, I can't find much information on the existing python-xbrl library, perhaps someone in here has an experience with it? Here's an xbrl file example [Click Here](http://regnskaber.virk.dk/14502803/eGJybHN0b3JlOi8vWC1GMDk4RkNDNi0yMDE0MTIzMV8wOTE2MjFfMDk1L3hicmw.xml) Any ideas/solutions on how …

Software Development python
Member Avatar for megaflo
0
2K
Member Avatar for Iamateur

I have added form1 and on it 2 text boxes. text box1 to accept fromdate and textbox2 to accept todate. After this,I added Crystal report from Add new Item. Then in Crystal report I added table and its columns. After that I wrote code behind form1. The code is not …

Software Development dataset open-source vb.net
Member Avatar for Oheneba Kwadwo
0
2K
Member Avatar for sonlamhpu

Dear brother Sorry for my bad english Please help me in this case I import with big data to Datagridview It's take long time, and i want to using progessbar for wait I try to do this But it's seem not good Please help me Thank you so much! `Inline …

Software Development dataset microsoft-office vb.net
Member Avatar for Reverend Jim
0
1K
Member Avatar for achava

As part of a class in Java, the constuctor is supposed to throw a java.lang.IllegalArgumentException exception when an integer that is a field in the class, let's call it int N, is set to a negative vale. How do I set this up?

Software Development java
Member Avatar for achava
0
218
Member Avatar for Aabir

#include<iostream.h> #include<conio.h> int main(void) { void hello() { cout<<"HI"; } getch(); return 0; } I am getting an error at line 6 stating that declarartion syntax error. What do I do?

Software Development c++
Member Avatar for NathanOliver
0
511
Member Avatar for sneekula

In the last couple of threads people have used the Python class, but really don't seem to know how to use them properly, or why to use them. Hence my question: "Why would you use a class in Python?" I though only Java forces you to use OOP.

Software Development oop python
Member Avatar for Vineetha_1
0
4K
Member Avatar for Seth_1

Okay so let me start by saying I have a pretty decent c++ base and very advanced logic skills. So whatever help you will have to provide will probably be minimal. So here's my problem: I've been trying to figure out the best way to organize all my Magic: The …

Software Development c++ oracle
Member Avatar for David W
0
147
Member Avatar for Munazza_1

Respected members, I have this code chunk that should read multiple text files from a folder. I am later calculating their probability. For one file it is working fine and methods are also showing output. The first code is for ONE FILE named as English.txt. BufferedReader reader = new BufferedReader(new …

Software Development java
Member Avatar for JamesCherrill
0
2K
Member Avatar for fputs

How do you implement the open/close system calls on linux using C? What go's into the open file table? How do you create file's and delete file's?

Software Development c
Member Avatar for David W
0
198
Member Avatar for altjen

try{ String b = jTextField1.getText(); String sql = "SELECT * FROM DataImput ORDER BY InvoiceNumber=?"; pst=conn.prepareStatement(sql); pst.setString(1, b); rs=pst.executeQuery(); jTable1.setModel(DbUtils.resultSetToTableModel(rs)); } catch(Exception e){ JOptionPane.showMessageDialog(null, e); } finally{ try{ rs.close(); pst.close(); } catch(Exception e){ } } } this is the code I work to search. it actually work. but really weird. …

Software Development java seo
Member Avatar for stultuske
0
145
Member Avatar for hwoarang69

I set up a servlet project in eclipse and I am trying to connect a Access databasae(Ucanaccess) with it. By looking at below error, its look like I am missing jar files but if you take a look at attchement image. You will see all my jar files are in …

Software Development apache java java-jsp websocket
Member Avatar for jwenting
0
2K
Member Avatar for hwoarang69

User will enter a date, for example "7/1/2015". Than I will check in database and return some result if match. Note in database there is data/Time but user will enter only date. Below I have a following database set up Table = "workStartTable" |----|------------------------| | ID | StartBy | |----|------------------------| …

Software Development vb.net
Member Avatar for Hardz
0
219
Member Avatar for Jazerix

[CODE]using System; using System.Security.Cryptography; using System.Text; public static class Encryption { public static string Encrypt(string input, string key) { byte[] inputArray = UTF8Encoding.UTF8.GetBytes(input); TripleDESCryptoServiceProvider tripleDES = new TripleDESCryptoServiceProvider(); tripleDES.Key = UTF8Encoding.UTF8.GetBytes(key); tripleDES.Mode = CipherMode.ECB; tripleDES.Padding = PaddingMode.PKCS7; ICryptoTransform cTransform = tripleDES.CreateEncryptor(); byte[] resultArray = cTransform.TransformFinalBlock(inputArray, 0, inputArray.Length); tripleDES.Clear(); return Convert.ToBase64String(resultArray, …

Software Development algorithm cybersecurity encryption
Member Avatar for hunny1
0
9K
Member Avatar for shanenin

I am trying to get in the habit of practicing coding on daily basis. I decided to try do do tic tac toe in powershell. This took my a rediculous amount of hours to finsh. I am glad to be done. Nest projec will be something more useful like automating …

Software Development gaming shell-scripting
Member Avatar for Nutster
0
1K
Member Avatar for Saboor880

Hi Friends. I am facing Microsoft ODBC Driver error at run time in my program. I am using window 7, jdk 7 and Ms Access 2007. I am using "jdbc:odbc:JdbcOdbcDriver". I am giving code and error message below. Please tell me solution of this problem import java.sql.*; public class JdbcDMLEx2 …

Software Development java microsoft microsoft-access
Member Avatar for JamesCherrill
0
281
Member Avatar for Mike_25

Hi there, I have have a challenge with my application. I am developing it using VB.Net and SQL server 2014. My database contains 2k plus records. I used to search and return the results very fast when the database was still small. The problem now is that whenever i try …

Software Development dataset seo sql
Member Avatar for Mike_25
0
198
Member Avatar for Saboor880

HI to all! I am facing some exceptions in my database connectivity programs. I am using jdk7, window7 and Ms Access 2007. I am giving code of programs and exeption. import java.sql.*; public class ResultSetEx { public static void main(String[] args) { try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); String url = "jdbc:odbc:personDSN"; Connection …

Software Development java
Member Avatar for JamesCherrill
0
193
Member Avatar for Lance_1

im make program using vb6 n tried to get data from msaccess database ,display it in vb6 and save the data to oracle table database.. The table name in oracle is testcoba. Now i can save the data from vb6 to oracle table. But i want is the data will …

Software Development oracle visual-basic
Member Avatar for Santanu.Das
0
1K
Member Avatar for nathan.pavlovsky

Hello all! I am trying to take a string that has mixed uppercase and lowercase chars and then convert it to lowercase. I am doing the following line of C++ code: transform(theReadMessage.begin(),theReadMessage.end(),theReadMessage.begin(),theReadMessage.end(),::tolower); //theReadMessage is a string to convert to lowercase and my C++ xCode debugger gives me this message `Too …

Software Development c++
Member Avatar for nathan.pavlovsky
0
739
Member Avatar for Kiri_1

Hi Guys! I'm trying to create an addition game with an image to display as the given number (addends) EX. instead of just displaying texts like 1+1 = 2 I will be using images to display the given numbers and the answer. I have created some codes here that was …

Software Development display image vb.net
Member Avatar for tinstaafl
0
289
Member Avatar for Steven N

Hello, for fun I have been learning both linux (Mint) and python3 as of late. I have finished a working code that scrapes yahoo for data and selects a series of stocks for me. Today I finished creating an apache2 server using linux. What I had hoped to do is …

Software Development python
Member Avatar for steven.rose.94
0
384
Member Avatar for juansgc

Hi! I don't know how to assign my unique_ptr a new value. std::unique_ptr<int> intPtr; void changePointer(int* ptr) { // I want intPtr to point to ptr // intPtr = ptr; } What should I do? Thanks.

Software Development c++
Member Avatar for juansgc
0
155
Member Avatar for Christopher_12

I want to encrypt and decrypt the password and username of my login table I already populate my login table with 5 rows Can anyone suggest some Encryption and decryption algorithms for Password protection? here is my current code Option Strict On Imports System.Data.SqlClient Public Class Frmlogin Private strCon As …

Member Avatar for Reverend Jim
0
322
Member Avatar for Suzie999

Hi I have encountered a problem where I cannot think of a solution. I'm attempting to work with event tracing but the problem is that a handle is not released even when the program exit, and the API appears such that once it is opened or started, it is closed …

Software Development api c++ windows-api
Member Avatar for gusano79
0
272
Member Avatar for അരുൺ

Assume that a bank maintains two kinds of accounts for customers,one called as Savings account and the other as Current Account.The Savings account provide compound interest and withdrawal facilities but no cheque book facility.The Current Account provides cheque book facilty but no interest. Current Account holders should also maintain a …

Software Development java
Member Avatar for JamesCherrill
0
1K
Member Avatar for altjen

Im having ap roblem with this. ![1.JPG](/attachments/small/4/cde330e9ebb2a478c54b56e4280cf4a3.JPG "align-left") after I press Save button that image show up it doesnt execute this code String te1 = tf1.getText(); String te2 = TA3.getText(); String te3 = TA2.getText(); String te4 = TA1.getText(); String te5 = tf2.getText(); String te6 = TL1.getText(); String sql = "UPDATE …

Software Development java
Member Avatar for altjen
0
254
Member Avatar for Mariana_1

Hi I am trying to do a game to children so they can notice the difference between to images and study how their memory atention etc are. I want to open the image, and make a questionair where I say if the child was able to find one two three …

Software Development c++
Member Avatar for NathanOliver
0
220
Member Avatar for strongard63

I have a large piece of code : string num_to_text[] = { "", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen" }; string tens_to_text[] = { "", "", "twenty", "thirty", "forty", "fifty", "sixty", "seventy", "eighty", "ninety" }; string power_to_text[] …

Software Development c++
Member Avatar for m.shajeeh
0
183
Member Avatar for zelrick

Hello VB.net Programmers, Please help about delimited. I've been looking to the forum and other sites about this but can't find any. Here is my problem. 1. I need to put the text file to excel but this text file don't have comma and tab. This are separated only with …

Software Development file-system microsoft-office vb.net
Member Avatar for zelrick
0
5K

The End.