43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ram619

Hello, This code is from "Test Your C Skills" Book. In the book they have mentioned that this code won't work, and thats true. But I am not able to understand, why its not working. Please explain why it gives error. #include<stdio.h> #define SWAP(a,b,c) c t;t=a;a=b;b=t; int main() { float …

Software Development c
Member Avatar for ram619
0
195
Member Avatar for MasterHacker110

I am trying to find a scripting language for some simple tasks etc... I tried python - dont like the whitecpace thing. Ruby - just a weird language. Javascript on the other hand has syntex that I like - C/C++/C#/Java like - and it uses curley braces. But the draw …

Software Development java javascript oop ruby
0
85
Member Avatar for kedxu

So I have a PrintWriter as a class variable which is created upon initialization. I want to make sure it gets closed when the Applet closes, but overriding the destroy() method doesn't seem to work (a System.out.println inside the method does not appear). 1. should I be doing this in …

Software Development java
Member Avatar for kedxu
0
223
Member Avatar for archangel1177

So what I am trying to do is copy a row of information when an item in the 'k' column which will say 'recieved'. So what my code needs to do is copy the row of information on that row that says 'recieved' to sheet 2 and then remove it …

Software Development visual-basic
Member Avatar for archangel1177
0
206
Member Avatar for JohnKelly

Dear all I have a private MSMQ on a server in workgroup mode (SBS 2011) On a client I can see the queue using System.Messaging.MessageQueue.GetPrivateQueuesByMachine(servername) and am able to read the name of the queue. I am able to write to the queue but am unable to retrieve anything from …

Software Development queue vb.net
Member Avatar for Begginnerdev
0
139
Member Avatar for nchy13

This is the code which put an extra line to the std::string array. I am here trying to print last k lines of file. Any help is appreciated. #include <iostream> #include <fstream> #include <string> using namespace std; //file.exceptions(ifstream::eofbit | ifstream::failbit | ifstream::badbit); void print_last(unsigned k, string file_name) { string *data=new …

Software Development c++ ios
Member Avatar for nchy13
0
825
Member Avatar for UKnod

I have writen a few DB programms in ADO.net now, and I hate it. It is riddle with confusion and problems, and because of the ridiculous idea of using all the data locally, it makes networking neigh on impossible and incredibly slow, so please please someone show me how to …

Software Development vb.net
Member Avatar for UKnod
0
746
Member Avatar for murali2489

Hi All, I am trying to write a code which checks whether the username and password stored in the database matches to the string created locally and displays it in console. The program connects to the database and gets the string from the table space correctly, but the problem is, …

Software Development apple java java-swing
Member Avatar for murali2489
0
289
Member Avatar for Mr.M

Hi DW I've created a project on NaviCoder for java and when I tryied to export the project I had a problem then I redo my project using the Netbeans and that where I was then able to export or should I say build the jar file which is an …

Software Development file-system ide java java-netbeans
Member Avatar for JamesCherrill
0
255
Member Avatar for major_lost

Hello all; I have a random data file that I created with code. The file contains strings that represent items I want to display in a combobox control. The strings contain multiple fields with headers that describe the data to follow. I have NO problem displaying any single field of …

Software Development vb.net
Member Avatar for Reverend Jim
0
328
Member Avatar for Eruditio

I've written a script to alter images in a number of Excel workbooks. In order to properly access the image information, I need to iterate through all Sheet.Shapes on a particular worksheet. I'm having trouble with grouped worksheets. **How do I ungroup worksheets from VB.NET?** I've tried both activating and …

Member Avatar for Eruditio
0
790
Member Avatar for Learner010

there are 10 labels and 1 button in the form and i want to set some properties using code(which will applicable to lable only) , and for this i used the code For Each lbl As Label In Form1.Controls lbl.Font = New Font("Arial", 12, FontStyle.Regular, GraphicsUnit.Point) lbl.Top = settop lbl.Left …

Software Development vb.net
Member Avatar for Learner010
0
3K
Member Avatar for Eruditio

I've written a script to change all images in many hundreds of Excel documents to a .png format in order to reduce their file size (the largest were coming up on 25MB). **If the images in the Excel document are not in their original orientation** i.e., if they have been …

Software Development vb.net
Member Avatar for Eruditio
0
378
Member Avatar for murali2489

Hi All, I am new to use of database in Java. I am trying to write a simple java application which connects to my Database and sends some query and retrieves the output. I have downloaded MariaDB and then created a database named iff and created tablespaces which has some …

Software Development java mariadb
Member Avatar for murali2489
0
524
Member Avatar for Assembly Guy

For fun, I want to write my own image format. I'm going to have to draw pixels to a Window, but I haven't found any nice, simple, light librarys that can do this. I've thought about using OpenGL, but it's kind of messy and over-complicated to write code for and …

Software Development c opengl
Member Avatar for Assembly Guy
0
394
Member Avatar for Mikey12345

Hi all, Need help, How can i read a dat file in c# and display data in datagridview. the data is in a comma format. Ie a,b,c,d etc....... many thanks,

Software Development
Member Avatar for dskamburapola
0
782
Member Avatar for kudakwashe.kadzungura

I'm trying to do a project at schooL but I need help on how to choose a simple working system for a certain company.

Software Development visual-basic
Member Avatar for kudakwashe.kadzungura
0
156
Member Avatar for entropic3105

This is probably a very commonly asked question but is it possible to make an app with python?

Software Development apple ios python
Member Avatar for svf_
0
183
Member Avatar for Papa_Don

Hi group! I hope all is well! As part of my connection string and database insert/update, I have an exception command in it to display an error message. Can this also be read or made into a true/false answer? I would like to have my program run very short command …

Software Development vb.net
Member Avatar for Reverend Jim
0
184
Member Avatar for tanha

Hi, I have a png image wihtout background and want this png to be my JFrame where the transparent section must be transparent; I have tried different ways I used the setOpaque(), setOpacity(), ImageIO but no clue. I want only my transparent png as JFrame. Any idea and solution will …

Software Development html-css image java
Member Avatar for tanha
0
2K
Member Avatar for alex9620

Hi, This question is related to the below. http://www.daniweb.com/software-development/cpp/threads/352685/error-c3861-menu-identifier-not-found I used that to solve my issue. What I would like to understand is why the function prototype is to be declared before the main function? In my textbook that I am following the function prototype wasn't there. I did as …

Software Development c++
Member Avatar for MandrewP
1
397
Member Avatar for entropic3105

Does anyone know how it's possible to add up the values in a list?

Software Development python
Member Avatar for entropic3105
0
136
Member Avatar for nchy13

I stumbled upon the fact that one can't bind a temporary variable to a reference unless it is a constant and found it to be indeed true in the given code. However, i am not able to find out the difference in my other code snippet where I didn't use …

Software Development c++
Member Avatar for nchy13
0
840
Member Avatar for JoeD1

Hi, I programmed this code to solve the equation: x/2! + x^n-1/n! where n is the size of series The program functions, but appears to be giving me the incorrect result. For example if I enter 3 for n, and 2 for x I am expecting 1.67 as the result …

Software Development java
Member Avatar for JamesCherrill
0
185
Member Avatar for clouds_n_things

So I wrote a cool little python script for terminal commands that I get sick of entering. Most of the script is explained in docstrings and comments. Looking for useful terminal commands or things I missed or could have done better. I'm actually quite proud of it. :) #!/usr/bin/env python …

Software Development api apple http-protocol os-x python windows-api
Member Avatar for clouds_n_things
1
314
Member Avatar for Fjdd

I use visual c++ compiler 2008 express edition, because express edition doesn't support resources is it possible to make a win32 dialog box in express edition, if so how might I create one? Thank you for reading

Software Development c++
Member Avatar for Fjdd
0
4K
Member Avatar for phorce

Hello, I am having a few problems when trying to execute the a Makefile that will *hopefully* create a static library that I can use for future use. Here is my code below: #----------------------------------------------------------------------------- # Usage of make file #----------------------------------------------------------------------------- # Clean operation: # make -f MakeClient clean # # …

Software Development c++
Member Avatar for mike_2000_17
0
787
Member Avatar for jandanielsaclolo

Hi there, I'm just new to programming and C++ ... I have trouble with my code At first I am using "int" for variables but then I realize that i need a much larger range of numbers and also support for decimal operations so I change all "int" to "float"... …

Software Development c
Member Avatar for Gonbe
0
228
Member Avatar for Sebastian_1

I have not programed or written code in over 10 years when I was in College. I was / am a Networks Administrator. How, ever I find my self needing a custom interface for a DB system we recently ackwired where I work. I have been doing it in Visual …

Software Development display vb.net visual-studio
Member Avatar for tinstaafl
0
1K
Member Avatar for jandanielsaclolo

Hi there, I'm just new to programming and C++ ... I have trouble with my code At first I am using "int" for variables but then I realize that i need a much larger range of numbers and also support for decimal operations... My First Code: #include <stdio.h> #include <conio.h> …

Software Development c++
Member Avatar for jandanielsaclolo
0
257
Member Avatar for anglaissam

Hi, i have 2 pieces of code that i created, both of which do exactly the same thing and i am trying to benchmark them to see which is generally more efficient. As such i used the code suggested by perldoc in the following format: use Benchmark; $t0 = Benchmark->new; …

Software Development perl
Member Avatar for anglaissam
0
190
Member Avatar for yvrej17_1

Hi, I just need some help here.. I want to align the text output in Pole Customer Display like Shoes...........£20.00 Total...........£20.00 but the of total is not displaying the amount and the euro symbol is display "?" Can you help me guys? Thanx a lot in advance Below is my …

Software Development display vb.net
Member Avatar for tinstaafl
0
2K
Member Avatar for nchy13

This code only print characters until char value is 0 but surprisingly it output characters only upto first blank space. I checked their ASCII values and surprisingly ASCII value of space(' ') character was output by program as 0. I couldn't get it. Any help is appreciated. #include <iostream> #include …

Software Development c++
Member Avatar for AndrisP
0
343
Member Avatar for Lp_baez

I keep getting this error on a sample that a c++ book provides. " **error C2660: 'std::vector<_Ty>::empty' : function does not take 1 arguments 1> with 1> [ 1> _Ty=std::string 1> ** ] " I have some suspicious what can be causing the error but I am not sure. the …

Software Development c++
Member Avatar for Unimportant
0
298
Member Avatar for Sevyt

I got a small problem with getting a filter to work for my database. When i test them seperatly it works but when i all add them together they stop working. This is the code i use currently. All of the fields in the database are text, except for the …

Software Development dataset open-source vb.net
Member Avatar for Sevyt
0
207
Member Avatar for christinetom

Hi everyone.. Would anyone know where I could find a good explanation on 'Pipes' in programming. I'm trying to understand how I might go about using input into a GUI application to display output in a dos console. As I understand it, the concept of pipes comes into this somehow. …

Software Development c++ gui
Member Avatar for christinetom
0
149
Member Avatar for somjit{}

[This](http://docs.oracle.com/javase/tutorial/essential/concurrency/deadlock.html) is the example i was looking at. The docs say that trying to access the bowBack() method is creating the deadlock , but im new to threads , and i really dont understand why this is happening. In need of some guidance here...

Software Development java oracle
Member Avatar for JamesCherrill
0
336
Member Avatar for Mr.M

Hi DW I've created a program in java and now because I'm also new in java but I know better visual Basic i couldn't complete the program the way I wanted because there are features I find it hard to do so I just completed the main program on java …

Software Development java vb.net visual-basic
Member Avatar for tinstaafl
0
223
Member Avatar for ktsangop

Hello everyone! I would like your help regarding this: I have a tuple vector which i must iterate through, and accessing the vector data to decide wether to erase or not the current vector element. My code : typedef tuple <int, CString, int, int> pc_data; vector <pc_data> pc_vec; //Assume that …

Member Avatar for ktsangop
0
6K
Member Avatar for nchy13

I intend to perform in-place modification of std::string with the help of a modifier function. In this regard, I looked up on internet and found that pass by pointer method is not recommended. I have few queries in this regard. * If I pass a std::string to the function as …

Software Development c++
Member Avatar for NathanOliver
0
963
Member Avatar for Begginnerdev

Hello my fellow Daniwebies! I have a curious, possibly unique, and odd problem for everyone! We support an ASP.NET application which is using VB.NET for code behind. We use LINQ to SQL and classed object for the data retreival. I have an object called...myObject which is being deleted: Public Shared …

Software Development asp.net sql vb.net
Member Avatar for Begginnerdev
0
272
Member Avatar for Cameronsmith63

I keep getting this error: The process cannot access the file 'D:\Gasper\Netcool\GA000162.200' because it is being used by another process. And I have tried everything to safely delete this file. Everything. What Am i doing wrong? using System; using System.Net; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Linq; …

Software Development open-source
Member Avatar for Ketsuekiame
0
184
Member Avatar for Lp_baez

I'm trying to create a loop if the string wordEasy contains more than 5 letters. I am using the 'while' and 'for' but none seem to work. I am hopping if you guys would be kind enough to help me figure out what I'm doing wrong. Here is the 'for' …

Software Development c c# c++
Member Avatar for David W
0
384
Member Avatar for zachabesh

There seems to be a variety of ways to do this on the net, does anybody have a tested solution? Suggestions to look at various modules and such appreciated. I don't need the full code.

Software Development python
Member Avatar for zarfishan
0
5K
Member Avatar for Lp_baez

Hi everybody, I’m having trouble trying to figure out how to create a loop when the ‘difficulty’ takes a value that is not an integer. I want a player to get the ‘default’ statement presented in the switch . The ‘default’ statement seems to make an appearance but it will …

Software Development c c# c++
Member Avatar for David W
0
2K
Member Avatar for pars99

Can someone please explain what the <atomic> library does? Or what it's for?

Software Development c++
Member Avatar for rubberman
0
252
Member Avatar for dilita.mido

(Account Inheritance Hierarchy) Create an inheritance hierarchy that a bank might use to represent customers' bank accounts. All customers at this bank can deposit (i.e., credit) money into their accounts and withdraw (i.e., debit) money from their accounts. More specific types of accounts also exist. Savings accounts, for instance, earn …

Software Development python
0
180
Member Avatar for jaai

hi could anyone help me come out of this problem.. I've my project with one mdi and three child forms.. when i run the mdi child forms vb6 stops working and it shows the following: Problem signature: Problem Event Name: APPCRASH Application Name: vb6.exe Application Version: 6.0.81.76 Application Timestamp: 3592011f …

Software Development visual-basic
Member Avatar for darprogra
0
3K
Member Avatar for revellution

Hi everyone! Sorry for the novel but I don't want to waste anyone's time by not explaining what I have already tried before they try it too... So I just installed Blender which requires Python 2.6 but I'm learning Python 3.1 at the moment. I've never programmed before but I …

Software Development python
Member Avatar for jordanrkaufman
0
460
Member Avatar for dilita.mido

[Click Here](http://www.)(Account Inheritance Hierarchy) Create an inheritance hierarchy that a bank might use to represent customers' bank accounts. All customers at this bank can deposit (i.e., credit) money into their accounts and withdraw (i.e., debit) money from their accounts. More specific types of accounts also exist. Savings accounts, for instance, …

Software Development python
Member Avatar for Gribouillis
-2
246

The End.