132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sarelnet

Hi, I'm very new in Python and I have to write an file interpretor (first ex from university). The file looks like: joker NAME_OF_BLOCK bla bla { block_field abv : bit : R ; block_field acd : byte : RW ; block_field zza : bit : R ; block_field aw …

Software Development python
Member Avatar for sarelnet
1
151
Member Avatar for Reverend Jim

Sometimes sorting data can be easy and sometimes it can be difficult. If you have data in a listview you can spend a great deal of time writing ICompare functions. This is appropriate for non-trivial applications but can be a little intimidating for inexperienced programmers. Also, it is a problem …

Software Development listview vb.net
Member Avatar for Reverend Jim
1
892
Member Avatar for HTMLperson5

This is a program intended to write text to any file specified var_file = (raw_input('nof$ ') #nof, number of files. try: text = str(raw_input('ttwtf$ ') #ttwtf, text to write to files. print text >>> var_file except ValueError: print "Error: Not a string" main() When the program starts the "`try`" part …

Software Development python
Member Avatar for HiHe
1
176
Member Avatar for newbie14

Dear All, My problem is that exactly every second I need to call a particular function to do some sql querying. So after reading I found that the latest api is timer_create. Below is a skeleton. Is this skeleton a right one to move forward? Thank you. [CODE]#include <stdio.h> #include …

Software Development api c c# c++
Member Avatar for newbie14
1
2K
Member Avatar for MastAvalons

Hi all! I need to intercept GDI function to save painted screen to hard drive. I have tried Microsoft Detours. Everything is good, but I need 64-bit version (Detours Professional do support but it costs much). Is there any 64-bit alternatives to Detours Professional?

Software Development c++ hard-drive microsoft virtualization
Member Avatar for pipaman
1
330
Member Avatar for nahsik

I am learning about networking and programming. I am trying to be a simple IM application. What i am trying to achieve having a server application route messages between computers over the internet creating a simple instant messenger. However i can't find any sort of tutorial for that. I want …

Software Development client-server python
Member Avatar for extr3mex
1
325
Member Avatar for np complete

I use this function quite a lot. Recently one of my friend told me it is not good to use fflush(). I googled it, and found that it gives some kind of unexpected behaviour. My question is when does this function works improperly and why? Nowadays I use scanf("[^\n]") to …

Software Development c++
Member Avatar for ravenous
1
156
Member Avatar for allomeen

Hi, I having this error and i don't know how to fix it, can anybody help please: "declaration of `c' as multidimensional array must have bounds for all dimensions except the first", i'm getting this error because of : [code]void lcs::LCS_Length(int X[], int Y[], [COLOR=Red]int c[][], char b[][], [/COLOR] int …

Software Development c
Member Avatar for deceptikon
1
852
Member Avatar for sam1

hi, I want to pass textbox text from one form to another using Property get and set. I have done it successfully on click event and then when popup window opens (or form2 opens) i get the value after initialization... But i want to learn how to do it with …

Software Development c c# c++
Member Avatar for roemerito
1
2K
Member Avatar for eggsandbacon

Hey everyone, I'm working on an assignment and I'm having some trouble figuring out how to implement two operators. The program creates and implements a class to represent the Stack ADT using a singly-linked list. There is a driver program to test my implementation. I have everything implemented (except the …

Software Development c++ linked-list
Member Avatar for aranayd
1
1K
Member Avatar for wiliams.kikert

hi.. im new here, and this will be my very first post ever in this website.. i am using Dev C++.. so can you help me out a little here?? i have this code.. yes, some of these codes are found all over the internet.. but most of the code …

Software Development c
Member Avatar for Ancient Dragon
1
157
Member Avatar for kuchi

I've an web page which reads the data from (server side) database and write into csv file, but as per requirement I need to write the file in client side and asked user to save the file in their local machine with popup window to save the location (client side), …

Software Development client-server python
Member Avatar for kuchi
1
763
Member Avatar for Ene Uran

Does anybody have experience with Python on the iPad? Is it easy to get and use Python?

Software Development ipad python
Member Avatar for chriswelborn
1
148
Member Avatar for shouvik.d

Hi, I have a Win32 Console Application which is throwing the Debug Assertion Failed! .. _CrtIsValidHeapPointer( pUserData ) and followed by a Debug Assertion Failed! .. _BLOCK_TYPE_IS_VALID(pHead->nBlockUse). After I did a Step by Step Debug strangely what I saw was it is throwing error once it is exittin the main …

Software Development c++
Member Avatar for atoutsweb
1
1K
Member Avatar for Topiary

Hi guys! How I can include BoxedApp.dll for my Java - project? Is it really?

Software Development java
Member Avatar for Topiary
1
93
Member Avatar for cse.avinash

I am doing following code to get the output upto 5 decimal characters of any number inputted by user when divided by 1, I have to use typecast it with (float) , can any one tell me how this can be done without typecasting or using float constant.. int main() …

Software Development c
Member Avatar for cse.avinash
1
180
Member Avatar for Israelsimba

i developed a payroll running in VB6 and using SQL 2000 Database, and when i install it on my laptop with windows 7, it gives me an error message 'You dont have permission to perform this operation'. Im logged in as administrator.

Software Development visual-basic
Member Avatar for AndreRet
1
216
Member Avatar for fatimah batool

PLease help me in adding files to this code is it very simple for #include<iostream> #include<windows.h> #include<conio.h> using namespace std; struct flight_date { int day; int month; int year; }; struct flight_time { int hours; int minutes; }; struct BookingInfo { flight_date date; flight_time time; char location[20]; char destination[20]; char …

Software Development c++
Member Avatar for Schol-R-LEA
1
202
Member Avatar for JakeA

Hi, How do you disable the minimize button in a JFrame. I only want to disable the minimize button, not the close and maximize button. Please help me with this one. Thanks.

Software Development gui java
Member Avatar for DavidKroukamp
1
2K
Member Avatar for DeeperShade

Ok, first post. Ive tried to avoid asking for help when i've had problems before and usually managed to solve things on my own but on this, i'm just going round in circles. I'm trying to teach myself basic directx9 and so far I made a program that takes a …

Software Development c++ ios
Member Avatar for DeeperShade
1
272
Member Avatar for FALL3N

hey, so I know if I use the drawLine() method, then I could change the line stroke/thickness with setStroke, but how do I change the thickness of a Line2D?

Software Development java
Member Avatar for FALL3N
1
659
Member Avatar for DyO1

Hello. I'm going to show you how to make a pop-up (right-click) menu that you can edit 1.Select the application you want to edit,or create a new one 2.add ContextMenuString 3,You are going to see a menu on the top of the form,juat add the stuff you want to be …

Software Development vb.net
1
109
Member Avatar for shahriar2403

How can i open acces file using a command button in vb. What should b da reference? what should b da code? Same question for opening pdf file. help me plz.

Software Development pdf visual-basic
Member Avatar for sridinesh
1
381
Member Avatar for TrustyTony

What this produces and why? >>> a = 2 >>> b = 5 >>> exec "print(a+b)" in dict(a=6, b=9)

Software Development python
Member Avatar for TrustyTony
1
185
Member Avatar for Jackk123

#include "stdafx.h" #include <iostream> #include <iomanip> using namespace std; int main() { char stupac1, stupac2; for (static_cast<char>(stupac1)= 'A'; stupac1 <= 'Z'; ++stupac1) { for (static_cast<char>(stupac2) = 'a'; stupac2 <= 'z'; ++stupac2) cout << stupac1 << setw(5) <<stupac2 << endl; } return 0; } So before i make mistakes explaining this, …

Software Development c++
Member Avatar for Jackk123
1
127
Member Avatar for TrustyTony

Do you get content of oper right before trying it out? oper = ['plus', 'minus', 'times'] oper.extend('divide') How about do you know what happens when you run this? Big bang? ;) print('a' 'b' 'c') And this is same, isn't it`? c = 'c' print('a' 'b' c)

Software Development python
Member Avatar for snippsat
1
185
Member Avatar for dave_nithis

Hi all, I have two files namely a.txt b.txt a.txt contains 100 records and b.txt contains 9 records.These 9 records in b.txt is also present in a.txt.So,I need a script that compares these two files and outputs the unique 91 records alone in another file. Thanks to all in advance!!!! …

Software Development shell-scripting
Member Avatar for laksh.ss
1
116
Member Avatar for reddsoxy

I am self teaching myself python and I have hit a question that I can't seem to figure out dealing with raw_input. This is the code that is confusing me: print "How tall are you?", height = raw_input() print "So, you're %r tall ." % (height) I input my height …

Software Development python
Member Avatar for reddsoxy
1
186
Member Avatar for riztra

I created a simple program for animation direction in visual basic. but as I can is clockwise. then how do I make it in the counter clockwise ? this my listing program : Private Sub Command3_Click() 'animasi searah jarum jam Cls Form1.DrawWidth = 30 For i = 1 To 5 …

Software Development visual-basic
Member Avatar for Nitesh Katia
1
211
Member Avatar for antonis21

Hi, I wrote the followiing code for a Jtable: public class simpletabletest extends JPanel{ public simpletabletest() { String[][] data = { {"...", "...", "...", "..."}, {"...", "...", "...", "..."}, {"...", "...", "...", "..."}}; String[] Columns = {"Name", "LastName", "Phone", "MobilePhone"}; //DefaultTableModel model = new DefaultTableModel(data, Columns); JTable table = new …

Software Development java
Member Avatar for dougWill
1
110
Member Avatar for Qusto

Hi! Created application is working toooo slow, looks like there are a lot of memory leaks, there are a lot of pointers. So, please, can you advice some effective tool for run-time errors and memory leaks detection in Visual Studio C++?

Software Development c++ visual-studio
Member Avatar for Topiary
1
153
Member Avatar for poloblue

Good Afternoon, I'm getting this errors on the program: warning C4244: 'argument' : conversion from 'double' to 'const int', possible loss of data warning C4244: 'argument' : conversion from 'double' to 'const int', possible loss of data warning C4244: 'argument' : conversion from 'double' to 'const int', possible loss of …

Software Development c++
Member Avatar for Schol-R-LEA
1
1K
Member Avatar for Aviras

Hello everyone, this is something I wrote a couple months back. It is used as a universal class/object loader from an XML file. For the handling of XML I use the JDOM library. The story basically goes like this: I have a load of classes in a game I'm working …

Software Development java xml
Member Avatar for Troy III
1
396
Member Avatar for lightningfire

I am trying to learn C++ and am trying to figure out how to use strings and if statements together. Here's the code I'm trying to play around with: [CODE=c] #include <iostream.h> int main() { char * a; cout << "Do you want to enter?\n"<<endl; cout << "To enter, type …

Software Development c++
Member Avatar for sftranna
1
11K
Member Avatar for gahhon

How can i check whether the text box is numeric or not? Because i want to do validation. but i tried many style still cannot work.

Software Development vb.net
Member Avatar for gahhon
1
158
Member Avatar for sammoto

So I'm trying to write a program to play the card game Go Fish, and I can't get the following code to compile: import java.util.Random; public class CardPile { public static final int DECKSIZE = 52; private Card[] cards; private int numCards; public CardPile() { cards = new Card[DECKSIZE]; numCards …

Software Development java
Member Avatar for sammoto
1
416
Member Avatar for choosenalpha

Hi All, I am needing some assistance on how I can grab the values for the number of die that come up as 1, 2, 3, 4, 5 or 6. I have the count variables holding the count for each one that fits the "if statement". But I can't use …

Software Development java
Member Avatar for choosenalpha
1
475
Member Avatar for VBTommy

Hi there, I am new to this forum so please be patient with me :-) My problem is how to bring a nested XML structure into a single DataGridView. The XML looks like this: <Artist> <Name>John Doe</Name> <Age>36</Age> <Language>english</Language> <Artwork> <Picture>Picture 10</Picture> <Picture>Picture 20</Picture> <Picture>Picture 30</Picture> </Artwork> </Artist> <Artist> <Name>Mike …

Software Development vb.net xml
Member Avatar for kvprajapati
1
501
Member Avatar for TrustyTony

Finding efficiently primes, whose begining numbers are also primes. See the thread http://www.daniweb.com/software-development/cpp/threads/425821/prime-number-c in C++ forum for discussion on topic.

Software Development python
1
275
Member Avatar for nikolaos

How can i add some space between these four components and the JFrame window? ![jframe_view](/attachments/large/0/jframe_view.jpg "jframe_view")

Software Development java
Member Avatar for nikolaos
1
18K
Member Avatar for tirso

Hi to all I used standard item in binding navigator such as add and save button. How can I modified the code for add records button like if the user press this button then insert to my database and for the save button to save in my database. I already …

Software Development vb.net
Member Avatar for Pradip sarma
1
2K
Member Avatar for MastAvalons

I think there are memory leak in my application, perhaps the problem is in a part of code status = myPubSubSubscribe.Receive(fsReceivedTopic, myBufferSubscribe, myHeader, 0); if (status == PS_ENGINE_UNAVAIL) { printf("Unable to connect to the pubsub engine: %s\n", PSPubSub::Status2String(status)); myBufferPublish.FreeBuffer(); myBufferPublish.~PSBuffer(); myPubSubPublish.~PSPubSub(); myBufferSubscribe.~PSBuffer(); myPubSubSubscribe.~PSPubSub(); return; }

Software Development c++ motherboards-cpu-ram
Member Avatar for Topiary
1
213
Member Avatar for wenbnet

Hello, please help me. I want to maximize my form size when i maximize my window. means when i double click on window to maximize then my form also get maximize with window, i used dock property bt still not getting proper result.

Software Development vb.net
Member Avatar for poojavb
1
486
Member Avatar for atown282

I currently have a running program. All i want to do is be able to shut it down at anypoint by pressing CTRL C. I cannot figure out the code for this command for the life of me. Can someone please help me out? thank you. I am using c++ …

Software Development c++ visual-studio
Member Avatar for Lucaci Andrew
1
578
Member Avatar for elidotnet

Hello, im trying to insert data to sql server and its not working so well even the code not show any error message or errors on compile. when i check the database......hes empty. Please look at the code for sulotion: [code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using …

Software Development open-source sql windows-server
Member Avatar for prathamesh3090
1
7K
Member Avatar for triumphost

I have a union defined as so: typedef union RGB { unsigned Color; struct { unsigned char B, G, R, A; }; } *PRGB; I'm reading 32 bit and 24 bit bitmaps. I'm trying to Read Pixels from my RGB union and set pixels as well. I know bitmaps are …

Software Development c++
Member Avatar for triumphost
1
446
Member Avatar for TrustyTony

**_Greetings, dear Python forum users, from newly appointed moderator pyTony!_** There have been some development lock up of the Forum database occuring due to debugging process of current transition process to new Forum software. I have today been appointed as moderator and I have started to learn the processes involved …

Software Development daniweb-feedback python
Member Avatar for vegaseat
1
282
Member Avatar for KushMishra

Hello all, I have an application in which I have put a datagrid with update and delete buttons. What I want is when I change the contents of the columns and click on update button, it should update that particular cell value into the database. My xaml code is as …

Software Development asp.net
Member Avatar for akhildwivedi
1
213
Member Avatar for renzlo

Hi, All, Is this possible? I want to copy the value of one cell in datagridview to the selected cells of the datagridview? See picture below: ![Untitled74](/attachments/large/3/Untitled74.png "Untitled74") Thaks in advance.

Software Development vb.net
Member Avatar for renzlo
1
134
Member Avatar for KushMishra

Hi all, I want to know the way of maintaining sessions in a WPF application. I did the same in ASP.Net but that was a web application. I'm not sure how to do the same task in WPF. Any help is appreciated. Thanks.

Software Development asp.net session
Member Avatar for pkumarSinha.399
1
2K

The End.