132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jez9

Hi again, i'm trying to put a background image in my button[i declare the button] , My database[ms access] , tbldishlist - name[text , Primary key], pic [ole object] when the form is loading, the button's background is according to the name of the item. here's my example: Dim btn …

Software Development image vb.net
Member Avatar for Reverend Jim
0
704
Member Avatar for differentiation

The code that has been attatched (i couldnt post it for some reason) produces the error message: Traceback (most recent call last): File "filename", line 36, in <module> for i in range(len(bytesmessage)/7): TypeError: 'float' object cannot be interpreted as an integer In this line for i in range(len(bytesmessage)/7): The variable …

Software Development python
Member Avatar for HiHe
0
251
Member Avatar for Decode098

I'm currently making a program that saves the longest and shortest words in a sentence inside a list but i cant seem to append multiple words in a list as well as enter multiple sentence and only stop after a specific text or number is inputed. Python gui still confuses …

Software Development gui python
Member Avatar for HiHe
0
303
Member Avatar for Niloofar24

Hi everybody. I'm using python to create sql database. I created a test.db file and then made a table on it with the name "fims" and inserted some data on it.... title text, year text and director text. And then set values for them. Now when i type "sqlite3 test.db" …

Software Development python shell-scripting sql
Member Avatar for HiHe
0
313
Member Avatar for Niloofar24

Hello. I have used ScrolledText in my code, the scroll bar that appears is attached to the frame and although it scrolls the text box contents, I want that it was attached to the text widget itself. What can i do?

Software Development python tkinter
Member Avatar for HiHe
0
349
Member Avatar for andrew mendonca

I am trying to write this recursive function: void printFactors(int n) For this function, I need to print prime factors in ascending order. e.g. for n = 24 the output would be 2 2 2 3. I cannot use loops and static variables for this function. Here is my solution: …

Software Development c++
Member Avatar for tinstaafl
0
219
Member Avatar for compulove

I wanted to know how to send all the entered user information from the textboxes on my form to one text file. I was thinking I need to say MessageBox.Show("each textbox), but I don't think that is right. All of this is is login information plus other user data so …

Software Development
Member Avatar for ddanbe
0
211
Member Avatar for parag.bhuyan.75

i am final year student i am doing my project on ns-2.34..i want to intergrate new modules in existing protocl. i have desgined my new module , but i cannot execute it seperately. please help me..

Software Development c++
Member Avatar for JasonHippy
0
281
Member Avatar for divinity02

hey all I have a program to write and I need to use the JOptionPane dialog box to use JOptionPane to say Yes_No_Option, all I would like to know what is the code to be used , how does it work and will it work in a program.

Software Development java
Member Avatar for divinity02
0
193
Member Avatar for Afi83

Hello, I have an one dimension numpy array with 1 to 5 numbers. I need to map these values to corresponding numbers between 0.76 to 1.24 with 0.12 interval. Then the problem is the find exact values in one array and fill the exact index in the second array. for …

Software Development python
Member Avatar for Gribouillis
0
601
Member Avatar for Nation

I have a JTable that a user can input data. I have an image that I would want to put at the top of my page when printed and also another image that I would want to work as footer. How do I print these on the same page including …

Software Development image java java-swing
Member Avatar for mKorbel
0
1K
Member Avatar for saharfatima

#include<iostream> #include<conio.h> #include<ctime> #include<cstdlib> #include<string> int score=0; using namespace std; void display(int &score) { switch(score) { case 98:score=28;cout<<"OPPSSSSS......snaked attacked you...now you are at "<<score<<endl;break; case 95:score=24;cout<<"OPPSSSSS......snaked attacked you...now you are at "<<score<<endl;break; case 92:score=51;cout<<"OPPSSSSS......snaked attacked you...now you are at "<<score<<endl;break; case 83:score=19;cout<<"OPPSSSSS......snaked attacked you...now you are at "<<score<<endl;break; case 73:score=1;cout<<"OPPSSSSS......snaked …

Software Development c++
Member Avatar for saharfatima
0
177
Member Avatar for cambalinho

how can i do the control autosize? i think in these way: 1 - get the text rect: RECT textrect; int a=DrawText (test->hDC,inst->strCaption.c_str(),-1,&textrect,DT_CALCRECT); (the a isn't zero) 2 - testing the rectangle with image size: if(textrect.bottom<inst->imgtest.height()) inst->intHeight=inst->imgtest.height(); if(textrect.right<inst->imgtest.width()) inst->intWidth=inst->imgtest.width(); 3 - change the control size: SetWindowPos(inst->hwnd, 0, 0, 0, inst->intWidth, …

Software Development c++
Member Avatar for cambalinho
0
203
Member Avatar for msajid.sarwar.7_1

give me some information about classes

Software Development c++
Member Avatar for vieru.dorincristian
0
91
Member Avatar for guru.charan.77377

This is an project title for a c++ project given by my collage, Plz can anyone guide me with some good reference books/journals for data visualization and word image identification using image processing so i can begin my project with some kind of background study. Any help is appreciated

Software Development c++ image
Member Avatar for vieru.dorincristian
0
132
Member Avatar for Mr.M

Hi Dw I have a multi-threaded server that connects thousands of clients. The clients sends in data that the server must write to a text file. As there are a thousands of clients sending in data the server has about 60 texts files but the data sent by the client …

Software Development file-system java
Member Avatar for JamesCherrill
0
11K
Member Avatar for cutedipti

Hello all, I am implementing linked list programs in C. And for that i want to know more about Self Referential Structure in C. If anyone knows more detail information about it then please tell me. I am having one example here which helps you to understand more clearly what …

Software Development c linked-list
Member Avatar for mungara
0
1K
Member Avatar for uws101

Why the following printf of the buffer in the readWav() causes segmentation fault just after printing the first row to the screen? Are there any issues with the use of pointer in printf("%d\t %f\n", i, *buffer[i]);? #include <stdio.h> #include "sndfile.h" int readWav(const char *const fname, long *numFrames, int *sRate, float …

Software Development c
Member Avatar for rubberman
0
141
Member Avatar for choconom

Hi, I need to use getopt for a program called like myprogram.c file1 file2 file3 -t. Now I've read some examples about how to use switch cases for options with hypens (-t). But I don't get how to write this for my file1, file2, and file3 (they are arguments that …

Software Development c
Member Avatar for rubberman
0
180
Member Avatar for TObannion

So here is another assignment I am working on. I can't get to my schools computer lab due to family, job, etc. Here is the assignment: Structs file name: lab2.cpp 1. (3 points) Define a struct, named FullName, that contains the following fields: lastname - a string firstname - a …

Software Development c c# c++ data-structure
Member Avatar for rubberman
0
364
Member Avatar for andrew mendonca

I'm trying to write the function: int sum(int x, int y) For this function, I need to return sum of m and n using only increment, decrement and unary -. m and n can be any integers e.g. if m is 4 and n is -5, the return value would …

Software Development c++
Member Avatar for rubberman
0
143
Member Avatar for hurry.barket

i need ideas for my mcs 1st semester project in c coding

Software Development c++
Member Avatar for rubberman
0
215
Member Avatar for Ashish_16

What is the output for the code - void main() [ int i=4,x; x=++i_+_++i_+_++i; printf("%d",x); ]

Software Development c
Member Avatar for rubberman
0
105
Member Avatar for bonzo2008

I will not that the code below shall count up or down '********************************* Sumtax For lngIndex2 = 1 To ListView1.ListItems.Count lngTot2 = lngTot2 + ListView1.ListItems(lngIndex2).SubItems(5) Next Text10.Text = Format(lngTot2, "###0.00") if I have say 83.67 in a listview then in the text10.text shall be the same amount no differens text10.text …

Software Development listview visual-basic
Member Avatar for bonzo2008
0
159
Member Avatar for cambalinho

i'm owner draw some controls. here what i use for a button: case WM_DRAWITEM: { DRAWITEMSTRUCT *test=(DRAWITEMSTRUCT*) lParam; HIMAGELIST imlIcon=ImageList_Create(inst->imgtest.width(),inst->imgtest.height(),ILC_COLOR,1,1); ImageList_Add(imlIcon,inst->imgtest,NULL); HTHEME hTheme = OpenThemeData(inst->hwnd, L"BUTTON"); //fill the background with button face color FillRect(test->hDC, &test->rcItem,(HBRUSH) GetSysColor(COLOR_BTNFACE)); if ( test->itemState & ODS_SELECTED) // If it is pressed { DrawEdge(test->hDC,&test->rcItem,EDGE_SUNKEN,BF_RECT); // Draw …

Software Development c++
Member Avatar for cambalinho
0
1K
Member Avatar for chrjs

I am doing this assignment for my computer science course, and I have to write a function that determines if 'x' can fit into an n-bit, two's complement integer. I am not allowed to use any control statements or operators other than the [ICODE]! ~ & ^ | + << …

Software Development c
Member Avatar for mbelenske
0
3K
Member Avatar for petercat

The reason the label "disappears" may be due to the use of an absolute label location X and Y values after the Picturebox is made the parent. Try this: PictureBox1.SendToBack() 'Make labels transparent and set locations With Label3 .Text = "A" '.Location = New Point(62, 39) .Location = New Point(.Location.X …

Software Development vb.net
Member Avatar for Santanu.Das
0
484
Member Avatar for andrew mendonca

I am trying to create a recursive function: double fifthRoot(double x, double maxError) In this function, I have to return y such that y^5 will be within maxError of x. Assume x > 0. Also assume maxError is big enough to prevent problems due to rounding. In order to make …

Software Development c++
Member Avatar for sfuo
0
408
Member Avatar for cambalinho

i have 1 class Timer. the class works fine, but when the windows loses the focus, the timer stops... why these happens?

Software Development c++
Member Avatar for cambalinho
0
292
Member Avatar for Niloofar24

Hello friends :) I'm almost familiar with Tkinter and Kivy frameworks, but i'm looking for other python GUI frameworks, soething better than Tkinter. Kivy is also great but i need to watch more tutorial videos and i'm not able to do that right now. Can you introduce a better and …

Software Development gui python tkinter
Member Avatar for vegaseat
0
844
Member Avatar for Smalls

The topic is the question, is there a way to access embedded resources folder by name dynamically via string? The closest I think I've gotten is the following code which has error "Cannot implicitly convert type 'System.Collections.Generic.IEnumerable<string>' to 'string'", if i try to get the only folder it should return …

Software Development assembly microsoft-access
Member Avatar for ddanbe
0
298
Member Avatar for python3

Hello, As Homework, we had to do the most boring thing known to Mankind, Mathletics. It is so easy. Mathletics links to live Mathletics where you have to answer as many Math questions as possible in 60 seconds. Later on, I found that Mathletics could be used as a challenge. …

Software Development mathematics python
Member Avatar for amin2005
0
354
Member Avatar for mahmoud.beltagy95

what if I wanted the user to enter his birth month and I don't know whether the user input is integer or string for example july or 7 what should I do ???

Software Development c++
Member Avatar for mahmoud.beltagy95
0
109
Member Avatar for PulsarScript

Hi All ,how do i round up this to 2 decimals: public override double GetPaymentAmount() { double paymentAmount = (WeeklySalary * 52 / 12); return paymentAmount; }

Software Development
Member Avatar for Smalls
0
171
Member Avatar for TObannion

So here is my assignment: File name: project1.cpp You work for the Jet Propulsion Laboratory. They want you to write a program that will take a two-dimensional array containing the digitized representation of a picture of the night sky and locate the stars on it. The array elements are integers …

Software Development c++
Member Avatar for TObannion
0
193
Member Avatar for Taz098

I'm trying to make an 'Install-To-Run' version of my Windows Forms Application through Visual Studio 2013 Express Edition(Couldn't afford another version..). However when I check my template list in 'project types' it doesn't show the 'other projects' list or any sort of list related to 'Setup and Deployment' at all. …

Software Development visual-studio
Member Avatar for pritaeas
0
115
Member Avatar for divinity02

trying for the longest while to get this program to run at least properly, havent finished entering all of the codes as, just testing each part of the statement before i add in the rest of the codes the program is not working properly dont know where I have gone …

Software Development java perl
Member Avatar for JamesCherrill
0
257
Member Avatar for huskeraider

**My goal:** search webapps folder to find all .war files and make sure a folder exists with the same name(indicating .war expansion) **My Code:** import os import stat file = open("hosts.txt","r") for servername in file: path = '\\\'+servername.strip()+'\\d$\\tomcat\\Servers\' server_name = servername.strip() for r,d,f in os.walk(path, topdown=False): for files in f: …

Software Development python
Member Avatar for Gribouillis
0
286
Member Avatar for Niloofar24

Hello everybody. I need a quick help. I have a problem with running my python file code. I use Linux. I had a file with the name "app3.py" file on the Desktop; then i removed ".py" from the end of the name of the file; so now i have "app3" …

Software Development file-system python
Member Avatar for Gribouillis
0
445
Member Avatar for Hasheeb

#include<conio.h> #include<iostream> #include<stdlib.h> using namespace std; class SStack { private: int *arr=NULL; int top=0; public: SStack(int size) { arr=new int[size]; } SStack() { arr=new int[5]; } void push(int x) { if(top>5) { cout<<"stack is full"; return; } arr[top++]=x; cout<<"successfully inserted:"<<x; } void pop() { if(top<0) { cout<<"stack is empty"; return; …

Software Development c++
Member Avatar for dbfud1988
0
2K
Member Avatar for kenea
Member Avatar for kenea

hi please help me with this. when I try to save it, it saved. but the problem, it is saving though it has the same record If idno.Text = "" Or proflname.Text = "" Or proffname.Text = "" Or _ profmi.Text = "" Or subcode.Text = "" Or teachuser.Text = …

Software Development vb.net
Member Avatar for Mr.M
0
314
Member Avatar for eliamck

As a begginner in C++ i'm having problems to use microsoft visual studio 2010. How do i go about it?

Software Development c++ microsoft visual-studio
Member Avatar for ddanbe
0
67
Member Avatar for Niloofar24

Hello. How can i set an image as a Tkinter window background? I mean the whole background of the window not a photo area.

Software Development image python tkinter
Member Avatar for HiHe
0
50K
Member Avatar for jez9

help please, i really need to solve this one. when the quantity of the product is increasing/decreasing, i want the Total Price to update/increase/decrease also, but its only remain working. the button is declare, so when i click the button , all of the info of that will be transfer/view …

Software Development listview vb.net
Member Avatar for jez9
0
109
Member Avatar for tentrabyte

Guys I need some help... This is my program... #include<iostream> using namespace std; int main() #include<iostream> using namespace std; int main() { int a=1; int b=5; cout<<"*"; cin>>a; while <a=>5>; { cout<<"*"; ++a } return 0; } { And this will be the output of my program. * ** *** …

Software Development c++
Member Avatar for dbfud1988
0
656
Member Avatar for jez9

ms access [tblorder - code[text], items[text], total[text]] code = lblcode [label] items= x.SubItems(1) [in listview] total = lbltotal [label] as of now i can only save 1 item in the field 'items' , but i want to save 2 or more items,how can i do that? For Each x As …

Software Development listview vb.net
Member Avatar for jez9
0
285
Member Avatar for bobtherobot

I'm writing a piece of code for a class, and part of it is to take an operation on integers and store it in a double (without any truncation). I'm trying to use the static_cast <double> (EXPRESSION GOES HERE); form, but it isn't working. When I output the new value, …

Software Development c++
Member Avatar for NathanOliver
0
266
Member Avatar for Mr.M

Hi DW I have create a client using VB.NET using Winsock 5.0 as a socket to communicate with the server which I did it in java. The problem is that for terminating the client first send a termination request to the server and the server grants the permit and the …

Software Development display vb.net
Member Avatar for Mr.M
0
220
Member Avatar for Ant695

Every time I try to compile this code I get the same error but it doesnt seem to make any sense. This is the code: public class Software Development { public static void main(String[]args) { System.out.println("Hello World"); System.out.println("2name"); System.out.println("name: \n"+name); System.out.println("\"name:\""+name); } } And this is the error: Software Development.java:1: …

Software Development java
Member Avatar for stultuske
0
131

The End.