43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Nemoticchigga

Hey, Any Idea why this section of code would give me these linker errors using Visual Studio 05 in a console application and using winsock2.h: error LNK2019: unresolved external symbol __imp__WSACleanup@0 referenced in function "void __cdecl CloseDevice(void)" (?CloseDevice@@YAXXZ) error LNK2019: unresolved external symbol __imp__closesocket@4 referenced in function "void __cdecl CloseDevice(void)" …

Software Development c++ visual-studio
Member Avatar for Nemoticchigga
0
92
Member Avatar for uniquestar

Hi, can you guys please tell me how I can print a screenshot of a form? I am linking to a database and I want to print the form with the names of fields etc... Cheers

Software Development visual-basic
Member Avatar for edytzuu
0
127
Member Avatar for mcenley

Hi friends, I am trying to write a histogram function in Python. This is what I have managed so far: [code=Python] def histogram(s): d={} for c in s: if c not in d: d[c]=1 else: d[c]+=1 return d h=histogram('brontosaurus') print h [/code] However, I want to use the get() function …

Software Development python
Member Avatar for mcenley
0
158
Member Avatar for gwarguy

Howdy, Im a beginner to programing and Ive chosen python as my first language to learn. I have recently completed my first "non-tutorial" code. I wrote a book modeled after the old "Choose Your Own Adventure" books. When ran it asks for your name, and puts you into the story, …

Software Development python
Member Avatar for sinkingships7
0
95
Member Avatar for mikky05v

I'm a student enrolled in a University beginners programming course. The problem is: [B]Write a program capable of using month and day of a given date to calculate the number of days from january 1 that it represents. Make the program capable of computing values for as many as 20 …

Software Development c++ ios
Member Avatar for mikky05v
0
127
Member Avatar for Jennifer84

I wonder how it is possible to open 2 instances at the same time of a Form. Normally when you ex press a button to open another form, one instance of that form is opened. If I put these 2 lines inside a buttoncontrol, first one instance is opened and …

Software Development c++
Member Avatar for Jennifer84
0
148
Member Avatar for dnk

please help me.. there anyone know how to reverse strings??? i really don't have idea for this.. please helps...

Software Development pascal
Member Avatar for Jx_Man
0
218
Member Avatar for zerox55

Hello. I just started with assembly. In my emulator (emu8086) this code work perfectly. But when i write it out to a floppy it doesn't work. I know that if i write out one letter at time, it works. Is it impossible to write this way? [CODE=asm]#make_boot# org 7c00h jmp …

Software Development assembly
0
80
Member Avatar for Ben10

Take (10) integers, store them in 1D array then do the following: 1. find the max and min number of them 2. find the average 3. sort these numbers in ascending squence the first two questions are quite easy but my problem is in sorting those numbers...anyways, i came up …

Software Development c++
Member Avatar for Ben10
0
127
Member Avatar for Traicey

I have been trying to figure something out ever since I started doing C++, My goal is to code my own game and coming to think of that.... I have read many articles about how U go about on doing that and as far as I have read C++ is …

Software Development c++
Member Avatar for Traicey
0
157
Member Avatar for random7

I have a question about reading array from file. I wrote some array at file like below. file name: xy0.dat [2, 4, 6] [4, 8, 12] ... ... Now, I want to read this array(not string) at my original file. I want to define x0[0] = [2,4,6] and x0[1] = …

Software Development file-system python
Member Avatar for vegaseat
0
2K
Member Avatar for thedonshi

Hello everyone, I am making a program which acts like a library system. There are two classes: Book and List. The List class contains all the linked list information; [CODE] struct ListNode { ListItemType item; ListNode *Next; };[/CODE] Now, my problem is in the Book class file (Book.cc). I have …

Software Development c++ linked-list
Member Avatar for Narue
0
132
Member Avatar for Paul.Esson

After looking at compile errors because I was not overriding this function ( although being convinced that I was) I have a query for all you C++ buffs in the audiance. What does the ^ do in the following line. [CODE] virtual System::Object ^ Clone(void) override; [/CODE] I know this …

Software Development c++
Member Avatar for Traicey
0
164
Member Avatar for StephNicolaou

I'm trying to show a dialog message if the user clicks a button and a text field is empty. [code=java] Action listener - if(event.getSource() == cmdSaveSettings) if(txtPlayerOneName.getText().equals(emptyText)) { JOptionPane.showMessageDialog(null, "alert", "Please enter player one's name", JOptionPane.ERROR_MESSAGE); } [/code] Ive add an action to listener to the button and the textfield: …

Software Development java
Member Avatar for masijade
0
213
Member Avatar for sammy_eyison

Hello Jx_man, I have been trying to download the zip file you sent to Neji on [B]Get all users[/B], but it appears to be corrupted. I will be grateful if you could resend it to me. Thanks in advance.

Software Development visual-basic
Member Avatar for Jx_Man
0
144
Member Avatar for Majestics

I have a string , i want to give it a blink effect ... is there any specific function for it .

Software Development c
Member Avatar for arpit_yadav
0
143
Member Avatar for strus_jan

#!/opt/bin/perl $[ = 1; # set array base to 1 $, = ' '; # set output field separator $\ = "\n"; # set output record separator $FS = ';'; line: while (<>) { chomp; # strip record separator @Fld = split(/[;\n]/, $_, 9999); $id = $Fld[1]; if ($. == …

Software Development perl
Member Avatar for strus_jan
0
98
Member Avatar for Diode

I'm trying to figure out how to parse options such as -h out of the arguments passed on the command line when the program is called. Here is my code so far. I compiled it with gcc -Wall -o options options.c and got no warnings or errors. Although, when I …

Software Development c ubuntu
Member Avatar for Diode
0
102
Member Avatar for AUGXIS

help me.i woul like to make my access 2003 database be network database.im using vb6 as front end.thanks

Software Development visual-basic
Member Avatar for AUGXIS
0
84
Member Avatar for Expotential

I am trying to remove a list item in a listbox... the problem is I have to remove it by the what is visible to the user the program doesnt keep record of the index number in the listbox so we have the following in a list box Bob Fred …

Software Development visual-basic
Member Avatar for Expotential
0
187
Member Avatar for Jennifer84

I have a richTextBox where I am trying to replace all strings that look like this: "stringvec[11][12]". I have this for loop so far that would work if the string always had the same lentgh but the thing is that I will not know if the string also can look …

Software Development c++
Member Avatar for Jennifer84
0
96
Member Avatar for Run.[it]

Weve been given this example to work with and Im not sure about the line 9 [B][I]char cont = 'n';[/I][/B] - is there even a need for it? The rest of the program I understand. [code=c++] #include <iostream> #include <stdio.h> using namespace std; int main() { int no = 1; …

Software Development c++
Member Avatar for Run.[it]
0
151
Member Avatar for rmurphy1061

I am having a problem reading a date format in a file I am trying to count the difference between two dates. the format I have is 010108. I tried to break up the date mmddyy but have run into other errors. [CODE=python]import datetime as dt # US format month/day/year …

Software Development python unix
Member Avatar for vegaseat
0
131
Member Avatar for quophyie

Can one of you gurus give me some help please. I am a new programmer so please bear with me. I have a header file called Deck.h and a cpp file called Deck.cpp. In my header file, I have a class called Deck which has prototype function called createPack as …

Software Development c++ file-system
Member Avatar for quophyie
0
392
Member Avatar for Lensva

[code=c+] #include <iostream> #include <string> using namespace std; int main() { string a; cout<< "enter string" <<endl; cin>> a; string b; //======================================================== for (int j=a.size(); j>0; j--) { for (int i=0; i<a.size(); i++) { b[j]=a[i]; } } cout<< b <<endl; return 0; } [/code] i want the first character on …

Software Development c++
Member Avatar for Lensva
0
124
Member Avatar for Ben10

Q- Use swapping concept to swap the elements of 1D array consist of 10 integers. Ask the user to enetr the values of array elements then print them out to the screen before and after swapping. e.g. a[0] ----> a[9] a[1] ----> a[8] a[2] ----> a[7] a[3] ----> a[6] a[4] …

Software Development c++
Member Avatar for Ben10
0
214
Member Avatar for demroth

I am trying to match a string to see if it follows a given pattern. I have seen this example in my Orielly books but do not understand the logic. Here is the a small snippet of example code: [code=cplusplus] const string digits("0123456789"); const string float_digit = digits + '.' …

Software Development c++
Member Avatar for Rajith Cherian
0
120
Member Avatar for bhavna_816

I have a function which have return type DataRow and the parameters for the fucntion are the parameters for the stored procedure. I have to execute the Stored Procedure with given parameters and populate the datarow so that the return will be the populated DataRow with the output of the …

Software Development c#
Member Avatar for razool
0
337
Member Avatar for Barbarrosa

Hey, I am currently trying to read a text file, which looks something like this: 1 2 3 4 . . a b c . . . I would like to read the integers and characters into the same array. I tried using a char, string.. hoping that it would …

Software Development
Member Avatar for shuban
0
94
Member Avatar for marcosjp

Hi there! I'm new to Java and just arrived at this forum. I hope I can get some help here - getting a little desperate. Well, I have to develop a small game in Java and in this game the user must be able to click on different spots on …

Software Development java java-swing
Member Avatar for marcosjp
0
158
Member Avatar for adnanius

Hi, I'm trying to 'reduce' a vector using the erase algorithm within a for loop. The idea is to scan a table looking for equal successive elements. Once equal elements are found, it erases one of the 2 elements. I'm suspecting a problem in the for loop, due to the …

Software Development algorithm c++
Member Avatar for adnanius
0
302
Member Avatar for linux0id

Hello everyone! I am writing a function to multiply two matricies together. I have written a simple algorithm for a matrix 3x3 - [CODE]void multiply() { int a[3][3], b[3][3], c[3][3], i, j , p, val = 0; a[0][0] = -1; a[0][1] = 0; a[0][2] = 1; a[1][0] = 5; a[1][1] …

Software Development algorithm c++
Member Avatar for linux0id
0
86
Member Avatar for jcato77

I am having trouble figuring out my code and was hoping someone could point me in the right direction. Below is my code what I need to due is create a method to add and display the value of the entire inventory. I have what I think is the correct …

Software Development java
Member Avatar for jcato77
0
150
Member Avatar for petersrin

I am very new to programming in general, and of course, it follows: to Python. Yet, I am in desperate need of a particular database program, and I am attempting to write it via objects, since I need to learn the ways of OOP anyway. I am currently trying to …

Software Development oop python
Member Avatar for petersrin
0
148
Member Avatar for Lukezzz

I know there is a function that if you put the mousecursor over a buttoncontrol, it is possible to have a litte "window" that occur over this button that tells what this button does. I have looked into the members and seen something like this. I am not sure if …

Software Development c++
Member Avatar for Lukezzz
0
139
Member Avatar for resduq

hi everyone for my comp sci class i'm supposed to write a piece of code which will take in 10 ints and put them into an array of such size. unless the input is either a 3 or 7 in which case wats left of the array will be written …

Software Development c++
Member Avatar for resduq
0
281
Member Avatar for Lukezzz

I have a general wondering about std::vector<string>. If you declare something like this, I have set 1 million elements to this vector. If I run this program just declare it like this without filling the elements with any strings. Does this take up any RAM memory just because I have …

Software Development c++
Member Avatar for Lukezzz
0
155
Member Avatar for eloans

Fair warning, I'm new at this. I'm having trouble getting a submission form to work. The end result now is that it will submit, but the submission never reaches my e-mail. Please tell me what I'm missing from the following code. [code] <form method="post" action="mailto:phoenixsociety3806@yahoo.com"> <td align="left" valign="top" style="font-weight:bold;">YOUR NEONAME</td> …

Software Development
Member Avatar for Ramy Mahrous
0
82
Member Avatar for Geekerz

Hi there, i'm from Malaysia. first of all, i would like to say that I'm quite bigginer in Java programming. However, I had released my own virus based on Java last month. I feel too stupid to release it. So, I need your help to open the door for me …

Software Development java
Member Avatar for StephNicolaou
0
126
Member Avatar for StepIre

Hi All, I am writing a little program that i should be able to get working i think! basically i have this file full of content and i want to search it for a list of words. And add to a score variable each time i find a word [CODE] …

Software Development file-system python
Member Avatar for woooee
0
91
Member Avatar for rje7

dear all, wat should i do to clear the input buffer stream? and also make me clear regarding flush and fflush. both do the same functions?

Software Development c++
Member Avatar for rje7
0
111
Member Avatar for EnderX

I am working on a program designed to map a networked drive to a Linux Samba share. I have been requested to give the end users a way to select what drive they want to map. I know that some drives are off limits for use; (A:, C:, and the …

Software Development delphi flash pascal samba
Member Avatar for Duoas
0
1K
Member Avatar for november_pooh

Hi all.... i m already got startup path and now i want to copying my exe file into startup. how i can do this?? please help me. any help will be appreciated

Software Development visual-basic
Member Avatar for Jx_Man
0
177
Member Avatar for jem00

Hey Guys, I have started using Visual basic 6.0 but i'm running into a few troubles. How can i write this psuedo code into visual basic: [CODE] BEGIN even and odd numbers PUT "Enter a number : " GET num even = 0 odd = 0 WHILE num <> -1 …

Software Development visual-basic
Member Avatar for Jx_Man
0
119
Member Avatar for rogelioz

Hi, I'm trying to save some data taken from a ISO-8859-1 encoded page into a SQL SERVER 2005. The problem I have is that when I retrieve the information and put it in a XML there are characters missing. I'm using the URLEncoder.encode method to escape the "bad" characters from …

Software Development java xml
Member Avatar for rogelioz
0
118
Member Avatar for Jennifer84

If I want to find the start and end position of the word "how" on these two rows in a textBox. Is there any other approach then substring each line or is it the substring method I am going to use. ? //text in textBox Hi, how are you good …

Software Development c++
Member Avatar for Jennifer84
0
127
Member Avatar for RossSCann

I am now using Visual C++.net 2002 edition. My main ongoing project, an application that teaches the game of bridge, is now 350 K + llines of code, 95 % of which is application logic. The 5% dealing with GUI is just SDK for speed. I am just a retired …

Software Development c++ gui ide
Member Avatar for RossSCann
0
178
Member Avatar for jeffburns75

Hello all. I have am currently working on a assignemtn and i am having trouble with calculating the prime number, which the user can enter. I am also having trouble with returing to the begining of the code if the user does not select one of the options available to …

Software Development java
Member Avatar for VernonDozier
0
79
Member Avatar for gehad3003

Hi I want to have a variable that contains item number. int didn't work because i want to make the item number start with 3 or 4 zeros. if i use char * I can't increment the value of char? any help will be appreciated

Software Development c++
Member Avatar for gehad3003
0
165
Member Avatar for maharajakecil

please please please... i really need the source code to send integer using vb6.0. i'm using rs232

Software Development visual-basic
Member Avatar for Jx_Man
0
88

The End.