1,605 Topics

Member Avatar for
Member Avatar for jd_davis

Greetings, I'm working my way through the Head Start C# book, and I know that whenever I open a stream [CODE=c#]Stream reader = File.Open(filename));[/CODE] I [B][I][U]ALWAYS[/U][/I][/B] [CODE=c#]reader.Close();[/CODE] my stream. The book also lets you know you can use a using block [CODE=c#]using (Stream ...) { }[/CODE] and the stream will …

Member Avatar for MattBerry
1
846
Member Avatar for plusplus

In my code I want to upload a file to my project(named Musiker), under the folder music. Here is what I did so far, it's not working. 'to get the path where to upload it, I did the following Dim strpath As String = Application.StartupPath Dim num As Integer = …

Member Avatar for kvprajapati
0
229
Member Avatar for Bemani_lover

I am having a small bit of trouble with a certain program. Here's the program requires. The program developed in Chapter 8 sent data to an external, sequential data named payment11192007 (or payment plus the system date for your computer). It opened a connection to the DataOutputStream and used the …

Member Avatar for BestJewSinceJC
0
237
Member Avatar for roswell1329

Will the instructions you provided earlier work on the XP version of the "XP Antispyware 2010" malware, [B]crunchie[/B]? I'm helping a family member who got hit with basically the same malware. I followed your instructions and after the two scans and got the following MBAM and and OTL logs: [B]MBAM[/B] …

Member Avatar for crunchie
0
215
Member Avatar for farad

Hi there guys thanks for you help. Basically I have created a c# form based rot13 encryption program. The problem I am having is implementing these into a class with methods which can be accessed from the from. In the main from I have a textbox called message textbox I …

Member Avatar for farad
0
1K
Member Avatar for ihatehippies

This is my first experiment with sockets. Its kinda like the beginings of a VNC app. The basic gist is that one file on computer "A" takes a screenshot of the computer screen and sends it to computer "B" where another file accepts the connection and receives the data. Computer …

Member Avatar for Tech B
0
156
Member Avatar for VernonDozier

The code below compiles, runs, and gives correct results. Note, however, the commented out "Experiment" code. I want to be able to call a function which accepts a variable number of parameters, which then calls another function and passes it those parameters. How can I fix the commented-code so that …

Member Avatar for VernonDozier
1
232
Member Avatar for indigo.8

Hi guys having a single problem with some code. The program is statically linked to another which is suppose to take an input from a text file into an array; and then return a pointer to the array to the main program. The text file contains 10 ints one per …

Member Avatar for indigo.8
0
114
Member Avatar for XinJiki

I am working on a homework assignment: File Input to the program is the body of the letter. Keyboard Input to the program is the name and address of the recipients. The file contains all the letter except the names, which are denoted by #N#. This occurs exactly once in …

Member Avatar for Shinedevil
0
254
Member Avatar for JamesGeddes

Reading from a text file on your local computer is easy, but surely using a URL to point to a different location should work too? The code I have thus far is as follows [CODE] 1. using System; 2. using System.IO; 3. 4. namespace csharp_station.howto 5. { 6. class TextFileReader …

Member Avatar for jonsca
0
249
Member Avatar for JamesGeddes

Hi Everyone, I'm making a Windows Mobile 6 application in C# to help all those affected by Alzheimer's as well as similar conditions One bit of that requires that my C# app gets a mobile number from a .txt file on my website, then sends an SMS Text message to …

-1
77
Member Avatar for sandyben

i have a main java code called home.java which is an interface. when i press button BTNSTART , i want d progm WebCam.java to exxecute. but it's giving me an error saying : [B]ERROR[/B]: home.java:146: cannot find symbol symbol (constructor WebCam()) the code home.java : [CODE] import javax.swing.*; import java.awt.*; …

Member Avatar for sandyben
0
592
Member Avatar for AdamE34

I'm a relative beginner, taking a c++ class, and I'm trying to output this stream of numbers to a .txt file. I'm having no problem actually getting them into the file, but I can't figure out how to get the numbers to line up in columns or rows instead of …

Member Avatar for AdamE34
0
141
Member Avatar for spetsnaz26

I've got this annoying "access violation" problem. I've done searching for a whole day on the Internet and although I didn't find any solution specific to my problem I do understand "unhandled exception in abc.exe:0xC0000005: Access Violation" has something to do with inappropriate use of pointers. However where the error …

Member Avatar for spetsnaz26
0
1K
Member Avatar for studio72

Hello, I need help, i want to list a content from specific folder from FTP, a can make the connection to FTP, but i don't know how can list the files contended in a specific Folder from FTP in one ListBox. I'm new ( beginner) in .NET I have one …

0
41
Member Avatar for uniquereason

I am trying to create a program that compares two files that contain letters from A to E. Both files have 20 of them. Now im just stuck i feel that i could use if statements but i don't know how to go along with it. Any help will be …

Member Avatar for Nick Evan
0
182
Member Avatar for BlackPhoenix

Hi, I'm in the process of creating a program that will allow any client connected to a simple server to voice chat. To start small, I only want the server to play the sound it is receiving from the clients -- the server will not be sending voice to any …

0
78
Member Avatar for jimFan

Dear all, Forgive me for posting two threads for the same problem. I was not showing my problem clearly enough in the previous one. Thank Narue for answering that anyway. Now I do it again here: [CODE] #include <iostream> #include <string> using namespace std; int main(void) { string inputStr; while …

Member Avatar for Fbody
0
1K
Member Avatar for veledrom

Hi, I have a captcha example and works fine. However, only image is dispayed on the screen. HTML form is not visible. I believe this related to the "header" bit in the class file. I added the code. Please help me solving this problem. Thanks [B]index.php[/B] [CODE]<?php require_once "CaptchaSecurityImages.php"; $width …

Member Avatar for veledrom
0
154
Member Avatar for db132074

Hi, I'm having a problem with displaying names from a text file. I'm passing the names from the text file to an array that will be sorted, but I'm not getting the names to show like I want them to. It should display the different names as Last, First But …

Member Avatar for NathanOliver
0
918
Member Avatar for anthony5557

I wonder if anyone can help me. I'm suppose to write a program to ask the user to enter the file they want to display and display the file they want 24 lines at a time. It pauses at 24 and asks them to press enter and displays the next …

Member Avatar for WaltP
0
103
Member Avatar for samuel_cyk

I wrote a code to send file as below: [CODE]Dim objXMLDoc As New XmlDocument objXMLDoc.Load("C:\Inetpub\wwwroot\XMLSchema_Test\XML\1773777.xml") Dim blnResponse As Boolean Dim objURI As Uri = New Uri("https://172.16.17.2/XMLSchema_Tests1/Web%20Forms/frmXML_Receive.aspx") Dim objWR As HttpWebRequest = HttpWebRequest.Create(objURI) blnResponse = objWR.HaveResponse Dim strXML As String = objXMLDoc.OuterXml objWR.Method = "POST" Dim encoding As New System.Text.ASCIIEncoding Dim …

Member Avatar for samuel_cyk
0
160
Member Avatar for Metraton

Hello guys, that's my first post around here and I have a problem with binary files. I'm writing a simple editor for my arkanoid clone game. This editor opens a binary file defined by this: 0-26 byte: Descriptor for the file. Once in each file. 27->(1141*n): Levels inside the file, …

Member Avatar for Metraton
1
186
Member Avatar for sfrider0

I have recently made a program that gets the links from a webpage, then checks to see if they are valid or not. I used the HtmlElement to get the "HREF" attribute and stored all the links into a list. I also tried using the HttpWebRequest and stored the stream …

Member Avatar for apegram
0
140
Member Avatar for sureronald

Hi to you all. I am working on an application that accepts various source files from the users and stores them on the server with the appropriate extension e.g (.cpp, .py). This has been working fine as php allows a programmer to check the type of the uploaded file type …

Member Avatar for sureronald
0
122
Member Avatar for Aprentchacker

Basically I'm trying to adapt the quicksort algo for array based lists for linked list as shown on a text book. This is only for learning the principles than practically effective sorting. I have struggled to get this code to work, but stil seems to break on a few test …

Member Avatar for Aprentchacker
0
930
Member Avatar for nuB

hey im now starting prog in c++ n im being honest- im REALLY flustered i have to create a program to get information from a user, put the info to a file, create another program to read from that file, calculate total scores of x amount of students n grade …

Member Avatar for nuB
0
120
Member Avatar for plobby

So I have a web audio stream that I would like to capture. What I want this program to do is grab the stream, record it and write it to a file (mp3, wav..whatver codec that is easy) and create one hour intervals of the audio stream. So every hour …

Member Avatar for kvprajapati
0
88
Member Avatar for jbrock31

I have been reading books trying to learn .net on my own. I am working on an exercise that asks me to create a 1MB file. what i have below does work, but it seems to me there would be a more efficeient way. It seems like what i am …

Member Avatar for jbrock31
0
313
Member Avatar for techno_weenie

Hello i need some help with parsing a string as i'm very new to C and only started learning it a few days ago. I wish to parse the string "Jan 15 05:46:07 gateway kernel: IN=eth0 OUT= MAC=00:80:c7:c3:c7:be:08:00:03:23:2a:a8:08:00 SRC=80.232.253.76 DST=80.234.144.54 LEN=48 TOS=0x00 PREC=0x00 TTL=108 ID=43600 DF PROTO=TCP SPT=3329 DPT=135 WINDOW=16384 …

Member Avatar for techno_weenie
0
152
Member Avatar for hmeco

Hi Lads im writhing a login system for a personal project. the login part work nice but there are some includement stuff i cannot get figured out. when a user logs in the session will start and he will be redirected to his CP. now. the link to the cp …

Member Avatar for nav33n
0
95
Member Avatar for adams161

I have a java applet and i'm letting the user open a chess engine on their computer. Technically they can open any program now. but it wont work unless its a chess engine that uses the winboard protocol. My question is could they maliciously choose to open any sort of …

0
87
Member Avatar for murid

i'm making program to send picture through socket programming. now my program only can send to 1 destination using destination's IP address. i'm trying to develop the program, so my program can sending picture to many destination. with code below, i still cant send to many destination. only the 1st …

Member Avatar for kvprajapati
0
149
Member Avatar for the0ry

I am familiar with several PHP random image loaders. The only thing I can not seem to find very easily with these scripts is one that prevents repeats for so many reloads. I have a directory containing 3500 images. What I have noticed is that I can cycle through the …

Member Avatar for kireol
0
654
Member Avatar for manishmannan

in my program i am getting this error what would be the reason Warning: include(/common.inc.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\oob\Product\manager.php on line 41 Warning: include() [function.include]: Failed opening '/common.inc.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\oob\Product\manager.php on line 41

Member Avatar for vaultdweller123
0
138
Member Avatar for bunnyboy

So I am making a windows explorer like program and I want to implement file copying with streams ... so here i what I end up with: [CODE=c#] try { using (Stream input = new FileStream(@"F:\dmd-sepdawn.avi", FileMode.Open)) using (Stream output = new FileStream(@"c:\test\dmd-sepdawn.avi", FileMode.OpenOrCreate)) { int bufLength = 1024 * …

Member Avatar for sknake
0
135
Member Avatar for asadzaheri

Hi everybody, would you please tell me what's wrong with this code that generates the following error: Warning: fopen(C:\Documents and Settings\Sando\Desktop\boys.gif) [function.fopen]: failed to open stream: No such file or directory in /home/domain/public_html/webs/divisions/chek.php on line 108 [B]data inserted without any picture[/B] although it works fine and great @ localhost MySQL …

Member Avatar for FlashCreations
0
423
Member Avatar for Camzie

Hi there Iam new to C# and I need help with creating a dynamic web form using C#. It should have labels, buttons, one combobox, picture boxes and textboxes. The user should be able to select a member from the combobox or the user can add a member to the …

Member Avatar for sknake
0
141
Member Avatar for sathya8819

Hi, I am implementing a code which uses the FolderBrowserDialog control. Here is my code : [CODE]FolderBrowserDialog folder = new FolderBrowserDialog(); DialogResult result = folder.ShowDialog(); if (result == DialogResult.OK) { try { string path = folder.SelectedPath; string[] files = Directory.GetFiles(path, "*.jpeg"); foreach (string file in files) { using (Stream s …

Member Avatar for sathya8819
0
340
Member Avatar for papanyquiL

Hi, I'm trying to download a file from the web onto my desktop via my form. However, I keep getting a 'Access to the path is denied' error whenever I start the download. I'm using Win7 if that changes anything... Here's where the error occurs: [code=c#] //create a new file …

Member Avatar for penglund
0
132
Member Avatar for trashnation

Good day I am setting up a Windows Media Server but have a question about secure access. I used to use a Windows Media Server that I hired the use of and it had a certain security feature - it would only serve video files from a certain folder if …

Member Avatar for WMS Protector
0
177
Member Avatar for fadia

Heey guys... I'm in a rush.. I don't know how to write on definition of a function here. Please help. The function interval_since is supposed to compute the time. The previous time and the current. I'm confused how to write the definition. Here is my code.. and the very last …

Member Avatar for Salem
-3
111
Member Avatar for lightforce

Good day, can any one please give me some explanation and an example of source codes regarding these following concepts ? I really need help, I'm so confused. 1. Access File Paths by Using the Path Class 2. Access Files by Using the File and FileInfo Classes 3. Access Directories …

Member Avatar for ddanbe
0
140
Member Avatar for randomkid73

Hello, I have done some research and keep getting results to hide the console window. What I would like to do is to hide the output of a command. For example, I have a segment that renews the PC's IP connection, so I get a long stream of the new …

Member Avatar for marco93
0
111
Member Avatar for Valaraukar

Hi, I'm writing a program in C++/OpenGL as part of a university assignment but I am having difficulty using the function glBindTexture to bind my loaded textures onto the models that I load in and render. I can actually wrap the texture around my 3D model no problem but I …

Member Avatar for Valaraukar
0
261
Member Avatar for kalpa23

im using : v.s 2003 sql server: 2000 [B]im creating this vb application and i took a coding from the inter net which uses 2005 i only have one error that is it's not supported in v.s 2003 can some one help me how to solve this my problem occurs …

Member Avatar for Geekitygeek
0
188
Member Avatar for s8498

Hey everyone, I'm new to posting in these forums so sorry if I didn't post my code correctly? I think i did it...hopefully. Anyways, I've been working on this all day but I can't figure it out. (i think i will be having problems with the rest of my assignments …

Member Avatar for UberJoker
0
2K
Member Avatar for ThomsonGB

If I Open a file using something like: FileStream^ fs = File::OpenRead( path ); How can I determine the size of the file so that I can read all of the data bytes in the file? What sort of Read would you use to read one byte at a time. …

Member Avatar for ThomsonGB
0
228
Member Avatar for plastic

hi hi, i have a .hex file and i have to read it and convert and sasve it in decimal format. any ideas plzzz

Member Avatar for ddanbe
0
2K
Member Avatar for Diamonddrake

I am able to post data to a form so long as its strings. by creating a dictinary of keys and values, then creating a string in the style of key+ "=" + value "+ & repeat. then passing it to a method kinda like [CODE] private string PostData(string url, …

Member Avatar for Diamonddrake
0
331

The End.