199,114 Archived Topics
Remove Filter ![]() | |
in trusted connection hw will we get the client windows user id.i am getting only server windows user id when i run the application in server.by when client run iam not getting client windows user id. | |
string str = ""; for (int i = 0; i < 2; i++) { foreach (RepeaterItem r in Repeater1.Items) { CheckBox c = (CheckBox)r.FindControl("chkModule"); //Response.Write(i); if (c.Checked) { str += "true,"; //Response.Write("True" + " " + str + " <br />"); //Response.Write("True" + " " + str + " " + i + "<br … | |
Heyy daniweb! I have a couple questions that need answering :) 1. Is there a way, in C++ to do a do - if loop? 2. Can there be a way to do something like: [CODE]#include <iostream> int main() { if (g == string) // if something were to EQUAL … | |
Hi I've set up a website which gathers results from a mysql database which allows the user to sort the results according to some preferences in 2 separate select lists. It works as long as you make a selection from both boxes before submitting. I would like for results to … | |
Hello everyone, I've just started using the pypcap and dpkt modules and tried the code on google code for pypcap and I get nothing. Heres the code I used: [code] import dpkt, pcap pc = pcap.pcap() pc.setfilter('icmp') for ts, pkt in pc: print `dpkt.ethernet.Ethernet(pkt)` [/code] I think this is suposed … | |
I have a csv file that has 12 columns. I've been using: [code=c++] while(!infile.eof()) { getline( infile, source, ',' ); outfile << source << ", "; getline( infile, native_ID, ',' ); outfile << native_ID << ", "; getline( infile, index, ',' ); outfile << index << ", "; getline( infile, … | |
Hi all, Currently I execute multiple scripts in the following format: os.system(./script1) os.system(./script2) os.system(./script3) But now I need to modify the code in such a way that script1, script2 etc return a success code(0) or failure code(1). But os.system can not return these values. What I need to do so … | |
I've been working through the book Python Programming In Context and everything runs fine except cImage. I went to the website to download it, but so far I haven't found a version for Python 3.1.2. I can use the cImage.py file they give on the website, but in order to … | |
Hi all, Im trying to read data that is send from my Arduino Duemilanove(Atmega328). Link to arduino: [URL="http://arduino.cc/en/Main/ArduinoBoardDuemilanove"]http://arduino.cc/en/Main/ArduinoBoardDuemilanove[/URL] My arduino sends a max of 24 chars. example 1: 32767*32767*32767*32767 Now if send 24 chars and read them in "UitBuff"(24 chars) the data is correct. However if i send less then … | |
Hey, so I'm trying to make a text-based game using mostly Swing GUI; the code I have so far is below. When I use JOptionPanes I modify the icon, title, and suchlike on them, so I have about two lines of code for every JOptionPane. I created methods for them … | |
Hi Everybody I wrote this program to experiment with dynamic binding. One class inherits from another which inherits from another. The user creates a new object of their choice at run time and 2 functions within that object should be called but it doesn't seem to be working out that … | |
Hi all again, I'm now in my 3rd week of my C++ course and I have a few little issues I need explained to me. The Hangman game in question is NOT supposed to be functional yet. It's an generic exercise in classes in which Hangman will be MY final … | |
I m making a website of Online Programming Forum.. But i m a bit confused about how to display new thread generated by a user to the main window... Can anybody help me... Thanx... | |
hi there, i have a datagridview in that i have coded the CellBeginEdit. how can i attach the CellBeginEdit event in another function that i have implemented in C# ??? thanxxx | |
1. an int and a class with only an int member, are they of the same size? 2. what is the size of a class containing 4 ints and a virtual function? | |
hi i designed an application in VS 2008 and i'm using .rdlc reports. My problem is when i deploy on the client machine and try to generate a report i get an error saying 'Operation must use an updatable query' then when i click the details See the end of … | |
I need a little help with this code, I cannot get it right, and i know it is something simple that i am missing. Can someone help me out please. [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.text.DecimalFormat; import java.util.*; import java.lang.*; import java.text.NumberFormat; public class week2 extends JFrame … | |
Hi guys I need help how to convert my uint and int to 3 byte array. Converting it to 4 byte array is easy since .Net has BitConverter class but now I really need to convert it to 3 Byte Array hope someone can help me out. Thanks | |
Hi, I am wondering if anyone on the list could help me search an xml file based on the user input. Right now, I have two separate files, one that shows all the data from an xml file, and the other is a simple web form with a button like … | |
i have a c# application which is use for from design, it creates .kd file on save option , After running application i have to browse my saved files and open them in my application. but i want a way that that a click on file with .kd extension will … | |
Hello to everyone,I'm using a Borland BCC55 compiler to describe the logarithm function. It works fine,but only with numbers higher than 1,if I insert any floating point the result stucks on -46,whatacer number <1 I write. Here is the function,I made it myself (on a text host): [url]http://freetexthost.com/kv0rdi4gno[/url] Of course … | |
Im trying to get the values of checkboxes in a datalist and then display them in a label on a page, but im getting a nullreference error. on the line... if(chk.Checked) i know these errors are asked for alot, but after researching i cannot find whats wrong :( please help! … | |
Hi, This is my first post here. I am a Java programmer. Recently, bought a book visual C# step by step and learning chapter 1. I am trying to run the CompletedWPFHello. I thought solution explorer will open all of the project files. but .cs is opening only one file … | |
Hello! I'm trying to get my program to automatically open a file when I doubleclick on it, I have set the file assosiation right but my code isn't working. I have read about the "Application.Run(new MyProgram());" but I have some problems. When I do this: [code] public static void Main(string[] … | |
Hi there.. im new at c# and got some problems with my list an example [CODE] public List<Example> Test(int x) { var list = new List<Example>(); var data = (blabla linq to sql) } foreach(var item in data) { list.Add(new Example(...)); } [/CODE] some of my data's are null and … | |
Hi, I am new at this... I am trying to display data from a text file to a JSP file and I'm using BufferedReader to do this but having problems getting to the file. Which directory should I put the text file? Should I add anything to web.xml to reference … | |
Hi, I am wondering what I might be doing wrong here regarding getting the XML Attribute of my xml file, here is a snippet: [CODE]<music_songs> <song> <title>(I Just) Died In Your Arms</title> <date added="03-24-2009" /> </song> </music_songs> [/CODE] Here is my code, [CODE]<%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.XML" %> … | |
I have program: [CODE]Dim ItemCode(6) As String Dim Description(6) As String Dim price(6) As Currency Dim Quantity As Integer Dim SaleCost As Currency Dim item As String Dim position As Integer Option Explicit Private Sub Command1_Click() item = Text3.Text Quantity = Val(Text2.Text) If Option2.Value = True Then Call CodeSearch(item) Else … | |
please some one help me with this code | |
All, I am developing a Socket Server in Java. Its job is to receive TCP packets from a unit sending Hayes AT commands via GPRS/sim chip combination over broadband. The software for the unit sending the packets has been written in C++. Packets sent are all in hex bytes. I … | |
can someone convert that to case statement: [CODE]Private Function Discount(curr As Currency) As Currency Dim temp As Currency If curr < 15 Then temp = 0 ElseIf (curr > 14.99) And (curr < 30) Then temp = 0.05 ElseIf (curr > 29.99) Then temp = 0.1 End If Discount = … | |
I'm trying to populate datagrid with only 5 newest results from access database. I have tried using TOP 5 parameter but for some reason it gave 5 last results and not 5 newest. And if i put order by desc, it would show the newest, but the newest result was … | |
i have a datagridview with last column is a checkbox.When user check on a row or rows, i will add columns' contents on that row into a new row in sql database. Please help me! Thank you so much! | |
Hi, need help with inputing images to mysql. I read lots of previous thread about it but couldn't find the proper answer. this is code for my basic form: [CODE]<form id="form1" name="form1" method="POST" action="<?php echo $editFormAction; ?>" enctype="multipart/form-data"> <table width="100%" border="1" cellspacing="1" cellpadding="1"> <tr> <td>tytul</td> <td><label> <input type="text" name="tytul" id="tytul" … | |
Hi, I have written up this simple asp.net page that pulls data from a long xml file and shows information in a table format. Everything is working properly, except that I cannot get the scrollbar to work. So, if I want to read the stuff that is on the lower … | |
Dear all, Hope you are well. I have just created a page which list a resort name and all the fitness clubs that are available in that resort. I would like to register the clubs that are being ticked into a table as separate rows. The table name is called … | |
Howto pass a textfield value to a pop form? I need to pass the value so that the drop down box on the form would autopopulate the items related to that value in the textfield. I'm using PHP. any help please? | |
Hi, I am working on a project, I need to control a CD Drive via the IDE/ATA Interface using a C/C++ program. My goal is to control the Speed of the Drive, and hopefully the radial position of the optical pickup head. I am still fairly new to this field, … | |
Hey.....I want to be a game developer...i started learning game programming 2 months ago...and i selected java for it and i was reading killer game programming book....After reading quite good part of book i have come to know that java is not suited for game programming....Now i'll be having holidays … | |
Hi Guys, I was hoping to get some help from any of you asp.net experts in getting an issue im having when trying to convert asp page to asp.net. I used a converter that reports the convert had no errors. Error happens at 105 Here is the code [CODE]<%-- Generated … | |
I want to know how can I get specific record to make report? For example I have student information there in my program. Its easy to create a report of all students. but if user wants to get & print specific record of a student what should I do? I … | |
How to get IP Address of all PC through java program | |
hi guys having a problem getting a single value from a mysql query getting all sorts of problems - heres my latest version below [code=php]mysql_connect($host,$user,$password) or die( "Unable to select database"); mysql_select_db("mydatabase"); // select database to use. $user = 84; $sql1="SELECT `order_id` FROM `table1` WHERE `user_id`= '$user'"; $array = mysql_fetch_array('$sql1'); … | |
While attempting to use my forum posting system, I received a mysql error that said to look for the correct syntax to use around '' on line 1. I attempted to reproduce the error but was unable to do so. Any ideas on what cause this and how to prevent … | |
In the code given below m not getting , 1) wht he has written in "Console.WriteLine("Enter Value p[{0}]:", i);" wht is P[{0}] n wht is i ,,,,, 2) Console.WriteLine("c[{0}]={1}, c[{2}]={3}", i, c[i], j, c[j]); wht is c[{0}] = {1},c[{2}]={3} " , i , c[i] [code] using System; class AscendingBubbleSort { … | |
Hi I'm trying to load a treeview from 4 tables in the database, i'm using the code attached. The problem is that only 2 of the nodes show up, as soon as I get down product level, the node will not show up. Can anyone see where I went wrong?[code]private … | |
Hail! Wise and Glorious Gods of C Coding. I have written a little function to search an array and it is cousing the program to hang after I enter the search criteria,It should should the array for a match and then return the whole string it was found in. There … | |
I have a list of files of similar format. I want to extract all lines form each file that are containing exact character for example I need to extract only lines with TPO and saving to another file also I need to extract only lines with HOH and saving to … | |
Hi this is my 1st post here. I am trying to integrate a wordpress and bbpress. They were sharing same database, using the user info correctly and working fine apart from I wanted to get it so that users were logged into the other automatically, and have been looking online … |
The End.