132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Sandy20

I need to send multiple request (command) to server at port 55005. My first request get process successfully & I received out put also. But for second request it gives error (WSAESHUTDOWN - Error 10058). After first requets I call shutdown(ConnectSocket, SD_SEND); Then only server process the first request & …

Member Avatar for Sandy20
0
839
Member Avatar for derbende

Hi guys, I have just started to learn c++ and I am working with robots. Every program is starting with main(int argc, char *argv[]) definition . I don't understand what does it mean?I am very glad if somebody canexplain for me .

Software Development c++
Member Avatar for stephendstump
0
1K
Member Avatar for clouds_n_things

Ok so, question about opening an application from python..is there a command that will force an app to open, while at the same time leaving the tkinter GUI open? The app I am trying to open is Snes9x. import os from tkinter import * try: import Tkinter as tk from …

Software Development gui python tkinter
Member Avatar for clouds_n_things
0
234
Member Avatar for Duki

Hey guys, I'm trying to understand how radix sort works in C++ : I've looked over the C++ implementation from wikipedia: void radixsort(int *a, int n) { int i, b[MAX], m = a[0], exp = 1; for (i = 0; i < n; i++) { if (a[i] > m) m …

Software Development c++ programming-construct
Member Avatar for deceptikon
0
316
Member Avatar for t2nator

In my program I have two child forms, one contains a richtextbox, and the other a webbrowser. When I type into the the text box it displays it in the webbrowser. The problem I am having is that after every key I press I have to click on the richtextbox …

Software Development vb.net visual-basic
Member Avatar for TnTinMN
0
125
Member Avatar for fyra

Hi people. I have a remove function that should set a hide member of a node to 1 instead of actually remove the node. The function works well when I insert and remove top and tap respectively (both nodes have their hide member set to 1) but when I insert …

Software Development c daniweb-bug data-structure seo
0
165
Member Avatar for Hey90

I would like to convert a procedural database program that I have created to an object oriented program. In my procedural program I use a struct: struct shoes{ char Name[20]; int Number; double ShoeSize; }; Putting this into a class would I simply use: class Shoes{ public: //Function declerations private: …

Software Development c++
Member Avatar for Hey90
0
627
Member Avatar for Oracle1986

How would I pass a struct from application to a class library API function?

Software Development api
Member Avatar for Begginnerdev
0
101
Member Avatar for Fame95

I have to find which of the following values can be the degrees of an undirected graph with 6 vertices: a) 3 2 2 2 3 3 b) 4 2 2 2 3 2 c) 5 2 2 2 0 3 d) 5 2 2 2 1 2 I only …

Software Development c++
Member Avatar for mike_2000_17
0
285
Member Avatar for daryl_1201

public class JavaApplication1 { public static void main(String[] args) { for (int i = 5 < = 100; 1 + = 5){ System.out.print(i); if (i <100){ System.out.print(","); } } } }

Software Development java java-netbeans
Member Avatar for stultuske
0
228
Member Avatar for mkweska

Hello all! Hope to be a very active nad productive member here as I learn. Currently in a python class and have a problem to solve. Not quite sure where my mistake is.... I am to put the inputs in the main function pass to the processing function and call …

Software Development python
Member Avatar for mkweska
0
226
Member Avatar for fyra

Hi everyone. I'm tying to understand the instruction below. I wish someone could explain me what it means: tree->destroy(((AvlNode*)(*position)->data)->data); // destroy the left branch of the binary search tree starting from the specified node static void destroy_left(BisTree* tree, BiTreeNode* node) { BiTreeNode **position; // can't remove from an empty tree …

Software Development c data-structure seo
Member Avatar for Nutster
0
376
Member Avatar for Bile

-->>Hello World of VB 6 Programers... -->>I've been using a block of Branching statement that worked fine in all the places I've used it... -->>Now I came to develop this form thats when things started to look bad... -->>I just check for the availability of a record in a database …

Software Development visual-basic
Member Avatar for BitBlt
0
202
Member Avatar for anumash

I have Dev-C++ as an IDE and MinGW as the compiler, and I am running C programs on the IDE. I have this project where I have to write raw PCM data (unsigned 8-bit i.e bytes of PCM) as an array. I have figured out the reading part but when …

Software Development c ide
Member Avatar for Moschops
0
138
Member Avatar for adikimicky

Can any one please tell me how to connect a simple java web application to Oracle10g Express edition? Which driver should I use? Thanks in advance.

Software Development java
Member Avatar for adikimicky
0
197
Member Avatar for varun51

Hi, Can somebody write a sample code to reverse a string using recursion. Basically a function which takes string as input parameter, reverses the string using recusrion and returns back the reversed string to calling function. Thank you Naveen

Software Development c
Member Avatar for Amangpt01
0
2K
Member Avatar for group256

Hi everyone, I have the implementation for a linked-list based Stack. I believe the entire code is correct, but only the way I call the push and pop function mighe be wrong. Any idea how they should be called? Mine returns garbage: #include <iostream> using namespace std; typedef struct Elements …

Software Development c++ linked-list
Member Avatar for deceptikon
0
285
Member Avatar for nah094020

I cant figure why my program is not running it compiles with no errors but doesnt run, am bearly starting to learn c , am more proefficient in java but its wierd changing, i use vi to write my code. heres a snipet #include <stdio.h> #include <stdlib.h> #include <time.h> #include …

Software Development c
Member Avatar for Ancient Dragon
0
157
Member Avatar for shah.harsh.m

I am a novice in programming. I have a project where I have to get data from a website (I ll be posting the website below). But it happens that I first have to select a date and press a 'Go' button and then click on another Button/Link 'View in …

Software Development c#
Member Avatar for shah.harsh.m
0
275
Member Avatar for ConfusedLearner

I created a program that will find the biggest number when give 3 different numbers. But when I want to change the program to find the biggest number when you enter 4 integer number I continue to run into problems. I can get it to find the biggest number when …

Software Development c++
Member Avatar for Ancient Dragon
0
133
Member Avatar for sumitrapaul123

Hi, I have a class which implements dispose patteren. Please see the sample code below. public class MyClass : IDisposable { private readonly IBanking mybanking; public MyClass(IBanking banking) { if (banking == null) { throw new ArgumentNullException("banking"); } mybanking = banking; } ~MyClass() { Dispose(false); } #region IDisposable Members public …

Software Development
Member Avatar for deceptikon
0
128
Member Avatar for Labdabeta

Hello, I was partaking in the global game jam (where you have to try to make a game in 48 hours). I got my game pseudo-finished, but I cannot get it to render the scene properly. Here is the code related to the rendering: Code for opengl initialization: glClearColor(0.5f,0.5f,0.5f,1.0f); float …

Software Development c++ opengl windows-api
Member Avatar for Ketsuekiame
0
271
Member Avatar for tunisia

I'm trying to expedite the process of manually opening up an XML file and searching for some info in it. I want to store some of the data, etc. Nothing elaborate. But I'm not clear on some of the file structure. For the seasoned XML data wrangler, can you instantly …

Software Development algorithm data-structure python xml
Member Avatar for tunisia
0
460
Member Avatar for BobFX

Hi, The Windows API function to select a directory is really bad, so I'm trying to use GetOpenFileName() instead. For that, the idea is to set a hook function, so that when the user hits the OK button without having actually selected a file, the hook function retrieves the currently …

Software Development api c++ windows-api
Member Avatar for BobFX
0
3K
Member Avatar for mcogliandro

I have this script that I thougth only deleted stuff more than 90 days old but after I ran it, it deleted pretty much everything on my backup drive. Thankfuly I have another backup drive so I did not lose my backup but I need to fix this so it …

Software Development shell-scripting
Member Avatar for rch1231
0
158
Member Avatar for suren3

How to store the elements and display?? struct A{ int level; char name[20]; struct b *a_b; }*d[3]; struct b { char name[20]; struct b *next; };

Software Development c c++
Member Avatar for akashgupta1990
0
155
Member Avatar for VictorK19

Here's the assignment requirement: > Write a program that creates a series of one or more loan amortization schedules. The program should query the user for an input file name and an output file name. The input file will contain the number of schedules that need to be generated as …

Software Development c++ file-system
Member Avatar for bguild
0
272
Member Avatar for adikimicky

hello everyone.. I am trying to connect a simple application to Oracle XE database. But when I run this program , the else part of program is running. Can Anyone tell whether I hav ewritten the code correct or not. import java.sql.*; public class jbc { public static void main(String …

Software Development java oracle
Member Avatar for radhakrishna.p
0
283
Member Avatar for 浩霖

I would like to create a font file (like .ttfv or etc) by using java, how can I do it. If java cannot create or edit font file, could you tell me which program language can do it? I would like do it by programming without exists software. I really …

Software Development java
Member Avatar for april88t
0
171
Member Avatar for Oracle1986

My project is to create controls inside a class library and then display them in another application. I already added the class library to my reference inside the application and added System.Windows.Forms to my class library. Here is the code in the class library: using System.ComponentModel; using System.Data; using System.Drawing; …

Software Development gui
Member Avatar for Oracle1986
0
187
Member Avatar for lewashby

In the following program how or the two while statements working, `while(szTarget[targetIndex])` & `while(szTarget[targetIndex])` since the their first element is initialized to zero? Zero is false and one is true so how are they getting even one iteration? The book I'M reading also made a point of saying this: "It …

Software Development c++
Member Avatar for vmanes
0
77
Member Avatar for dreday92

So for my assignment I have to create the Vector class and apply it .hpp to include the "Vector.h" file and no include the original Vector class. I have a few of the member functions done but am not sure how to begin with the other ones and im wondering …

Software Development c++
Member Avatar for dreday92
0
521
Member Avatar for Lethugs

Hi, im using crystal report on my project. It working very well but I just want o make it more flexible. I have textobjects with of course text in it. They are not bound since they are just additional information on my report. How can i make those textobject editable …

Software Development vb.net
Member Avatar for Lethugs
0
1K
Member Avatar for lewashby

How can I grow the size of a char array? `char myArray[6];` Assumming that all the current elements are occupied how can I add more empty element to the array to input another value into?

Software Development c++
Member Avatar for 9tontruck
0
155
Member Avatar for FearlessHornet

I'm currently making a DLL with a collection of code snippets that I find myself commonly using. I have made a search functin that checks if one string is inside of another string. I have also added a vector choice in the case that I want to search many strings. …

Software Development c c# c++ programming-construct
Member Avatar for mrnutty
0
228
Member Avatar for sk8ergirl

I'm almost done with my assignement I've created 2 class and I have one format method in student class the file look like this (there are about 25 lines) courseNum courseName courseSemester studentID,studentProgram,studentGpa studentID,studentProgram,studentGpa the output should look like this courseNum courseName courseSemester studentID--studentProgram--studentGpa studentID--studentProgram--studentGpa I'm still not sure if …

Software Development java
Member Avatar for tux4life
0
253
Member Avatar for Nutster

Recently, I saw somebody start a "Deal or No Deal" game in the Posting Games section. This got me thinking of writing a program to actually play the game based on the rules of the show. So I spent a couple of hours writing this in ANSI-C. I probably should …

Software Development c gaming posting-games ubuntu visual-studio
Member Avatar for Nutster
0
355
Member Avatar for toldav

I just need help to display my initial value of 25000 when the loop runs and print the years. I need the year 1 to be the initial value without doing the percent first. Also my print format doesnot display the $ and the headers. Any guide to the right …

Software Development java
Member Avatar for toldav
0
177
Member Avatar for bryan.casin

this is a calculator in asm using tasm..this works fine but the problems i want to fix are: 1.remove the division part(add,sub,and multi are required). 2.i want to remove the menu, when i run the program it should show up directly to the input part. 3.i want this thing [+][-][*] …

Software Development assembly
0
1K
Member Avatar for vonnoy

i got a little problem here, i want to update my record by opening it on another form. but it only update the first record on the list, can anybody help me with this. heres my code: 'first form Private Sub command1_Click() If Text1 = ListView1.SelectedItem.Text Then With form2 .Label1.Caption …

Software Development visual-basic
Member Avatar for tinstaafl
0
117
Member Avatar for dicknballs

i am working on a program called myBalls. so far, heres what i have import java.util.Scanner; public class Penis { private int length; public Penis() {} public void setPenisLength(int l) { length = l; } public int penisLength() { return length; } } public class myBalls extends Penis{ public static …

Software Development java
Member Avatar for tux4life
0
649
Member Avatar for ponnu

Runtime error 2147467259(80004005): The changes you requested to the table were not successful because they would create duplicate values in the index, primary key..How to catch the exception?

Software Development visual-basic
Member Avatar for G_Waddell
0
142
Member Avatar for Hey90

I have created a basic object oriented database of a list of shoes containing the shoe name, number and shoe size. I am trying to sort the list of shoes alphabetially by name and by shoe size. I have the following code: Shoes.h: #include <iostream> #include <fstream> #include <string> #ifndef …

Software Development c++ ios programming-construct
Member Avatar for Hey90
0
4K
Member Avatar for anumash

I recently wrote a program to determine my current working directory using getcwd(). getcwd() returns the starting address of the character array supplied by the programmer. I have written a very simple program and as I am not an experienced C program can anyone mention what I can do to …

Software Development c
Member Avatar for deceptikon
0
106
Member Avatar for RobRTaylor

Is anything wrong with this code? I ask because in the past, I included the text file with the installer. In an attempt to simplify the installer, I decided to make the app generate the text file and put it where it needs to go. Here's the code (simplified) First …

Software Development file-system vb.net
Member Avatar for RobRTaylor
0
145
Member Avatar for ChicagoBears2012

Basically I'm supposed to make a program that copies the Unix -wc command. Flags -l, -w, -c, and -L are supposed to display # of lines, # of words, # of characters, and # of characters in line, respectively. I am having trouble reading in a text file (first time …

Software Development c file-system unix
Member Avatar for ChicagoBears2012
0
120
Member Avatar for bramprakash1989

i tried the following coding .it compiled without errors but gave absurd results during runtime. can u pls help me with it? [code=cplusplus] #include<iostream.h> #include<stdlib.h> int main() { int i; cout<<"ten random numbers for the range 0 to 50"<<endl; for(i=0;i<10;i++) { cout<<rand()<<endl; return 0; } }[/code]

Software Development c++
Member Avatar for dramatic
0
1K
Member Avatar for can-mohan

Hi, Below code snippet belongs to copy constructor implementation. my question is in both cases (without and with copy constructor) if i execute this programme ,it will print the diff-2 memory addresses for both objects. 0x22ff20integer=0 (for object s1) 0x22ff10integer=0 (for object s2) but i believe in case of without …

Software Development c++
Member Avatar for deceptikon
0
192
Member Avatar for akhilchandranms

hai , I am using turbo c compiler, the system() function always return -1. i can't run any dos command using system() function i can't use system() properly please help me !!! ex: [CODE] #include<stdio.h> #include<conio.h> #include<stdlib.h> void main() { int i ; i=system("dir"); printf("%d",i); getch(); } [/CODE]

Software Development c
Member Avatar for deceptikon
0
1K
Member Avatar for StefanRafa0

Hello guys im working on program and i stucked at database i need to create some place that will save all information of Account (in some file if can) then read it every time user "Log in" in the program. I tryed searching but i cant get it ... Please …

Software Development java
Member Avatar for tux4life
0
359

The End.