132,729 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jjones0150

Hello Guys, I'm having trouble getting my code to run correctly. I need the program to ask the user do they want to continue after they guess the number correctly. If they say "y" the loop should restart if they reply "n" the program should end and close. I will …

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

the control have the WS_TRANSPARENT style. and: case WM_ERASEBKGND: { return TRUE; } break; case WM_CTLCOLORSTATIC: { return (LRESULT)GetStockObject(NULL_BRUSH); } break; case WM_DRAWITEM: { DRAWITEMSTRUCT *test=(DRAWITEMSTRUCT*) lParam; image imglabel(test->rcItem.right-test->rcItem.left,test->rcItem.bottom-test->rcItem.top); if(inst->blnTransparent!=true) FillRect(test->hDC,&test->rcItem, CreateSolidBrush(inst->clrBackColor)); else FillRect(test->hDC,&test->rcItem,(HBRUSH) GetStockObject(NULL_BRUSH)); FillRect(imglabel,&test->rcItem,CreateSolidBrush(inst->clrBackColor)); if(inst->imgtest.haveimage()) DrawHICONtoHDC(imglabel, inst->imgtest,1,1); SetBkMode(imglabel,TRANSPARENT); char *text=(char*)inst->strCaption.c_str(); SetTextColor(imglabel,inst->clrTextColor ); DrawTextEx(imglabel,text,-1,&test->rcItem,DT_LEFT,NULL); if(inst->blnBorder==true) DrawEdge(imglabel, &test->rcItem,BDR_SUNKENINNER | BDR_RAISEDOUTER,BF_RECT); …

Software Development c++
0
105
Member Avatar for benphipps

Hello all, I am having trouble with my programming assignment in which we have to build a MIDI scale player. I am willing to send the assignment brief and my current to anyone willing to help. Cheers, Ben

Software Development c++
Member Avatar for xtian170174
0
154
Member Avatar for bhagyesh_1

Hello Friends, i am having a hard time coding for **8 Puzzle using DFS** (depth first search). my code uses linked list but apparently its "not ok". so can any1 please help me by sending me a documented code (so i understand). I am kinda on a deadline. -thank you …

Software Development c linked-list puzzle
Member Avatar for Nutster
0
6K
Member Avatar for PM312

i have below code to send email in outlook 2013 Try Dim SmtpServer As New SmtpClient() Dim mail As New MailMessage() SmtpServer.Credentials = New Net.NetworkCredential(OutlookID, OutlookPassword) SmtpServer.Port = *** SmtpServer.Host = "smtp.office365.com" SmtpServer.EnableSsl = True mail = New MailMessage() mail.From = New MailAddress(OutlookID) mail.To.Add(TbxTo.Text) mail.Subject = TbxSubject.Text mail.Body = TbxBody.Text …

Software Development vb.net
Member Avatar for PM312
0
466
Member Avatar for KenSquare

I worked on a program a few years ago that takes data from a series of text files and loads an Access database. I added to the code from a program started by someone else, so I did not write the imports and declarations. They used an ADODB.recordset, addnew and …

Software Development microsoft-access sql vb.net
Member Avatar for KenSquare
0
294
Member Avatar for KennieA

Please I am a beginner to Visual Basic can anyone you help with this coding: Write a program that plays “guess the number” as follows: Your program chooses the number to be guessed by selecting an Integer at random in the range 1–1000. The program then displays the following text …

Software Development vb.net visual-basic
Member Avatar for Reverend Jim
0
517
Member Avatar for Satyam_1

I have developed an application in vb.net with MS access. In a form I have a Datagridview and I retrieve the data by databindingsource. I am copying the data from datagridview to textbox and then to another table in database. I want- after being copied the color of selected row …

Software Development vb.net
Member Avatar for Satyam_1
0
4K
Member Avatar for JOSheaIV

Okay so this is for those who do or have developed for a living. Long story short, we had a meeting today where we finally set up standards for writing our code. Most of them I was sadly the blacksheep and lost my arguments (they mostly came from the one …

Software Development
Member Avatar for JOSheaIV
0
149
Member Avatar for RikTelner

Lately I've been playing around with Unity3D. The one fun thing was, you were able to execute command from another file by using. `GetComponent()`. What you were able to do is, for example set users speed, even though script wasn't attached to player, so you technically were able to execute …

Software Development oop
Member Avatar for djjeavons
0
165
Member Avatar for Lacrecen

hello!~ i have a search button on my form and i need to search all the information inside the "information" table. i have 10 fields. what i've code is: adoInfo.RecordSource = "select * from information where name+age+score+birthdate+gender+civilstatus+citizenship+contactnumber+address+email like '%" & txtSearch.Text & "%'" adoInfo.Refresh If adoInfo.Recordset.RecordCount = 0 Then MsgBox …

Software Development visual-basic
Member Avatar for slavica.k
0
206
Member Avatar for manalibhadula

Hi I am trying to connect to a server, to transfer a file. I have added remote to the known host file of source server and generated public key. From terminal i am able to login to remote server without password, but here through java , i am getting below …

Software Development java session
Member Avatar for manalibhadula
0
298
Member Avatar for cambalinho

when the form is activated: case WM_ACTIVATE: { if (wParam==WA_INACTIVE) { SetWindowText(inst->hwnd,"unactivated"); FormActivated = NULL; } else { SetWindowText(inst->hwnd,"activated"); FormActivated = inst->hwnd; } return 0; } break; when i create the timer: case WM_CREATE: { if(WindowMain == NULL || WindowMain ==GetDesktopWindow()) { WindowMain = HandleWindow; } SetTimer(inst->hwnd,JoystickTimer,150,NULL); SetTimer(inst->hwnd,KeyBoardTimer,150,NULL); SendMessage((HWND)lParam , …

Software Development c++
Member Avatar for cambalinho
0
146
Member Avatar for Joemeister

Hi guys, I Googled this till the end and can't find a solution to this. What I want to do is the following - I have Runners with attributes like their Name, ID, Position and Time. All those are added for each runner in a listbox, seperated by commas. Like …

Software Development
Member Avatar for djjeavons
0
374
Member Avatar for Trevor_5

trying to get the maximum location in my matrix of 4 columns and 3 rows. can anyone help point me in the right direction import java.util.*; public class Program3{ public static void main(String[] args){ double [][] m = createArray(); double [] colsum= new double [m[0].length]; for(int i=0;i<m[0].length;i++) colsum[i]= sum(m,i); printResult(m, …

Software Development java
Member Avatar for stultuske
0
204
Member Avatar for Huseyin_1

Hi programmers, i need to have a code to produce a round robin algorithm. Can you help me?? The requirements are that it must have: A menu system with the options (1 input data manually-if option 1 is selected a)to read data from file, b)to enter data by hand, 2-automatic …

Software Development algorithm c linked-list queue
Member Avatar for somjit{}
0
282
Member Avatar for Jazmine_1

Please help me I'm getting frustrated. #include <iostream> #include "unorderedArrayListType.h" using namespace std; int main() { int intList = new intList(8); int number; cout << "Enter 8 Integers: "; for (int count = 0; count < 8; count++) { cin >> number; intList.insertEnd(number); } cout << endl; cout << "Int …

Software Development c++
Member Avatar for tinstaafl
0
202
Member Avatar for nightcrew

[QUOTE]Assume you have a int variable n that has already been declared and initialized. Its value is the number of integers that need to be read in from standard input and printed out in sorted (ascending) order, each on a line by itself. Furthermore, there are no duplicates in the …

Software Development c++
Member Avatar for omgerg
0
3K
Member Avatar for Mahbeezzy

How do i write a program that computes the sum of all even numbers in a range forexample between 1 and 100

Software Development c++
Member Avatar for TObannion
0
192
Member Avatar for ZZMike

I'm new to Python, but have a long background in Perl, Ksh &c, C, and others. """One of the different things about Python is the import statement. How do you tell where a function or class name should be imported from? Some are obvious, like sys and math, but others …

Software Development perl python
Member Avatar for ZZMike
0
154
Member Avatar for Andrae

I'm working on a program to log the work i do as well as email the monthly log. The problem i'm having is that every time i try to test out the smtp i get an error ` Traceback (most recent call last): File "C:/Users/palmer_a/Documents/App/testy.py", line 5, in <module> import …

Software Development python tkinter
Member Avatar for Andrae
0
261
Member Avatar for Niloofar24

Hello. I have a list: mylist = [2,4,4] How can i take number 244 out from the list? Something like: number = 244 Here 244 is integer.

Software Development python
Member Avatar for vegaseat
0
299
Member Avatar for Joemeister

Hi all, I'm trying to access a list in a class made in another class and display it in a listbox but its not working. I most probably have to make a small change to be able to get it to work. So please check in the code if you …

Software Development oop
Member Avatar for djjeavons
0
5K
Member Avatar for LakiCG

I have tried to write basic calculator code which also calculate surface area of the circle. I created classes needed for this task but struggle with Main method defining. Can someone help me to complete this coding? class Calculator { private Double _num1; private Double _num2; public Double PI { …

Software Development
Member Avatar for djjeavons
0
391
Member Avatar for Joemeister

Hi everyone, I want to know if its possible to do the following: I have 2 users and 2 forms. When user A (Admin) logs in on the Log In form, the Main Form appears with ALL its buttons enabled (For editing purposes). BUT when user B (Normal user) logs …

Software Development
Member Avatar for Joemeister
0
180
Member Avatar for Amenda.St

I'm new with java programming so I'm sorry if my question is a lazy one. I'm working on a project that consists on collecting job offers from the web. So as a first step, I want to extract data (job offer data) from a specific webpage. So I want to …

Software Development api java
Member Avatar for peter_budo
0
255
Member Avatar for MustafaScript

I started to learn python today by myself using this course: https://www.youtube.com/watch?v=bX3jvD7XFPs&list=PLB2BE3D6CA77BB8F7 Is that a good start? which book for beginners do you recommend ? *the problem with that course is that i found a lots of things in that code i do not understand i need a book which …

Software Development python
Member Avatar for fonzali
0
417
Member Avatar for VengefulToast

Hi fellow members, I have wrote two abstract classes, with the second inheriting from the first. However, I receive this error when I try to compile: "error C2143: syntax error : missing ',' before '<'." Will somebody help me out? Thanks! template <class DataType> class AbstactArrayClass { friend ostream& operator …

Software Development c++ oop
Member Avatar for mike_2000_17
0
291
Member Avatar for PulsarScript

Hi this is my program,supposed to output all methods ,based on "square" input and based on"circle" output case circle.But in any of the scenario only one function gets executed,What did i missed? using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; delegate int OperationDelegate(int a); namespace DelegationLAB { public …

Software Development
Member Avatar for tinstaafl
0
152
Member Avatar for Niloofar24

Hello again. How can i limit my list indexes? I want my list to take only 3 indexes for example.

Software Development python
Member Avatar for Niloofar24
0
624
Member Avatar for Niloofar24

Hi, me again :) Look at this error please: File "./kivycal-1", line 103, in number_two self.check() TypeError: check() takes exactly 2 arguments (1 given) The error is pointing to here: def number_two(self, event): global numbers numbers.append(2) print numbers self.check() This is a part of a class in a .py file. …

Software Development python
Member Avatar for Niloofar24
0
312
Member Avatar for TObannion

Here is my encryption program. The decryption program is what is giving me some trouble. Here is the description of the first part: # encrypt.py - ENCODE MESSAGE AND WRITE TO FILE # # initialize a cipher list to store the numeric value of each character # input a string …

Software Development encryption python
Member Avatar for TObannion
0
377
Member Avatar for Niloofar24

Hello. mylist = [6, '/', 3, '+', 9, '+', 8, '+', 1, '/', 2] How can i delete that list indexes? I tried: def clear(self, event): global numbers for i in numbers: print i del numbers[i] But it didn't work: File "./kivycal", line 83, in clear del numbers[i] TypeError: list …

Software Development python
Member Avatar for Niloofar24
0
276
Member Avatar for Niloofar24

Hello. I have a list like this: mylist = [7, "+", 2, "+", 1] I want to take them out of the list inorder to run the operation and get the real result; something like this: result = 7 + 2 + 1 So the result variable will be set …

Software Development python
Member Avatar for Niloofar24
0
334
Member Avatar for SoftBa

Hi, I have part of code to read file and show content inside list box. I wonder if someone could help me to store data to access instead list box. I'm writing now on my cellphone and don't have source code right now, but just to see is there anyone …

Software Development vb.net
Member Avatar for djjeavons
0
381
Member Avatar for mryjyc

where sending data to the client but we cant receive the data why? code for client from Tkinter import * import random import tkSimpleDialog import socket import threading class Client(threading.Thread): def __init__(self): threading.Thread.__init__(self) self.root = Tk() self.root.geometry('700x350') self.txtName = Entry(self.root) self.txtName.pack() self.txtPass = Entry(self.root) self.txtPass.pack() self.btnReg = Button(self.root, command = …

Software Development python tkinter
Member Avatar for iamthwee
0
186
Member Avatar for lithium112

Hello, I am trying to query an xml table. Here's the basic structure: <Table> <GroupPermissions> <Group GroupName="Name"> <ModuleRestricitons> <Module1> <Button1 value="False" /> </Module1> </ModuleRestrictions> </Group> </GroupPermissions> </Table> The logic I am tyring to perform is this: Where GroupName="Name" set button 1 value="True". There are many other groups, so I need …

Software Development xml
Member Avatar for lithium112
0
449
Member Avatar for Shane-dev

Can anyone help me? I have created a dictionary with the contents of a plist(data.plist) file but now I cannot figure out how to search and display the contents. I have searched online for days and cannot get a resolution. Most tutorials show a pre-defined array being used but if …

Software Development ide ios objective-c
Member Avatar for Shane-dev
0
395
Member Avatar for dandrews517

Hi all, I'm beginner developer and I want to develop a software telephone in .NET. I prefer C#. After some googling, I started to code in C# using the prewritten VoIP components of [Ozeki's VoIP SIP SDK](http://www.voip-sip-sdk.com). Now I have a simple softphone that is able to make and receive …

Software Development asp.net audio c# video
Member Avatar for theophil1901
0
672
Member Avatar for DS9596

Max and min come out wrong, they go to 0's when it outputs ? How do I fix, any solutions?? #include <iostream> #include <iomanip> #include <string> using namespace std; int main() { int x, y, z; int total; float average; //Read data into x, y, z void ReadData(int & x, …

Software Development c++
Member Avatar for necrovore
0
1K
Member Avatar for OMER AHMED

Dear all is thr any code or any way to connect my vb.net project's textbox with my website textbox. something like if me.textbox1.text=www.mywebsite.com.textbox1.text then bla bla bla end if

Software Development vb.net
Member Avatar for djjeavons
0
154
Member Avatar for skill11

how i can write java programme like this out put Enter the number of minutes:*1000000000* 1000000000 minutes is approximately 1902 years and 214 days

Software Development java
Member Avatar for JamesCherrill
0
121
Member Avatar for murali2489

Hi All, I have an online screen in which a form filed is filled with Numeric Characters .. if the entered four digits are not numeric, it will throw an alert message saying "**Only numerics allowed**". Now the new requirement is it should accept alphanumeric characeters instead of Numeric Characters. …

Software Development java
Member Avatar for djjeavons
0
176
Member Avatar for altjen

Hello forum I have a question, is there any way how to make a software on vb which after uploading a pic into the software or clicking a button. it uploads the pic somewhere and get the link of the photo. and also would be great if could be able …

Software Development vb.net
Member Avatar for OMER AHMED
0
112
Member Avatar for DS9596

I did it like this and it somewhat works but I have problem with the middle name such as Barrack Hussein Obama. How do I make it so it ignores the middle name and just gives me the last name??? #include <iostream> #include <iomanip> #include <string> using namespace std; int …

Software Development c++
Member Avatar for Moschops
0
174
Member Avatar for Farhanalee

Modify the previous program to read in a list of floating-point values. The end of the input is indicated by the user entering a sentinel value -999. The program will display the following: the average of the values, the largest of the values, The smallest of the values, the range, …

Software Development java
Member Avatar for stultuske
0
140
Member Avatar for Solution Hall

Hi ! I am working on a project in VB.NET 2010. I have to send email using outlook on runtime. The email body should be consisted of four portions ..... i. Header Text which will be fetched from a string variable. ii. Main Message which will be in a table …

Software Development email vb.net
Member Avatar for OMER AHMED
0
182
Member Avatar for M.I.Sahil

AOA, I m using vb6 with Access 2010 (DAO recordset) and Crystal Reports 9.22 I have developed a projet in vb6 it works fine at desing time but when i Install it (i mean after Package and deployment) and run the projet everything works fine but when i run reports …

Software Development visual-basic
Member Avatar for M.I.Sahil
0
2K
Member Avatar for Hidayat_1

Every programming language provides different features to make coding task easy. One of the main objectives is to keep things simple as possible. You have studied C++ in this course and have learnt many different concepts e.g. input/output, if-else statements, loops, arrays, functions etc. Looping constructs are needed when a …

Software Development c++ programming-construct
Member Avatar for deceptikon
0
167
Member Avatar for JOSheaIV

Hello everyone, So today I wrote a small little application that reads in the bytes from a SerialPort object. While this worked successfully, it was completely local. The device I was reading from was plugged into my machine. Now, again while that worked, I need to use the same logic …

Software Development
Member Avatar for JOSheaIV
0
152

The End.