34 Discussion / Question Topics

Remove Filter
Member Avatar for WildBamaBoy

I'm trying to send data back and forth between two computers using a Socket (TCP). The data is in the form of serialized Packet objects. At an early point in the application, it must send 25 or so Packets of the same type to the other side. See Case 1 …

Member Avatar for Ketsuekiame
0
542
Member Avatar for WildBamaBoy

Here's my dilema. My client program is going to request a certain file from my server program, so the server program needs to send the size of the file it requests and then the file itself by using a Socket all in one go. My client will then read the …

Member Avatar for WildBamaBoy
0
409
Member Avatar for WildBamaBoy

The program that uses this function is receiving files of multiple types and sizes from another PC. It has been working well but when the files' size exceeds about 100MB I run out of memory. I need to modify the receiving code so that it saves the incomplete file to …

Member Avatar for oredigger
0
156
Member Avatar for WildBamaBoy

The attached program has a small bug when you right click on an item. The first time you right click any item it'll throw the context menu (it's the same menu under File) all the way up to the top left of the screen, but the second time you right …

Member Avatar for WildBamaBoy
0
115
Member Avatar for WildBamaBoy

In my client/server program, whenever I need to get data from one or the other it requires a buffer to temporarily store the data. The problem is that I don't know how much data I am going to be getting. I could be receiving a few lines of text or …

Member Avatar for WildBamaBoy
0
536
Member Avatar for WildBamaBoy

If you look at a bunch of files with the Details view, file types known to Windows have a greater description of the file in the Type column. For example, .exe is an Application, .txt is a Text Document, and .cpp is C++ Source. If they are not known, Windows …

Member Avatar for WildBamaBoy
0
96
Member Avatar for WildBamaBoy

Right now I only need to be able to send a 100kb JPEG photo. I tried Google and found a couple of things but their code only threw exceptions so maybe what they've done is not appropriate in my situation. This is an attempt at a remote screen viewer. If …

Member Avatar for oredigger
0
186
Member Avatar for WildBamaBoy

I want to start a method whose name is in a string. My server program will be receiving commands from the client, perform those commands, and send the information back to the client. So instead of using a switch with many cases that only execute a method, I thought it …

Member Avatar for WildBamaBoy
0
147
Member Avatar for WildBamaBoy

I have a group with 7 different NumericUpDown boxes in it. Above those I have a label that tells how many choices you have remaining. When the NumericUpDown goes up, the remainder goes down. However it also goes down when a NumericUpDown goes down as well. It needs to go …

Member Avatar for abelLazm
0
86
Member Avatar for WildBamaBoy

This list box will contain the name of processes that are currently running. My function to update the list first checks to see if it does not contain the name of a process that is running, then adds the process if it needs to. Then it checks to see if …

Member Avatar for WildBamaBoy
0
162
Member Avatar for WildBamaBoy

My program starts 5 different threads when it is opened. One or more of them is not stopping correctly and is causing my program to remain alive even after the main form has closed. Before I go through trying to find which one is doing it is there some way …

Member Avatar for WildBamaBoy
0
4K
Member Avatar for WildBamaBoy

I couldn't find anything that would do what I am trying to do with my client and server. Mainly, I want to click a button that will start downloading a file I select on the remote computer. Optionally I would also like to show the transfer rate, estimate time remaining, …

Member Avatar for agugglez
0
107
Member Avatar for WildBamaBoy

I'm learning C++ and just finished a tutorial on pointers. I understood what they were and how to use them but I do not understand when they should be used. When would it be practical to use a pointer to get a value instead of using the value's name? For …

Member Avatar for WildBamaBoy
0
172
Member Avatar for WildBamaBoy

Just as the title says, how can I detect double clicking in a ListView? I'm trying to emulate browsing through a directory with windows explorer.

Member Avatar for WildBamaBoy
0
108
Member Avatar for WildBamaBoy

I'm doing a client and server program and I am having issues getting my computer's local IP address. [ICODE]Dns.GetHostAddresses(Dns.GetHostName());[/ICODE] returns 2 addresses for me. My computer is behind a router with 2 others on the network. The code returns 192.168.1.2 (I know this is my computer), and 192.168.56.1 (I have …

Member Avatar for WildBamaBoy
0
1K
Member Avatar for WildBamaBoy

I'm at a point with this program that I need to do a lot of work with strings. This would be so much simpler to do in Python, however I don't want the entire program written in Python. How could I use functions from a Python script in C++?

Member Avatar for WildBamaBoy
0
265
Member Avatar for WildBamaBoy

This program gets a list of the processes running and displays them in a ListBox. When one is clicked it puts info about the process such as start time and filename in text boxes. But some of these don't return anything and the text box remains blank and I can't …

Member Avatar for WildBamaBoy
0
144
Member Avatar for WildBamaBoy

This program will kill the process a user specifies and start a BackgroundWorker that constantly analyzes a list of running processes and kills it again if it starts. But it will not cancel even when I tell it to. This is the BackgroundWorker's code. [CODE]private void KeepProcessKilled_DoWork(object sender, DoWorkEventArgs e) …

Member Avatar for WildBamaBoy
0
414
Member Avatar for WildBamaBoy

I'm working on a scientific/algebraic calculator and I have put all of the code that will deal with any of the math in a separate class. However I cannot access any of the controls on the form from this class. I need to write the answer into the box on …

Member Avatar for darkagn
0
140
Member Avatar for WildBamaBoy

I used someone else's code as an example to start my game and move my character around. I understood the majority of it but there's a couple of parts I don't get. I want my character to move Up when the up arrow is pressed, but smoothly! My code right …

Member Avatar for SgtMe
0
2K
Member Avatar for WildBamaBoy

I know this is probably overly simple but I am terrible with math. This is a section from a game I'm attempting with PyGame. Instead of using pixels for coordinates I have my own render function that uses blocks(actually just cnverts block value to pixels), which are 32x32 pixels, so …

Member Avatar for Gribouillis
0
2K
Member Avatar for WildBamaBoy

Just started learning C++ today. I'm writing a program to keep up with school assignments. [CODE] #include <iostream> #include <stdlib.h> #include <fstream> #include <string> struct Assignment { string Period; string Title; string Page; string Date; string Instruct; }; void NewAssignment() { system("CLS"); Assignment Work; cout << "New Assignment Entry" << …

Member Avatar for WaltP
0
358
Member Avatar for WildBamaBoy

I'm coming from Python to Visual Basic and it's really playing with my head. This program is intended to scan a list of directories (only have one directory so far) and see if they contain any files. If they do, their directory is added to a list (DirtyFolders) and all …

Member Avatar for WildBamaBoy
0
107
Member Avatar for WildBamaBoy

I'm attempting to write a game server and I need it to continue on with the code while listening for a connection. I know this is done with the threading module but I don't know how exactly to do this. Python documentation didn't work for me. [CODE] #[LISTENER] print "Initializing …

Member Avatar for lrh9
0
174
Member Avatar for WildBamaBoy

I don't really know how to word what I want to ask so please bear with me. I'm making a program that will start up a game server written in Java and read the outputs and edit the packets so that I can modify this game. It will read outputs …

Member Avatar for WildBamaBoy
0
81
Member Avatar for WildBamaBoy

In this program I have a lot of game directories in a list like so: [CODE]base = "C:/Program Files/Game" expansion = "C:/Program Files/Game/Expansion" Games = [(base, "Base Game"),(expansion, "Expansion 1")] Installed = [][/CODE] The program then sees if they are installed like this: [CODE]for path, name in Games: #For every …

Member Avatar for WildBamaBoy
0
117
Member Avatar for WildBamaBoy

How do I get the same result from this Python script in Visual Basic? [CODE=Python] import os username = os.getenv("USERNAME") desktop = "C:\\Documents and Settings\\%s\\Desktop\\" % username print desktop #Result = C:\Documents and Settings\<MY USERNAME>\Desktop\ [/CODE] I already have this, [CODE] Public Shared username As String = My.User.Name 'Gives computer …

Member Avatar for vb5prgrmr
0
142
Member Avatar for WildBamaBoy

I just learned about dictionaries in Python and tried to implement them into a program I developed. The folders in the dictionary absolutely MUST be created in the listed order. But if for whatever reason they cannot be created, I want the name I specify to be printed instead of …

Member Avatar for TrustyTony
0
113
Member Avatar for WildBamaBoy

In the code below I have a class that handles what folder the user is in, so they can browse through multiple folders. I know that this isn't going to work right just yet. This is the first time I've tried using classes and I don't understand them so well. …

Member Avatar for WildBamaBoy
0
113
Member Avatar for WildBamaBoy

I cannot get shutil to copy one folder to another. This code results in the error below. What am I doing wrong? [CODE]if os.path.exists(backup + "\\Safety Backup"): pass else: print "Backing up original music. . ." os.mkdir(backup + "\\Safety Backup") for folder in musicFolders: shutil.copy2("C:\ABCD123", backup + "\\Safety Backup") print …

Member Avatar for WildBamaBoy
0
20K
Member Avatar for WildBamaBoy

Does anyone here know how to use the UnRAR2 module? [URL="http://code.google.com/p/py-unrar2/downloads/list"]http://code.google.com/p/py-unrar2/downloads/list[/URL] I can't for the life of me I can't figure out how get it to do the same thing that zipfile does in a project I am working on. I want it to look for all files of a …

Member Avatar for Beat_Slayer
0
264
Member Avatar for WildBamaBoy

How do you make Python distinguish from files and folders if they are dragged and dropped into the program's window? [CODE] import os import string newDrag = raw_input("Drag and drop the file or folder you want to add.\n") newStrip = newDrag.strip('"') #Removes the quotes Windows randomly adds for some reason …

Member Avatar for WildBamaBoy
0
142
Member Avatar for WildBamaBoy

This is a section of a program I made that keeps track of some money I'm saving. :cool: When I enter how much I want to add it saves what I enter to a file and updates the current amount I have saved, also in the file. When I enter …

Member Avatar for WildBamaBoy
0
159
Member Avatar for WildBamaBoy

Hi, I'm writing a program that totals how long someone has worked by the starting time and the ending time. It DOES work if the times entered are both AM or PM. Like if they worked from 2:00 to 9:10, it tells me the right answer of 7 hours and …

Member Avatar for WildBamaBoy
0
2K

The End.