43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for trishtren

hello again, i am having problems outputing the correct format of hex, the result i am aiming to achieve in my file should be : 78 00 07 D0 00 00 17 70 00 00 <-- aiming to achieve D8 00 6F D0 00 00 7F F0 00 <-- actual …

Software Development file-stream java
Member Avatar for NormR1
0
465
Member Avatar for G_S

Hello. I am trying to create a module containing many little functions useful for linguistics. So far everything works right, but I have a question: is it a problem if a function within a module calls another function within the same module? I mean, I have a function that performs …

Software Development python
Member Avatar for G_S
0
158
Member Avatar for G_S

Hi, this is, let's say, the second part of this thread: [url]http://www.daniweb.com/forums/thread291657.html[/url] I have managed to control two widgets with one scrollbar, but now I have realized that, althought the widgets can be controlled individually via the mouse wheel or the keyboard, I sometimes need individual controls for each widget. …

Software Development python tkinter
Member Avatar for G_S
0
287
Member Avatar for perllearner007

Okay pardon me for this silly question (I am learning perl!) but how do we run a perl file that has many sub functions. For example, if a file called thisismyfile.pl has following sub functions sub thisismyfunction1 sub thisismyfunction2 where sub thisismyfunction1 will output table 1 and sub thisismyfunction2 will …

Software Development perl
Member Avatar for perllearner007
0
150
Member Avatar for akshay.lahiry

Hi Guys I am trying to create a global object instance and am currently running into a segmentation fault while accessing a member variable. I have a capture.h file and a capture.cpp file //In capture.h struct ringinfo { // a simple struct }; class capture_manager{public: func1(); func2(); ringinfo ringinf ; …

Software Development c++
Member Avatar for akshay.lahiry
0
3K
Member Avatar for xzero1

hi, i am using regular expression in extract paragraph from html code but it gives me only one (the first one) line written in first <p> i want the whole article in my string. here is my code. Match m = Regex.Match(htmlstring, @"<p>\s*(.+?)\s*</p>"); htmlstring=m.Groups[1].Value; where "htmlstring" all the html code …

Software Development regex
Member Avatar for nmaillet
0
3K
Member Avatar for theflier13

Hi, I am in the process of trying to use VB 2005 to connect to a MySQL DB . I have the data connection working between the program (VB 2005) and my MySQL server but now I need to make my code connect to it. I have never done a …

Software Development mysql vb.net
Member Avatar for yihkiat
0
214
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 ganges

how to connect html form feilds with mysql using hibernate, like giving input through the html form storing data, and retriving data kindly provide me simple example for those connection. thanking you.

Software Development html-css java
Member Avatar for DavidKroukamp
0
132
Member Avatar for thacravedawg

Alright, so I have a datagridview that I'm populating with a datatable, and I have added a button column. Now I am trying to use this button's click event to open a new child form. I can't for the life of me figure out what I've done wrong. When I …

Software Development
Member Avatar for phadalemadhuri
0
305
Member Avatar for M.Waqas Aslam

hello all of you ! i am making a simple form which can create the text file from the database table , for this , i am using this code at the load event of my form so that it can create the files at the load time. IO.File.Create("C:\Customers.txt") IO.File.Create("C:\Towns.txt") …

Software Development vb.net
Member Avatar for M.Waqas Aslam
0
211
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 sammoto

The issue will be pretty clear to those of you with experience. As the title suggests, I'm having trouble accessing private variables from other classes. I'll tried to attach all the relevant files, but it wouldn't let me, so I'll try to explain my issue first then post all the …

Software Development java
Member Avatar for sammoto
0
192
Member Avatar for poloblue

Good Afternoon, I want to convert this if-else statement to a switch statement. The if-statement is: int x; cout<<"GIve me an int and I tell you whether is even of odd "; cin>>x; if (x%2==0) cout<<x<<" is even."<<endl; else cout<<x<<" is odd."<<endl;

Software Development c++
Member Avatar for poloblue
0
103
Member Avatar for shaanmugavel

I have completed my project with front-end as vb.net 2008 and back-end as SQL server 2005. I have to backup and restore my project in the following extensions: 1. .bak 2. .xls 3. .mdb Please tell me how can i store the backup project in my own path.

Software Development vb.net
Member Avatar for samsylvestertty
0
204
Member Avatar for dancks

So, I'm using allegro game programming library. Before I move on to bigger and better things I wnat to get a handle on pointers. Specifically with things like structs, linked lists and maybe binary trees in the future. I posted a program that uses a linked list to keep tracks …

Software Development c++ linked-list
Member Avatar for dancks
0
310
Member Avatar for poloblue

Good Afternoon, The program that I'm doing with function doesn't want to run, the error that pops out is: 'std::basic_istream<_Elem,_Traits> std::operator >><std::char_traits<char>>(std::basic_istream<_Elem,_Traits> &,signed char *)' Here is the code and header file that I have so far: CPP FILE #include <iostream> #include <fstream> #include <string> #include <cstring> #include <cmath> #include …

Software Development c++
Member Avatar for poloblue
0
506
Member Avatar for GlenRogers

Im writing some software for a friends Pc repair shop, simple booking in software so he has a record of customers, addresses and repairs they have had done. I'm getting throught it quite well thanks to members of this forum. Question is: I have a Customer class with attributes String …

Software Development java
Member Avatar for GlenRogers
0
161
Member Avatar for pktnewbie

I know this question has been asked many of times about how to create a search button. I am very new to C# programming and I am having a hard time creating a search and just haven't found what I am looking for from other posts. So I hope someone …

Software Development c# dataset visual-studio
Member Avatar for Mike Askew
0
2K
Member Avatar for IS_student

Hello people; I am implementing an application in vb.net about a library management system, when I add new record to the database and then close and reopen the application, the record is not there! I googled the issue and used the text book of this course but nothing beneficial. :( …

Software Development vb.net
Member Avatar for IS_student
0
161
Member Avatar for Leodumbi

Hello Gents I have a small problem and hope someone ca help me. I wrote a small code to generate auto-increment number and save it to the database. the problems is that whrn it reaches 10, it stops incrementing hereis the code Dim Separ As String() = fullString.Split("-") Dim StrPart …

Software Development vb.net
Member Avatar for Leodumbi
0
153
Member Avatar for dwinn

Hi everyone, In a nutshell...I have developed a site in ASP.Net and VB.Net which allows a user to create an order and submit it to a SQL Server backend database. When the order is placed...an xml file is also produced, showing the items that have been ordered...which is then loaded …

Software Development dataset sql vb.net
Member Avatar for dwinn
0
2K
Member Avatar for triumphost

This works fine. For any type I create (Example): BoxArray& operator -= (const Box& B); BoxArray& operator -= (const BoxArray& BA); BUT when it comes to my literal types like char's and strings and char*'s, I get Ambiguous overloads: StringArray& operator -= (const std::string& S); StringArray& operator -= (const StringArray& …

Software Development c++
Member Avatar for triumphost
0
139
Member Avatar for M.Waqas Aslam

hello ! this is my code , i am writing a text file form the datagrid, but this code is very slow , please check it out and give me some advice how i can make my code fast , If IO.File.Exists("C:\Customers.txt") = False Then IO.File.Create("C:\Customers.txt") End If Dim FILE_NAME …

Software Development vb.net
Member Avatar for M.Waqas Aslam
0
192
Member Avatar for addlebrains

Hi there. I've just written an extremely simple cross-platform wrapper for posix threads. I compiled it on unix and it compiles with no errors. The windows side... not so pretty. I'm using MinGW. gcc compiles fine but throws a couple of warnings at me (I'll explain in a bit.) g++ …

Software Development c++ unix
Member Avatar for ThoraxImpailor
0
231
Member Avatar for Acidburn

Hi guys, it's been a frustrating day so far, I've taken the week off to get to grips with Xcode and produce an application for the iPhone. Wishing I hadn't now! Anyway, I'm slightly stuck in my conquest... I collasped the "Scene" panel when storyboarding and now I need it …

Software Development iphone objective-c
Member Avatar for Acidburn
0
120
Member Avatar for greatman05

Here's the problem: I need to implement a stack as an adapter to a List class. I don't know what that means though! I've researched on Google countless times and still don't understand what an adapter is. All the examples I've seen point to using inheritance and then using the …

Software Development c++
Member Avatar for greatman05
0
405
Member Avatar for triumphost

Hey when I don't template my classes, I can pass member functions to eachother normally. But when I template it, I get errors. The two functions are defined as so: CustomType& Delete(int Position); CustomType& Delete(T ValueToDelete, bool All = false); CustomType& Delete(CustomType ValuesToDelete); And Implemented like this: template<typename T> CustomType<T>& …

Software Development c++
Member Avatar for deceptikon
0
502
Member Avatar for MrEARTHSHAcKER

Hi, Is anyone familiar with this problem in BorlandBuilderC++: void Print(AnsiString Path){ Label1->Caption=Path.c_str(); } ... Print("C:\Directory1\Directory2\Music.mp3"); When I pass this string to Print(AnsiString) and try to display it in Label1, I lose all '' signs and text in Label1 looks like this : **"C:Directory1Directory2Music.mp3"** Why is this like that? Thank …

Software Development c++
Member Avatar for MrEARTHSHAcKER
0
227
Member Avatar for GlenRogers

I'm trying to add an image to the top of my GUI as a logo. I tried to put it in a JPanel then add the JPanel at the top of the GUI, the only problem is that my image isnt going into my JPanel. Heres my code for it …

Software Development gui image java
Member Avatar for GlenRogers
0
241
Member Avatar for triumphost

How can I do the following but easier? I'm templating a class but I want it so that if typename T is of a literal type such as a string or char, then it can use the following member-function. If not then it cannot use it. I've been using typeid …

Software Development c++
Member Avatar for Schol-R-LEA
0
842
Member Avatar for jooa

Hi, I'm trying to write some code that will draw a filled in black circle at the coordinates where the mouse is clicked. Here is what I have written so far, I can currently get the coordinates of the mouse click point but nothing is displayed. I also get an …

Software Development java java-swing
Member Avatar for Roberdus
0
4K
Member Avatar for MTW1989

These are the guidelines; 1. Create and initialize an array containing the following tax rates: 0%, 5%, 10%, 15%, and 20%. Create and initialize another array containing the following income amounts: 0, 10000, 20000, 50000, 100000. 2. Prompt the user to enter a gross income amount. Read the gross income …

Software Development c++
Member Avatar for pcandtech
0
146
Member Avatar for london-G

Hello, can you please help me to see what's wrong? INSERT INTO jobs (priority, date, deadline, material, status) VALUES (?, ?,?,?,? ) select customerID from Customer where CustomerID =?"

Software Development java sql
Member Avatar for stultuske
0
180
Member Avatar for PinoyDev

Good day g'Men! I just needs some advise or code about positioning the recorset after requery! I have 20 records in a table, I am on record no 10 and deleted it and pull movenext. The record to be view is record no 11. but a get the last record …

Software Development visual-basic
Member Avatar for PinoyDev
0
415
Member Avatar for GlenRogers

How would I go about searching a map that hasbeen written to a file? My GUI has a method caled processFind() which prints all keys in the map, I have this working but not if the map is saved to a file. private void processFind() { gui.results.setText(""); for (Object s …

Software Development gui java
Member Avatar for GlenRogers
0
106
Member Avatar for Psyho

Good Evening (in CET) to everyone. I am in need of a bit of help. I have the following cpp and.h files: dirmain.cpp #include "dirseq.h" #include <iostream> #include <algorithm> #include "dirseq.h" #include <string> struct IsEven { bool operator()( int i ) const { return i % 2 == 0; } …

Software Development algorithm c++
Member Avatar for Psyho
0
322
Member Avatar for Riteman

I have an mdi parent and 2 child forms. Both are opened. Now When I try to pass a value, it gives me nullexception value. Heres how I created MDI child forms: Dim _a As New a _a.MdiParent = Me _a.Show() Dim _b As New b _b.MdiParent = Me _b.Show() …

Software Development vb.net
Member Avatar for Riteman
0
233
Member Avatar for kaushik259106

Hi every one, Can anyone give me some idea about this! I need to check a string is numeric or not. Example: if string is 1111111111 returns true if string is 11111111aa returns false if string is 11 1111111 returns false if string is 111~`11111 returns false Any idea will …

Software Development java
Member Avatar for ScottyKnows
0
1K
Member Avatar for triumphost

I've read that anonymous structs are a compiler extension and codeblocks allows them as long as -pedantic-errors are not enabled. My question is, since it is not legal in C++, what would be the legal equivalent of: typedef union XYZ { int Color; struct { BYTE X, Y, Z; }; …

Software Development c++ legal
Member Avatar for mike_2000_17
0
279
Member Avatar for claywin

Hello, I have been programming for a little while, but I wouldn't consider myself very novice yet. Yesterday I started a project but ran into difficulties with getting the position of the object (apply_surface(0,0,Ss,screen,&clip[0]); to change based on the key input because they are in different headers and stuff, so …

Software Development c++ gaming
Member Avatar for Labdabeta
0
171
Member Avatar for kishpopboy

hi! im currently creating a payroll system for my project and part of it is a time calculator. but my problem sir is that i don't know how to deduct lates on there daily hour .. its goes this way sir, it has a textbox that has their schedule that …

Software Development vb.net
Member Avatar for adam_k
0
499
Member Avatar for pooja.shinde

System date & time is in SimpleDate format. How can i convert this into integer? **"sdf.format(new Date(System.currentTimeMillis()))"...**.......... I want to convert current time** into integer** data type. *Plz plz plz help me.* Any help for this is alwayz welcome.

Software Development java
Member Avatar for pooja.shinde
0
244
Member Avatar for trishtren

Hey, Im stuck trying to figure out how to insert one byte between two other bytes that have already been created in an output stream: OutputStream out = new FileOutputStream("MyFile"); try { out.write((byte) 70); /*Byte should be inserted between these elements*/ out.write((byte) 40); /* but must be performed at end …

Software Development file-stream java
Member Avatar for trishtren
0
183
Member Avatar for daksein

Hi guys.. I have some problem with Richtextbox. I have a Richtextbox in Form class. How can I add any text into the textbox from other classes for instance from Client class? Hope you can help me. Thanks

Software Development
Member Avatar for daksein
0
116
Member Avatar for RaymondTracer

**Wow I'm an idiot, I just saw the problem, how did I not see that for so long. How do I delete threads?** Hello everyone! I have a problem that confuses the hell out of me, when I try to compile my class file I get the "illegal start of …

Software Development java
Member Avatar for RaymondTracer
0
207
Member Avatar for ubi_ct83

Hi, i need help on updating data in mysql using JDBC since im using java.i want to send data from arraylist and it seems and error when i run it.below is my code for update. [CODE] private void update(ArrayList<String> list, int uid) { try { Connection con=null; Class.forName ("com.mysql.jdbc.Driver").newInstance (); …

Software Development java mysql
Member Avatar for JamesCherrill
0
665
Member Avatar for king03

Hi guys I've been trying to connect my c# file to my database file(in .mdf format created in SQL Server Management Studio 2008). So basically I used visual studio 2008 for my C# file and SQL Server Management Studio 2008 for my database file. Now I'm sure that the naming …

Software Development c# file-system sql visual-studio
Member Avatar for king03
0
507
Member Avatar for GlenRogers

I have a TreeeMap that i need to wite to file. I tried this: try { File file = new File("reboot_customer_details"); FileOutputStream f = new FileOutputStream(file); ObjectOutputStream s = new ObjectOutputStream(f); s.writeObject(customerDetails);//customerDetails is the map i need to save s.close(); } catch(Exception ex) { gui.results.setText("Error: " + ex); } When …

Software Development file-system gui java
Member Avatar for JamesCherrill
0
187

The End.