43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for scrypt3r

I know how to search files, but what i dont know is how to get VB.net to Read the first line of a text file then search pc for it Read the second line of a text file then search pc for it and keep going till it reaches the …

Software Development vb.net
Member Avatar for scrypt3r
0
99
Member Avatar for errorman

--------------------Configuration: dark blade - Win32 Debug-------------------- Linking... LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16 Debug/dark blade.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. dark blade.exe - 2 error(s), 0 warning(s) that is what I get when building my project the files are below

Software Development c++
Member Avatar for Narue
0
164
Member Avatar for Dawee1

Hello, I have problem to understand the code below: [code] #define LCD_DATA_REG (*(unsigned char*)( 0xC000 )) // Data Register #define LCD_CTRL_REG (*(unsigned char*)( 0x8000 )) // CTRL Register [/code] I know basics about pointers and I know how to understand pointers to functions, arrays, structures, int, ... However I don't …

Software Development c
Member Avatar for Dawee1
0
102
Member Avatar for Minimandz

Please could sum1 help me with this: I'm trying to read text from a file using the Scanner class and i'm not sure y its not throwing the FileNotFound Exception try { Scanner sc = new Scanner (new File ("Food.txt")); wordList[num] = sc.next(); while(sc.hasNext()) { wordList[num] = sc.next(); System.out.println(wordList[num]); num++; …

Software Development java
Member Avatar for Minimandz
0
136
Member Avatar for mabuse

The same source code is compiled with g++ (linux) and with visual c++. I found that the program runs much slower on the second one (0.03 seconds vs 0.359 seconds). The program uses <vector> and does a convolution: [CODE] void DSP_fir_gen1 ( vector < double > *x, double *h, vector …

Software Development c c# c++
Member Avatar for mabuse
0
479
Member Avatar for curt22

Hi everyone, I'm trying to write a server application, but I'm having a bit of trouble. I keep getting this error [CODE]The name 'srvr' does not exist in the current context[/CODE] I'm pretty sure I know what the problem is, but I don't know how to fix it. I have …

Software Development assembly
Member Avatar for miculnegru
0
265
Member Avatar for ceyesuma

Hibernate: select trips0_.PERSONID as PERSONID1_, trips0_.TRIPID as TRIPID1_, trips0_.TRIPID as TRIPID1_0_, trips0_.PERSONID as PERSONID1_0_, trips0_.DEPDATE as DEPDATE1_0_, trips0_.DEPCITY as DEPCITY1_0_, trips0_.DESTCITY as DESTCITY1_0_, trips0_.TRIPTYPEID as TRIPTYPEID1_0_ from TRIP trips0_ where trips0_.PERSONID=? I got this output(above) when I did a System.out on a List. Does this make sense to you. I …

Software Development data-structure java session xml
Member Avatar for ceyesuma
-1
161
Member Avatar for madhavipoudala

hai every one who can help me. i want to know some demo projects in java where we can find them. please help me giving some websites and how to search in google. thanks in advance one and all.

Software Development java
Member Avatar for madhavipoudala
0
117
Member Avatar for OmniX

Im looking for a microsoft excel example. I found this here [url]http://www.daniweb.com/forums/thread102795.html[/url] but dosent give a small example of code in work. What I gathered from the above thread was: - You cannot write to xls extensions (What about xlsx 2008 office? & can you write to xls?) - Each …

Software Development c++ microsoft-office
Member Avatar for l4z3r
0
252
Member Avatar for henpecked1

How do you delete the front cell of an array in an array based circular queue? Here's the Queue cpp functions [code] #include <iostream> #include <string> #include "Contributor.h" #include "myQueue.h" using namespace std; myQueue::myQueue() { front=0; rear =0; Index=0; size= 0; ArrayQ[10]; } myQueue::myQueue(const myQueue &CCmyQueue) { for(int i=0;i < …

Software Development c++ queue
Member Avatar for littlestone
0
153
Member Avatar for iamnoangel26

My programs is using MS Access as its database. If by chance I must use other database like foxpro, must I rewrite my entire program? Or I just need to do minor changes because I change database applications, like for example ("select * from msaccess" to "select * from foxpro") …

Software Development visual-basic
Member Avatar for iamnoangel26
0
103
Member Avatar for g_e_young

Hi All, First, let me say that -daniweb- has been a great help for me as I've gotten back into programming over the last 6 months (after a 10 year respite). I've put together some decent code, but Python finally has me stumped. I have some code that generates some …

Software Development dataset python
Member Avatar for g_e_young
0
1K
Member Avatar for jrtjrt

I have been using doctest for a while and just recently started using the logging module. Each works fine separately, but they don't seem to play nice together. It looks like doctest hijacks sys.stdout to do its thing. My logger prints to the screen if not in batch and to …

Software Development file-stream python
Member Avatar for jrtjrt
0
445
Member Avatar for ravikiran032

i would like to know wheather cookies handles passwords.if so where they contain.

Software Development java
Member Avatar for jwenting
0
156
Member Avatar for Gentile

I am trying to come up with a good class design to deal with asynchronous data to be stored and analyzed over multiple time frames. I obtain data elements from an asynchronous data source (i.e. the data arrives at irregular time intervals) and wish to place them in a container …

Software Development algorithm c++
Member Avatar for vijayan121
0
119
Member Avatar for plike922

I cant find whats wrong to this program... im new to C... Please help. [CODE]#include <stdio.h> #include "genlib.h" #include "simpio.h" #define size 5 #define size2 3 void getArray (int numbers[][]); void checkArray (int numbers[][],int space[][]); int main() { int numbers[size][size], i, c, x, y; bool space[size][size]; for (i=1; i<size; i++) …

Software Development c visual-studio
Member Avatar for Salem
0
363
Member Avatar for hanzi_ru

i need to update new records to the database. i created a button and typed the below mentioned code But an error saying,"Current recordset does not support updating. this may be a limitation of the provider, or of the selected loc type" appears. Could you please help Private Sub Command3_Click() …

Member Avatar for aktharshaik
0
2K
Member Avatar for henpecked1

I'm having trouble getting my delete function to work for a singly linked list. If I try to delete anything other than the entire list, it deletes everything up to that node. I know there is something wrong with it, but I can't tell what it is. I would like …

Software Development c++ linked-list
Member Avatar for henpecked1
0
183
Member Avatar for abu taher

I saw a project where was a (like) combo box. when it was click a mini calendar show and today date is marked with a red oval. Please tell me how i make it.

Software Development visual-basic
Member Avatar for aktharshaik
0
129
Member Avatar for Falkoner1

Okay, I have many questions, mainly about subjects that haven't been discussed well in my school class, although I also have a few questions pertaining to a RPG I've been working on. 1. Threads. I've tried to search for a good tutorial on their basics, but I can't seem to …

Software Development c++ java-swing
Member Avatar for Falkoner1
0
153
Member Avatar for scrypt3r
Member Avatar for scrypt3r
0
211
Member Avatar for joshmo

Hey all..am quite new to Java and I have encoutered a problem with my program. I am getting the error message "cannot find symbol constructor". I have tried to figure it out but I have failed. I have read around that adding an empty constructor would help but this is …

Software Development java
Member Avatar for joshmo
0
2K
Member Avatar for dexter1984

[CODE=cpp]void choiceSelect() { int choice; char exitconfirm[100]; printmenu(); cin >> choice; if (isdigit(choice)) { if (choice == 7) { cout << "Exiting program. Enter yes to confirm.\n"; cin.ignore(); cin.getline (exitconfirm, 100, '\n'); if (strcmp ("yes", exitconfirm) == 0) { exit (1); } else { choiceSelect(); } } while (choice != …

Software Development c++
Member Avatar for dexter1984
0
104
Member Avatar for Duki

Hey everyone, is this the most efficient way to round a decimal number to two decimal places? [code] txtXaxis.Text = String.Format("{0:F2}", A); //show 2 decimal places txtYaxis.Text = String.Format("{0:F2}", V); //show 2 decimal places[/code] thanks!

Software Development
Member Avatar for Duki
0
74
Member Avatar for dmanw100

I'm having trouble getting fstream to function properly. I cannot open a text file while using any of the available parameters. My program calls mainprog() and functions correctly if I compile it as follows: [CODE]fstream openfile; openfile("my_file.txt"); if(openfile.fail()) { cout<<"Error opening file."; } else { mainprog(); }[/CODE] But if I …

Software Development c++
Member Avatar for l4z3r
0
159
Member Avatar for ceyesuma

I know it is a rookie question but how do I get the system to print what is in personList? [code] private void buildPersonOptions() { List<Person> personList = null; try { Session session = HibernateUtil.getSessionFactory().getCurrentSession(); Transaction tx = session.beginTransaction(); Query q = session.createQuery("from Person"); personList = (List<Person>) q.list(); } catch …

Software Development java session
Member Avatar for ceyesuma
0
75
Member Avatar for laxviji143

Hi, i want to disable the tabs in the tabcontrol except the selected tab in the C# windows application..Can u please help me ..I dont find any properties to disable the tab pages

Software Development
Member Avatar for laxviji143
0
111
Member Avatar for Stefano Mtangoo

I'm really enjoying python in my Netbeans IDE. I would like to know extensive difference between these version of Python: Cpython, Jython, Iron python, pypy .....etc (You can add it). What is the main difference? Why all these versions? What are end products of all these versions? (.exe, .jar, etc). …

Software Development ide python
Member Avatar for Stefano Mtangoo
0
207
Member Avatar for scrypt3r

Does any one know the code to retreve process info and put it in a box like task manager?

Software Development vb.net
Member Avatar for scrypt3r
0
154
Member Avatar for doel.jangkrik

I am not sure if I am in the right forum. If not, I apologize. ------------------------------- I've been working on an assignment in school using Visual Studio. I want to continue at home so I downloaded Visual Studio Express, but I don't know how to transfer the files! In Eclipse, …

Software Development visual-studio
Member Avatar for LizR
0
3K
Member Avatar for sjvr767

Does any one know of any modules which could help me in comparing lists. I have the following problem. There are lists with names and there are lists with associated weights. For example, a = ['a', 'b', 'c', 'd'] w_a = [0.25, 0.25, 0.25, 0.25] b = ['a', 'c'] w_b …

Software Development python
Member Avatar for sjvr767
0
96
Member Avatar for satellites101

Hi all I am kind of new to vb.net, and am wondering if anyone could tell me how I can remove the first line of text from a multiline textbox. Let's say I load a text file with 50 lines into a multiline textbox. How do I delete the first …

Software Development vb.net
Member Avatar for waynespangler
0
2K
Member Avatar for Isaac Hydrogen

please i want to make a contact details program with Visual basic that will allow save contact details. like : Names, Address, phone numbers, E-mails, Address, Company and i don't know where to start from.

Software Development vb.net visual-basic
Member Avatar for prasannapower
0
147
Member Avatar for Dekudude

Hi there! My application is going very well... however, I have a couple questions... mainly, graphical stuff. [LIST] [*]How do I make it so the application runs in full screen? (I know I can do it by changing the preferences in the command line, but that's the ghetto way...) [*]How …

Software Development python
Member Avatar for Dekudude
0
143
Member Avatar for Poab9200

Hello all, I'm trying to create a simple program that creates a text file with some text inside of it. First off, I've managed to create the text file with a few lines of text. My Issue is that I need to use Quotes "" inside of my text file(main.cfg) …

Software Development file-system
Member Avatar for Poab9200
0
150
Member Avatar for VernonDozier

I want to draw some text on a JFrame (later it'll change to a JPanel), but not have the text necessarily be horizontal. I've found some decent examples online that have worked well, but they've all been 500+ lines long. I'm hoping it can be done in a way that's …

Software Development image java java-swing
Member Avatar for VernonDozier
0
1K
Member Avatar for tortoiseman

Hey everyone, Here's a question that should be pretty simple that I haven't found the answer to: if I'm using a function that takes some characters in quotes, what do I do if I want quotes to be some of those characters? I.e, if my code says if c in …

Software Development python
Member Avatar for tortoiseman
0
83
Member Avatar for rs_java

[code=java] public class book { private double basePrice = 0; private double vat = 0; private double discount = 0; private double sellPrice; public book() { setBasePrice(0); setVat(0); setDiscount(0); } public book(double basePrice, double discount, double vat) { setBasePrice(basePrice); setVat(discount); setDiscount(vat); } public double getBasePrice() { return basePrice; } public …

Software Development java
Member Avatar for jasimp
0
312
Member Avatar for Stefano Mtangoo

Hello there! I greet you all, I have a question on Database. First of all I'm completely new In Database realm and know a little . Just definition and little about it. Can anyone tell me how to do database programming (Specifically MySQL) in both server and embeded sever mode, …

Software Development gui mysql python sqlite
Member Avatar for Stefano Mtangoo
0
133
Member Avatar for gispe

hi!! i made a program to count the max sales in a store, that has for example 10 employees. for this, i used an struct to have the code of the employee and the sales he made. the point of the code is to show a list of the employees …

Software Development c++
Member Avatar for Salem
0
173
Member Avatar for cambridgegal300

hiya - i'm making a new game and want to know how to make a simple rounded race track. i've done everything else but want to know what to use. I've tried g.fillRoundRect(left.x,left.y,left.width,left.height,left.arcWidth,left.arcHeight); but an error pops up can anyone help - i want to make a simple race track …

Software Development java
Member Avatar for Ezzaral
0
665
Member Avatar for Duki

Hey everyone, I'm completely new to C# so I'm sorry if I don't make sense. I need to capture the x and y position of the mouse cursor within a group box (or some other frame). How can I do that?

Software Development
Member Avatar for cVz
0
242
Member Avatar for krille

I get the following error message: Compile error: Can't assign to read-only property when trying to assign Multiselect to my FileListBox(File1). I used the following code: File1.ReadOnly = False File1.MultiSelect = 2 Do anybody know what is wrong! best regards Kristian

Software Development visual-basic
Member Avatar for krille
0
173
Member Avatar for toolmanx

I am working with a MDI in my program. I use .cpp to compile although I program primarily with api's. I'm not sure whether that places me in C++ or Windows threads. Since using .cpp I have to obey C++ rules so I'll list my thread in the C++ area. …

Software Development api c++ windows-api
Member Avatar for toolmanx
0
303
Member Avatar for jonc

Hi, I am having a problem with Visual Basic 6 in that in various screens (Options, Project Options and "New Project" (to name a few)) it is using FixedSys font instead of what it would normally use (Tahoma or MS Sans Serif if I remember right?). How would I go …

Software Development visual-basic
Member Avatar for jonc
0
356
Member Avatar for ravikiran032

can any one write me the program to dowmload imges using java. i have wriitten a program using URL class it is able download index.html pages but not able to download images. my source code: [code] import java.net.*; import java.io.*; public class url { public static void main(String[] args) { …

Software Development java
Member Avatar for ~s.o.s~
0
130
Member Avatar for ravikiran032

i am begginer in java. i need to know that is it necessary to use applets or componetnts or frames to download image from the specified url in java programming. can't we use simple java program to download images.

Software Development image java
Member Avatar for sciwizeh
0
150
Member Avatar for baba786

Hi all . It is my first post ,please sorry if I do any mistake ,I am new in the programming field and want to learn programming language .so can you tell me that how I should start the python .or I would to say you that from where I …

Software Development python
Member Avatar for sneekula
0
283
Member Avatar for ssharish2005

Hello all, Can any one explain me whats the main different between them two data structures. I have been like working on them quite lot now. When do we use tuples and when do we use list. Any specific explains are much appreciated. Thanks a lot ssharish

Software Development python
Member Avatar for sneekula
0
511
Member Avatar for jithusdani

Hi folks.. I want to display the crystal report according to the date that user select...If User changes the date means it should change the report according to that... In my applocation two date picker and one button is ter ,if user select from date and to date means it …

Software Development vb.net
Member Avatar for Jx_Man
0
85

The End.