132,729 Archived Topics
Remove Filter ![]() | |
Hello DaniWeb Software Developers :D I have a problem which exceed my programing capabilities and i need your help! Problem: I am somewhat new to c++ and i have been making some useful console applications in windows GUI visual Express. I thought i would give building in Linux a try … | |
Greetings to you friends)) Advice please - how to get integer value from the console? I did so, but nothing good can come out - [CODE] short int n = 0; n = (int)getchar();[/CODE] thank you in advance for your reply )) Software Development c | |
Hi all! I have a very strange problem. I am making a Win32 program, using Visual C++ professional 2010. Everything works exactly as it should, until I want a MessageBox to appear. It appears, but I cant click any buttons. I also can't access my main API, so I can't … Software Development api c++ windows-api | |
Previously I used to work in java programming and now I got to switch to Python web programming. In java, to develop a web project and run the project, we use jboss server to deploy application, run the server (run.bat), and run the project. But in python I think the … Software Development python | |
Hello, I have a project to find a monotone curve as it in the figure 4 in this link: [URL="http://www.cim.mcgill.ca/~stephane/cs507/Project.html"]http://www.cim.mcgill.ca/~stephane/cs507/Project.html[/URL] and after I had calculated the values which must be calculated (figure5), in order to get the monotone curve . I have thought to use the Breadth-First serch Algorithm [URL="http://en.wikipedia.org/wiki/Breadth-first_search"]http://en.wikipedia.org/wiki/Breadth-first_search[/URL]for … | |
write a program in C++ that computes the minimal and the maximal value of function f(x,y) obtained on an integer point in a given rectangle [a, b] x [c, d]. Your program should prompt the user to input numerical values of a, b, c and d, as floating point numbers, … Software Development c++ | |
Hi everyone, i just want to know about "time.h" or "ctime"... I browsed through many sites, but I couldn't understand anything.... I need some help... from the basics in "time.h" or "ctime"... From declaring a time variable and initialising a date to a time variable, to the end... Please help … Software Development c++ | |
Hi. I'm new to xml. This is my sample codes. [CODE]<!-- library1.xml --> <?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="library.xsl"?> <lib> <book> <name>Modern Operating System</name> <author>Andrew S. Tanenbaum</author> <edition>3rd Edition</edition> <price>1500</price> <ISBN>978-81-203-3904-1</ISBN> </book> <book> <name>PHP and MySQL Web Development</name> <author>Luke Welling and Laura Thomson</author> <edition>4th Edition</edition> <price>1200</price> <ISBN>672-32672-8</ISBN> </book> <book> <name>Rapid … Software Development operating-system xml | |
Hey guys! I need to use quotes inside a string variable... but I don't know how. If I simply put double quotes at the start and at the end, the program interprets it as a closed interval, like if every quote is a string. What can I do? I've searched … Software Development vb.net | |
Greetings kind shrew! So I'm needing to add a text resource to a PE executable file for Windows. However I'm unsure on how to do such. I did find a module called 'pefile' but this was of no help as it's functions did not include adding resources to files. I … Software Development python | |
I am starting a butterfly program and having an issue and really just barely have it started and would like to get some help\feedback on how to do this. The following is the instructions and I will make a second post on what code I have so far... The butterfly … Software Development vb.net ![]() | |
Hi guys )) Please tell me - how to check that a variable is initialized ? Thanks in advance ) Software Development | |
I was wondering if anyone knew of a way to scan for key presses in Python. It doesn't need to detect WHAT key is being pressed, just that one is being pressed. Also it needs to work with the console. Software Development python | |
Hi I was reading the thread [URL="http://www.daniweb.com/forums/thread12326.html"]http://www.daniweb.com/forums/thread12326.html[/URL] which is about getting user input from a user in python. So I thought I would write something to tst it since I haven't used python in a while so I wrote a basic program to calculate netpay. [CODE]hours = raw_input("Enter Hours Worked: … Software Development python | |
I wrote a GUI tool that will display stats and refresh the stats when a refresh button is pushed. Now I would like to add a feature for the stats to auto refresh every five minutes. Is it possible to have the UI updated without binding an event handler? Thanks … | |
Hi, I want to create a text file with the name as SYSTEM DATE... for example---28/04/2008:9:11:50.txt The File name should be allocated dynamically. Can you provide the c code for this? Plese help me. Software Development c | |
please can someone help me to figure out the solution to my problem that the reports i used crystal report xi to create do not display in my vb6 application. however the reports i used the crystal report 8.5 to create do show in the same vb6 application. please help. … Software Development visual-basic | |
I need help in file handling. The problem is... In a text file.. consists of (5) five student load with their...(subject,description,units,teacher,room,time, and day).. I did the first student load.. but I could hardly proceed on the next student loads.. I easily did this in Java.. but on C++ i could … Software Development c++ file-system | |
Alright.. Seems I wasn't able to fully explain my problem.. Below is the full error printout. I tried debugging it and I still don't know why guessed[index] = (letter) gives me an error. I don't want to use the append method because it will put the new letter at the … Software Development python | |
[CODE] button.setToolTipText("Hello, World"); frame.add(button, BorderLayout.NORTH);[/CODE] This part is the main of my program..the main ok..but that class above somethind wrong please help me figured it out...... [CODE]public class ComponentDemo{ public static void main(String [] args){ JFrameWithManyComponents frame= new JFrameWithManyComponents(); } }[/CODE] | |
Dear Freinds I have a few question Regarding VB.NET 1) I have a datgridview and i want when user input the datagrid 3rd cell the 4 cell of datagrid readonly = false means user not input value in 4th cell 2)i want a autonumber generate in textbox is alphanumeric like … Software Development vb.net | |
hello can you help me please how can input text with space.. sample: Enter your full name: jemz gimz Enter your company name: company one jemz gimz company one [CODE] import java.util.*; public class SampleNexLine { public static void main(String []args) { Scanner console = new Scanner(System.in); String name,cname; System.out.print("Eter … Software Development java | |
Dear all, I want to connect the my mysql database in the below java program.But i could not able to connect the myslq database. i have downloaded the below jar file and put the jar file in the below path. Jar File: ========= mysql-connector-java-5.0.8-bin.jar Path: ==== /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/lib mysql version ============= … | |
Hi, I have a question regarding Memory Leak. The below mentioned JSP code can generate any Out of memory exception [CODE] String str = tempStrView.getSTR(); String newStr = str+"'"; String rpcStr = " "; String convStr = newStr.replaceAll("'",rpcStr); [/CODE] Thanks in advance, Vinith Software Development java | |
Hi All.. I'm writting my own replacements for the memory allocation/deallocation routines malloc() and free().In that file i'm using some variable names.. So after getting the header file, how can i use those previous variable names which i declared in mymalloc programme in any programme. In my main programme i … Software Development c | |
Does Anyone know how to add context menu in win explorer on [B]files[/B]? And how do they work? Do they call a command and put the full filename after the command as arguments? Software Development python | |
Hi y'all, I'm new to C and to this community so kindly bear with me. I need to open a txt file using C(only).The thing is I'm able to open it if it is directly inside a drive partition(D:\), but if it is inside a folder then its not opening. … Software Development c | |
hello I am developing a java application, in my application i have to move data with large size from one object to another and i don't know the perfect way to do it so i can save memory and increase the processing speed because performance is very important in my … Software Development java | |
Hi All I was going through a code and came across something like --> [CODE] TC_A &tc_a=*(TC_A *)p; [/CODE] Now TC_A is a derived class of another Class 'X' of which p is an instance. Does this mean that a new class instance of TC_A is invoked and contents of … Software Development c++ | |
Hi, Can anyone tell me how to concatenate two strings in NetBeans using Cygwin and also what is the right header file to be included? Software Development c | |
Hi. What is the fastest way to create a file of a specific size (preferably without writing in it) on a nonNTFS partition..? On a NTFS I use this: [code]var tf: TFileStream; begin .... tf := TFileStream.Create(FileName, fmCreate or fmShareExclusive); tf.Size := [desired value]; tf.Free;[/code] It's very fast. But, for … Software Development pascal | |
I can't understand the following statement [QUOTE]The Hotspot VM now implements Thread.yield() using the Windows SwitchToThread() API call. This call makes the current thread give up its current timeslice, but not its entire quantum.[/QUOTE] given at [URL="http://www.javamex.com/tutorials/threads/yield.shtml"]http://www.javamex.com/tutorials/threads/yield.shtml[/URL] I understand that after a thread yields, other threads get a chance to … Software Development api java queue windows-api | |
| |
I have been able to output a palindrome but now it does so even if it is not a palindrome. Thanks you in advance for any help. ;) [CODE]import java.util.*; public class ec2 { static Scanner kb = new Scanner(System.in); public static void main(String[] args) { String word = " … Software Development java | |
I would like to know, because I noticed how slow it can be when called over and over. How would I go about doing [CODE]xor ah,ah int 0x16[/CODE] Without the interrupt? [URL="http://www.youtube.com/watch?v=ZKFY0OivbwE"]Here's a link to my video.. can see small delays keys are pressed quickly or held in near the … Software Development assembly | |
Hi, Wondering how I would be able to implement an efficient fuzzy match algorithm in either c# or sql. I was using levenshtein's distance for my test data (~10 records) but once I started using a larger data set (~800 records), I realized this may not be the best way … Software Development algorithm | |
Would I be telling the truth if I was to say that a [I][B]type [/B][/I]in C# is defined by a [B][I]class[/I][/B]. An example of this is the String class. And with this class, I can make [I][B]instances [/B][/I]of it, for example, a simple variable declaration: [CODE]string myName = "Usmaan";[/CODE] The … Software Development | |
Hi there, I have to make a function valid_dice_selection that helps another function select_dice to check the length of a string and besides that it has to check that the characters in that string only include 'x', 'X' and '-'. Ive gotten so far: Im not sure how to check … Software Development c | |
Can someone, unambiguously and without too much technicality explain to me why would one want to have a Constructor in their program. I understand what a Constructor is, and that it can be overloaded and it's name is the same as the class and it can't have a return type … Software Development | |
Write a C++ program that reads N positive integer numbers from the keyboard, calculates and displays the following information. a. Count of all numbers which are greater than 1 and less than 11. If no such numbers are entered, 0 for the count value should be displayed. b. Count of … Software Development c++ | |
Hi Everyone, I have a problem displaying a dicom image properly on PIL(Python Image Library) I have used the code in the following link [URL="http://code.google.com/p/pydicom/wiki/ViewingImages"]http://code.google.com/p/pydicom/wiki/ViewingImages[/URL] but it shows some blur thing and not shows the correct image when i open the same image in dicombrowser it displays clear image but … Software Development python | |
Hello... I want to draw three straight lines on a form. Can you tell me if the following code is correct: [CODE]Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint Dim Line1 As System.Drawing.Graphics Dim PenLine As New System.Drawing.Pen(System.Drawing.Color.Black) Line1 = Me.CreateGraphics Line1.DrawLine(PenLine, 0, 129, 529, 129) … Software Development vb.net | |
Okay so I am writting a program that is designed to make scheduling easier at the job I work at right now. Well part of the program is that there is a DB of employees and data that can be edited from the program (pretty straight forward like any program … Software Development visual-studio | |
I'm designing an exception class, but ran into a case where a copy is being made which I don't want (plus, I don't understand why). Consider the following cases: [code=cpp] // 1 Exception e; throw e; // Copy: yes //2 throw Exception(); // Copy: no //3 throw Exception() << "extra … Software Development c++ | |
Hello, im a bit confused about ASM, i just have a code, i want to add inside it some new instruction, but there isnt enough space for it.... how can i jump to the end of the app and execute it and jump back? is it possible? i got: [CODE]000001: … Software Development assembly | |
Hey. I have problem. How i can change options in form2 from form1? [CODE]public: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) { this->Form1::Show(); video^ video2 = gcnew video(); video2->Show(); } public: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { video^ video2 = gcnew video(); video2->axWindowsMediaPlayer2->URL=(listBox1->SelectedItem->ToString()); video2->axWindowsMediaPlayer2->Ctlcontrols->play(); }[/CODE] I know it's bad, becouse i open … Software Development c++ | |
So my problem is that, i have a text area with 3 rows. Its a part of a chat application which receives text from a user. I want to send the text and clear the text area as soon as the user presses the enter key. Now the problem is … Software Development java mathematics | |
im curious is there a difference between const float f = 1.5F; vs. const float f = 1.5; is there a difference?? Software Development c++ | |
hi frndzz..... i was doing some coding in c++ and realise the importance of understanding the basics of data structures.......so i thought of working on it... but,i dont know any good book for it..... it 'll be good if i can find links for some good ebooks ........ thanx in … Software Development c++ | |
Hi, I've started to learn about threads in java. I'm trying to make this simple animation of a rectangle. Where am I going wrong? I was under the impression that if a class implements Runnable, when it is executed, it looks for the start method, which in turn starts the … Software Development java java-swing |
The End.