43,549 Solved Topics
Remove Filter ![]() | |
All these New Object()s are identical (and in fact, much longer!) How do I declare a single instance then reuse it in each ComboBox .Items.AddRange()? I am using Visual Studio 2008/Visual Basic. [CODE] verticalBarComboBox.Items.AddRange(New Object() {" single space", "- hyphen", " - <single space>hyphen<single space>", "` open single quote", "=", … Software Development vb.net visual-basic visual-studio | |
I have an application which is supposed to move the mouse based on input like that from a keyboard. the code listens for the direction keys to see if they are pressed. the code works but only in 2 direction it can only move to the right and down. is … Software Development c++ | |
Does this leak memory? [CODE]Dim Public strBldr As New StringBuilder("test", 5) ‘alloc a StringBuilder MsgBox(strBldr.ToString()) ‘use the StringBuilder strBldr = New StringBuilder("a", 2) ‘did the destructor of StringBuilder holding “test” 'free up its memory? [/CODE] As StringBuilder does not implement a Clear() method, and I am having timing issues with … Software Development vb.net | |
Hello, Im trying to create an application, where its upto the user to create and delete the database dynamically and at runtime. But i don't know how to make it. Can anyone please help?? Whenever i tried to contact u people for help u all have always helped, hope u … Software Development visual-basic | |
I wrote a perl script to decode a file and it keeps giving me a weird out put. I have zipped my script and the encoded file. Can any one make any since or tell me what I am doing wrong? Software Development perl | |
this is a really strange one since it doesn't make sense why the program just starts running then shuts down without executing the system("PAUSE") at the end. here is the source code, thanks in advance to any help. [code=cplusplus] #include <iostream> #include <fstream> #include <vector> using namespace std; int main() … Software Development c++ open-source | |
When i compile this code i get an error which states main.cpp|38|error: no match for call to ‘(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >) (long int&)’| I am going to assume that this is something to do with trying to put the string in a different kind … Software Development c++ | |
I have two questions ( these may be very simple, but I'm concentrating on different things so I need somebody push me in right direction as not to waste time, bold said but that is reality) [LIST=1] [*]Passing object from top component to lower ones I have GUI where after … | |
hello, i'm new with scripts and linux and need a little help. i made a text file called colors using a vi editor and contains as follows: red green blue gold now i want to delete the 2nd line with the word green using a script file. well i know … Software Development shell-scripting | |
Hi, I have a simple class with 2 constructors.(It's very long so I won't paste it..). I assign the value of a boolean static field according to the used constructor. I also have implemented serialize/deser methods. My problem is the following : I have to perform different serialization/deserialization actions according … Software Development java | |
Write a C++ program that contains a structure named “Account” having four data members 1) Account number 2) Account holder name 3) Account type 4) Account Balance Account type may be Saving, Current, etc. In main function, declare an array of structure “Account” of size 10. Populate this array by … Software Development c++ data-structure | |
I have a form written in vb6 that the user is able to show listed items in a listbox from criteria from 4 different comboboxes. The data is being connected to an Access db. Where I am stuck at is after the search lists the data in the listbox the … Software Development visual-basic | |
I'd like to write up something that will generate random numbers that would plot into a triangle distribution. I know how to get a normal distribution, which is similar. [CODE=python] import random for i in range(200): print random.normalvariate(3,1) [/CODE] But there doesn't seem to be anything in the random module … Software Development python | |
hi, I was trying to implement the sieve of eroathoses (I know I spelt this wrong) and it works. But i was trying to find all prime under 2 million. The .cmd for visual studio just corrupts if I try to find all prime under 2million. I am guessing It's … Software Development c++ visual-studio | |
I am currently storing a hypermatrix of not very many objects over a 4d hyperspace. I am working with a 100x100x100x100 hypermatrix that is VERY sparsely populated. Only about 500 cells actually contain anything. The problem is that this matrix takes up huge amounts of memory even when it's mostly … Software Development python | |
Hi all. I wanted to run this class by some experienced programmers to see if I have any obvious errors and to get any advice otherwise. I created a test suite and everything seems to function properly so I'm interested in feedback on overall class design, choice of data types, … Software Development c++ | |
Hi, I have an application where I would like to add the following: When the user clicks on a button the FileOpenDialog must activate and allow the user to select an EXE file. When the user clicks OK, the selected EXE should execute. I am new to C# so I … Software Development | |
Hello, The Hexadecimal value of EBCDIC has to be converted to corresponding character as the user inputs it. The following table shows the hexadecimal value of characters in ASCII and EBCDIC. Can anybody help me with an efficient C-Algorithm for this conversion? Char----Deci-------Hex.ASCII---Hex.EBCDIC A ------65---------41------------- C1 B-------66---------42-------------C2 C-------67---------43-------------C3 D-------68 ---------44-------------C4 … | |
hey all! please help me to check for validaiton such that... i hv few textboxes and combo boxes and if data is not entered in them then the submit button should be locked... and also tell me where should i write the code as in .... in form_load or submit_click... … Software Development visual-basic | |
Learn how to fully use the windows header with help from [URL="http://www.winprog.org/tutorial/simple_window.html"]Windows.h Tutorial[/URL], I'm pretty well along in the Programming world and was wondering if this would be really useful in becoming a programmer in the future. Software Development c++ | |
I have developed, along many years, a system using VB6 for Windows, using XP Professional. Now, I purchased a iMac, that uses an Intel Core 2 Duo 2.66 Ghz processor, so that installing Windows Vista Home Premium 32 bits edition, I could use resources from Windows and OS X Leopard, … Software Development os-x visual-basic windows-vista | |
I'm making a program, and I'm at the beginning where I'm just reading the information in. The goal of this short bit of code is to read in a date (when I finish the program it should be able to read in multiple dates from a file, but I'm keeping … Software Development c++ file-system | |
Where should I include other header files, in header file or source file? What is the difference between the below two: Example: [code] //file1.h #include "file2.h" ... [/code] OR [code] //file1.h class class2; ... [/code] [code] //file1.cpp #include "file2.h" ... [/code] Software Development c++ | |
I wonder something about adding a .DLL file to a project I am doing in a Win Form. I have rightclicked the Project ant choosed "Properties". Then under "Common Properties" I have "Add New Reference" and Added the Graph.DLL file to my project. This .DLL is a GraphControl. My question … Software Development c++ | |
Ok I have a form with 4 comboboxes and 1 listbox, this form searches the db for the corresponding record to the search, the user then selects an item in the listbox, clicks a command button to open an new form with various textboxes corresponding to the db fields. On … Software Development open-source queue visual-basic | |
Hey guys, I'm stuck on some undefined references to glut and OpenGL, even when I linked my projects with the correct libraries. Well apparently they aren't correct... I'm trying to compile this: [code=C] /* Copyright (c) Mark J. Kilgard, 1994. */ /* This program is freely distributable without licensing fees … Software Development c++ linked-list opengl | |
hey guys, I was wondering if there is anyway that my java app could retrieve the computer name. IE My computer could be named [ICODE]"PhiberOptik-desktop"[/ICODE] I want to retreive [ICODE]"PhiberOptik-desktop"[/ICODE]! Thanks PO. Software Development java | |
Hi, I would like to automate some of my actions on command prompt using perl. can u plz help me how to start with it. Like I want to connect to oracle database and run a sql query. How do I do that? Here are the steps that I need … | |
I'm mapping a file view to share an array of 200 std::strings between two processes but I've been getting an access violation error when I write a string longer than 15 characters into the array. Does anyone know how I might increase the size of each array element so it … Software Development c++ file-system | |
![]() | Hi, I am trying to change the address in an array using *nums++. When I run the program, however, the first number in the array is skipped. What am I missing? How do I get the first number to display? [CODE]#include <stdio.h> int print(int[]); int main() { #define NUMBERS 7 … Software Development c ![]() |
Hi. I have tree control with a structure already in it. A function returns a string that matches one of the items in the tree control structure (They are all Unique), and I need to select that item in the tree. It doesn't matter if the code underlying a selection … Software Development python | |
Hi, I'm Sven I'm a student from Belgium and one of my classes is about C++ I'm working on a program for such a long time, but I can't find the solution. (First of all : sorry for my bad english) Here's what I'm supposed to do : I have … Software Development c++ | |
As far as I've been able to discern. The "cannot find symbol" compile error is a result of one of 2 mistakes. 1) The class name is spelled incorrectly 2) The class isn't in the same directory as the class trying to instantiate the object or the class isn't in … | |
Hi, I am trying to find and replace a particular string in a file and save that file. Here is what I did, where I am writing the output after replacement into new file. I was trying to avoid to open the file for writing and try to use just … Software Development file-system perl | |
Hi, I you probably have much annoyance with homework help, but I'm a first year student in high school doing a AP comp sci class. I'm currently working on my eighth program, the past 7 were all solved by me, and I helped others with it, so I'm not trying … Software Development java | |
Hi! I'm new to Java. I need to make an array like: int b[] = {0,1,2,3,4,5,6,7,8,9}; Is it possible to use a loop to generate an array like that? I don't know if I'm asking the right question, so I will try to explain it: [code=java] class test0{ int a=0; … Software Development java | |
Hello sir, I want similar coding for treeview, where for linklabel is as follows. [CODE] Private Sub LinkLabel8_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel8.LinkClicked WebBrowser1.Navigate(Application.StartupPath & "\source\test.html\") End Sub [/CODE] Software Development vb.net | |
Hello sir, I am having treeview control and webbrowser control. I Having three nodes in treeview. Node0 -> ParentNode Node1 -> ChildNode Node2 -> ChildNode So when i click Node1, i want some webpage to be displayed in webbrowser control and similarly with node2. Software Development vb.net | |
Hello ,, i need to write to opened file in w+ mode.. now the problem is that first off all i need to check first string in each line if he the same to value i want to enter , dont enter and print error : in another words i … Software Development c file-system | |
That link doesn't work correctly (the ...'s in the url are pretty much invalid). If you could resend the link to the code, or use [url]http://tinyurl.com/[/url] to make the link smaller so that the site doesn't truncate the data, it would be greatly appreciated. Coma Software Development visual-basic | |
Hi, I'm trying to send a bitmap using WCF and here's the steps i followed: 1-Convert it into byte array [code] private IDataObject tempObj; private System.Drawing.Image tempImg; tempObj = Clipboard.GetDataObject(); tempImg = (System.Drawing.Bitmap)tempObj.GetData(System.Windows.Forms.DataFormats.Bitmap); tempImg.Save("hello.bmp"); VideoData = System.IO.File.ReadAllBytes("hello.bmp"); [/code] 2-Receiving the byte array from the other client side and convert it … Software Development | |
Hey guys, I am trying to delete a file. I don't understand why its not working. [CODE=java]public void Refresher()throws IOException { File theFile=new File("C:\\theFile.txt"); theFile.delete(); }[/CODE] I launcher it with [ICODE]Refresher();[/ICODE] I googled around and followed a tutorial. (My code is compiles correctly) Thanks PO Software Development java | |
I want to add to my button click some audio file, how can I do it ? Software Development audio | |
OK I'm a beginner at C++ so don't mock me for this question, so when I declare a pointer ptr (int *ptr; ) and then define ptr as 5 by saying *ptr=5; what adress is ptr pointing at-a temporary variable? Thank you-just curious. Software Development c++ | |
hi everyone ;) i'm am having a problem, can you help me how to save big number into array? i have to input two big numbers (20 digits or less) and sum them. please help Software Development c++ | |
I build Log in window where user enter his usernmae and password I still don"t want use SQL and any data keeper, it's only for two users so I check the password and username if it' ok than user must press botton OK and load next window this step I … Software Development | |
Hey guys, I'm having another problem (two actually) with a function that reads 5 variables (type [B]int[/B]) stored in an text file, separated by lines ([B]\n[/B]) and then it returns them to use in the main() program. The thing is, I do not know how to return them to the … Software Development c file-system | |
I still can't understand what a difference between a regular window and modul form ? what it means modal form? Software Development | |
Hi,I'm new in WinForms Application help me change my ComboBox to default state of one of Collections I have Thanks Sergey Software Development |
The End.