132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for krishnisilva

hi there, how can i select the text in a textbox when i use the tab key or when i click the mouse on the textbox. how can i do this in C# VS 2008 standard edition. thank you in advance

Software Development
Member Avatar for ch_shoukat222
0
132
Member Avatar for kjeka

Hey, i wish to make a program that changes the registry. I want "Shell" in "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/CurrentVersion/Winlogon" to have the value "". when i try to compile this code [CODE] #include <iostream> #include <Windows.h> using namespace std; int main(){ HKEY hKey; RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE/Microsoft/Windows NT/CurrentVersion/Winlogon", 0, KEY_WRITE, &hKey); RegSetValueEx(hKey, "Shell", 0, …

Software Development c++ microsoft-windows
Member Avatar for kjeka
0
570
Member Avatar for Protoroll

Okay, so I made a method that will take a Track with the MAXIMUM_RATING, which is 10 and make an another ArrayList for those tracks with the highest rating. [CODE] public ArrayList allTracksWithMaxRating() { ArrayList<Track> maxRatingTracks = new ArrayList(); int i = 0; while (i < tracks.size()) { if (tracks.get(i).getRating() …

Software Development java
Member Avatar for Protoroll
0
233
Member Avatar for sblass92

here's the basic setup: [CODE] #ifndef _GLOBALS #define _GLOBALS #include <list> #include <vector> #include "unit.h" extern std::vector <unit> reserved_units; extern std::list <unit*> active; extern std::vector <unit> generics; #endif [/CODE] [CODE] //globals.cpp #include "globals.h" #include "unit.h" #include <vector> #include <list> vector <unit> generics(15); vector <unit> reserved_units(200); list <unit*> active(0); [/CODE] unit.h …

Software Development c++ visual-basic visual-studio
Member Avatar for sblass92
0
193
Member Avatar for moman1981

Okay.... I have been working on this for 3 days now and can not get any further than what I have. Any help would be greatly appreciated... Thank you. Here is what I need to do: Write a program for keeping a course list for each student in a college. …

Software Development java linked-list
Member Avatar for Rashakil Fol
0
108
Member Avatar for jamesbondbest

i want to check that registry of a particular program actually i created two exe files and in the the second exe i want to check if registery of first exe. if the exe of first exe is working fine then it will do some operations if not then it …

Software Development c++ microsoft-windows
Member Avatar for Ancient Dragon
0
99
Member Avatar for newtoc_23

[code] #include "ShepherdDog.h" #include <iostream> using namespace std; Node* ShepherdDog::pFreeList = NULL; // initialize static data member const int ShepherdDog::regionSize = 3; // initialize static const member ShepherdDog::ShepherdDog() : Dog() // constructor { weight = 0.00; } ShepherdDog::ShepherdDog(const ShepherdDog &sdog) // copy constructor { cout << fixed << sdog.weight << …

Software Development c++
Member Avatar for newtoc_23
0
136
Member Avatar for lotrsimp12345

It is impossible in C++ since you have to use iterator to erase. Here's what I have: main.ccp [CODE] #include <iostream> #include <vector> #include "Mastermind.h" int main() { vector<int>* answer=new vector<int>(4); cout<<"enter an code\n"; for(int i=0; i<4; i++) { int k; cin>>k; answer->push_back(k); } //initalize population Mastermind a(5); //set answer …

Software Development c++
Member Avatar for lotrsimp12345
0
132
Member Avatar for bharatk

I have 2 lists: a=[0,1,5,7] b=[2,10,6,3] I need to get this list : c=[(b[0]+a[0]),(b[0]+b[1]),(b[0]+b[1]+b[2]),(b[0]+b[1]+b[2]+b[3])] I tried doing this using a for loop: [CODE] c=[(b[0]+a[0])] for i in range(0,(len(b)-1)): for p in range(i+1,len(b)): if i==0: c.append((b[i]+b[p])) else: c.append((c[i]+b[p]))[/CODE] I am supposed to get [2,12,18,21] but I am getting [2, 12, 12, …

Software Development programming-construct python
Member Avatar for bharatk
0
109
Member Avatar for basma.lm

hi, i work on a widows application sql server ce database and i want to know how to add the rows of a datagridview to a datatable. thanks

Software Development
Member Avatar for basma.lm
0
141
Member Avatar for lishannx

I have a program that allows drag and drop into the panel (Picturebox). How am i to ensure that this picturebox only be dropped into the panel and no where else? [CODE]public Form1() { InitializeComponent(); string ImagePath = Application.StartupPath + @"\\Model Products v3\"; // string[] Images = new string[] { …

Software Development
Member Avatar for lishannx
0
223
Member Avatar for rogue005

I am doing a project on a print spooler. I am using multithreading to support multiple clients. The problem is that I need another thread on the server side to take care of the printing by extracting jobs from a priority queue. If the queue is empty the thread must …

Software Development java multithreading queue
Member Avatar for JamesCherrill
0
78
Member Avatar for jmartis

Hello, I'm a newbie to all this .NET stuff... I create an array of points which I want to use with the DrawLines method [CODE]array<Point>^ points;[/CODE] Now I want to fill the array with points- how do I do this? Thanks for help Edit: using Visual c++ 2008

Software Development c++
Member Avatar for jmartis
0
86
Member Avatar for daino

Hi I'm rather new to C++ and am rather confused about something. I noticed, say, in an "if else" statement or a "Switch" statement it only evaluates numerical expressions. In an If Else statement I can compare two strings by using a returned boolean result from say 'strcmp' but I …

Software Development c++
Member Avatar for Stefano Mtangoo
0
233
Member Avatar for Cap'nKirk

Hi, I already have an application built and have thought about adding a splashscreen to it. My initial form is MainForm.cs my splashscreen is Splash.cs I have searched the net and seen various different approaches to displaying the splashscreen and have only had limited success with one that I found. …

Software Development
Member Avatar for kvprajapati
0
103
Member Avatar for Learner7

Hi, I have three text boxes on my form as following: 1) txtTelephone 2) txtDate 3) txtPrice What actually I need to know is, how the text box automatically change the values to the below format: [COLOR="Red"]txtTelephone : [/COLOR] If I enter [B]0403507624[/B] it should change automatically the entered values …

Software Development vb.net
Member Avatar for Learner7
0
111
Member Avatar for maddav

Hi, just a quick question (i hope!!), i'm working on an assignment where i need to build a user-defined library of shapes. The class structure is to have "shape" as a base-class with both 2d and 3d shapes as derived classes. I've handled this by storing them in a vector …

Software Development c++ oop
Member Avatar for maddav
0
628
Member Avatar for sabiut

Hi, i need your expertise in this one. i am new to python, i want to write an algorithm that takes a string as input and determines whether or not it is a palindrome. please point me to the right direction. Thanks in advance. sabiut

Software Development algorithm python
Member Avatar for sabiut
0
194
Member Avatar for green_frog

When ever to run the following piece of code in my game it crashes. I have narrowed down the problem to being initiating mEnemies[i] = NULL and mSpaceship.mBullets[c] = NULL. Got no idea why. Please help for(int i=0; i<mEnemies.size(); i++) { // cycle of bullets for(int c=0; c<mSpaceship.mBullets.size(); c++) { …

Software Development c++
Member Avatar for mitrmkar
0
162
Member Avatar for Tech B

I would like some feed back on my code. It is an IRC bot written in Python 2.6. What I might be doing wrong/inefficient. Better ways of doing something. And anything that will help sharpen my skills. I know I probably should have wrapped it into a class, and the …

Software Development http-protocol python
Member Avatar for snippsat
0
199
Member Avatar for George_Williams

I've been developing VB apps for +- 20 years. and I've just translated myself into C#. I have just realized that vb has made me a very lazy programmer by capitalizing and finishing code lines for me. The thing that is tripping me up constantly though are the brackets() at …

Software Development
Member Avatar for ddanbe
0
94
Member Avatar for karrotbear

write a python function called getAP which: has three input parameters: an array of measured voltages, the number of measurements n and the threshold voltage for an action potential; and returns an array with n entries, containing a 0 if no action potential occurred at the corresponding time step, and …

Software Development python
Member Avatar for vegaseat
0
113
Member Avatar for ryn6

hi all i know that to be able to bakckup with mysqldump i need to type mysqldump -u [username] -p [password] [databasename] > [backupfile.sql] i was just wondering how can i pass that command from a windows app using c#

Software Development c# mysql
Member Avatar for ryn6
0
90
Member Avatar for drivehard-gopro

I have an Xbox 360 wireless controller connected on my PC and need to detect the presses of the buttons and movement of the joysticks.... and have no idea how to do it... Thanks in advance...

Software Development vb.net
Member Avatar for drivehard-gopro
0
83
Member Avatar for Bajoras

Hello, i am new in assembly. I need program what do for example: i write "hello" and program write "olleh". Thanks verey much how can help me sorry for my English

Software Development assembly
Member Avatar for theifyppl
0
179
Member Avatar for NPDA

hi all pleasssssssss help with this problem im working with multi form project and when i run the program it dont give an errors but its dont work when click button to move through the forms the code which i used : [ICODE] private void button1_Click(object sender, EventArgs e) { …

Software Development
Member Avatar for Alexpap
0
829
Member Avatar for jonnyboy12

Hello all. This is a quick question. I have learned quite a bit of assembly so far. One thing confused me though. Why would one push a register with nothing in it . for example push eax I have see this happen in code even when nothing has been moved …

Software Development assembly
Member Avatar for theifyppl
0
125
Member Avatar for rai32

Hello people, i'm new here, and i hope that you can give me a hand with a little client-server software that i'm doing that it's driving me nuts. The essence of the program is very simple, you have this client (in my case cliente.c, as i'm Spanish) with this syntax …

Software Development c client-server
Member Avatar for rai32
0
293
Member Avatar for Learner7

Hi, As I am to VB.NET, I would like someone to help me on SearchButton code. I am using MS Access database. I would like to get the result of search commond into ListView. Any sample code for this purpose would be highly appreciated. Regards.

Software Development listview vb.net
Member Avatar for kvprajapati
0
133
Member Avatar for GAME

I would like my webBrowser to run off proxys from a listbox. Everytime it were to start over I would like it to go down the list of proxys and choose the next one. My program is a webBrowser bot.

Software Development
Member Avatar for GAME
0
80
Member Avatar for lotrgandalf

What is the basic difference between Visual C++ and .NET? Isn't Visual C++ part of .NET?

Software Development asp.net c++ visual-basic
Member Avatar for jwenting
0
127
Member Avatar for omarfiguereo

Hi, i need to generate a loan amortization table in c#. i need your help. Omar

Software Development
Member Avatar for kvprajapati
0
146
Member Avatar for Mattpd

Sorry I couldn't think of a better title, but thanks for reading! My ultimate goal is to read a .java file, parse it, and pull out every identifier. Then store them all in a list. Two preconditions are there are no comments in the file, and all identifiers are composed …

Software Development java
Member Avatar for SasseMan
0
151
Member Avatar for CF019

Hi guys, First off I would like to mention that I am not an experienced Java programmer. I've been programming for about a year and taken one AP level course in high school. With the exam in a few days, I was wondering if anyone could clear something up for …

Software Development java
Member Avatar for JamesCherrill
0
123
Member Avatar for sandorlev

Hello, I'm writing a compiler in C++ which generates x86 assembly code. I'm using masm32 to test generated code. I don't really know assembly, I have to look up a lot of things while writing code. My problem is that when I generate the code for a division, like 4/2 …

Software Development assembly html-css
Member Avatar for theifyppl
0
812
Member Avatar for Darkicon

I'm writing a program to automatically setup some long files for use with streamwriting for another app. Basically all it does is add "sw.WriteLine("" to the beginning of every line and "")" to the end of every line. You gather a list of files which is entered into a listbox, …

Software Development vb.net
Member Avatar for kvprajapati
0
143
Member Avatar for albertkao

How to recursively walk directory & rename files & directories with Python 3.1 on windows? [CODE]#!c:/Python31/python.exe -u import os path = "test" for (path, dirs, files) in os.walk(path): print (path) print ("-----------------") if "monitoring" in path: dst = path.replace("monitoring", "managing", 10) print (dst) os.rename(path, dst) print ("path----") for file in …

Software Development python
Member Avatar for griswolf
0
2K
Member Avatar for Smalls

What I'm trying to do is get the form to catch any key on the keyboard that has been pressed so it will reset a timer? and is it possible to catch these keys stokes even though the app is running in the background?

Software Development vb.net
Member Avatar for kvprajapati
0
177
Member Avatar for Learner7

Hi, I have the following code which works pretty fine with Listview. But I would like to use it with computer keyboard up/down arrow keys. How to modify the following code? Please do help. [CODE]Private Sub LVW_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LVW.Click txtTAID.Text = LVW.SelectedItems(0).Text txtVNO.Text …

Software Development listview vb.net
Member Avatar for Learner7
0
1K
Member Avatar for Tainor

I'm learning SDL but I have run across a problem which I can't understand. For some reason, whenever I try to convert an image to the display format it returns a NULL pointer. I've checked the linker and order of functions and everything is right. Curiously, if instead of trying …

Software Development c++
Member Avatar for Tainor
0
250
Member Avatar for lotrsimp12345

starting to think that memory isn't big enough. the totalnumberofpegs i only set it to 0 in my code yet it changes it self somehow :(. please help i have tried everything. It shows that it is 0 in all other functions. main.cpp [CODE] #include <iostream> #include <ctime> #include <stdio.h> …

Software Development c++
Member Avatar for lotrsimp12345
0
137
Member Avatar for krishnisilva

hi, i am creating a project in C#.NET 2008 standard edition. how can i make the datagrid view read only, but when a cell is clicked which has data another from should open. how can i do this thanks

Software Development
Member Avatar for manoj kumar1446
0
177
Member Avatar for lotrsimp12345

so i think i know where the problem is... it return garbage for code_pos even though i initalize and change values assigned to it. :( Please help. but don't know how to fix it. main.cpp [CODE] #include <iostream> #include <ctime> #include <stdio.h> #include "Mastermind.h" using namespace std; int main() { …

Software Development c++
Member Avatar for lotrsimp12345
0
148
Member Avatar for perlnewbe

I'm new to perl and need to read a txt file into a hash and then perfrom the following. Read in the file Create a Hash For each word in the file, count how many times the word occurs. Store the word a hash which is indexed with the words …

Software Development file-system perl
Member Avatar for mitchems
0
1K
Member Avatar for johann_2

hello, I am trying to read data from a file and store it in a 2-d dynamically allocated array of pointers. I am able to open the file and read the data in but it doesn't account for the end of the line and if I output the data to …

Software Development c++ file-system
Member Avatar for johann_2
0
130
Member Avatar for omgaga

Hello, I've read this textbook like a-kezillion times, and i still can't understand why we use the '&' in void function. can somebody please explain. thanks. ps : please don't give that lmgtfy.com thingy. it's annoying.

Software Development c++
Member Avatar for NathanOliver
0
76
Member Avatar for johann_2

hello, I'm trying to build an insert item method for a array based implementation of a binary search tree. I have figured out the base comparison to compare two values and place the value that is being compared to the left or right of the other node. However, I'm having …

Software Development c++
Member Avatar for johann_2
0
188
Member Avatar for vitroblue

hello i need to send and get one char from serial port but i'm making a mess of it so i kept reading a few tutorials in the web in the end i dowloaded and tried a code i found, it works but this thing only sends one string and …

Software Development java
Member Avatar for vitroblue
0
155
Member Avatar for 2aviv20

How am I doing transparent picturebox (whith image)?

Software Development
Member Avatar for Diamonddrake
0
236
Member Avatar for vbx_wx

here is my code: [code] TCHAR name[MAX_PATH]; DWORD size; BYTE name2[MAX_PATH]; DWORD size2; int i = 0; while(RegEnumValue(Hkey , i , name , &size , 0 , NULL , name2 , &size2) != ERROR_NO_MORE_ITEMS) { cout << "Value name: " << name << "---" << "Data name: " << name2 …

Software Development c++
Member Avatar for Ancient Dragon
0
740

The End.