199,114 Archived Topics
Remove Filter ![]() | |
So if you want to send a text file to some you would use: Client: char* rbuffer; //will save file content here ifstream file; file.open(filepath, ios::in | ios::binary | ios::ate); //open file if(file.is_open()){ file.seekg(0, ios::end); size = file.tellg(); //file size! cout << "The file size is " << size << … | |
Hi, I have a text file that contains about 15000 lines like the lines below: IBN LG 00 0 00 05 304 602 1047 SB GWLPOT IBN LG 00 0 00 11 077 500 2547 SB GWLPOT IBN LG 00 0 00 19 077 574 2000 SB GWLPOT IBN LG … | |
I'm working on a project that contains 3 different lists. 2 lists of 2 different controls, and 1 list of a custom class. I found that I needed each of these lists sorted. The problem with sorting a list of complex types is there's no default comparer for them. That … | |
I have this RSA encryption code but it doesnt encrypt the whole message its suppose to encrypt. It only encrypts #include <iostream> #include <string> #include <string.h> using namespace std; // prime numbers int p, q; //compute int n ;//= p * q; //totient int phi;// = (p - 1) * … | |
My case is Input is "abdknmgbm". BUT The record in database that i want to query out is "abkdnmgmb" The input and database record is quite similar. String length is same, only some arrangement of character are not same. In the above case, dk and kd ; bm and mb. … | |
I'm thinking that maybe this just needs a fresh set of eyes, but this is my first go at using session_set_save_handler() and storing session data in mysql so who knows, maybe I've really messed something up. I've written this up according to a few examples I found online and based … | |
I thought I had this sorted on another website but just can't resolve the problem now. I have a link that when clicked shows a form. The form is submitted through jquery ajax, runs the PHP and updates the html in a div on success. All fine. However, after the … | |
hey.... im supposed to make a school project using files and graphics..my topic is telephone directory.if i have to delete a particular entry,should i keep making a new file or is there any alternative with regards | |
I am working on one project in which it is required that in registration field if a user selects a location then the location's logitude and latitude inserted into input field.If possible,Please tell me the way to do this. | |
![]() | Hello all, I Wish to call Button1_click event of Form1 in Button2_Click event of Form2. i.e Calling event of one form into evnet of other form. How can I achieve this? Thanks. ![]() |
I need a programme for my mom's business inventory. I tried to download Dev-C and Visual Basic so I could make one, but after downloading it, the software would not open completely in the computer. | |
Hi there, Today, I had a chat my lecturer about instance methods and static methods. I thought you make methods with static modifier (let me know in the comments below if I'm wrong) if you want to access them without creatng an instance of the class which they're defined in. … | |
![]() | I want to create tables in database dynamically i.e at the click event of a button or any other event. Suggest me HOW ? Thank You ![]() |
http://www.rcdxb.com/ Can this website work work on Internet explorer (All versions, specially 6)? The transition effects and everything | |
Hi there, I'm just a hobbyist teaching myself python but I am making progress with the help of "Rapid GUI Programming with Python and QT". I have written what is probably a very poorly designed programme which does just about what I want but when it's closed the process continues … | |
Hi, Am trying to get some data from DB , here am checking whether username is registered or not , if he register am getting some data related to that user and displaying on window . I want function to wait for untill user finish typing his username , then … | |
Greetings! I have a problem with my dialog box, my project has multiple form. When I try to exit the dialog will appear, If will the OkButton the method function as what i want, but if I click CancelButton the from will close itself but the program is still running. … | |
i want that when i select value from 1st drop down box according to selected value values of 2nd drop down box changes and on selecting value from 2nd drop down values of 3rd drop down changed according to 2nd drop down selected value how can i achive this i … | |
1.Category 2.Category_sub note: category_name field in Category_sub table is im using as category_id hope u get after see d snap shot i want to do in my category_sub table i am storing category_id frm category table i am attacting the screen shot of table.. i want when i click on … | |
These days im using xcode and its a bit of annoyingly good amounts of changes from borland which im used to But i keep getting error for this printf ("\nThe amount of First Class cars Stocks remaining are: %d", &stock1); (while stock1 is declared: int stock1) and it says format … | |
I have one table with content of data with a Status (Yes/No). I want to get sum of total data where status is "yes"and put it into another table and sum of total data where status is "no" and put it into previous table in a different column to maintain … | |
I host my website from my home server. I have downloa folder that constantly changes, is there a way to get the php file to automatically create download links everytime it is accessed? | |
hello! I got this error when I tried to connect to my db in sql server. > Unable to add data connection. Could not load file or assembly 'Microsoft.SqlServer.Management.Sdk.Sfc, Version = 10.0.0.0, Culture = neutral, PublicKeyToken = 8945dcd8080cc91' or one of its dependencies. The system cannot find the file specified. … | |
I'm encountering a problem when I try to write over a network stream. When I press this button here, I can successfully write to the tcp stream and the other part of the program successfully receives the data. Dim ClientSocket As TcpClient Private Sub btnConnect_MouseClick(sender As Object, e As System.Windows.Forms.MouseEventArgs) … | |
I want this code to run in the background but still be active: Private Sub frmMain_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress lblTest.Text &= e.KeyChar End Sub | |
I am trying to How to export the crystal reports to Excel pdf etc. I am not getting the solution it shows the invalid path but i am giving correct path.pls suggest me,How to solve the problem. Thanks in Advance. | |
First of all I'm using pythong 2.7.3 and libtcod 1.5.1 I am following a tutorial found at http://roguebasin.roguelikedevelopment.org/index.php?title=Complete_Roguelike_Tutorial,_using_python%2Blibtcod,_part_2 and have code matching (as far as I can tell) exactly what it is telling me to do. My code is below. The general idea is to create a white and yellow … | |
I am trying to insert data into the database. It is a text area from html which looks like this where is says description. Everything else works fine. <table width="300" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC"> <tr> <form name="form2" method="post" action="uploadmachine.php" enctype="multipart/form-data"> <td> <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF"> <tr> <td … | |
i have two number qty_p and price_db. qty_p will be always int. and price_db can be int or double with 2 decimal place. $qty_p = $_POST['qty']; //get number from input field $price_db = $row['price']; //get number from database on top iam get the value and so far its fine. but … ![]() | |
Hi, Let me preface this by saying I'm about 4 days into learning MSVC++ 2010. I just need a little program that takes in a string, puts it in an array and I'd really like it to display it on the screen as the data comes in (1089 strings per … | |
I am creating a database that will be filled with items for sale. I am trying to create a back end so that the items can be edited, currently I am working on the pictures that will be uploaded for the items. I need to make it so that I … | |
so i have a form, when user click the button 1st javascript runs, than php runs. so if user hit submit button a window pop ups which is created in javascript. problem is that i only want to pop up window if it goes in here else{ //***********pop up window … ![]() | |
//Why do I have to use following code to get a column number: ListSelectionModel ks = tabel.getColumnModel().getSelectionModel(); //Rowselection does not require a special row selection, I can get a proper row number with: ListSelectionModel ss = tabel.getSelectionModel(); | |
Hello, please am having issues querying my reports from the database. i want to creat a reports from a number tables ( rooms ==> this table is where i have all the room numbers. bookings ==> this table is where i have all the room numbers used per each date. … ![]() | |
I am running multiple sites on one server and am tired of seeing 404s coming from missing apple-touch-icons. I am required to have 6: apple-touch-icon-57x57-precomposed.png apple-touch-icon-72x72-precomposed.png apple-touch-icon-114x114-precomposed.png apple-touch-icon-144x144-precomposed.png apple-touch-icon-precomposed.png apple-touch-icon.png Each "property" docroot I am hosting may, and probably will, have several sub-docroots all using the same apple touch icons … | |
I am having a devil of a time trying to get my arrays to print right, but I am missing something. I am hoping another set of eyes can help me figure it out. I have this current function: function getArrayUsers($id) { $sql = DB::inst()->query( "SELECT * FROM " . … | |
Hi I'm creating a socket server in Linux using pthreads. I was just wondering, how does the server send specific messages to its clients (for instance, a PM) if each is in its own standalone thread? | |
I've been trying for a while and can't figure it out http://pastebin.com/4PZj2c9s | |
Write a Python program to apply the given formulae above to complete the missing information in Table 2.2. As vMax (his speed at 30,000m) is an unknown, allow the user to input a value of between 500m/s and 600m/s, each time displaying a new completed table. For an extra 3 … | |
My project compiles fine, but when running a push_back on a vector, I'm getting an access violation when the vector attempts to resize itself. I have lots of code, but hopefully I can boil it down to just relevant classes. I am sorry about the HUGE amount of code, but … | |
 I'm trying to figure out how to add a new connection to MySQL running on a different computer on my network. When I click Project --> New Data Source a list of drivers appears, but none of them are MySQL (see thumbnail) which I have previously installed. I'm … | |
I have been making an Adventure Game and when I try to test it, it always comes up with Hello! Welcome to the adventure game! What is your name? Parsia Parsia? Well hello there! Let us begin... You are at a trail with two paths. Left or right? left Traceback … | |
Hello, I am trying to access my website after having recently shifted hosting servers. When I try to access it I get the following error: > HTTP Error 500.19 - Internal Server Error > The requested page cannot be accessed because the related configuration data for the page is invalid. … ![]() | |
Greetings! I just want to ask on how to transfer a letter from a textbox to label? what I mean is for example we have a label then a textbox, In a textbox I'm going to type a random words/letters then If there is a letter "A" in the text … | |
Greetings! I took some code from this [site](http://osvaldas.info/elegant-css-and-jquery-tooltip-responsive-mobile-friendly). It works great in EVERY browser but IE7 where the arrow of the tooltip is missing. I know that there are issues with IE7 not supporting :after in CSS. I've tried adding this code: <!--[if lt IE 8]> <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js"></script> <![endif]--> But … | |
so here it is, first you will input how many textfield you have then click ok after clicking ok input the value in all the textfield after that if you click add you will see the sum of all the value in the textfield help pls <html> <head> <title>Margz</title> </head> … | |
Hi guys!, I thought i'd try and learn a bit of python to keep myself occupied, and i was wondering if you could give me some constructive criticism on a word guessing game i have created. I'm an amatuer programmer and i'm always looking at improving when and where ever … | |
This is probably simple enough to do, but I cant get it! I have a mysql table 'links' with these fields; id int 10 primary ai link varchar 200 description varchar 200 I have a links page to populate with this info. I want the desciption as the visible text. … | |
how do you link functions written in other computer languages with a C/C++ program? this is in a past paper , & i can't find it anywhere? helps | |
This is an issue that I've discusses many times before, but never with a conclusive solution. I am trying to programmatically change the data range for an existing chart in Excel. My code goes something like this: [CODE] With WS.CharObjects(SelChart).Chart With .SeriesCollection(1) .XValues =DataWS.Range("A1:A101") '<-----ERROR! .Values = DataWS.Range("B1:B101") End With … |
The End.