132,726 Archived Topics
Remove Filter ![]() | |
[B]When should we use for loop and when while in C ? In terms of speed up and memory consideration in embedded systems.[/B] Software Development c | |
I've been trying to get it to work but it just won't. For some reason everytime I run a program it freezes up my command prompt and I have to close it forcefully. Does anyone know a fix to this? One reason why I absolutely have to use this compiler … Software Development c++ windows-xp | |
I am creating a custom 2d turn based game engine in Java, and so far everything works great. Currently, I have come to the dreaded networking :), and I made a test code, prototype of the network that I would like to create. It uses Java's MulticaseSocket class, DatagramPackets and … Software Development java | |
I have been studying c++ on my own for about a year (i'm 11) and have mastered classes, functions, logical operations, and some other basic things. Now I'm interested in learning to make and use GUIs. I already know how to make a message box and have the code but … | |
Hello, thanks for reading my post. My troubles have to do with using a python script to gather information from a web page. I'm using the 'IEC' (Internet Explorer Controller) module to handle the 'COM' stuff for me. The script looks like this: [code=python] import IEC from BeautifulSoup import BeautifulSoup … Software Development python | |
Hi, I have to write an airline ticket program for my class. My instructor gave us an example of a similar program so I thought I would build and run it to help me understand it better but he seems to have given us code for a program that doesn't … Software Development c++ linked-list | |
Hello, I was compiling some code and get the following compiler errors: error C3861: '_stprintf_s': identifier not found error C3861: '_tcscat_s': identifier not found I got the code from the MSDN Library: [URL="http://msdn.microsoft.com/en-us/library/dd798640%28VS.85%29.aspx"]http://msdn.microsoft.com/en-us/library/dd798640%28VS.85%29.aspx[/URL] I tried to find some info about the _stprintf_s and added the header <tchar.h> This got rid … Software Development c | |
[CODE]#include <iostream> #include <string> using namespace std; class w { public: void InsertRow(String* myConnection) { // If the connection string is null, use a default. if (myConnection->Equals(S"")) { myConnection = S"DRIVER= {SQL Server};SERVER=MyServer;Trusted_connection=yes;DATABASE=idb;"; } OdbcConnection* myConn = new OdbcConnection(myConnection); String* myInsertQuery = S"INSERT INTO test (id)"; OdbcCommand* myOdbcCommand = new … Software Development c++ mysql visual-studio | |
I have installed Visual studio and then after that I installed msdn library from a network location on my of my client pcs ... but what I get is when I press F1, it says that the external help should be installed and then tells me to insert the msdn … Software Development vb.net visual-studio | |
Im trying to use a different font in pygame but every time I run it I get this syntax error message [Traceback (most recent call last): File "C:\Python31\pytest.py", line 22, in <module> font1 = pygame.font.Font('C:\ActionIsShaded.ttf', 12) IOError: unable to read font filename] I tried getting rid of the qoutes around … Software Development python | |
Hi, I am attempting to come to terms with pointers and have come up against a problem. By my understanding the code below should: a, assign the value 3200 to total. b, attach the memory address of total to ptr. c, send the value at ptr to val. d, display … Software Development c++ | |
Hi All, I get this error operator == cannot be applied to operands of type 'System.IntPtr' and 'int' firstly I had this code [code] private void SNGPH_KeyUp(object sender, KeyEventArgs e) { if (e.KeyCode != Keys.ControlKey) return; POINT curpos = new POINT(); User32.GetCursorPos(ref curpos); IntPtr handle = User32.WindowFromPoint(curpos); handle = User32.GetAncestor(handle, … Software Development c# | |
![]() | Here is the issue: I have a multi-form application developed on C# with two forms, after I press a button I hide the first form and show the second, but how can I show the first form again if I close the second one pressing the red close button on … Software Development |
hi there, i am creating an application in visual studio 2008 standard edition. i have a form all frmMainMenu and a frmLogin and a frmAddNewProposal. i have a close button in frmMainMenu, i want to coed this so that when i click on the close button the frmLogin should appear. … Software Development visual-studio | |
Good Evening to all.. Can someone help with regards to converting decimal to hexadecimal? I'm using stack. I am done. in doing Dec to binary and Decimal to Octal. My problem is how to convert decimal to hex? specially if its include now with letters A to D.. pls i … Software Development java | |
Hi, I want to draw a rectangle but I want a user to specify its dimensions. Currently, I have 4 JTextAreas that take x, y, width and height values. I also have a button. I know how to display those values etc but I don't know how to link them … Software Development java java-swing | |
Hello, my code is below: [CODE] private void Form1_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'sampleDataSet.contact_Query' table. You can move, or remove it, as needed. //this.contact_QueryTableAdapter.Fill(this.sampleDataSet.contact_Query); OleDbConnection aConnection = new OleDbConnection(dbconnection); OleDbCommand aCommand = new OleDbCommand("select id, name, mobile_num, date_created from contact … | |
Hi, I have a couple of questions regarding DataGridView. I have a DGV that is created at runtime, it has 3 columns. I would like to change the mouse cursor to HAND on only 1 of these columns, is this possible, if so how? Also how can I stop the … Software Development | |
I'm new to C# and I have a project on video streaming. It is to stream video from a media server to a mobile UI (smartphone interface) using microsoft visual C#. Please, how can this be done. Thanks in advance! Software Development smartphone | |
I want to write an application that can detect whether a value in CSS/HTML file has changed or not, how can I do that ? Please post example code / import as much as possible. Tkq Software Development html-css | |
Hi..I want to create a message box that displays the string from an array. Is it possible using MesasgeBox()?? I have tried passing the name of the array to the function but I looked around and found youd could pass only string to the function. So waht is the solution??? … Software Development c | |
Can anyone tell me how to access enum constants in another package... Software Development java | |
can anyone help me make a C program code that will open an image file? i'm using C language and GUI/glade3 alongside it. to help you visualize it, i want to type the image filename in a text view entry and when i click a button (Load for example) the … | |
In Asp.Net, How to copy folder from client to server using fso Plz help me. Software Development asp.net client-server vb.net | |
Hi, As per the code snippet: [CODE]typedef struct TimeSlotConfigurationList_LCR A { A_SEQUENCE_OF(struct B) list; asn_struct_ctx_t _asn_ctx; } A_t; #define A_SEQUENCE_OF(type) struct { type **array; int count; /* Meaningful size */ int size; /* Allocated size */ void (*free)(type *); } typedef struct B { TimeslotNumber_LCR_r4_t x; ENUM{Yes(0), No(1)} y; ENUM{Ok(0), … Software Development c | |
What is wrong in this code ? [code] rs.Open " update TblName set FldNum=" & text1.Text & " where ID_FldName=" & Text2.Text , db, adOpenDynamic, adLockOptimistic [/code] Knowing that FldNum ---> Data type (Number) ID_FldName ---> Data Type (AutoNumber) And What the correct code ? Software Development visual-basic | |
Hi all, I'm completely new to C but have dabbled with Bash scripting before. I've been trying to get my head around pointers etc. I have a small routine to check for the existence of a string in a file and print to screen, I claim no originality it's a … Software Development c | |
Can any one tell me something more about the flate decoding.????? Its the technique of encoding the data in .pdf file format...thanks in advance...... | |
Hello! I have written a piece of code that creates 3 folders in the working directory, asking the user to proceed even if it may overwrite existing folders. The problem is that the more pictures there are the more time it needs to create the folders. Is there any way … Software Development python | |
First off, I am new to this forum so please forgive me for any traditions that you all usually keep that I haven't kept. Currently, I am a java programmer, but I am recently trying to learn scheme for a project. In terms of java swing, can someone explain to … Software Development gui java java-swing | |
I have written some code in Python for a tanks game and I need to write pseudocode for the Tank's move method and main game functions (battle and bonuses). What is bold and underline are what I need to do pseudocode for in the quoted text. I know what pseudocode … | |
Hello, I am trying to make a program which will sort a array of 10 elements using bubble sort. I searce dthe forum and google but douldnt find a problem similar to mine. I cam up with the following code: [CODE]#include <stdio.h> #include <stdlib.h> void swap(int *, int *); int … Software Development c | |
hello I want too choose among c++ + qt + php and java for my programming language and platform please help me too choose best platform I want to choose a platform that has this features : speed, portable I am c++ programmer and familiar with java programming language i … | |
Dear all user and admin, My father now is paralyze with a symthom that been called MotorNeoron.. He cant do anything. He just sitting and and laying. Cant move his hand, leg, and all of his part. He ask me to help him making an shortcut key for him.. He … Software Development c++ | |
this is in c# vs2003, web forms i have this dgv and which is populated by some database values i have one column called price and i want to get the total of that column to a local veriable can some one tell me how to do it Software Development | |
OK, so I have this program I am writing called 'GradeBook', and there is a problem that starting on int Menu1(), ' if (menuchc == "4") ', and ending [code=c++] if (menuchc == "y", "Y") { string tmp = "start " + po; system(tmp.c_str()); system("pause"); main(); } [/code] so, I've … | |
I hit an overflow error 22053 while retrieve data from oracle database.One of the data type of database is number. After I insert floating point value into data of this data type, overflow error occur while retrieve data from database into datatable. This problem doesn't occured while the data's value … Software Development oracle | |
hey all,how do i begin to learn a C++, can someone give some guide or idea for me?? thanks..hmm .... i got knowleadge about computer fudamental and basic computer skill Software Development c++ | |
Hi..I am writing a server code for TCP/IP. The code is: [CODE]#include<winsock2.h> #include<windows.h> #pragma comment(lib,"user32.lib"); #include<stdio.h> #include<string.h> #include"tcpip.h" /*Function definitions for communication over TCPIP*/ /*Parameters for TCP/IP Communication*/ WSADATA wsaData; WORD version; int error = 0; SOCKET server_addr; SOCKET client_addr; struct sockaddr_in Start_Server; int length = 0; char tcp_ip_recv[20]; char … Software Development c client-server data-structure | |
i have two class..One class with get,set and the other with commands to read and copy certain files from a folder. the location for the files needed was inputted. how can i inherit both of these classes? Software Development | |
I want to write an application that can detect whether a value in CSS file has changed or not, how can I do that ? Please post example code / import as much as possible. Tkq | |
Please can anyone help me in the making of this program : We have to Enter a string of capital letters like WJKTYNHJHIJKLMNOPASC THE LONGEST CONSECUTIVELY INCREASING STRING IS HIJKLMNOP . . . Help me Please , Thanks !!! Software Development assembly | |
Hey Everyone, Shell programming is something I haven't learnt or tried before.. but I kind of need it to automate backing up my website. At the moment, I have: [CODE]#/bin/bash /bin/tar czPf /home/cpanelusername/etc/files/wp-content-weekly.tar.gz /home/cpanelusername/public_html/wp-content/[/CODE] but how do I get it to email me the file wp-content-weekly.tar.gz and then delete it? … Software Development shell-scripting | |
I want to use crystal reports in my window application (C#.net). I have my database in MS Access. I want to connect Access database with crystal report using stored queries. How can i do this. Software Development | |
I have a sqlite database and want to update the sort column in my table. e.g. Col1 - Col2 C - 4 A - 3 B - 5 I want to sort on col1 then update Col2 with new values i.e. 1-3 Don't know if it's possible but doing it … | |
I have a GUI with a table on it with only 1 column(more will be added later). The Gui gets an arraylist that has to be iterated through and then each value has to be inserted into the table. Whatever I try, I can't get the GUI to set the … | |
Hi, me again. I don't mean to be a pain but I have another question. I'm trying to add an event handler to the code (Irrlicht game engine) but I can't seem to retrieve data from the main function to the event class. Below I have [ICODE]bool check = ((IGUICheckBox*)event.GUIEvent.Caller)->isChecked();[/ICODE] … Software Development c++ | |
Hey Guys, First of all, any help on this would be very much appreciated! Ok so. Every year my friends try and get ballot tokens to falls festival but we fail and have to buy them off ebay. I don't want to do that again so I'm trying to create … Software Development vb.net |
The End.