132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jp071

Hello, I am doing simple read/write program for serial port. I am faceing a error that i donĀ“t understand. Error is: "error C2664: 'CreateFileW' : cannot convert parameter 1 from 'const char [5]' to 'LPCWSTR' " My whole program: #include <windows.h> #include <iostream> #include <string> using namespace std; void set_com_pin(bool …

Software Development c++
Member Avatar for zeroliken
0
2K
Member Avatar for mpcon
Member Avatar for syareza

program can receive an input value is between 0-9 and then print the multiplication table for its : example if input :7 output : sifir 7 1 x 7 = 7 12 x 7 = 84 please help me....

Software Development java
Member Avatar for syareza
0
83
Member Avatar for adams161

Hi, On windows, i don't see a maximum button on my JDialogs and this is fine, but on a Mac I have this dialog that people can keep up and use other windows, but you can also maximize a dialog on a mac apparently. There is a maximum button. At …

Software Development java
Member Avatar for adams161
0
163
Member Avatar for cdea06

So the project is to write a program (for a beginners C class) that compares 2 words and see if there anagrams of each other. I'm about halfway through the program and it was working fine until i tried to add the IF STATEMENTS with isalpha. What I'm trying to …

Software Development c
Member Avatar for cdea06
0
464
Member Avatar for blindg35

Hello guys, just joined the community. Found it through google. :) I am basically new to python, only couple of days of knowledge. I am trying to make all the words in a txt file appear in 4 or 5 in a row. so the txt file looks like this: …

Software Development python
Member Avatar for woooee
0
257
Member Avatar for triumphost

Is there any C++ .Net IDE's around? I mean visual studio is ok.. it just isn't as good as SharpDevelop which only does C#, VB and a few others. It doesn't do C++ that's why I'm looking for a C++ version of SharpDevelop. Any Ideas? SharpDevelop [url]http://www.icsharpcode.net/opensource/sd/[/url]

Software Development asp.net c c# c++ ide visual-studio
Member Avatar for thines01
0
449
Member Avatar for ComputerGirlie

For school I have to write a program that requests a 3 part name and breaks it into a first, middle, and last name. I wrote the code but the alignment of my output is not right. I was wonderng if someone can tell me what I did wrong and …

Software Development python
Member Avatar for ComputerGirlie
0
640
Member Avatar for firecy

I've been programming in Java for a few years now, and I've always wanted to be able to run my programs on computers without the JDK installed. I've been trying to make an executable .jar file, and it seems to work on my computer(the one with JDK installed). However, as …

Software Development java java-swing
Member Avatar for NormR1
0
233
Member Avatar for RiddoKun

[CODE] import javax.swing.JOptionPane; public class Finance { public static void main(String[]args) { boolean Access = false; String studentName = JOptionPane.showInputDialog(null, "Enter in your name: "); //String current = JOptionPane.showInputDialog(null, "Enter your password: "); //double currentBalance = Double.parseDouble(current); Account newAccount = new Account(studentName); //Gains access to Account class JOptionPane.showMessageDialog(null, newAccount.toString()); } …

Software Development finance java java-swing
Member Avatar for RiddoKun
0
96
Member Avatar for davidTechy

Please help to make a code of the josephus problem in C using the circular linked list.

Software Development c linked-list
Member Avatar for WaltP
0
3K
Member Avatar for rfrapp

My assignment is to create the Game of Life. I know that it is very easy to find out how to do this online, but I don't want the answers fed to me. Here's what I have so far: [CODE] // Life.cpp : Defines the entry point for the console …

Software Development c++ gaming
0
123
Member Avatar for GAME

Is there a way to get a Message from a website(like copy it), then have it show up in a textbox? If, so can you provide an example?

Software Development
Member Avatar for jakemdrew
0
860
Member Avatar for travelingt93

So i have a program i am writing,and i have come to problem. I want to be able to pass a set of three strings into a function, which should then take them and add them to a Vector. All good so far, now is where my problem develops, how …

Software Development c++ gaming
Member Avatar for Ab000dy_85
0
209
Member Avatar for kimbokasteniv

What I am trying to do is the following: [CODE] ReceiptBag zero("zero"); ReceiptBag one("one"); ReceiptBag bags[2]; bags = &zero; (bags+1) = &one;[/CODE] Of course that is not valid code. My goal is to be able to reference the same zero or one object by using its variable name or by …

Software Development c++
Member Avatar for kimbokasteniv
0
301
Member Avatar for toomutch

Hi all, Having problems with null dates in a mysql table. Have eventually found out that I can store a 'null' date in mysql as "0000-00-00" and I can run the 'insert' command to add a record to the mysql table. When I check on mysql workbench I can see …

Software Development mysql vb.net
Member Avatar for toomutch
0
843
Member Avatar for kyriacos1986

I want to read from the keyboard the first name and last name of a member separated by space I have tried the following but it doesn't work. [CODE] public static void updateWeight() { Scanner in = new Scanner(System.in); // Creation of a new Scanner object String tempName = ""; …

Software Development java
Member Avatar for NormR1
0
186
Member Avatar for irre

hello, im totally new to this forum, but i already checked whether my ask is answered somewhere else already. i couldnt find anything... i used to work with dev-cpp and i have to work with the cnum.h library a lot. Since im a student i am able to get MS …

Software Development c++ visual-studio
Member Avatar for Ancient Dragon
0
184
Member Avatar for new2pyp

Hi, Just started learning python..and want to learn to do this I want to read a text file that something like 10000 20000 30000 40000 20000 30000 88888 88888 60000 12333 44431 12345 I want to get the difference of numbers in column1 divided by x, where I want to …

Software Development python
Member Avatar for ihatehippies
0
185
Member Avatar for Dillary

(I'm new to programming in general) I created a program in python without an interface and part of it used a raw_input to get a users answer and compare with a stored answer. This was in a loop that limited the number of attempts the user could have. This worked …

Software Development python tkinter user-interface
Member Avatar for Dillary
0
416
Member Avatar for Goldfinch

Hi, I'm trying to read a file, line by line, into an arrayList, assigning a different line to each element and ensure that: 1. It's actually happening (which is the reason for the println statements) 2. that the scope of the arrayList with the string elements filled in is sufficient …

Software Development file-system java puzzle
Member Avatar for Goldfinch
0
966
Member Avatar for saneeha.nust

I want to parse the IP packet using SharpPcap and PacketDotNet functions.. The code is: private static void device_OnPacketArrival(object sender, CaptureEventArgs e) { var p = PacketDotNet.Packet.ParsePacket(e.Packet.LinkLayerType, e.Packet.Data); if (p != null) { var tcp = PacketDotNet.TcpPacket.GetEncapsulated(p); if (tcp != null) { Console.WriteLine(tcp.SourcePort); Console.WriteLine(tcp.DestinationPort); } } } where the functions …

Software Development visual-studio
Member Avatar for skatamatic
0
565
Member Avatar for TIM_M_91

Hi Guys well what I want to do is instead of within my writeString to set my PLAYCOUNT to '16' what I want to do is every time the statement is executed my PLAYCOUNT is increased by 1. Any help you can give would be appreciated: My code is below: …

Software Development java microsoft-access sql
Member Avatar for TIM_M_91
0
175
Member Avatar for masmith25

I'm hoping someone can help me out with this. I have a datatable populated from an SQL Server 2008 database table. I created a DataAdapter with a commandbuilder to manage the updating, inserting, and deleting of records. The Updating and Inserting work as expected. However, Delete does not. The code …

Software Development dataset sql vb.net
Member Avatar for masmith25
0
745
Member Avatar for ventura1

Related to: C#; Windows form, Storing Multiple Instances of a User Control: Hi: I’ve created an app with a user control that accepts parameters. When a user clicks a button I need to store the current view of the control and bring into focus on demand. Several instances of the …

Software Development app-store
Member Avatar for ventura1
0
260
Member Avatar for bill_kearns

I'm using C# in VS2010 and I need some help with a web application. I don't have much experience with web services. I was given the url to a webservice containing methods required to build the login part of the application. No documentation. I have the login piece working though. …

Software Development
Member Avatar for skatamatic
0
204
Member Avatar for mikeybware

I have the following code which creates a nice little instant messenger for my program. I am running into trouble when I try to send a message to a user that is not logged into their chat window. It waits about 20 seconds, then throws the error message. In the …

Software Development vb.net
Member Avatar for mikeybware
0
375
Member Avatar for Lucaci Andrew

So, even thou I have searched throughout the forums, I couldn't get a clear answer, maybe perhaps I'm a noob @ Python. As a beginner, I don't know much about Python, and it's frustrating to search the net and not find the actual answer. So, I'm working on this project, …

Software Development file-system microsoft-access python
Member Avatar for Lucaci Andrew
0
321
Member Avatar for codechrysalis

Basically I have to do this: [B]Write a program that displays the number of students that can still enroll in a given class. Design your solution using parallel arrays.[/B] my problem is what loops should I use for this I dont think [B]for[/B] loops would be useful at all...I think …

Software Development programming-construct
Member Avatar for codechrysalis
0
191
Member Avatar for meetjatin88

Hi Everyone, I am Actually trying to make a simple C++ game in which some random alphabets will fall down and when we press one of those random alphabets keys the aphabet should disappear. The problem that i am facing in making this code is that when i am using …

Software Development c++
Member Avatar for deceptikon
0
271
Member Avatar for razamughal67

please solve my problem i want to know where we show text when we use copy cut command Example: we use a command Ctrl+C or Ctrl+X any text in textbox or any file or folder i want to view his clipboard where it link save OR view in Registry or …

Software Development visual-basic
Member Avatar for BitBlt
0
446
Member Avatar for saneeha.nust

I want to create a file on a remote machine, and write to that file. What are the ways of doing so.. I have searched, but couldn't get any thing relevant... if I give the ip address of the machine in the path of file., will it work?? kindly help...

Software Development
Member Avatar for skatamatic
0
189
Member Avatar for freedomflyer

Earlier on, in [URL="http://www.daniweb.com/software-development/java/threads/412571"]this thread[/URL] my question was answered about how to add objects of a custom class I called State into a HashSet which was a value for a key in a HashMap. [CODE]Map<String, HashSet<State>> mapping = new HashMap<String, HashSet<State>>();[/CODE] However, I need to ensure that there are only …

Software Development java
Member Avatar for JamesCherrill
0
350
Member Avatar for aristosv

I have a form with a textbox and I want that textbox to read from http.conf on line 162. Line 162 reads ServerAdmin [email]you@yourdomain.com[/email] Shouldn’t this code work? [CODE]Public Class Form1 Dim apacheconf = "c:\httpd.conf" Dim line() As String = IO.File.ReadAllLines(apacheconf) Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles …

Software Development vb.net
Member Avatar for kingsonprisonic
0
175
Member Avatar for vlady

Hello, pls can anybody show how works printing? here is the code: [CODE]class Student(object): def __init__(self, name): self.name = name self.report = dict() def add_subject(self, subject): self.report[subject] = list() def subjects(self): return self.report.keys() def s_subjects(self): lpre=[] for subject in self.subjects(): lpre.append(str(subject)) print lpre class Subject(object): def __init__(self, name, teacher = …

Software Development python
Member Avatar for Gribouillis
0
98
Member Avatar for taurusone

hi friends plz tell me how to add time which is in HH:MM:SS (in 24 hr format). i have a array of time stored. need to add those times and calculate total time...

Software Development
Member Avatar for thines01
0
102
Member Avatar for Abhineet.Ayan

Hi All, Why my QueueUserWorkItem is not at all working. My code is here: [CODE] typedef struct { PCHAR URL[MAX_URL] ; PCHAR DestinationPath ; }MAINDATA, *PMAINDATA ; int main(int argc, char * argv[]) { PMAINDATA pData ; BOOL bQuwi ; DWORD dwIndex ; PCHAR pURL ; pData = (PMAINDATA)malloc(sizeof(MAINDATA)) ; …

Software Development c c++ microsoft windows-api
Member Avatar for DeanMSands3
0
642
Member Avatar for 47pirates

HOw can i send and receive images over the socket in java?

Software Development java
Member Avatar for JamesCherrill
0
199
Member Avatar for chamnab

How can i delete a row in table using abstractTableModel ?

Software Development java
Member Avatar for mKorbel
0
748
Member Avatar for student_learner

i found this code in a book. i am finding it confusing. [code] #include<stdio.h> int main() { int arr[3]={2,3,4}; char *p; p = (char*)arr; // line A p = (char*)((int*)p); printf("%d",*p); p= (char*)(p+1); //line B printf("%d\n",*p); return 0; } [/code] the answer is: 2 0 but i cant figure out …

Software Development c
Member Avatar for DeanMSands3
0
233
Member Avatar for Jigs28
Member Avatar for thines01
0
139
Member Avatar for perryleros

Hello everyone, Im developing an application in C# for a school project that encrypts data in text form using a password and vice versa, and i' d need some help with something. The program encrypts fine taking as input 1)the data (reading it from textbox) and 2)the password, and stores …

Software Development algorithm encryption
Member Avatar for overcanyon
0
4K
Member Avatar for pipelian

My form has a TextBox with values like(e.g: P011112, C0212102) those are products lot numbers that the user enters. Then, what i want is that a DateTimePicker takes the first 4 digits as "MM-yyyy" and add 3 years to that date. Example: TextBox.text = P011112 DateTimePicker = January, 2014 Thanks …

Software Development vb.net
Member Avatar for pipelian
0
322
Member Avatar for SasseMan

I'm searching for a java library/framework that makes printing easier. By easier I mean something that makes it possible to layout and format text/images and other elements in a document by defining layouts in html/xml or something. I also want the layout to be decoupled from rendering so the document …

Software Development java printer
0
101
Member Avatar for niyasc

I'm trying to design Programmable Logical Array using c language. Due to lack of time I downloaded code for tabulation from internet. Now I have modified it to return f and f' in a character array. It works fine for some functions. But it shows memory allocation problem for some …

Software Development c microsoft-access motherboards-cpu-ram
Member Avatar for Abhineet.Ayan
0
280
Member Avatar for Tuz

can someone tell me how can i do arrylist(of three classes) in one class ??

Software Development java
Member Avatar for stultuske
0
269
Member Avatar for smith32

[CODE] sem_t w,r,s1,s2,s3; pthread_mutex_t m; int main(int argc, char* argv[]) { mutex and semaphores initialization ..... call threads.... wait until finish and cancel threads... clean threads and semaphores [I]exit;[/I] } void *reader(void *argv) { while(TRUE) { sem_wait(&r); sem_wait(&s1); pthread_mutex_lock(&m); ... read data..... pthread_mutex_unlock(&m); sem_post(&s1); sem_post(&w); } printf("Done read\n"); sem_post(&extra2); pthread_exit(NULL); …

Software Development c
Member Avatar for Abhineet.Ayan
0
175
Member Avatar for radiat

Hi, can you have a quick look at the two for loops here. I've declared the int 'i' in the first for loop but in the second for loop it doesn't recognise it and i have to declare it again. Why is that? [CODE]for(int i=0; i<x; i++) { cout << …

Software Development c++
Member Avatar for MandrewP
0
180
Member Avatar for Netcode

Hi everyone! Am new to python, getting grounded in it as fast as i can but now, i have some issues. I use the web2py framework for web development. At the moment, am working on a blog using one of the CMS (named InstantPress) designed in web2py also. While editing …

Software Development cms operating-system python
Member Avatar for Lucaci Andrew
0
200
Member Avatar for justindill

I definitely need assistance with homework assignment: I seem to have a lot of issues creating a program when I have to use JOptionPanes(s). After the instructions is my current code. 1. Design and implement a Java program that will gather integer numbers and performs some computations on the data …

Software Development java
Member Avatar for zeroliken
0
614

The End.