199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Nemoticchigga

[CODE]String^ comPort = "COM" + this->RS232CommPortNum->Value; int baudRate = Convert::ToInt32(this->cbBaudRate->Value); com = gcnew SerialPort(comPort, baudRate); try { com->Open(); } catch (...) { ::MessageBox::Show("Invalid Port"); }[/CODE] How do I handle this excepion thrown when the com number is not valid? When I run the release version it has an error when …

0
63
Member Avatar for forzadraco

i have some checkbox: i.e: [code=html]<input type="checkbox" name="a" value="a" onclick="check(this)" />a <input type="checkbox" name="b" value="b" onclick="check(this)" />b <input type="checkbox" name="c" value="c" onclick="check(this)" />c <input type="checkbox" name="d" value="a" onclick="check(this)" />a[/code] if user select >= 2choices, the other checkbox become disable and < 2choices become enable.. so user max choose 2 choices.. …

Member Avatar for ardeezstyle
0
103
Member Avatar for edek

Hi, I have two datatables: Projects and Employees. [ICODE]Projects[/ICODE]: ID NAME EMPLOYEES [ICODE]Employees[/ICODE]: ID NAME I need to connect one project with multiple employees. Do I need to dynamically create separate table '[ICODE]RelatedEmployees_<unique number here>[/ICODE]' and store this table's name in field [ICODE]EMPLOYEES[/ICODE] of table [ICODE]Projects[/ICODE] to achieve this??? Please …

Member Avatar for JerryShaw
0
70
Member Avatar for frijole

I have just modified a script that notifies you when you have a new gmail message. Right now it just print out "you have a new gmail message" But, I would like to use some sort of graphics or something. I have zero experience with this though. Any ideas where …

Member Avatar for frijole
0
185
Member Avatar for mark192

Hi I need some help with a loop I want a random number to be generated that is not equal to 3 different, and previously defined variables. The loop I have is like this one below [code] random = randomNum.next(0, 10) while random = first or second or third random …

Member Avatar for lich
0
118
Member Avatar for ashish1234

hi, i am doing a project in jsp.and i am new in this .As a part of it i have to take some reports.i can use either crystal report or ireport.My roblems is that i installed both reports in my system and dont know how to proceed.I can connect the …

Member Avatar for ashish1234
0
113
Member Avatar for DREAMER546

hi i'm having a problem when i use pointer to pointer i've tried my best to make this work .. but it didn't i've got a run time error! PLEASE .. Please .. please i need help :'( if any one have tutorial about how can i work with pointer …

Member Avatar for DREAMER546
0
131
Member Avatar for ceyesuma

There are elements in this code I would like for someone explain if possible. Please. _int(); and the ? and the : in the code [icode] throw e instanceof FacesException ? (FacesException) e : new FacesException(e);[/icode] [code] public void init() { // Perform initializations inherited from our superclass super.init(); try …

Member Avatar for ceyesuma
0
88
Member Avatar for devaradhan

Hi friendz am new to this community and am a atudent, 1st year IT.. Do anyone know how to save the background? i.e. in word wen v open 'open' dialogue box the background behind the box is not affected. how to do this? Also i hav a problem with buffer... …

Member Avatar for Duoas
0
73
Member Avatar for toolbox03

How to I read in a text file ignoring the digits, just want the text in the text file Any sample code?

Member Avatar for Duoas
0
92
Member Avatar for veledrom

Hi, How can i call a Oracle Stored procedure in vb6? Stored procedure : [code]ADD_SP (1, '1', 1, 1, 'abc')[/code] Thanks

Member Avatar for veledrom
0
139
Member Avatar for jephthah

so... whatchyallthink? i notice that this forum gets a tiny burst of activity about once a week. before posting this thread, the last couple posts here were made 9 days ago. then the next few were 17 days ago. and this pattern seems to be the same with other multi-language …

Member Avatar for Major Major
0
263
Member Avatar for :-)

Hi guys ! I'm currently reading "Programming Ground Up" by Jonathan Bartlett ([URL="http://www.amazon.com/Programming-Ground-Up-Jonathan-Bartlett/dp/0975283847/ref=sr_1_1?ie=UTF8&s=books&qid=1211474405&sr=8-1"]Amazon[/URL], [URL="http://savannah.nongnu.org/projects/pgubook/"]Book's page[/URL], [URL="http://download.savannah.gnu.org/releases/pgubook/"]Download Book[/URL]) The program toupper.s in Chapter 5 frustrates me to some extent :-) It's working fine, no problem. But There's a certain part, I just don't understand. Where does the computer know to start …

Member Avatar for :-)
0
170
Member Avatar for Beemer

Hi all , I have successfully written a simple program to calculate the total points scored by backs and forwards against one another in a 18 person team, but I need to safe proof it against a person entering anything other than F/f for forwards or B/b for backs , …

Member Avatar for Beemer
0
284
Member Avatar for D boss

hi guys, i have created a class which has a couple of buttons and each button calls a public class, class B4 is a button and it calls up the Printdata class, the Printdata class, then gets data from the database carpark and stores it into a file.txt as B4 …

Member Avatar for D boss
0
114
Member Avatar for bintang

Straight to the point...:) I have problem connect to database. when I click Login button, the code can't read the username in my database. I have checked the codes but i think there are some mistakes, but i don't know where it will be. Please help me. Here with I …

Member Avatar for bintang
0
95
Member Avatar for thekashyap

Hello Everyone, Does anyone know any design patterns for modules meant for encoding/decoding of protocol messages. E.g. BSSMAP/LAP... We need to write encoders and decoders for BSSMAP and BSSLAP messages for our product. All the IE (information elements) are defined by standards, so we know everything abt every field in …

Member Avatar for Yann Garcia
0
568
Member Avatar for chico1st

Hi I am getting an undefined reference error from my code here is a snippet of my code. [CODE] #include <stdio.h> #include <windows.h> //defining functions void ErrorFunc(int error); int error = 0; int main(void){ return 0; } void ErrorFunc(int error) { FunctionFromALibrary(error); } [/CODE] I am using DEVC++ 5 and …

Member Avatar for lich
0
85
Member Avatar for JochenM

hi folks, i need a library to analyse references of a scientific document. the lib should be able to identify references in the full text (for instance [1], [2], ... or Author A (1995), ... Author B & C (1968), ...) and it should be able to identify the elements …

Member Avatar for JochenM
0
147
Member Avatar for gilly_kumar

Hi, After 7000-8000 loops, i.e after 2-3 days, there is a runtime error because malloc failed.We identified that the error was occuring malloc function tires to allocate ~250k bytes of data. Then on analysis, We listed few possible items where malloc could fail 1. Fragmentation 2. Memory overwrite or overflow …

Member Avatar for lich
0
274
Member Avatar for MonkeyGarage

I get the following when attempting to view a project I have, I have MySQL 5.0 and Tomcat 6.0. Both services are running. As far as MySQL connectors, I have both "mysql-connector-java-5.0.7-bin" and "mysql-connector-java-3.0.8-stable-bin". This has not worked with either one. HTTP Status 500 - type Exception report message description …

Member Avatar for dnanetwork
0
156
Member Avatar for Arijit Manna

Hi, Iam working on [B]WPF DataGrid (dev. by ComponentOne)[/B] with [B]Visual Studio 2008[/B]. I wish to provide facility to user to select "Columns" of a Table using ListBox(if possible, by clicking on Checkboxes within the ListBox) and the Report will be generated for those selected "Columns" only. [I]Selection to be …

Member Avatar for Arijit Manna
0
133
Member Avatar for FreezeBlink

At various points in my text-based programs, I've had to write a function for use in multiple-choice menus. It needs to have the following qualities: [list][*]Ignores non-number input, repeating the request if it is given a string. [*]Can be given upper and lower limits on the acceptable numbers, repeating the …

Member Avatar for rikxik
0
88
Member Avatar for yanz

Hi everyone here.. Currently i m doing my project which i needed codes for receiving sms by PC using vb6. I would like to knOw if there is any expert who have the codes.. if there is..can send the codes to mi.. thanks alot... I have been trying so many …

Member Avatar for elleinad
0
621
Member Avatar for FreezeBlink

This is probably totally absurd, but...is it possible to, through Python, access the command line and use it? For instance, write a program that outputted all of the files in a given directory, much like cd [directory] dir would?

Member Avatar for rikxik
0
195
Member Avatar for Kadence

I'm a C++ beginner. What's an easy to use (in terms of both installation and use in code) library for using MySQL in C++? Is there one that's a lot more commonly used than others? Note that I'm using MySQL 4.1.22 on GNU/Linux. I've found the following: [LIST] [*][URL="http://dev.mysql.com/doc/refman/4.1/en/cplusplus.html"]MySQL++[/URL] [*][URL="http://www.sqlapi.com/"]SQLAPI++[/URL] …

Member Avatar for Kadence
0
714
Member Avatar for nasirgul

Hello, I am new to C#. I want to know one thing. How can I get value from text box(or update text box value from another thread) while working on C# Threading. I tried but cant able to get. Below is the code. I want to use text box values …

Member Avatar for Ramy Mahrous
0
183
Member Avatar for dan_e6

hey guys. ive created this function that will delete the first element it finds in a linked list that has the value n in it. it works except when the number is the FIRST element in the list. it wont delete it, it will replace it with a 0 when …

Member Avatar for John A
0
107
Member Avatar for sonia sardana

het frnds I faced the foll. interview questions on Vb.net. Plz reply i want to just confirm my answers- Give reply if mine answer is wring. 1)How many Compilation levels are there in .Net Framework a)One b)Two c) Three I WRITE---TWO Mine ANSWER IS RITE OR WRONG 2)There are different …

Member Avatar for Arijit Manna
0
253
Member Avatar for DinoSauro

I am trying to "hear" mouse events in windows, and made a mouse hook. But I think for security reasons, every time I open Internet Explorer on any site that uses the protocol https: / /, the hook is down, and return when I leave the secure url or close …

Member Avatar for michaelHuo
0
109
Member Avatar for gpdrums

Hi All, Using php and MySQL, I completed a login session script and it works great. I am assigning the username and password to select users, and there will be no registration form. My "users" table in MySQL has 5 columns as follows: [LIST] [*]id [*]username [*]password [*]company [*]last_login [/LIST] …

Member Avatar for gpdrums
0
205
Member Avatar for Phan

I don't know if I am in the right forum for this, but it does pertain to c++ programming, so I'll post it here for now since everyone is very helpful (most of the time). We are doing a summative project on c++ and it can be any type of …

Member Avatar for Ancient Dragon
0
120
Member Avatar for ctoz

Hello, New poster here: just starting with PHP, slow learner, not finding what i want in online manual (prolly me, not the manual). I've found an extremely simple js library which does exactly what I want: in "index.htm", you click on "div#1" and the text in "div#0" is updated from …

Member Avatar for hivenk
0
114
Member Avatar for mahase

Parse error: parse error, unexpected T_STRING in on line 21 [COLOR="Red"]21 = $query = “select * from users where username=’$username’ and password=’$password’”;[/COLOR] mysql_select_db("$dbname", $connection); session_start(); $username = $_POST[‘username’]; $password = md5($_POST[‘password’]); $query = “select * from users where username=’$username’ and password=’$password’”; $result = mysql_query($query); if (mysql_num_rows($result) != 1) { $error …

Member Avatar for hivenk
0
86
Member Avatar for cmdolcet69

Does anyone know of a way to translate english to spanish text in a vb 2003 application form? I read about the global localization in 2005 however everytime I tried it it would never work. Any suggestion?

Member Avatar for ShadowMaster215
0
156
Member Avatar for buddy1

I have this program I have to write about adding binary numbers. Here is the write up: "Defining a binary number as int binNum[8]; write a C++ function void binaryAdd(int* sum, int& cBit, const int* bin1, const int* bin2) to compute sum as the sum of the two binary numbers, …

Member Avatar for buddy1
0
265
Member Avatar for Triggerhappy41

Hi, beginner here making the move from Java to C++ and having troubles (of course) with const and pass-by-reference. I'll show you the code I'm working on: Card.h: [CODE]#include <iostream> using namespace std; class Card { friend ostream& operator<<(ostream& out, const Card& c); public: Card(char aSuit, int aPower); void setSuit(char …

Member Avatar for Triggerhappy41
0
145
Member Avatar for kllera

I'm dividing integers and making it a temporary double so i can get it in a decimal. To have it with a fraction i just divide the numbers and cout the answer with the mod answer "/" num2. I want to display both the fraction and in decimal, so.. for …

Member Avatar for Duoas
0
138
Member Avatar for robsartain

Hi All, I am using AJAX to load content into a particular div on my webpage (it is a script from dynamic drive - [url]http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm)[/url]. I am also using another script created by [url]http://www.cabel.name/2008/02/fancyzoom-10.html[/url] to zoom out the screenshot/s that appear in the dynamically loaded content. Unfortunately, the fancyzoom script …

Member Avatar for SheSaidImaPregy
0
162
Member Avatar for nu2cpp

Hi, I am developing my program on a different machine but then I take the executable to a different machine to run. The program gets data over the serial port that I write to a file for later analysis. My problem is that when I run the program on the …

Member Avatar for John A
0
134
Member Avatar for nu2cpp

Hi, I have a Timage on a panel and I want to draw a cross on the image as I move my mouse on the image. I am drawing the cross using the canvas of the image. The drawing of the mouse works fine but the problem I am encountring …

Member Avatar for nu2cpp
0
204
Member Avatar for nclouse

I am working on a TCP socket server for a client and i am having a problem. Everything works except for one thing: i can't figure out how to have the server tell the client that the server is going down. I have the SocketServer running as a windows service. …

Member Avatar for ich1
0
199
Member Avatar for frijole

I have a script that I would like to repeatedly run every 30 seconds, does anyone know how to do this? Also, a side question. Is it possible to have the output form the previous run replaced by the new output? Instead of it all stacking up every time the …

Member Avatar for frijole
0
1K
Member Avatar for jbennet

My bootsector is meant to print something - it does, but wierd characters follow it? e.g the spades symbol [code] ; Boot.Asm ; Tell the compiler that this is offset 0 - it isn't offset 0, but it will be after the jump. [ORG 0] jmp 07C0h:start ; Goto segment …

Member Avatar for jbennet
0
118
Member Avatar for k2k

would anyone please tell me how i cp the whole directory to another directory without the originalDir name.... ex: say the original contains multiple directory contains multiple directory.. and files how do i copy everything from one directory to another directory i tried cp -r /home/henry/originalDir /home/henry/newDirectory..... however my newDirectory …

Member Avatar for Salem
0
93
Member Avatar for frijole

I hava s script that runs continuously and checks my mail but I would like to add some way to kill the script. With a control+something, is there any way to do that?

Member Avatar for Freaky_Chris
0
103
Member Avatar for BiNO

Hi I have Borland Jbuilder 2006 Enterprise installed on a Microsoft Windows Vista Home Premium OS. I was trying to make the font bigger (in the preferences menu) but something happened and now the font is very small, too small to even click on a button. (I'm not talking about …

Member Avatar for BiNO
0
89
Member Avatar for NycNessyness

Hello once again everyone. I would like to know if anyone could assist me on how to insert text from a JFormattedTextField and an item from a JComboBox and place them into a JTextPane. If the user enters an item name like Shoe in the JFormattedTextField and then selects an …

Member Avatar for NycNessyness
0
138
Member Avatar for LanierWexford

I was looking at the code snippets, specifically "Petals around the Rose” and I wanted to see how it runs, so I copy, pasted and saved the file in my text editor as Petals and now I am trying to figure out how to run the code. As always I …

Member Avatar for Freaky_Chris
0
82
Member Avatar for elondir

I am upgrading a VC++ 6.0 project to Visual Studio 2008. It uses STL extensively. It compiles fine on Visual Studio 6, but produces the following error in VS2008: [icode]error C2440: 'initializing' : cannot convert from 'const int' to 'MyStruct *'[/icode] The error is trapped in the STL functional header …

Member Avatar for elondir
0
206

The End.