132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for adi.shoukat

[CODE]while(size!=0) { printf("loop start"); printf("File Size in int: %d \n",size); byte_count = recv(sock,recv_data, 1024,0); recv_data[byte_count] = '\0'; printf("hhahaha %d \n",10); printf("char is:%c \n",recv_data[0]); //fputc(recv_data[0], fpW); size=size-1; printf("loop end"); } fclose(fpW); This is a piece of Client side code .. i am sending data from Server Side but when i receive …

Member Avatar for dkalita
0
268
Member Avatar for abu taher

in data environment I write code[CODE]SELECT AccountInfo.incategory, Sum(AccountInfo.InAmount) AS SumOfInAmount FROM AccountInfo where Date and Date between DTFr.value and DTTo.vlaue GROUP BY AccountInfo.incategory;[/CODE] in form I write code in a command button like:[CODE]Private Sub Command2_Click() Load DataEnvironment1 With DataEnvironment1 If .Command3.State <> 0 Then .Command3.Clos .Command3 Format(DTFr.Value, "dd/mm/yyyy"), Format(DTTo.Value, "dd/mm/yyyy") …

Software Development visual-basic
0
95
Member Avatar for alex-VX

I´we been crazy looking on google after this the protocol function won´t work I need to make something happen at those events WM_QUERYENDSESSION WM_ENDSESSION WM_QUIT WM_DESTROY WM_CLOSE Thanks for help yours truly Alexander

Software Development python
Member Avatar for alex-VX
0
298
Member Avatar for ajeet choudhary

sir.......i m confused for the function of jvm,jdk,jre. i know the full form of these but i m not sure about these working so please help me... if anyone know the full form of java then please tell me. one from i find is "just another vegue approach" but i …

Software Development java
Member Avatar for masijade
0
265
Member Avatar for Trini89

when I run this program no matter what temperature I enter, the output is my first cout statement. Could anyone tell me what i must change for the code to work?? [CODE]#include <iostream> using namespace std; int main () { double temp; cout << "Please enter a temperature " << …

Software Development c++
Member Avatar for achyuthan1991
0
90
Member Avatar for Gchan

hi i need a help in a code.. Code requirement is:- FInd most occuring element in an array.. Say i have an array {1,2,4,4,4,5,1} answer should be 4..... Code should be in C language......

Software Development c
Member Avatar for mrnutty
0
76
Member Avatar for rpjanaka

Hi all, My program have two threads (parent thread & child thread). I want to set a high priority to my child thread when it is created. So I just follow the example given in the follow ([url]http://cs.pub.ro/~apc/2003/resources/pthreads/uguide/users-12.htm[/url]) ************************************************** [code=c] #define _MULTI_THREADED #include <pthread.h> #include <sched.h> #include <stdio.h> #include "check.h" …

Software Development c
Member Avatar for jakethesnake86
0
2K
Member Avatar for joshk6656

Hi I have a couple of questions for the first app I am creating. Firstly I am trying to have user input certain things, and it is not working correctly. [code] printf("Object : "); scanf("%04X", &code); printf("Message : "); scanf("%s", input); [/code] Object is working perfectly, but then the Message …

Software Development c++
Member Avatar for joshk6656
0
147
Member Avatar for Peter_APIIT

Hello to all, i need access the external header file from third party in Visual Studio. I have settings the additional include directory but the files still cannot be found. I sure that file located at the directory pj and the types.h is exist in the directory. C:\Program Files\VOIP\pjproject-1.4\pjproject-1.4\pjsip\ C:\Program …

Software Development c++ visual-studio
Member Avatar for Peter_APIIT
0
666
Member Avatar for gibson.nathan

what i am supposed to do is calculate the chances of wining a bottle top prize if there is one in five winners. i have to do it a difficult way though. i made a random number that signifies a win when it lands on one. i then have to …

Software Development file-system java
Member Avatar for VernonDozier
0
634
Member Avatar for Teethous

Can someone identify the error in this code for me? The input line gives an error. [CODE]import java.util.*; public class Time_Convert_Test { Scanner number = new Scanner ( System.in ); public static void main(String[] args) { int firstValue; System.out.print( "Please enter time in hours:" ); firstValue = number.nextInt(); } } …

Software Development java
Member Avatar for Teethous
0
112
Member Avatar for cbsoldier24

Hey guys, This is my first topic. I tried my very best to keep behind the scenes and not make a thread about this, but its been ticking me off for a while now.. The "while" loop im using.. i can only get the last user input to display or …

Software Development java java-swing pay-per-click
Member Avatar for cgeier
0
557
Member Avatar for Neil_W

Hi guys, I am working in Access 2003 andtrying to populate a form from an underlying query written on the fly. My code is as follows: [CODE] Private Sub cmdDefra_Form_Click() Dim Cat As New ADOX.Catalog Dim cmd As ADODB.Command Dim sqlText As String Set Cat.ActiveConnection = CurrentProject.Connection Set cmd = …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
259
Member Avatar for slatk3y

I can generate a certificate from terminal using this command: keytool -genkey -keystore myCert -keyalg RSA ... and then you enter name, ... Is there an alternative way to do the same thing in JAVA? Any help is appreciated, thanks

Software Development java
0
81
Member Avatar for SeeTheLite

So basically I'm making a generic class for rational numbers, and I want to do automatic type conversions in comparisons and operations and constructors. How would I go about doing this? Google has only returned results for template functions rational.h [code=c++] #ifndef RATIONAL_H #define RATIONAL_H class rational { public: rational(); …

Software Development c++
Member Avatar for SeeTheLite
0
86
Member Avatar for htndrum

I need to find a way to print "Cannot find birthday" if the "searchline" is not found in the "pidigits" file. Maybe using a count somehow. I've tried a lot of different things, but I cannot figure it out. I have attached both files. [CODE]import string def find(): blength = …

Software Development python
Member Avatar for htndrum
0
118
Member Avatar for katwalatapan

Hello everyone, While implementing POSIX messaging queue, I am encountered with "Message too long error". I have stated 128 bits for my problem, but it still gives the same error. Please do help me in resolving this memory issue. Regards, Tapan. [code=c] #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <mqueue.h> …

Software Development c queue
Member Avatar for gerard4143
0
1K
Member Avatar for slatk3y

Hello, I am trying to understand how server and clients work. Can anyone explain it and give an example or link to the tutorial. I greatly appreciate your help

Software Development client-server java
0
146
Member Avatar for gianrocks

hey all, im sort of new on .net and i was hoping if u can help me again. i am to search a a student record on sql server 2005 database. my problem is, i can search for records but i failed to display their pictures in the picturebox. here …

Software Development image vb.net
Member Avatar for dapsin999
0
167
Member Avatar for llemes4011

Hello, I'm using NetBeans 6.7.1, and Derby 10.5.3.0. I'm trying to learn how to write Database applications, and I'm having trouble connecting to my Database. It loads the Derby Driver (EmbeddedDriver), but won't connect to the the Database named test. I looked at tests Properties in NetBeans, and it said …

Software Development java java-netbeans sql
Member Avatar for llemes4011
0
812
Member Avatar for Dewey1040

I'm supposed to create a program to read in word by word into a vector. And print out the words connected with '-'... so if the input was hello world the output would be hello-world this is the code ive made so far... right now my input can be hello …

Software Development c++
Member Avatar for Ancient Dragon
0
3K
Member Avatar for casperguru

What are the difference in the passing mechanism of the following arrays void foo(int* a) void foo(int(&a) [10]) void foo(int a[]) and if all the three absolutely does the same thing then what is the point of keeping 3 of them and does any method have any performance gain as …

Software Development c c# c++
Member Avatar for C++NOOOB
0
298
Member Avatar for hectex

* This code is ran under Microsoft Visual C++ 2008 Express Edition. * So when I do run the program, it runs, it lets me input 'The Name', 'Resistance Value', and 'Tolerance Value'. *It then displays The maximum and minimum resistance. *Now here's the problem!--It displays hexadecimals. *HERE'S MY CODE …

Software Development c++
Member Avatar for Lerner
0
346
Member Avatar for jakx12

I know we are not supposed to ask for code, but could someone please tell me how I would do this. Not write code, just give me guidelines. thanks

Software Development image java
Member Avatar for jakx12
0
95
Member Avatar for sivapc

Hi All.. New here.. I'm not going to lie. This is an assignment for c++ subject in my school. I'm basically an amateur in c++. I can understand all the basic stuffs in c++, but have some problems with the pointer.. and my lecturer here.. well. She's quite poor and …

Software Development c++ engineering linked-list
Member Avatar for Lerner
0
189
Member Avatar for Baalzamon

Sorry in advance if there's already a thread or if i've posted in a wrong section(??). My question: If i use the tolower function can i use the newly editted input and put it back to where it came from?? In effect - clarity isn't my strong point today :( …

Software Development c++
Member Avatar for Baalzamon
0
101
Member Avatar for nateuni

Out of all the possible problems I though I may have in my program, this was not one of them. My menu code is looping twice before stopping for the fgets to take input.. so my menu options are getting printed twice? I have tried flushing the crap out of …

Software Development c
Member Avatar for nateuni
0
601
Member Avatar for Wolf CCMLG

I have having a bit of trouble with this assignment I have to do. The assignment is: [B]"Assuming that a year has 365 days, write a class named DayOfYear that takes an integer representing a day of the year and translates it to string consisting of the month followed by …

Software Development c++
Member Avatar for Lerner
0
1K
Member Avatar for Nishanthi

i want to develop project for sound and stage entertainment using netbeansIDE can anyone tel the prerequisites and steps for starting the project please please

Software Development java
Member Avatar for majestic0110
0
63
Member Avatar for Ineedhelpplz

[CODE]#include<stdio.h> #include <stdlib.h> #define MAXLINE 10000 void reverse(char *str); int main() { int c, i; char j; char S[MAXLINE], *p1; p1=S; for(c=getchar(); c!=EOF; i++) { S[i]=c; } reverse(p1); return 0; } void reverse(char *str) { if(*str) { reverse(str+1); putchar(*str); } } [/CODE] Please help me correct the segmentation fault. [QUOTE]blade71(107)% …

Software Development c
Member Avatar for Ineedhelpplz
0
152
Member Avatar for rainny

I have 2 buttons, which are start and stop button. When I click on the start button, i make the timer is counting while click on the stop button, it will stop counting the time. The problem I face here is if I click back start button, is it possible …

Software Development java
Member Avatar for emint
0
78
Member Avatar for redreed

[CODE]/* program created and maintained by red prods */ #include<stdio.h> #include<process.h> #include<graphics.h> #include<fstream.h> #include<dos.h> #include<math.h> #include<stdio.h> #include<string.h> #include<conio.h> #include<stdlib.h> #include<time.h> struct dosdate_t d; struct bank { char user[40]; long int pass; int dtj[3]; int deposit; char type[7]; char trans[100][100]; }s; char *auser[20]={"ReReEd,param"}; long int apass[2]={975369,123456}; int ENTER=13; int xi1=162,yi1=50; int …

Software Development c++ ios
Member Avatar for redreed
0
269
Member Avatar for Twyce

I am trying to get the seleted radioButton from a group of radio buttons. The program is supposed to check on the database for controls that match the selected radiobuttons. The radiobuttons are named High,Medium,Low. For example If a person selects High, the program must go through the database and …

Software Development
Member Avatar for Geekitygeek
0
143
Member Avatar for Ramster

Hey guyz, can any one tell me how to run a java program in background of an OS(windows or linux) . Actually i am trying to develop an keylogger application in java. By the present status i understood it is some what difiicult , but i am not rdy to …

Software Development java
Member Avatar for JamesCherrill
0
73
Member Avatar for jas05

Hello Guys I am trying create a DataGrid in Windows forms application, but i am unable to fill the data into that. I am using data sets and data adapters for that, but i am getting a empty datagrid. I am quite new to c# so can some body please …

Software Development dataset
Member Avatar for Geekitygeek
0
102
Member Avatar for chingkoysilog

can u give the the code to client and server of this game "tic tactoe"...i need to network it....pls hep me..have mercy..pls give me the site or resources to get server and client.... #include <iostream> #include <string> using namespace std; bool gamedone,turn; int choice,player; string space[10]; void win(bool x) { …

Software Development c++ client-server
Member Avatar for sfuo
0
513
Member Avatar for Mr.UNOwen

Anyone have a clue what would cause the compiler to complain about static members and functions and virtual functions ? I've written a bunch of stuff with Qt in C++ without this problem. The only new thing is I've overrided a virtual function and created a few static data members …

Software Development c++ qt
Member Avatar for Mr.UNOwen
0
131
Member Avatar for i are smart

please tell me that there is a difference because i've spent an entire week figuring out how to make cTurtle work. Now that I have succeeded, both modules appears to have the same functions. Please tell me that there is a difference

Software Development python
Member Avatar for Ene Uran
0
215
Member Avatar for wil0022

hi can anyone help me? i cant even run the program I have made... This program should show the distinct numbers after you inputted numbers... I really don't know what to do, hehehe.. [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Distinct { class Program { static void Main(string[] …

Software Development
Member Avatar for Geekitygeek
0
113
Member Avatar for usagi713

Problem: The user should be able to specify a field and a value for that field and the program returns all works that match. For example, the user may specify Artist and Smithely, and the program will output all of the information concerning every work in the gallery by that …

Software Development c++
Member Avatar for sfuo
0
97
Member Avatar for ayhra

please help me in making a code on how to get the filename, application in a client is using. i need the code in visual basic 6.0. please help me. T_T asap[code]please help me in making a code on how to get the filename, application in a client is using. …

Software Development client-server visual-basic
Member Avatar for omoridi
0
198
Member Avatar for makaman

hey guys, i'm making a kool program for a game but when i debug the program it keep coming up with expected = , when i tried this code: [CODE]Shell ("Ping start" + Combo1.Text + ".blahnin.com -t", vbhide)[/CODE] is there a way to fix it? or is there another way …

Software Development visual-basic
Member Avatar for omoridi
0
106
Member Avatar for pankajkingel

Hi ! i have completed my project in visual basic. Now i want to create its setup by using deployment and setup package. But my set up should install the program files and database at the path which i have given in my code for database connectivity. How to do. …

Software Development visual-basic
Member Avatar for omoridi
0
94
Member Avatar for lotrsimp12345

I would say yes since both are ways of storing information.

Software Development c++
Member Avatar for Tom Gunn
0
82
Member Avatar for JasonHippy

Hey all, This isn't so much a question as a heads up... After using python for a few years (mainly doing blender scripts and random console/command-line apps and tools) I've recently started looking into doing some GUI based stuff using wxPython. I've had a look at a few of the …

Software Development gui python
Member Avatar for JasonHippy
0
533
Member Avatar for theo19

[CODE] import javax.swing.*; import java.awt.*; public class Calculator { public static void main(String[] args) { new Calculator(); } public Calculator() { JFrame f = new JFrame(" "); JPanel textfieldpanel1 = new JPanel(); JPanel textfieldpanel2 = new JPanel(); JPanel row1panel = new JPanel(); JPanel row2pane1 = new JPanel(); JPanel row3pane1 = …

Software Development java java-swing
Member Avatar for majestic0110
0
201
Member Avatar for sundy123456

Hi, i m a newbie in vb. I have this code which i have attached here. I have to use it to display live ECG signal using RS-232 cable. its my graduation project. I know the code is big , but please need help badlyyyy. I have installed vb 6, …

Software Development visual-basic
Member Avatar for sundy123456
0
239
Member Avatar for Joe Hart

I have a text file that I need to find data and assign it to a variable. I have found code to read and search a file but the information I want is not always constant. The Items in Red will change. Is there a way to find this information, …

Software Development python
Member Avatar for Joe Hart
0
90
Member Avatar for zyrus001

Hi, I'm pretty new to python but thought I'd write something to read [URL="http://www.zyrus.org/log2.log"]this log file[/URL] to try and learn it. Ideally, it will read this log file, match a string and return everything between the "****" delimiters where the string was matched. I'm not 100% sure how to go …

Software Development python
Member Avatar for zyrus001
0
172
Member Avatar for jrosh

I tried to add sroll bars to a textarea with the following code. It is not wrkin. Show me a way out! I just wanna add scrol bars to the textArea. class srolpane extends JFrame{ private JTextArea txtAr; private JScrollPane srlpane; private scrolpane(){ txtAr = new JTextArea(); txtAr.setBounds(250,50,400,425); srlpane= new …

Software Development java
Member Avatar for JamesCherrill
0
71

The End.