132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for abu taher

I made a database project. when I run it another pc and press the Add New button (in my project) it show this msg. Run time error - 91 Object variable or with block variable not set. I connect the backend database by data sources(ODBC)> system DSN. I write code …

Software Development visual-basic
Member Avatar for abu taher
0
114
Member Avatar for beanryu

okay guys, plz help, this is so wierd. I am not an expert in C, in fact, not an expert in anything. I defined a struct as the following: [code=c] typedef struct Fact { char predicate[MAX_TOKEN_SIZE]; struct Fact* valuePtr; struct Fact* next; }Fact; [/code] and i have some code like …

Software Development c
Member Avatar for Salem
0
151
Member Avatar for lahiru17

please can u tell me how to create a software that can be used to send a email?

Software Development email java
Member Avatar for stephen84s
0
62
Member Avatar for gebaly

i want to resize and Drag&drop control on the run of my c# application

Software Development
Member Avatar for gebaly
0
60
Member Avatar for int_80

I'm trying to compile an example nasm program I downloaded for windows. But I can't get it to compile. [CODE]C:\nasm-2.06rc1\nasmw -f win32 example.asm C:\lcc\bin\lcclnk -s -subsystem windows example.obj[/CODE] When I compile it with that, the first part of it goes fine, it's when I use lcclnk to link it I …

Software Development assembly
Member Avatar for int_80
0
580
Member Avatar for Laidler

I now have teo classes the first one contains this [CODE]import java.awt.*; import javax.swing.*; class fm1 extends JPanel { public fm1() { this.setLayout(new GridLayout(3,0)); Dimension D1 = new Dimension (300, 300); JLabel fruit1 = new JLabel(); fruit1.setPreferredSize(D1); fruit1.setOpaque(true); this.add(fruit1); JLabel fruit2 = new JLabel(); fruit2.setPreferredSize(D1); fruit2.setOpaque(true); this.add(fruit2); JLabel fruit3 = …

Software Development java java-swing
Member Avatar for Laidler
0
125
Member Avatar for ryn670489

This is my code its to calculate book club points earned. i cant see where the error is if any one can help me i would be very gratefull. thank you def main(): books = getBooks points = getPoints printPoints def getBooks(): books = input("enter the books purchased") return books …

Software Development python
Member Avatar for ryn670489
0
321
Member Avatar for sriviji

Hi.. my query is.. i have combobox in that i have to load the particular column from db.. for that i used ... ...... da.fill(ds,"user") dt=ds.tables("user") for i= o to dt.rows.count -1 combobox1.items.add(dt.rows.count(i).item(0)) next my doubt is... i have lots of columns in my table(db)... if i load combobox one …

Software Development display vb.net
Member Avatar for sriviji
0
101
Member Avatar for abby2589

how can i declare this correctly: because i always get an error like, too long declaration. Type of food Name Address Average cost Thai ABC Makati 250 American DEF Pasay 350 Asian GHI Manila 150 Thai JKL Muntinlupa 300 Thai MNO Paranaque 350 American PQR Manila 200 Asian STU Makati …

Software Development c
Member Avatar for Ahmed_I
0
112
Member Avatar for Gaytri Khanna

Why we use main() function in c and c++? please reaply as soon as possible.

Software Development c++
Member Avatar for Salem
0
82
Member Avatar for Gaytri Khanna

Hi I am Gaytri i would like to know:- why we use main() function in C. And what is advantages of main() function.

Software Development c
Member Avatar for BevoX
0
206
Member Avatar for Indianblues

Can somebody tell me the file read and write syntax. I found the following code on the net. but didnt get that. fs2.Read(fs2Content, 0, (int)fs2.Length); fs1.Write(fs2Content, 0, (int)fs2.Length); what exactly first, second and third arguement will do in above statements. pls give me some details regarding this. Thanks

Software Development file-system
Member Avatar for Ramy Mahrous
0
111
Member Avatar for saurabh singh

Hi All, I want to create a custom treeview control in which some nodes will have image and some will not. What should do for this, Need some Help.

Software Development
Member Avatar for LizR
0
134
Member Avatar for starzstar

Are there any equivalent classes in python for the for the following java classes import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.HttpException; import org.apache.commons.httpclient.contrib.ssl.EasySSLProtocolSocketFactory; import org.apache.commons.httpclient.methods.GetMethod; import org.apache.commons.httpclient.protocol.Protocol; Thanks

Software Development apache python
Member Avatar for Stefano Mtangoo
0
145
Member Avatar for NexusX

I'm trying to read a single letter from the beinging of a string that is generated from user input. Though it sounds childishly easy, I think I may seriously have a heart attack from trying to solve this problem. Example code follows: [code=CPP] #include <iostream> #include <string> #include <sstream> #include …

Software Development c++
Member Avatar for WaltP
0
2K
Member Avatar for FrancisC07

hi guys..! i need some help on how can i print out the output of my program.. the problem is, it will only print out the first char of a characters and i don't know how to use the pointer using an multidimensional array. ex. input: jhonny output: j here's …

Software Development c++
Member Avatar for zalezog
0
135
Member Avatar for nclouse

This may be a stupid question but.. I am trying to do something like this.... [code] if not something and not somethineElse and not someOtherThing and not thisThing: print "asdf" [/code] and i get an invalid syntax error. so how do you do that properly? google wasn't much help.

Software Development python
Member Avatar for nclouse
0
78
Member Avatar for booker

Hello everyone I am new to the forum I have a question. I created a method foo(ifstream &myfile) and works only if executed ones. In a loop or consequtively calls make the cerr call [code]int foo( ifstream &infile){ if (!infile) { cerr << "Unable to open file "; return -2; …

Software Development c++ file-system
Member Avatar for vmanes
0
78
Member Avatar for massivefermion

Hello I wanna ask is it possible to to us vb for building a program's GUI and c++ for its coding?

Software Development c++ gui
Member Avatar for vmanes
0
175
Member Avatar for devstudio.2007

Dear All, How to Check registry Key existences in XP using Visualbasics 6.0, For example i want to check HKEY_LOCAL_MACHINE\SOFTWARE\Test1\Test2\Hardware\MachineID\100000 if this Key exist means i will run one bat file else i will run another batch. my aim is to Check Key Availablity. regards User

Software Development visual-basic
Member Avatar for Comatose
0
146
Member Avatar for notuserfriendly

[CODE] class OrdArray { private double[] a; // ref to array a private int nElems; // number of data items //---------------------------------------------------------- public OrdArray(int max) // constructor { a = new double[max]; // create array nElems = 0; } //---------------------------------------------------------- public int size() { return nElems; } //---------------------------------------------------------- public int find(double …

Software Development java
Member Avatar for notuserfriendly
0
131
Member Avatar for Kraizy

Hey guys i was wondering if any of you could help here. I've looked around the forums and found a few topics on word_count, the problem is that they use codes that my class hasn't gone into yet so i cant use either. My problem is that we are supposed …

Software Development c
Member Avatar for axyelp
0
180
Member Avatar for tones1986

Hi All, I am working on a project and have come across a slight problem. I have a file i am reading in that consists of the following: John Smith 333222333 01/01/80 M z11119 cs111 2008 fall a cs222 2009 spring f The first line is the Students information, the …

Software Development c++ linked-list
Member Avatar for tones1986
0
240
Member Avatar for sufi89

hey guys i am new to java...well data structures, i have this assignment, where we have to basically accomplish radix sort. The first method is building a master linked lists. i have not even started can anyone help with me with that package sorting; import java.io.*; import structures.linear.Node; /** * …

Software Development java linked-list
Member Avatar for h3xc0de
0
124
Member Avatar for reaven

Hi am trying to make a simple application that write and read from and to a text file the problem is that i want to be able to aerch in the text file for an specific line. the text file is a list of words with a meaning each word, …

Software Development c++
Member Avatar for Comatose
0
249
Member Avatar for mikhala99

This is homework and I am using a getfile that is just a 5 row 4 column list of numbers. I can get this program to compile and when I go to run it, I get my cout text output but without my numbers and the program crashes. I am …

Software Development c++
Member Avatar for mikhala99
0
130
Member Avatar for tylcoatc

Their are commercial/delphi solutions to reading GPS input from the USB port but these do maybe 10, 20 or a 100 things whereas I used to read input via the COM port and then do whatever after that. Is there a small (?) piece of delphi (7 or lower) code …

Software Development delphi pascal
Member Avatar for LizR
0
140
Member Avatar for noob.pas

okay, i've been looking for a nice algorithm for this one for a long time, all i find are cpp, java and c# code. i've been trying to reverse the order of each word in its place, but i don't seem to be able to do so. i tried with …

Software Development algorithm pascal
Member Avatar for tylcoatc
0
1K
Member Avatar for Sparkles

I know this is a bit messed up (the code), but, I'm baffled why it isn't working. I know I'm not great at delphi, and I'd really like some help. [code] var Form1: TForm1; SteamString : String; CommunityString : String; ZeroOrOne : String; SteamId : String; CommunityStringMath : Longint; Calc …

Software Development delphi pascal
Member Avatar for tylcoatc
0
118
Member Avatar for snuppy

[code] procedure TForm2.Button1Click(Sender: TObject); var s:string; i,count:integer; begin s:=edit1.Text; count:=0; for i:=1 to length(S) do if Pos('111111', Edit1.Text) <> 0 then label2.caption:='Yes: 111111!' else label2.caption:='No: 111111!'; end; [/code] someone will be upshot use "while" OR "repeat..until"

Software Development pascal
Member Avatar for LizR
0
82
Member Avatar for telemachos9

Hello, I'm relatively new to c++, so I would appreciate any help. This must be a very basic issue, but how is it that one can assign a stuct or class member to a pointer instead of that structs or class member's address (via &)? (from stroustrup) [code] struct name{ …

Software Development c++
Member Avatar for telemachos9
0
102
Member Avatar for oldSoftDev

[code][code=java] public class LineSeg{ // these are the attributes of a LineSeg object private Point end1; private Point end2; private double length; // the constructor public LineSeg(double x1, double y1, double x2, double y2) { end1 = new Point(x1,y1); end2 = new Point(x2,y2); this.length=(double)(Math.sqrt((x2-x1)**2+(y2-y1)**2)); } }[/code]

Software Development java
Member Avatar for oldSoftDev
0
72
Member Avatar for Unrealx_

hi how to extract file name from a url example [url]http://nothing.com/soft/paint.exe[/url] now i only want to get the "paint.exe" how do i do that..thx

Software Development
Member Avatar for BlackSun
0
105
Member Avatar for piotr_kast

I used this code to serialize: [code] using System; using System.IO; using System.Runtime.Serialization.Formatters.Binary; [Serializable] public class Car { public string Make; public string Model; public uint Year; public byte Color; } public class Exercise { static void Main(string[] args) { Car vehicle = new Car(); vehicle.Make = "Lexus"; vehicle.Model = …

Software Development assembly microsoft-access open-source
Member Avatar for LizR
0
231
Member Avatar for shimul_bari

Hello EveryBody, I am having problem in uploading servlets in my server. The servlet works fine in my locanhost. But when i upload it it does not work. Can anyone help?

Software Development java
Member Avatar for stephen84s
0
150
Member Avatar for leegeorg07

i have this code: [ICODE]import random choices = ['closet', 'lampshade', 'fridge'] print "i have hidden 10,000,000 pounds in one of these places:", choices choice = raw_input("Where do you want to search? ('closet', 'lampshade', 'fridge')") random_c = random.choice(choices) while choice != random_c: choices.del(random_c) for word in choices: if choice == word: …

Software Development python
Member Avatar for leegeorg07
0
96
Member Avatar for starzstar

Hi I am using optparser to design a command line interface.How do I read multiple arguments. For eg if I want to create a folder, I will take the arguments path and folder name something lilke the following main.py --createFolder Tesfolder --path C://Test/Test/... How to read these arguments? I can …

Software Development python
Member Avatar for Murtan
0
155
Member Avatar for AutoC

I have a code snippet that strangely works one way on a fedora 6 machine and another way on a fedora 8 machine. [code] void Form1::SendToApp() { vector<int> isciistream; vector<int> fontstream; cout<<"Entering Form1::SendToApp()"<<endl; isciistream=wwnd->OnOK(); isciistream.push_back(32); char str[255]=""; cout<<"Size of IsciiStream:"<<isciistream.size()<<endl; for (int i=0;i<(int)isciistream.size();i++) { sprintf(str,"%s%c",str,isciistream[i]); cout << "isciistream[i] :" << …

Software Development c++
Member Avatar for AutoC
0
157
Member Avatar for pjacquez68

My friend, help me about vb 6.0 excel as a database. i need your xample project finish, have capacity to save in excel when clicking a button vb 6.0 codes... it is my assignment in school my friend, actually im Pablito P. Jacquez from Philippines 2nd year student IT of …

Software Development visual-basic
Member Avatar for samir_ibrahim
0
109
Member Avatar for shadows09

[URL="http://www.megaupload.com/?d=GZJD9V51"]http://www.megaupload.com/?d=GZJD9V51[/URL] Above is the program spec. and below is what I did so far. [code=python]numStr = raw_input("'p' to be prompted for the secret number or 'g' to have it generated: ") p = numStr print print true = p while true: secret = raw_input("Enter the 'secret' number (five digits, no …

Software Development python
Member Avatar for shadows09
0
115
Member Avatar for kishore84

Hello friends, Need help in generating random numbers from an array without repeats.Once a number is generated, the number has to be deleted from the array so that only the remaining numbers can be generated from the array the next time we call that function.And it should go on until …

Software Development c
Member Avatar for William Hemsworth
0
2K
Member Avatar for Abuzer755

Hi Everybody, I am new to C++,but strongly it is recommended to learn C++ for its speed. That is why I'm here.Could you help me about it. Where do I should start from,read which book and etc. Thanks in advance.

Software Development c++
Member Avatar for William Hemsworth
0
138
Member Avatar for sastwhc

Hi all i have some infopath forms ,all dynamic xml files for input data and recode them in a Dbank, on my box Infopath installed but i prefer the cilent side [ end users] can view and use the forms without infopath,actually IE shows it as a tree form and …

Software Development xml
Member Avatar for zhghl
0
2K
Member Avatar for vipinsgangwar

hi all, i am working on an application which hangs when i click on it. the problem is increasing with every ew setup. can anybody help me. Thanks in Advance Vipin

Software Development
Member Avatar for LizR
0
115
Member Avatar for jworld2

Maybe I have this all completely wrong because I don't know what I'm doing, but I'm trying to work with win32 programming and I want to get the position of all the items on the desktop. I've found the handle for the desktop and I've found the LVM constants in …

Software Development python
Member Avatar for Stefano Mtangoo
0
590
Member Avatar for Rombosia

hi guys, if I have a form with, say, a picturebox in it. The picturebox is loaded with an image, and I need to copy just a section of it, say at rectangular points, X, Y, L and W to the clipboard, or to another picturebox. Is it possible in …

Software Development image visual-basic
Member Avatar for Rombosia
0
1K
Member Avatar for karthi_selva

hi, i am doing the project in .net. i m using linq in my project i using vs2005 and installed the linq. i am able to run the linq only in LinqconsoleApplication. but i need to run in normal console application. ie i like to create one class file and …

Software Development
Member Avatar for Ramy Mahrous
0
421
Member Avatar for eapln

i am trying to move to the dest_dir from Current Working Directory using the following script. my intension is instead of using cd dest_dir, i have to use the script to do the job. when ever i tried with the follwing script, iam again in my Current working directoy... #!/usr/bin/bash …

Software Development shell-scripting
Member Avatar for eapln
0
113
Member Avatar for nanna

hi, i suppose to make simulation to cellphone. when press any digit ,it should appears on the display textfield to form a complete number. and when press the send button a message with"redialling+ the gigits pressed" appears on the textfield also when press redial button a message with " redialling+ …

Software Development gui java java-swing
Member Avatar for stephen84s
0
179
Member Avatar for Hussain27syed

Hi. I am working on reading data from a XML file and upload to sql server 2005. The XML file has many rows of data stored. Each data row node has many subnodes. I have to validate the XML against the schema. The problem is if a particular data row …

Software Development vb.net xml
Member Avatar for Hussain27syed
0
404

The End.