288 Discussion / Question Topics

Remove Filter
Member Avatar for Duki

Hey guys, I have a function that compares two dynamic arrays and returns true or false if they're identical. [code=c++] bool Identical(QueType que1, QueType que2) { if (que1.IsEmpty() != true && que2.IsEmpty() != true) { cout << "in loop\n" ; ItemType tmp1 ; ItemType tmp2 ; que1.Dequeue(tmp1) ; que2.Dequeue(tmp2) ; …

Member Avatar for Duki
0
179
Member Avatar for Duki

I have an assignment question that says "Decide whether the [I]syntax[/I] of the following statements is valid or invalid." These are the statements: [code=c++] a) listData->next = ptr1->next ; b) listData->next = *(ptr2->next) ; c) *listData = ptr2 ; d) ptr2 = ptr1->next->info ; e) ptr1->info = ptr2->info ; f) …

Member Avatar for Duki
0
103
Member Avatar for Duki

Hey guys, I'm going to be starting a research project pertaining to [URL="http://www.jauswg.org/index.shtml"]JAUS[/URL]. Basically, this is a standardized protocol to be used in autonomous robotics... someone will essentially connect to a robots IP and be able to transmit various commands over 802.11. I not exactly sure where to start, so …

Member Avatar for Duki
0
97
Member Avatar for Duki

Hey guys, Does anyone know of a simple way to correct the geometry issue experienced with video cameras? i.e., the top of the screen is much wider (in distance) than say the middle. I need to correct this, so that I can plot pixels onto a 2D map.

0
64
Member Avatar for Duki

Hey everyone, can someone tell me how to include other .cs files in my program? sort of like the .h files in C++ I guess. I want to be able to call functions from other .cs files. Thanks

Member Avatar for ddanbe
0
119
Member Avatar for Duki

In one of my C# books, this is written: [quote] "if you write this application in VB.NET or any other language compliant with the .NET CLS, you will have compiled it into more or less the same MSIL. By design, IL code created from different languages is virtually indistinguishable"[/quote] I …

Member Avatar for jbennet
0
127
Member Avatar for Duki

Hey everyone, I'm going to be starting on a project that communicates with a 270 degree range finder. I would like to incorporate some sort of picture to represent the data it reads. Something similar to [URL="http://www.robotshop.us/hokuyo-utm-03lx-laser-scanning-rangefinder-1.html"]this[/URL] Does anyone have an idea of where I could start? I'm not sure …

Member Avatar for LizR
0
101
Member Avatar for Duki

Will someone PLEASE explain to me the significance of the electoral votes? More specifically, how is the popular vote 48% - 51%, yet Obama won by more than double the electoral votes as McCain. Someone make sense of this for me. I understand according to the process, the electoral votes …

Member Avatar for Dave Sinkula
0
274
Member Avatar for Duki

Hey everyone, I'm working with a login form in my application. The easiest way I can see to do the authentication is to query a user/pass database for any rows that match the given username and password. How can I send a query when the user clicks OK? Am I …

Member Avatar for toko
0
121
Member Avatar for Duki

Hey everyone, I'm trying to send a bindingitem add new item click event but i'm having problems. I've tried BindingNavigatorAddNewItem_Click(sender, e) but it doesn't work. I want to do this so I can remove the toolstrip and have my own link labels on the form. For now, I still have …

0
56
Member Avatar for Duki

Hey guys, my prof is looking for a good polymorphism project. The one's in the book weren't good at all. Could someone give a suggestion?

Member Avatar for Firasath
0
122
Member Avatar for Duki

Hey everyone, I have a program using databases and I want to send a click event for the AddNewItem binding. I was able to do something similar for the "Save" icon, so that when a user modifies an entry they can click a link label that says "Apply" and it …

Member Avatar for Duki
0
111
Member Avatar for Duki

Hey everyone, we're still working trying to get Linux to communicate to our robot via an RS232 port. We added this code to the project in Mono: [code=c#]Using System.Ports.IO SerialPort ports = new SerialPort("ttyS0",19200,Parity.None, 8, StopBits.One); [/code] We can't get anything sent out of our COM ports. We're not even …

Member Avatar for Duki
0
118
Member Avatar for Duki

Hey guys, is there something special I need to do to access the RS232 port in Linux from C#?

Member Avatar for LizR
0
80
Member Avatar for Duki

Hey everyone, I'm creating some databases (new to this) and I'd like to specify the maximum number of digits allowed for a record. For example, I have a field for zip code that I would like to limit to 5 digits. Can I do this with any of the binary …

Member Avatar for Teme64
0
96
Member Avatar for Duki

Hey everyone, I'm writing a program for work. I need to do the following: The user inputs an unknown number of values to be processed. I want to allow them to basically click "new" and be able to add a new textbox or something that will allow them to input …

Member Avatar for selvaganapathy
0
119
Member Avatar for Duki

Hey everyone, I have a program that computes the distance between two elevations at a given point. I need to plot these lines to a picture. I'm having problems getting the lines to start in the correct spot. Here's the code I'm using: [code=vb] Dim Gr As Graphics = PictureBox1.CreateGraphics() …

Member Avatar for Duki
0
294
Member Avatar for Duki

We're trying to get our C# program to work on linux. We just loaded into Mono, and it compiles fine but the form doesn't appear. Anyone know what? Does it have something to do with it being a "windows form"?

Member Avatar for Duki
0
164
Member Avatar for Duki

Hey guys, I need to know about Lithium-Ion batteries and where I can buy them. I'm not really talking about laptop batteries. I need something that can power a desktop for well over an hour (more like half a day). Does anyone know where I can get information on this? …

Member Avatar for GrimJack
0
169
Member Avatar for Duki

Hey everyone, I need a decompiler for a VB6 application. The software was written in 2002 by a former IT admin, and he didn't leave the source code. I've been able to use programs like VBdecompiler-Lite, but it looks like the only thing I can get is the native code? …

0
57
Member Avatar for Duki

Which is better? We're designing a new autonomous robot for the competition we attend during the summer and this is one of our topics for design. I want to do a dual-processor, multi-core computer to run the software. Some others want to do distributed computing (between two laptops). Am I …

Member Avatar for Salem
0
276
Member Avatar for Duki

hey everyone, we have an argument that figured up the angle in a double. We need to convert that double to a char and send it out the serial port. I've tried this: [code] char t1 = (char)A; comBobbySue.Write(A);[/code] but i get errors. can someone give me a hand? :(

Member Avatar for dickersonka
0
180
Member Avatar for Duki

Hey everyone, I want to restrict cursor movement outside of a picture box when the user clicks a button. Here's what my code looks like so far: [code=c#] private void btnX_Click(object sender, EventArgs e) { if (remote == false) { remote = true; Cursor.Position = pctRemote.PointToScreen(gridCenter); //centers the cursor on …

Member Avatar for LizR
0
272
Member Avatar for Duki

Probably a bit of an advanced question... How hard is it to allow for multi threading support with C#? For example, we have a motherboard that has the capability for two processors with four cores each (dual xeon quad cores). We want to dedicate one processor (or core) to calculating …

Member Avatar for Duki
0
132
Member Avatar for Duki

Hey again, Is there a way to capture multiple key presses? Here's what we want to do: When a user wants to drive the robot manually from the keyboard, we want to allow them to press WASD to determine the direction they move. The problem we've run into is say …

Member Avatar for LizR
0
92
Member Avatar for Duki

Hey everyone, is this the most efficient way to round a decimal number to two decimal places? [code] txtXaxis.Text = String.Format("{0:F2}", A); //show 2 decimal places txtYaxis.Text = String.Format("{0:F2}", V); //show 2 decimal places[/code] thanks!

Member Avatar for Duki
0
74
Member Avatar for Duki

Hey everyone, I'm completely new to C# so I'm sorry if I don't make sense. I need to capture the x and y position of the mouse cursor within a group box (or some other frame). How can I do that?

Member Avatar for cVz
0
241
Member Avatar for Duki

Hey everyone, I'm trying to write code that will be sent out of the COM port to a PIC microcontroller. However, I don't have the controller available yet. Is there an emulation software that will allow me to virtualize a COM port and capture the data that's being sent to …

Member Avatar for dougy83
0
199
Member Avatar for Duki

A very funny (and borderline absurd) article I thought many of you would enjoy: [url]http://www.pbm.com/~lindahl/real.programmers.html[/url] :) -hope this is the best place to post this

Member Avatar for grumpier
0
106
Member Avatar for Duki

Hey guys, We're trying to work with a driver program for our robot. If we can grab the x and y coordinates of the Mouse we could send them to the controller for driving. Does anyone know how to capture the mouse movement into an integer?

Member Avatar for iamthwee
0
164
Member Avatar for Duki

Hey everyone, A friend and I are trying to figure out how to interface C++ 2008 with COM ports for our robotics team. Is there a simple "template" we could go by, or is it different for every device? Could someone provide an example of how to transfer data to …

Member Avatar for Duki
0
464
Member Avatar for Duki

Hello all, I'm looking for a good VB.NET book. I know a little about c++ and am looking for something along the lines of a text book. Anyone have any good suggestions?

Member Avatar for jbennet
0
139
Member Avatar for Duki

[QUOTE] Download Day is here! Set a Guinness World Record Enjoy a Better Web Sounds like a good deal, right? All you have to do to help us set the record for the most software downloaded in 24 hours is get Firefox 3 now – it’s that easy. We're not …

Member Avatar for Infarction
0
210
Member Avatar for Duki

Does anyone have a recommendation of some software I could purchase to simulate cisco routers? I'm in the netacad and am looking for something that will allow me to setup networks to test or with give me practice labs built in. thanks

Member Avatar for safesa
0
77
Member Avatar for Duki

Hey everyone, I have Vista installed on my C: partition and XP installed on G: Every time I reboot, the PC goes straight into XP, with no option for Vista. How can I make it to where the computer gives me the option at boot?

Member Avatar for bobbyraw
0
88
Member Avatar for Duki

Hey everyone, I've been the IT at my workplace for about 2 years now. We use a piece of software that was developed in house by one of the previous ITs (about 6 years ago), and I think it was developed in VB6. We need to modify a couple of …

Member Avatar for AndreRet
0
216
Member Avatar for Duki

Hey all, I have a ViewSonic E90FMB 19" CRT monitor w/flat screen. I've used it a lot for about 2 straight years. I now have a lap top and the monitor is sitting in my bedroom doing nothing. Still has great picture. I am wanting to get rid of it …

Member Avatar for Duki
0
155
Member Avatar for Duki

Hey everyone. I have a program that will load project data according to the project number selected. One of the fields associated with the project number is the project manager. I have another table called Contact which is the contact information for the project mangers. I have a link setup …

Member Avatar for iamthwee
0
65
Member Avatar for Duki

I want to connect my PC to my TV. I have an s-video capable graphics card, but is this the best way? I want the clearest picture possible. Would a tv-tuner card like the Radeon Theater or All in Wonder cards work for better for this?

Member Avatar for iaindb
2
195
Member Avatar for Duki

Ok, I'm going post all of my code, and hopefully someone can tell me where my error is at. I'm guessing I need to do a cin.ignore() somewhere, but I'm not sure where. I've tried it in a couple of places, but nothing has fixed the problem completely. [code=c++]#include <string> …

Member Avatar for jbennet
0
242
Member Avatar for Duki

Hey everyone... could someone tell me why this isn't working? I get "The specified path could not be found." when I run it. [code]@echo off REM########################################################################### REM Author: Caleb REM Date: 11-14-2007 REM Contact: - REM Description: This .bat file is to copy necessary .cui, .mnl, and .mnr files from …

Member Avatar for Duki
0
121
Member Avatar for Duki

Hey guys, Here's my code: [code=c++]#include <iostream> using namespace std ; template<class T> class Pair { public: Pair ( ) ; Pair (T v1 , T v2 ) ; void setFirst(T newV ) ; void setSecond(T newV ) ; T getFirst() const ; T getSecond() const ; private: T first …

Member Avatar for Duki
0
123
Member Avatar for Duki

How important are data structures in C++? I'm majoring in networking and going to grad school for MISM with a focus in networking. If I have a firm understanding of C++ concepts such as encapsulation, inheritance, recursion, polymorphism, templates, and exception handling will topics in data structures benefit me at …

Member Avatar for Duoas
0
112
Member Avatar for Duki

Could someone explain the difference between Overloading, Redefining, and Overriding functions? A nutshell answer will work fine; I just need something to stick in my brain for tomorrow's test. I know the concepts behind these tools, but I just need a simple way of defining the difference between them.

Member Avatar for Duki
0
6K
Member Avatar for Duki

Hey everyone, I'm still tweaking the attributes but here is what I've got: [B]All races:[/B] dmg = rand, where 0 < r < str [B]Human[/B] 25% chance of blocking 5% chance of double attack (attack x2) 10% chance of dmg+60 [B]Elf[/B] 5% chance of blocking 35% chance of double attack …

Member Avatar for Mouche
0
180
Member Avatar for Duki

Hey guys, Could someone show me how to write a batch file to install software? I just need something very basic that, when run, will auto install the software. I know it isn't that hard, but I don't know how. :( thanks!

Member Avatar for Duki
0
172
Member Avatar for Duki

Hey guys, We're getting ready to start planning for our Halo3 tournament. It's going to be double elimination, with 8 teams of 4 in Team Slayer to 50. I'm curious as to what price to charge for tournament players. I told Christina we had planned on $5 for entry and …

Member Avatar for jbennet
0
100
Member Avatar for Duki

[code=c++]#pragma once #include <string> #include <iostream> using namespace std ; class Document { public: Document ( ) ; Document operator= ( const Document & d ) ; void setText ( ) ; string getText ( ) ; protected: string text ; } ; #include "document.h" Document::Document ( ) : text …

Member Avatar for Ancient Dragon
0
124
Member Avatar for Duki

Is there any reason to check for self assignment, if you're not using array's or pointers, when overloading the = operator? For example, if the only datatypes in Vehicle are int cylinders and string manufacturer, do I really need to check before assigning? If so, what's the point?

Member Avatar for vijayan121
0
88
Member Avatar for Duki

I'm trying to write an asp.net page that will keep variables using the .value command. It's not working. Here's my code [code=vb.net] Dim custID As Integer Dim noMovies As Integer Dim price As Double Dim discount As Double Dim total As Double custID = Integer.Parse(Me.idTextBox.Text) noMovies = Integer.Parse(Me.numMovTextBox.Text) price = …

Member Avatar for SheSaidImaPregy
0
119

The End.