64,152 Solved Topics
Remove Filter ![]() | |
I want to show some information to the user in a nonmodal form. Basically just like a message box (doesn't even need buttons) except nonmodal (and doesn't beep). I could probably create a form from scratch, but I would think this type of form already exists somewhere in .net?? | |
I am using VC++ 2008, and i am programing a little software to search for a folder and open it. My problem is i have no idea how to open a folder. Please help | |
Hi, I have a label on my form but when you type in the text it all stays on one line. So i set its max size to force it to tab the text but it only shows two lines. How do i set it to allow me to enter … | |
I'm a computer science major with a background in C++, not Java. My professor told the class that the Scanner class has a nextInt(), nextDouble(), nextFloat(), etc for every primative type. But whenever I try to use nextChar(), the compiler gives me an "undefined symbol" error. That means that there … | |
Hello, Thanks in advance for any help. I am running a fairly good-sized MPI-C++ code, and I am getting a frustratingly unreproducible segfault. I am also having trouble with gdb (I think because of my MPI implementation), but I think the problem may have something to do with the fact … | |
Is there a way to gather the HTTP header send from a server so that I can check if it is a code 200 or a code 404 and base the output from that. Thanks for the help EmcLinux | |
Hey! I`m a computer science student, I have this problem!: I don`t know which programming language I should learn! I`ve already know a little c & c++ but I want to learn something completely and I don`t know what to choose!But perhaps I can use a little help here Wink … | |
hi, i have 2 txtboxes n 1 label, a division if performed wid txtbox1 and txtbox2, then the result displayed in a label. How can i format the label to display it to 2 dp. my current code is as follows: [code] Public Class Form1 [INDENT][/INDENT]Private Sub btnExit_Click(ByVal sender As … | |
I had code: [code] Program.cs ---------- using System; class Exercise { static void Main(string[] args) { People.Person man = new People.Person("Hermine Sandt", "Male"); 1 HighSchool.Teacher staff = new HighSchool.Teacher("Vice Principal"); Console.WriteLine(); Console.WriteLine("Press any key to continue..."); Console.ReadKey(); } } Persons.cs ---------- using System; namespace People { public class Person { … | |
Which method can be used to set the values in combo box from within code? | |
im currently a college student and im studying c++ at the moment. i need to create a multi array for name and password (but it will be from user input) not to mention i cant write to this array until i confirm it doesn't already exist in this array. Im … | |
Hi, so i wrote a few of the programs on my own after all the help previosuly but i've got stuck in this one here. The point is the make the string alteast 'n' characters long by padding spaces to its right. [code=c++] #include <iostream> using namespace std; void padRight(char … | |
what would I use pointers for? I used to have a vague understanding of a pointer... like, *ptr is the value pointed to by the pointer, ptr is the address the pointer is pointing to, and &ptr is the address of the pointer itself? or something? the one example I … | |
So I'm working on a C++ program and part of it involves converting decimal numbers to hexadecimal. I have been using printf("%02X",number) to do this, but I'd like to print to a text file. Just wondering if anyone knew of a way to send formatted text to file rather than … | |
Please help me, I need to turn this in tomorrow. I need to do it so I can make my stick figure move using arrow keys. I've made everything, but I don't know how to implement the keys. Can someone please guide me? And give me sample code and where … | |
Hi, Could anyone give me some suggestion? How can I detect the button is pressed continuously? Actually, I use [ICODE]Command1_MouseDown[/ICODE], but it is not succeed. I would like to do the application continuously if the button is pressed. If the user release (mouse up), I will stop the application. How … | |
[CODE]namespace Empleados { class Empleados { private int edad; static private int numeroemp = 0; public Empleados(int edad) { this.edad = edad; Empleados.numeroemp ++; } public void mostrarInfo() { Console.WriteLine("el empleado tiene {0} años",edad ); Console.WriteLine("Numero de empleados creados {0} ", Empleados.obtenernumeEmpledos() ); } static void Main(string[] args) { int … | |
hi ive got this segment of code that im struggling with the code does what i want it to do in the sense that if i put in the filename of the file that i have created it works but for a random user the code will not produce the … | |
3. Using User Defined Functions do the following question: my_array = { 3, 61, -5, 38, -17, 21, 92, -64, 41, -6} Find the sum of odd and even numbers in the array !!please help me to answer this question!! | |
I have a PHP/MySQL app that when a user enters a description of there club that it reports back on a group page. When a user enters there information the line breaks are removed and all becomes one long string. Is there anyway that I can keep there line breaks? … | |
Getting the following error Error `'System.StringSplitOptions' does not contain a definition for 'RemoveEmptyEntires'` string[] lines = File.ReadAllLines(fileName); char[] delim = new char[1]; delim[0] = ' '; foreach (string line in lines) { if (line != string.Empty) { string[] words = line.Split(delim, StringSplitOptions.RemoveEmptyEntires); // here you've got all your words in … | |
have a very simple question: how can i write something into a .txt file? could write only few lines of code and got stuck. have no idea what to do next. can someone help? [CODE] #include <stdio.h> int main(){ FILE *textfile; textfile = fopen("test.txt", "w"); return 0; } [/CODE] | |
Hey guys, I'm getting this kinda vague error: Zeal\src\window.cpp|19|error: cannot declare member function `static unsigned int zeal::window::getWindowCount()' to have static linkage| With the following code (only what I think is needed, if you need more please do ask) window.h [code=cpp]namespace zeal { class window : public element { public: static … | |
Hello , I am developing an application in realtime and I need to update some values in an array. What is the best method to add a value to every position of an array? Thank you for your help. | |
Hai, Once again im here with a problem. Can u help me write a program to search a file in the project folder. I also want to use a progress bar to represent the search status. Can anyone help!!! Thank you!!! | |
I think I have 90+ percent of the coding right for this but I am having an issue with the program stopping after the "welcome to payroll program statement" I can't figure out what goes after while on the liine after the boolean stop line. Any help would be greatly … | |
hi I had a web site made in php. I need to collect visitor data ( ip address, visiting time) and store in it a database. I wrote the code like this [CODE]date_default_timezone_set('Asia/Calcutta'); $time= date('D,F j, Y, H:i:s A'); $ip=getenv("REMOTE_ADDR"); mysql_query("INSERT into visitordetails (ip,time) VALUES ('$ip','$time')") or die(mysql_error());[/CODE] and this … | |
Hi everyone, I am trying to read off the "System" Event Log of a remote system. I am getting the following error `"Cannot open log System on machine 10.50.212.129. Windows has not provided an error code"` when i try to access the Application log, my application encounters the same error … | |
i am trying out this code that i got from one of suns tutorials, it deals with echoing an input back to the command prompt. this is where i got the code [URL="http://java.sun.com/docs/books/tutorial/networking/sockets/readingWriting.html"]http://java.sun.com/docs/books/tutorial/networking/sockets/readingWriting.html[/URL] this is my code, and i am getting the message [COLOR="Green"]"Couldn't get I/O for the connection to: … | |
This problem comes up quite a bit for me. I'll have a project that I work on for a couple months (the point is that it is a large project with multiple classes, etc). As an example, say I made a program that draws a square. So I have this … | |
Hello My recursive file scan is not doing what I want it to do. I want it to be able to go through all roots (drives)... With no user intervention, so without including "C:\\" or "." as a string in the source, or without a TextIO.java class. [ICODE]import java.io.*; import … | |
I need help about a question FOLLOWİNG (please use the c++) Question is: 1-) You are given a set witl 10 elements. X: { 23, 13, 25, 43, 45, 26, 10, 2, 27, 44 } or you can choose any 10 elementsç it is not problem. 2-) You are asked … ![]() | |
Hi all, I have been trying to write and retrieve data from SQLite Database. So far I can make connection, cursor; but cannot get table populated(fails to execute SQL statement). Since I read somewhere that it is recommended to use ? instead of % then I tries it but I … | |
hi I am making a script to extract data from a table from a website using explode function and then insert the data into the database. I have stuck with foreach loop, this is how it looks: [CODE] $table_data = explode('<table cellspacing="1" cellpadding=1" width="90%" border="0" bgcolor="#EFEEEE">', $data); $end_table= explode("</table>", $table_data[1]); … | |
I want to incorporate a file browser into my windows app so users can select which file to copy. I am running vs2008. | |
hi there, is there a browse control in C# windows application form , if so , plz, how can I add it to my toolBox and how can I use it to allow the user to browse any file she wants, if not how can I implement the idea og … | |
Can anyone simplify this for me? I don't know if it is going to work I tried to adjust the code to fit on the page. Might have to delete the extra [ICODE]+\[/ICODE] [CODE=python]def main(): try: infile = open('text.txt','r') files = infile.readlines() lower,count,blank,dig = 0,0,0,0 #Counting uppercase for line in … | |
Hey guys, I'm creating this as an admin program for another program I've made. Basically all that happens at this point is show a bunch of buttons and the titles of the buttons are the computers that the using accounts from my MySQL database. This is just the panel, but … | |
program read from cin what the user wants to do ("add" a name to list) or ("lookup" a name). in add just add whatever was read in to the file. in lookup print out a line of text with the string that wa read in. hopefully that makes some sense … | |
I'm doing an assignment for class and we're suppose to write a program that pops up a window with YES/NO/CANCEL buttons and when the user pushes a button another window pops up displaying what button they clicked. I wrote up the code and it does work, but it takes several … | |
Hello, I have two tables, one with the main users details in and a users movement table which has an entry to everything they do. I want to pull out a list of all users which havent done a specific task, put only pull the results once. So for example … | |
Hello there, I am doing my 'budget control system', and I want to make substraction from the value i entered in a textbox (budget for the year), with the sum of all the value in the 8th column of the MS Flex Grid data (which is the money used). Can … | |
Hi I am trying to fire a javascript function from my .net radiobuttonlist but it does not fire. How do I fix this: [code=asp.net]protected void Page_Load(object sender, EventArgs e) { this.rbl_NumberType.Attributes.Add("OnSelectedIndexChanged", "return NumberTypeChanged();"); } ... function NumberTypeChanged() { alert("KJJK"); } ... <asp:RadioButtonList ID="rbl_NumberType" runat="server"> <asp:ListItem Value="0" Selected="True">Somnething1</asp:ListItem> <asp:ListItem Value="1">Somerthing2</asp:ListItem> </asp:RadioButtonList>[/code] … | |
How to initialize a const array with size defined in template before the constructor call?? [CODE=c++] template<int s> class something { public: const int array[s]; something(void) // uninitialized member `something<s>::array' with `const' type `const int[s]' { } }; [/CODE] razum | |
i am writing a code that will rotate the polygon but it seem as if it is not working any help? [code] #include<iostream> #include<Gl/glut.h> #include<cstdlib> using namespace std; GLfloat fPent = 0.0; // for rotating pentagon; GLfloat fSqr = 0.0; // for rotating square; void handleKeyPress(unsigned char key, int x, … | |
1) vi . profile shows alias for commands, you can set the new ones. 2) esc = displays the file and folders in a numbered fashion. 3) esc – or esc k ( esc n does the same thing reversely) shows the previous commands 4) cd esc \ [type something] … | |
Hi, I was in the understanding that applications created with Codegear/Delphi did not need any external libraries and that it compiled all the code into the exe? However with Delphi 2009 (using C++), my programmes were asking for rtl120.bpl, and various dlls before it could be used. I was wondering … | |
I was viewing the practice problem section and decided to give a go at them, anyways, this is my Palindrome dector code. Could someone just take a look at it and explain to me if there is a better way to execute this problem? - michael [ICODE]// Palindrome check by … | |
I have function which randomizes numbers: [CODE=csharp] public int losuj() { Random losowanie = new Random(); int los = losowanie.Next(0, 9); return los; } [/CODE] I want to fill array with numbers generated by [iCODE]losuj[/iCODE] function, so I wrote: [CODE=csharp]for (int i = 0; i < 9; i++) for (int … |
The End.