132,726 Archived Topics
Remove Filter ![]() | |
Hi, I was working on thread pool, which I used std::vector to implement the pool. [CODE] private: std::vector <handlerthread*> _pool; handlerthread* temp; void threadpool::addWorker() { handlerthread *temp; temp = new handlerthread(this); int x=_pool.size(); temp->start(&x); _pool.push_back(temp); } handlerthread* threadpool::getIdleWorker(){ int idx=-1; for (int i=0;i<_pool.size();i++){ temp=(handlerthread*)_pool[i]; //SIGSEGV HERE if(temp->isIdle()){ idx=i; break; } … Software Development c++ | |
Hi, I'm developing an application, with a main GUI and another GUI that gathers some information. Upon clicking a button in the main GUI, it initializes a second GUI object that has fields for input and then an "OK" button. I need to be able to return the information in … | |
Hello All, I am trying to add data from a dataset to an access table(.mdb). I am getting this error when I try to insert the values in the table. This is the code [code]DataSet ds = new DataSet(); Console.Write("The NAME IS: " + FileName.Text.ToString()); ds.ReadXml("C:\\Dallas_Test\\Offense_7_1_2010\\" + FileName.Text.ToString()); ADOX.Catalog cat … Software Development dataset microsoft-access open-source | |
Dear All, How can i auto generate number in vb.net Please help thanks in advance for your help Software Development vb.net | |
I am self learning c#. and want to display predefined image/text on screen. Please this is not within any frame or window this messages dislays some where on desktop / screen. Like screen saver we see only images and text flashing Similar way I want to display it on screen. … Software Development image | |
I'm having an issue with the elimination portion of my Gaussian Elimination problem. The program crashes while running, I can't figure out what is causing the wrong rows to switch, and why it is not eliminating correctly. [CODE]void Matrix::gaussianElimination() { int i, j, max; for(j = 0; j < N; … | |
I want to arrange the number 1 - 12 like shown below. like the numbers on the clock. [code] 12 11 1 10 2 9 3 8 4 7 5 6 [/code] arrived with the following code: [code=c] #include<stdio.h> int main(){ int e = 11; int count = 10; int … Software Development c | |
[CODE] SqlCommand cmd = new SqlCommand("SELECT MAX(Register_ID) AS Register_ID FROM EnrollTbl", con); SqlDataReader reader; con.Open(); reader = cmd.ExecuteReader(); if (reader.HasRows) { while (reader.Read()) { RegisterID.Text = (Convert.ToInt32(reader["Register_ID"]) + 1).ToString(); } } else { RegisterID.Text = "10000"; } reader.Close();[/CODE] It says [B]Object cannot be cast from DBNull to other types.[/B] I … Software Development | |
Hi I am very new to C#. Below is the program which i am trying. { string connstring = "Data Source = .\\SQLEXPRESS;Initial Catalog = SAMP; Integrated Security = True"; SqlConnection conn = new SqlConnection(connstring); SqlCommand comm = new SqlCommand(); comm.Connection = conn; SqlDataAdapter myadapter = new SqlDataAdapter(comm); DataSet myset … Software Development dataset open-source | |
I used the following code to download HTML files and subtitle files over the Internet. But when I give the url of a Youtube video, the download stops very quickly and though some file IS downloaded, it doesn't open. Why ? [CODE]class read { public static void main(String aa[])throws IOException … Software Development file-stream file-system java video | |
I'm trying to write a small text editor in wxWidgets, using wxDev-Cpp. So far, all is well. However, for the life of me I can't work out how to print (As in, onto paper). As far as I can deduce, I need to use the wxPrinter class. Browsing the wxWidgets … Software Development c++ | |
I am using wxDevC++, because I hate code::blocks and litecode doesn't do it for me, so the error I get when I try and compile is: cannot find -lwxmsw28 ld returned 1 exit status C:\Dev-Cpp\Makefile.win [Build Error] [Output/MingW/Project1.exe] Error 1 I've looked high and low, and I cannot find wxmsw28.lib … | |
:confused: friends can you give any idea about making screensaver in c language: Software Development c | |
I have a login form(Form1). Which has two text box(textBox1,textBox). when i clicked the Login Button another new form(Form2) is opened.This new form is a MDIPARENT form. I want to set the text of a lable of a new child form of this parent form which is same as the … Software Development | |
Hi, I have a printable class that needs to print some text only on 1 page. The thing is that when I hit print the printer prints 3 pages: page 1 - with correct content page 2 - empty page page 3 - page with content translated some how then … | |
Hi Guys, i have parsed an xml file below and want to create another class with data structure and pass these values to those data structure. [code] using System; using System.Collections.Generic; using System.Collections; using System.ComponentModel; using System.Data; using System.Data.Sql; using System.Data.SqlClient; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO; using … Software Development data-structure xml | |
How to Connect VB.net 2003 with MS Access 2003????????? Software Development vb.net | |
I am learning VB and am working on a tutorial on databases. The recordset is a disconnected set. I am getting a concurrency exception. I might have 3 records. I delete all 3. Then I add a record, it adds it. Then I attempt to delete it and it fails. … Software Development dataset open-source vb.net | |
im having a problem...i have a program to count number of senteces one inputs..the words and asking for a letter. The end of "\\close count" works fine...but for some reason the sentence and word programs doesnt work. could anyone please check this out. I think Iam missing something. I have … Software Development c++ | |
Hello all. I've completed both a Winsock server, AND a Winsock client using C++. The problem comes in when I attempt to bind a socket to a remote IP address. I get the message "Unable to bind to "IP address" port 80. I know for a fact that both the … Software Development c++ client-server | |
Hey! I was writing my code, and just became wondering if I get a memory leak here. The program has a function which checks and creates a "Time" object, which simply includes integer values for hours and minutes. It returns the Time-object created to the main code. The thing is, … Software Development c++ | |
can anyone make some sample vb.net program and flowchart here Software Development vb.net | |
I use the code [CODE]Dim Selvk As New Selvkost2 Selvk.PassedText = TextBox29.Text Selvk.Show()[/CODE] in mainform and the code [CODE] Private _passedText As String Public Property [PassedText]() As String Get Return _passedText End Get Set(ByVal Value As String) _passedText = Value End Set End Property [/CODE] in my second form and … Software Development vb.net | |
Hey guys! Does anyone out there know of a way to debug a windowsservice? Fanx and happy coding! :) Software Development | |
hey how to use calendar picker from Microsoft calendar control 11.0 Software Development visual-basic | |
Hi all, So, I'm a real newbie at this, and I don't even know where to start really. I'd appreciate some help. I've downloaded Allegro 4.9 onto my computer (running Windows Vista), and I want to use it with Code::Blocks IDE. I've tried many a google search, but none of … Software Development c++ ide windows-vista windows-vista-7-8 | |
Greetings! The below is an example of a text file from PDB. ATOM 2 CA ASP E 423 [B]-50.931 46.011 -16.062[/B] 1.00153.24 C ATOM 3 C ASP E 423 [B]-51.314 44.692 -15.381[/B] 1.00152.70 C ATOM 4 O ASP E 423 [B]-52.175 44.673 -14.497[/B] 1.00153.08 O ATOM 5 CB ASP E … Software Development java | |
hey i ve an imagebox height=5820 width=6400 which dynamically loads any image. now the problem is when i set its stretch property true it displays the pic but it appear strectched and distorted. if i use the following code it displays the pic in its original size....bt the dimensions of … Software Development image visual-basic | |
As-salaam-o-alaikum i hope all fine. a) What is Static Polymorphism? Write its alternative name with a simple example with code. b) What is Dynamic Polymorphism? Write its alternative name with a simple example with code. c) What is the main difference between Data Hiding and Data Abstraction? How we achieve … | |
Hello i am developing a encryption/decryption Application in which i am first converting string into its ascii values then reversing this ascii values and then generating the hex values of this reversed ascii values... I have completed the encryption part as i am able to convert the string into hex … Software Development encryption visual-basic | |
First, of course a List box (it has it's default name List1) is not a variable. I tried variables that were close because Visual Basic gets "confused" about its error messages (as when one has nested strings and it lists the wrong one an error) Oddly the current version I'm … Software Development visual-basic | |
Hi. I am very new to VBA and the task in hand is a tough one to start with. Basically I have requirement of code I can run using Active X in DTS to load data that sits in excel files in a certain folder location into an sql server … Software Development sql visual-basic | |
I have a DVD inventory record program that creates a DAT file if none exists and then stores the user input. As long as the program is running the user may then advance one record at a time (forward or back) through the files, skip at anytime to the first … Software Development file-system java | |
I'm a student and taking an intro to C class and would appreciate some help! I've got a file with 10 words that I've loaded into a 2D array. I've written code that will generate a random number between 0 and 9 to select a string from the array. I'm … Software Development c | |
Hello! I want to make a simple game like this: [IMG]http://img340.imageshack.us/img340/6393/gamea.jpg[/IMG] So I need to start by moving the rectangles. Now I want to make an option for player VS player. I need to somehow check what keys are in "key down" state. How can I do that? (I'm using … Software Development c | |
I am trying to write code to send a mail message with an attached file. my code works fine if I don't try to attach a file but crashes when I do. I have not been able to figure this out. My code looks like this. [ Dim mail As … Software Development vb.net visual-studio | |
I want to make a 3D game and I don't know what to use OpenGL or SDL? | |
Hello, Im trying to get this program to display a receipt of the items bought with its price and total, but so far this is what I've acomplished, I've been trying for a long time now, to make it print the receipt in the win2 but I haven't been able. … Software Development python | |
Hi Everybody, Is there a way to have a picture of the 3 or 4 sq. pixels you're mouse is hovering over appear in the bottom of the screen? Thanx. Software Development java | |
Hi All I'm using the QClipboard class provided by Qt. I'm trying to create a QList that holds the last twenty items that have been copied. I am declaring the list as follows: [CODE] QList<const QMimeData*> *copiedList; [/CODE] I am creating the list as follows: [CODE] copiedList = new QList<const … | |
Hi everybody! I'm a newbie to C++ and I need some help to improve my skills in c++. *When you make input data "cafe monde" into a string variable, the variable only accept "cafe" and not the white space and "monde". What should I do to retrieve white spacem "monde" … Software Development c++ | |
hi guys, so iam writing a program which creates a .bat file in a directory and copies it to another directory through copyfile...the problem is that while the .bat file is created properly but when it's copied to the other directory an error occurs saying its not a win32 appropriate … Software Development c | |
Im trying to learn c++ loops and structures with the c++ primer plus book. Here is the question no6: [url]http://books.google.com/books?id=zuyAIZ9ZIskC&pg=PA205&lpg=PA205&dq=c%2B%2B+primer+plus+programming+exercise+how+many+cars+do+you+wish+to+catalog&source=bl&ots=mbyXM-wZBZ&sig=o0nBYx-ZkCShRJztCVoFTy4S1eM&hl=en&ei=BqxQTMKVK4eosQPi_bynBw&sa=X&oi=book_result&ct=result&resnum=1&ved=0CBIQ6AEwAA#v=onepage&q&f=false[/url] My current code: #include <iostream> #include <string> struct car { std::string carname; int yearmade; }; int main(void) { using namespace std; int zero = 0; int vb2 = 1; int … Software Development c++ | |
Hi All I'm trying to write to a variable contained within an indexed record. Currently the record is not updating when I assign the new value. If I create a 'buffer' record and assign the value to the 'buffer' record and then assign the 'buffer' record to the indexed record, … Software Development pascal | |
I am working on a code to read N user input numberb and then display the largest and the smallest of them. The inesgers have to fall in between -999999 and 999999, I have been tinkering with this for a few days now and can't seem to figure out how … Software Development java | |
hello frnds....i am mukul working on a java project using mysql database and swings in netbeans ide can anyone tell me how to retrieve data from mysql and show tha data in JTable......in netbeans....... i know how resultset and statements commanda.......but dont know how to show that data in JTable Software Development java java-netbeans java-swing mysql | |
Howdy, I'm a GIS guy trying to get my hands dirty with some Python. What I'm trying to do is iterate through a file (shapefile), reading specific fields from each row of the file's associated table. The table has thousands of rows, which is why a Python script is handy … | |
I store matrix entries in std::vector<double>, such that the reading is row by row. This means, for matrix 1 3 4 8 9 3 3 6 8 1 1 2 2 0 9 8 7 6 the std::vector<double> would have entries: {1,3,4,8,9,3,3,6,8,1,1,2,2,0,9,8,7,6}. To transpose the matrix I use the naive … Software Development java | |
I used datetimepicker.value.date to insert the value in database. Then I used this [CODE]dateTimePicker1.Value= Convert.ToDateTime(dt.Rows[0]["Issued_Date"]);[/CODE] But it doesn't work, neither .ToString(). Software Development |
The End.