199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Hummdis

I've tried this a number of different ways and I've even downloaded the Regular Expression reference sheet from addedbytes.com, but I just can't figure out how to move this eregi_replace() statement into a preg_replace() statement. I've read and understood the delimiter requirements for preg_replace(), but I think the problem is …

Member Avatar for Hummdis
0
248
Member Avatar for ClimaxBeetle

[B]ERROR RECEIVED:[/B] [B][COLOR="Red"]NullReferenceException was unhandled [/COLOR][/B] Object reference not set to an instance of an object. And it points on the particular line: [B][I]dsNewRow = ds.Tables("Employees").NewRow()[/I][/B] [CODE]Imports System.Data.OleDb Public Class Register Public cn As New OleDbConnection Public rd As OleDbDataReader Public da As New OleDbDataAdapter Public ds As New DataSet …

Member Avatar for adam_k
0
205
Member Avatar for mike2098

Hi I want to populate a text box from a stored table I have this for the data With DropDownList1 .DataSource = ds.Tables("property") .DisplayMember = "propRef" .ValueMember = "propRef" .SelectedIndex = 0 End With "property" holds all the info from the db when the user changes the dropdown list I …

Member Avatar for Mitja Bonca
0
394
Member Avatar for SG01

How can I sort label names on buttons within a form. Automatically sort the names and put into the correct place within the form. A-Z order sort can be left to right. Want some sensibility to the form not all mixed up.

Member Avatar for adam_k
0
172
Member Avatar for atrueresistance

Hello all, I am trying to transfer some variables to another page for editing. I am having troubles with the checkboxes. [CODE]GridView1.Rows(e.NewEditIndex).Cells(12).Text & "~\/~" & _[/CODE] is a checkbox and when passed and split it comes up as a empty string. I know there has to be a way to …

0
108
Member Avatar for Killer_Typo

Trying to build a simple python script on my mac, but the mac is 64 bit and apparently does not want to play nice. Does anyone know of any workarounds or if I am missing something? command i am running is python setup.py py2app -A output is: error: argv-emulation is …

Member Avatar for Killer_Typo
0
269
Member Avatar for gunjannigam

I have written a code which uses RXTX Serial API for communication. Now I want to distribute a jar file for my program. The problem is that since I have used RXTX Serial API jar & dll files for this needs to be copied in java home. I wrote a …

Member Avatar for NormR1
0
252
Member Avatar for theharshest

Hi Friends, I want to learn web application development. I have good experience in C programming language and no other language. Can you please suggest me where to start with? I have already dived into Python a bit, so I searched the net for some good framework and got Django. …

Member Avatar for griswolf
0
310
Member Avatar for Jennifer84

I have a problem when I compile my windows form application in Visual C# Express Edition 2010. When I press F5 do debug, I receive this message: [B]"Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))[/B] And points to this line: [B]Application.Run(new Form1());[/B] I dont know what the problem could be? …

Member Avatar for gusano79
0
506
Member Avatar for woolm110

I've created a toolbar in html that displays a series of icons that act as link to perform a variety of different functions. (the links aren't fully live yet but they will be!). I need to take this html and turn it into a bookmarklet so upon clicking the bookmark …

0
151
Member Avatar for pseudorandom21

In the past I used a "Finite State Machine" to follow a sequence of keystrokes to completion, but I don't think it's effective and I was wondering how you guys would implement this: (I have the keyboard & mouse hook lib worked out) When a sequence of events (keystrokes & …

Member Avatar for gusano79
0
125
Member Avatar for ruchi18

HEllo I want to make a sms application C# and .net but i don't have any knowlegdge about sms messaging by computer application i search for this on google so much and the only idea i got it is that i have to buy a sam gateway but what the …

Member Avatar for emond
0
232
Member Avatar for Johann1

Hi, Please could you help me resolve the error message below by pointing me in the appropriate direction. The frustrating thing is that whilst the error code points to a Stack-Overflow I can not pin the offending code down because the software works faultlessly on some computers after deployment but …

0
121
Member Avatar for smoothe19

How do I grab the output sent to the console and save it to a .txt file? Thanks in advanced.

Member Avatar for JamesCherrill
0
3K
Member Avatar for knitex

hey guys, I'm just wondering how you can link to another set of results within the original search results. For example with my code it displays a table and in one of the coloums, plot number, there is a list of number. I would know what to do once the …

Member Avatar for afatn
0
138
Member Avatar for captainSheepdog

Good morning all, I recently started an entry level job creating web pages in ASP.NET/C#. I've been getting along fairly well but when I began doing cross-browser testing on a site I just finished, I discovered that while the site renders fine in IE, only the master page is rendering …

Member Avatar for captainSheepdog
0
92
Member Avatar for Pprog

Hi, I have a thousands of IP addresses, repeating randomly in my database and I wish to print each IP address along with the number of times they are repeated. For example, 162.10.2.1 162.10.2.1 162.10.2.1 192.34.1.10 172.11.2.9 192.34.1.10 192.34.1.10 Output: 162.10.2.1 - 3 192.34.1.10 - 3 172.11.2.9 - 1 I …

Member Avatar for Gribouillis
0
2K
Member Avatar for 54uydf

hello, I have a DB table with records that have connection to one another. sort of like object a comes before b, and object c comes after c. example- table1- Id | pre | post a..|..0..|..d.. d..|..a..|..g.. g..|..d..|..x.. g..|..b..|..x.. g..|..c..|..x.. ...... ...... I have all the connections in the DB, …

Member Avatar for 54uydf
0
135
Member Avatar for bhagawatshinde

Hi, Can anybody help me to how we can use base class constructor/methods in deriverd class without creating an instance of base class. public class abc { public abc() { } public void aa() { MessageBox.Show("base"); } public static string aabb() { MessageBox.Show("base1"); } } public class bcd : abc …

Member Avatar for Mitja Bonca
0
155
Member Avatar for richardh87

Hi, I am having problems when generating a chart dynamically. The problem is that sometimes the chart is rendered with a black background and sometimes without. I have stepped through the code and verifies each number and there are no anomalies or numbers that might cause a problem. The y …

0
145
Member Avatar for M.S.

Hi All Please some one Help me find out why this code doesn't work: [code=python]codes=['zlib', 'zip', 'base64', 'hex', 'utf-8'] def encoder(str, i): return str.encode(codes[i]) def decoder(str, i): return str.decode(codes[i]) en = encoder('Some string here', 2) print en[/code]

Member Avatar for M.S.
0
109
Member Avatar for Xokzin

Hi, I'm reading a file and trying to write it out with the current date in the file name. But I'm getting an error when trying to run this code[CODE]use D_Db; my $dbh = D_Db::connect('EDW'); my $Curr_dt=D_Dates::get_curr_ccyy_mm_dd({dbh=>$dbh}); my $sth4BobExt=$dbh->prepare("Select * from TableX"); $sth4BobExt->execute(); while ( my @BobExtrow = $sth4BobExt -> …

Member Avatar for d5e5
0
257
Member Avatar for jerome2467

hie i just want to know if someone can give me an exemple of how toreplace a data from a single data in a textfile . i read that i need to use a temporary textfile but i still dont get it thanks by advance

Member Avatar for jerome2467
0
120
Member Avatar for xleon

[CODE]title = 'Pmw.NoteBook demonstration' # Import Pmw from this directory tree. import sys sys.path[:0] = ['../../..'] import Tkinter import Pmw class Demo: def __init__(self, parent): # Create and pack the NoteBook. notebook = Pmw.NoteBook(parent) notebook.pack(fill = 'both', expand = 1, padx = 10, pady = 10) # Add the "Appearance" …

Member Avatar for xleon
0
350
Member Avatar for salah_saleh

hey! I have some questions regarding exceptions. concerning this code: [CODE]try 15 { 16 cout << " Function throwException throws an exception\n"; 17 throw exception(); // generate exception 18 } // end try 19 catch ( exception & ) // handle exception 20 { 21 cout << " Exception handled …

Member Avatar for salah_saleh
0
107
Member Avatar for Pytho

Hi I'm developing a game that includes a chat room for four people. All the programs must be the same, I don't want one server program and three clients. Here's what it should do [LIST] [*]Someone creates a chat and invites three more there [*]The chat starter will become the …

Member Avatar for NormR1
0
97
Member Avatar for Techyon

Hi guys, I'm finding myself in a little trouble. I've tried to google this problem, but without much success. Hopefully its something simple I'm missing and someone will be able to help me. I'm writing a little program that will synchronize two access database schema's. It works, to a point. …

Member Avatar for Techyon
0
2K
Member Avatar for cool_intentions

Hi guys, I need to put stop sign as small icon in the tab. This is my XAML code: [CODE=XAML] <Window x:Class="assignment.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"> <Canvas Height="282" Width="430"> <TabControl Height="271" Background="White" Width="405" Canvas.Left="0" Canvas.Top="0"> <TabItem> <TabItem.Header> <DockPanel> <TextBlock Text="Stop" Margin="2,0,0,0" VerticalAlignment="Center"></TextBlock> </DockPanel> </TabItem.Header> <Canvas > <Path Data="M80,81 L79.5,160.5 …

Member Avatar for cool_intentions
0
123
Member Avatar for bibiki

hey there, in Java, I can take a text file and build a two dimensional array out of it. I hope I can do that in PHP as well but I can't seem to be able to do it. these are the specifics of my problem: I have an xml …

Member Avatar for Insensus
0
2K
Member Avatar for Neo_cse

I am working on a project on online e-commerce website.My requirement is that when a user clicks on "Add to cart" option some queries will be sent to the database and no redirection will take place.how to do this using jsp.(I don't know javascript).

Member Avatar for javaAddict
0
99
Member Avatar for BlueNoteMan

How do I access a public class property value in a code module other than the one where it was created? I have created a simple public class and instantiated it in module 1. [CODE] public class Cashflow { public int x = 100; } // code in module 1 …

Member Avatar for BlueNoteMan
0
290
Member Avatar for crazyIT

hello am experiencing two problems: 1) am getting this error and i do not know what it means: Hello.java:1:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘java’ 2) how do i get the header file javaCompilor.tab.h, i already have a javaCompilor.tab.c file

Member Avatar for NormR1
0
94
Member Avatar for nsyncpilu

Hy , I have a problem with the TableModelListener , my application should print out the cell were the content has been modfied but it does notheing. Here is my code. [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.table.*; import javax.swing.event.*; /** * * @author Pilu */ public class Afisare …

Member Avatar for nsyncpilu
0
464
Member Avatar for jpknoob

Hello, i attempting to edit an online payment form to connect to MySQl, i have managed to get everyting working up until the payment page. The problem i am having is sending the cart contents via encrytion to the server. When there is one product, there are no issues. If …

Member Avatar for jpknoob
0
164
Member Avatar for dwinn

Hello, I am trying to program my page so that when a user clicks on a column heading of a gridview, the data is sorted either in ascending or descending order. So far, I have done it so that the gridview can be sorted: [CODE] <asp:GridView ID="GridView1" runat="server" Height="143px" AllowSorting="true" …

Member Avatar for dwinn
0
119
Member Avatar for sid78669

I have the following code I am using to writing and reading cookies: [code=Javascript] //Get Villages from cookie function getVillageFromCookie(villageCount) { var currentVillage = -1; var villagesCookie = getCookie("tw_ratio_villageCount"); if (villagesCookie!=null && villagesCookie!="") { currentVillage = villagesCookie; } else { storeCookie("tw_ratio_villageCount", villageCount, 1); currentVillage = 1; } return currentVillage; } …

Member Avatar for stbuchok
0
189
Member Avatar for Ahmed2

Hi there, I'm currently working on a small broject which is about providing flexible download service. Basically, I read the info from a csv file and put it in the futurelist, then depending on the length of the file I will put it either in currentlist or delayedlist and after …

Member Avatar for Ahmed2
0
172
Member Avatar for piyushdhamecha

I am using VB6 i am create Crystal Report File at run time using CreateReportOnRuntimeDS "p2smon.dll" API function. this function will connect the .ttx file to the report. now i want to connect another one. i am creating .ttx file is at run time using CreateFieldDefFile "p2smon.dll" API function. now …

Member Avatar for debasisdas
0
389
Member Avatar for shweta2008

How to print ascii values from 0 to 255 in C++ ? i have seen many programs regarding this but didnt understand them ...so plz give expalnation also.

Member Avatar for shweta2008
0
147
Member Avatar for apanimesh061

Is C# recommended for Kernel Programming or Device Driver programming ??? I have to make a project on Operating Systems. I have four topics: 1. Real Time OS 2. Device driver programming 3. Kernel Programming 4. File System Programming Should one program them in C# or stick only to C/C++ …

Member Avatar for WildBamaBoy
0
213
Member Avatar for johndohmen1963

How can i rename a part from a cell in a data table i have the folowing table id -------------- 35 albumdescription -------------- test 1 name -------------- 001.jpg type -------------- image size -------------- 97182 location -------------- test 1/thumbs/thumb001.jpg location1 -------------- test 1/slides/001.jpg I can change albumdescription and folder with [CODE]if(isset($_POST['change_name_alb_wein'])) …

Member Avatar for johndohmen1963
0
105
Member Avatar for Shizuo

a javascript that count the number of words,lines,letters, spaces,special characters, vowels,consonants, sentence in a textarea I'm really noob in javascript but I do have an idea for counting words and letters

Member Avatar for urtrivedi
0
73
Member Avatar for vaishnu

I have 1 byte at the address FFF0 and i have to read the byte bits-wise i.e i have to store the first 4 bits in a variable and the other 4 bits in another variable from that fff0 address byte .eg :fff0 : int v1=first 4 bits ,v2 = …

Member Avatar for ddanbe
0
149
Member Avatar for emmyt

Hi every one,pls am trying to copy the content of my fileupload unto an hidden text box so that users will not have to copy it manually,but it just copies the file name wit exception of the path.I need the path name but in IE9,firefox,opera all i get is the …

Member Avatar for G_Waddell
0
145
Member Avatar for Mona Ali

Hi i have made a web page in html in which i want as user enters his data and press a button load then computers MAC id,CPU id and Motherboard id is automatically inserted in the check boxes.if u have any idea how to do it then tell me This …

Member Avatar for urtrivedi
0
581
Member Avatar for eltonpiko

hi im working on on a personal project and i need some help on how to structure my database and query. so here is my problem and searching for a solution. on my site everyday there will have a daily article or item grouped in categories. now a user has …

Member Avatar for urtrivedi
0
257
Member Avatar for bibiki

hey there, I am trying to write a simple script that lets me remove lines from a file. I have an elementet.txt file that contains one-word lines. I thought that if I put the file lines onto an array, and then put back the array elements back on file, excluding …

Member Avatar for bibiki
0
124
Member Avatar for arwenvd

Hello to all reading this thread. I want to ask you a question about mysql records and more specifically deleting them. I have a database which has a table called orders. In orders I have fields: ID, Name, Date created, Date expire. My question is, how can an order be …

Member Avatar for pritaeas
0
266
Member Avatar for dilequeno

I am trying to create a 3D vector and then populate it with values. Firstly I want to create a 3D vector of size 100 with all initial values set to zero. I know that to do this in the 1D case the code would read as follows: [CODE]vector<float> vec …

Member Avatar for m4ster_r0shi
0
143
Member Avatar for dilequeno

I'm not really sure what the correct way to initialize a 3d array is. [CODE]float array3D[100][100][100] = {0};[/CODE] Is this correct? When I try to compile I get problems.

Member Avatar for Salem
0
430

The End.