1,857 Posted Topics

Member Avatar for DickEM

[Click Here](http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/429061/runtime-error-429-activex-component-cant-create-object)

Member Avatar for Aslam Mansoor
0
227
Member Avatar for ThatBitchYeah

Here's an [example in C++](http://en.literateprograms.org/Complex_numbers_%28C_Plus_Plus%29).

Member Avatar for Amir Muhammad
0
770
Member Avatar for Hussain_3

Have you tried using the [Arguments](http://msdn.microsoft.com/en-us/library/system.diagnostics.processstartinfo.arguments(v=vs.110).aspx) property of the ProcessStartInfo property of the Process class? It accepts a string of arguments for the process.

Member Avatar for tinstaafl
0
1K
Member Avatar for arvinrrnhine

Here's a [.net QR library](http://www.codeproject.com/Articles/20574/Open-Source-QRCode-Library) to start with.

Member Avatar for Hamza_B
0
2K
Member Avatar for razree

Why are you using a ListBox instead of a ListView? The ListView is designed for columns and headers, but the Listbox is not.

Member Avatar for razree
0
2K
Member Avatar for Tonderayi

You could use a dictionary Dim chardic As Dictionary(Of Char, Integer) Dim input As Char = "B"c Dim output As Integer = chardic(input)

Member Avatar for ddanbe
0
161
Member Avatar for xn hunk

In an input control, such as a textbox, the keyeventargs of the keydown event give you access to information on whether the alt and/or control keys were pressed as well as which regular input key: Private Sub TextBox1_KeyDown(sender As Object, e As KeyEventArgs) Handles TextBox1.KeyDown If e.Alt AndAlso e.Control Then …

Member Avatar for Michael_9
0
468
Member Avatar for Diana Rose_1

Your first problem is using a ListView. It is not designed to be used with databases. However, a DataGridView will take a DataTable as a DataSource and will display whatever data you put in the datatable. If you must use a ListView you'll have to do it the naive way. …

Member Avatar for tinstaafl
0
212
Member Avatar for GOMEZ_1

I think you mean passing variables by reference or by value when you call the function. The difference is basically what effect you can have on the variable. By value means that the variable passed into the function is a copy of the original variable and any changes made to …

Member Avatar for melissad
0
190
Member Avatar for nhrnjic6

Just a quick perusal of the operator overload looks like you're assigning original_node to the next node before you're using its value. It seems to me that this would mean that you're skipping the first node

Member Avatar for tinstaafl
0
152
Member Avatar for anuradha71
Member Avatar for Roisin

There are a number of things your not considering. 1. Pig Latin doesn't just transpose the first consonant, it transposes the first consonant sound. For instance story becomes orystay not torysay 2. If the first letter is capitalized the new first letter should be capitalized as well 3. If the …

Member Avatar for rubberman
0
2K
Member Avatar for Jjajangmyeon

You might be confused by using `endl`. It probably would be more accurate to call it newl. It tells the file to start a new line. To eliminate that only write the new line to the second last line: void writePassword(char entries[][16], int &lastIndex) { ofstream oFile("password.txt"); int i = …

Member Avatar for Jjajangmyeon
0
203
Member Avatar for Praise92

If I understand you correctly, you want to select the xml file path from the listbox. The `.SelectedItem.ToString()` property should be able to give you the selected file path, instead of looping through all the listbox items.

Member Avatar for tinstaafl
0
262
Member Avatar for Ryan Nigel

Check out the [StartInfo](http://msdn.microsoft.com/en-us/library/system.diagnostics.processstartinfo%28v=vs.110%29.aspx) property of the process class. It has the [WindowStyle](http://msdn.microsoft.com/en-us/library/system.diagnostics.processstartinfo.windowstyle%28v=vs.110%29.aspx) property that allows you to hide or minimize the window. It accepts any of the [ProcessWindowStyle](http://msdn.microsoft.com/en-us/library/system.diagnostics.processwindowstyle(v=vs.110).aspx) enumeration values.

Member Avatar for tinstaafl
0
965
Member Avatar for lopesi2003

Use the [Process Class](http://msdn.microsoft.com/en-us/library/system.diagnostics.process.aspx)

Member Avatar for kb.net
0
115
Member Avatar for alysha.recore

Once you have the 2 vectors, one option is to iterate through the docVector and use the [std::Find](http://www.cplusplus.com/reference/algorithm/find/?kw=find) function to see if the word is in the skipVector, and remove it or replce it with place holder characters if necessary. You will probably need to change the word to all …

Member Avatar for NathanOliver
0
169
Member Avatar for Gunjan Rathi

Have you looked at [std::sort](http://www.cplusplus.com/reference/algorithm/sort/)? It accepts a custom comparator.

Member Avatar for deceptikon
0
218
Member Avatar for mo_snow

Your errors seem to do with basic syntax and don't really have anything to do with the structure of your code. Go through every structure and check for proper braces, variable name spelling, and line terminations. One glaring syntax error is, the if and else blocks, in lines 115-121, are …

Member Avatar for pritaeas
0
5K
Member Avatar for daniela.valkanova

Here's something you might find interesting. A way to check if a string is a valid number using `sscanf`, which simplifies the code trmendously: bool isvalidReal(string input) { //Variable to hold the number float num = 0; //Variable to hold any left over characters char temp[20]; //If all the characters …

Member Avatar for Learner010
0
144
Member Avatar for xn hunk

It sounds to me that you want the selection to loop from one end to the other when a person is scrolling with the arrow keys. This can be done with a combination of handling both the keydown and the keyup events and using a class level boolean: Private Sub …

Member Avatar for tinstaafl
0
3K
Member Avatar for daniela.valkanova

First off your code isn't following the instructions. Instead of inserting the new letter you're just sorting the array after adding the letter to the end. You will propbably need to keep track of the size of the array as well as either make the array big enough to handle …

Member Avatar for daniela.valkanova
0
274
Member Avatar for can-mohan

There are basically 2 main methods that work very well. The faster, is the old [sprintf](http://www.cplusplus.com/reference/cstdio/sprintf/?kw=sprintf). The easier one is [stringstream](http://www.cplusplus.com/reference/sstream/stringstream/?kw=stringstream).

Member Avatar for tinstaafl
0
302
Member Avatar for can-mohan

You might have more success using the getline method on the stringstream. Perhaps something like this: while(std::getline(file, line)) { if(line.size() > 0) { std::string tokena,tokenb; std::istringstream tokens(line); std::getline(tokens,tokena,':'); std::getline(tokens,tokenb); props.emplace(std::pair<string,string>(tokena,tokenb)); //cout<<translation_table[token.substr(0, pos)]=token.substr(pos + 1) ; } } }

Member Avatar for NathanOliver
0
231
Member Avatar for ignnniter

The first thing I'd suggest is a custom class(Item): Public Class Item Public Enum Units Pound PerEach CaseLot End Enum Public Name As String = "" Public Price As Double = 0.0 Public Quantity As Double = 0.0 Public NetPrice As Double = 0.0 Public Unit As Units = Units.PerEach …

Member Avatar for tinstaafl
0
134
Member Avatar for iConqueror

I think what you want is `AppendAllLines`. Something like this perhaps: File.AppendAllLines(path, person.myList);

Member Avatar for tinstaafl
0
327
Member Avatar for efe.ozyer

It will largely depend on how the dialog class is set up. Show the code for that class.

Member Avatar for tinstaafl
0
137
Member Avatar for No Way

When you open the file you can set the mode to Append which will automatically find the last line and put your next writes after it. I can't remember the exact syntax but whichever resource materials you're using should have a reference area that will help.

Member Avatar for tinstaafl
0
46
Member Avatar for fifie izyani

A barcode scanner is basically a Human Interface Device(HID) the same as a keyboard. When a barcode is scanned it should return a string the same as if you typed it in. Each item in the database should have a unique id code which will be represented by the barcode. …

Member Avatar for tinstaafl
0
162
Member Avatar for iConqueror

Generally you'll find that ArrayList are largely deprecated as List<>'s are at least as easy to use as well as being strongly typed.

Member Avatar for tinstaafl
0
186
Member Avatar for daniela.valkanova

You could use the `new` operator, but that comes with more baggage, like security concerns and manual disposal.

Member Avatar for tinstaafl
0
293
Member Avatar for javed.iqbal.3979

Having everything laid in a literal fashion like that is starting to make your code very unwieldy. You can use one event handler to handle each set of button's click events. Simply use the `Text` property of the button as the value. Add a line like this: one.Click += num_Click; …

Member Avatar for ddanbe
0
283
Member Avatar for Sarkurd

For future reference here's the [article](http://msdn.microsoft.com/en-us/library/hh567368.aspx) on the c++11 features in Visual Studio 2013

Member Avatar for Sarkurd
0
1K
Member Avatar for yazici.batuhan

If you think of those statements like this: void push (stack *, std::string); std::string & pop(stack &); bool isEmpty(stack &); std::string & top (stack *); These are the prototypes for the functions. Whenever the actual code is separated from the class declaration this is the pattern that is usually followed.

Member Avatar for Moschops
0
324
Member Avatar for iConqueror

One thing I've found that helps, is doing logic problem puzzles. This gets your mind used to thinking in a more logical pattern. One of the most common logic problem puzzles is sudoku.

Member Avatar for tinstaafl
0
256
Member Avatar for davecoventry

One way to do this in a somewhat dynamic way, is to use a `map<string,function>`. This allows you to run the appropriate routine depending on the string you get: #include <iostream> #include <map> using namespace std; typedef void(*CommandFunction) (); void open() { //code here } void close() { //code here …

Member Avatar for NathanOliver
0
304
Member Avatar for bgengine

Here's a simple class that can be compiled as a dll. Add a reference to `System.Windows.Forms` first. I included a sample of an event handler as well: Imports System.Windows.Forms Public Class NewDLLForm Inherits Form Public Sub New(Caption As String) Text = Caption AddHandler Me.Click, AddressOf Me_Click End Sub Private Sub …

Member Avatar for tinstaafl
0
4K
Member Avatar for iConqueror

All you need to do is pass the array as a parameter in the List's new constructor or use the `ToList()` method and assign it to the list: long[] test = new long[20]; List<long> testlist1 = new List<long>(test); List<long> testlist2 = test.ToList(); Once the list is initiated the size is …

Member Avatar for deceptikon
0
181
Member Avatar for iConqueror

In some cases using a static size can bring about an increased efficiency in terms of speed. While this can be done with a list, to many people, it's less intuitive than an array and not always as efficient. For instance in my experiments with the Sieve of Eratosthenes, I …

Member Avatar for tinstaafl
0
199
Member Avatar for ogsirus

I would suspect that the instructor wants you to loop through the list of persons and use the first name in place of 'user'. public static void SendTestEmail() { List<Person> people = new List<Person>(); people.Add(new Person("Joe", "Bloggs", "Joe.Bloggs@foo.bar")); people.Add(new Person("John", "Smith", "John.Smith@foo.bar")); people.Add(new Person("Ann", "Other", "Ann.Other@foo.bar")); string emailSubject = "Training …

Member Avatar for tinstaafl
0
284
Member Avatar for daniela.valkanova

I don't really see a question in there any where. If I was to venture a guess though, I would say one of your problems is in this line: fraction = whole(x) - (long)x; `x` should stay as a double and you should subtract the whole part from it: fraction …

Member Avatar for daniela.valkanova
0
364
Member Avatar for Jjajangmyeon

Is it a requitement to use c-style char arrays instead of c++ strings? Using strings simplifies your code tremendously. Also unless you know ahead of time how many records you'll be reading it makes more sense usually to use a dynamic collection like `vector`. That being said, with the code …

Member Avatar for Jjajangmyeon
0
11K
Member Avatar for Centorpe

Something like this might work: ComboBox3.DataSource = Enumerable.Range(-10, 20).ToList This will populate the combobox with the integers from -10 to 10

Member Avatar for Centorpe
0
255
Member Avatar for yaldoo

One thing, I would change the collection to a map instead of an array, the score as the key and the number of times it appears is the value. This way, the elements are sorted when you read them from the file. This gives you the option of calling the …

Member Avatar for David W
0
2K
Member Avatar for ondegotariq

Something like this should work: List<int> testlist = new List<int>(); //fill list here int startindex = 1; int endindex = 30; string joinedindexes = string.Join(" ", testlist.GetRange(startindex, endindex - startindex).ToArray());

Member Avatar for ondegotariq
0
98
Member Avatar for kirtee2209

I think perhaps the focus indicator is there but you're not seeing it. The focus indicator is basically the border changing color slightly and the cursor changing to I-beam

Member Avatar for kirtee2209
0
258
Member Avatar for yaldoo

First off the index to remove at should be passed into the function. If you need that input from the user, do it before you call the function. the loop limit can just be `< elements`. Doing a math operation(element - 1) on every iteration like that, when it's not …

Member Avatar for tinstaafl
0
1K
Member Avatar for imlearning

Hard to say for sure without seeing the code itself, but it looks to me that you're trying to initialize a member of your class in the declaration of the member.

Member Avatar for Hiroshe
0
112
Member Avatar for newbiewwcode

You could use nested classes so that each instance of school will have it's own instances of the required classes. This also has the advantage of naming each section of the vectors that you need: The header: #include <vector> #include <string> using std::vector; using std::string; class School { private: class …

Member Avatar for tinstaafl
0
698
Member Avatar for ammukarthi

VB.net has a login form template that you can use. Just Add -> New Item to your project and choose Login Form

Member Avatar for Paul_24
0
266

The End.