1,857 Posted Topics

Member Avatar for Abi_2

What part has you confused? It seems pretty straight forward to me. This sounds like it's very similar to a game called [Black Box](https://en.wikipedia.org/wiki/Black_Box_(game)). Perhaps that wikipedia page will help.

Member Avatar for Alexander_17
1
2K
Member Avatar for DavidB

First thing I'd suggest is to upgrade your version of VS. The support for c++ is much better. As to your particular problem try this [post](https://blogs.msdn.microsoft.com/vcblog/2017/05/05/why-am-i-getting-these-_scl_secure_no_warnings-messages/)

Member Avatar for Tom_40
0
2K
Member Avatar for Fernando_14

I think you have a misunderstanding. Obfuscation doesn't render code safe from hacking. It just makes it more difficult. In this day and age with smart compilers. How much of that obfuscation is actually being optimized into efficient code by the compiler? If code can be decompiled it can be …

Member Avatar for StarDrago
1
3K
Member Avatar for PM312

If you're using the latest version of VB.net, which you should be, you can use the interpolation operator: Dim Rows As DataRow() = TempTable.Select($"Code like '%{VerCode}%'") The advantages of this, are cleanliness, the code is more concise and simpler, and any variable used inside the curly brackets is automatically converted …

Member Avatar for tinstaafl
0
17K
Member Avatar for ZombieKnight93

What error does the second code give you? In the first code, the error is telling you exactly what is wrong. You are comparing a pointer to a string. Obviously this won't work. A pointer is a reference to a memory location you can't compare it to a string. Even …

Member Avatar for tinstaafl
0
1K
Member Avatar for Zeeshan_10

If you find out how long it takes let me know. After 30 years I'm still learning. lol

Member Avatar for udayaprakash1
0
742
Member Avatar for 404notfound

I would suggest assign the item value to the text property of the control using the `ToString` function, and do away with the conditionals.This way if it is null it will become an empty string and will automatically clear the text of the control: txtLocation.Text = ds.Tables("Training").Rows(inc).Item(3).ToString

Member Avatar for tinstaafl
0
466
Member Avatar for Addison111

My suggestion, if you're going to use c++ to program a Windows GUI, use Visual Studio. It will interface c++ with the .net library and make your programming much easier.

Member Avatar for tinstaafl
0
314
Member Avatar for fanolots

The first thing that catches my eye, is that you're calling a function (`SW_SPI`) without passing it the argument it needs(`unsigned int Output`).

Member Avatar for tinstaafl
0
317
Member Avatar for ZombieKnight93
Member Avatar for COKEDUDE

If all the functions are in the same scope, use a variable that is global to that scope, and only moduify the arguments for and the calls to `func15`. Most modern IDE's will make that relatively easy.

Member Avatar for bdux
0
678
Member Avatar for jjones0150

Error 1 - You don't have a method name `IsString` Error 2 - In line 58,`IsWithinRange(txtOperator, "Operator", "+", "-", "*", "/");`, you're trying to send a bunch of strings to the method when it expects a `TextBox`, a `string` and 2 `decimal`'s. Error 3 - `Simple_Calculator.Form1.Calculation(decimal, decimal, string)`, has no …

Member Avatar for Dani
0
3K
Member Avatar for skelley

What are the steps you refer to in your code? Adding comments to your code, to clarify this would help.

Member Avatar for JamesCherrill
0
1K
Member Avatar for Dani

With Mr. Robot, you really have to stick with into season 2, before it starts making sense. :) And you're right it is really off the wall, but it also touches on a lot of really current topics.

Member Avatar for Darius_1
1
2K
Member Avatar for Hashik

The first place to start is with some online tutorials. Search for VB.net tutorials and .net database tutorials. Once you have some code that needs help, someone will be more than happy to help you. This isn't a free-code-it site, where people will just donate their time and do the …

Member Avatar for tinstaafl
0
219
Member Avatar for complete

It seems to me that the exception is thrown by the file path not the file itself. Try placing the file where it has a shorter path and see if that helps.

Member Avatar for tinstaafl
0
617
Member Avatar for Max_26

What have you tried? What errors do you get? The code you submitted doesn't seem to show much effort.

Member Avatar for Max_26
0
564
Member Avatar for Reverend Jim

For something like this you might want to look at indexing the words for efficient searching. I didn't notice if you've assigned each file a unique id but this will work with collection indexes as well. A `Dictionary(Of String, List(Of Integer)` is a simple structure to hold which videos contain …

Member Avatar for Reverend Jim
1
3K
Member Avatar for Siberian

I think you'll find that C# is more akin to C++ than C. I also think that C# will take you in different directions than C, since it is Object Oriented and is fully integrated with the .net librairies, including creating windowed GUI's, web-based, and data based applications. Due to …

Member Avatar for overwraith
0
390
Member Avatar for overwraith

> The following is the correct way to do encryption. What international authority supports this as the correct way to do encryption? What credentials do you have to make that statement?

Member Avatar for overwraith
0
466
Member Avatar for Adm666

It looks to me that `fgets` is picking up whatever delimiter you're using after inputting `b2` and adding it to the front of the input string. Thus, throwing off your offset. One workaround for this is to get all your inputs at once: int main() { int b1, b2, len; …

Member Avatar for Ren C
0
428
Member Avatar for vampz

This: float length = float.Parse(txtL.Text); float.TryParse(txtL.Text, out length); float width = float.Parse(txtW.Text); float.TryParse(txtW.Text, out width); float radius = float.Parse(txtR.Text); float.TryParse(txtR.Text, out radius); float tribase= float.Parse(txtB.Text); float.TryParse(txtB.Text, out tribase); float height = float.Parse(txtH.Text); float.TryParse(txtH.Text, out height); looks very problematic. You're calling `Parse`, then calling `TryParse`. The `Parse` calls are giving you …

Member Avatar for vampz
0
1K
Member Avatar for Tom_33

For a problem like this I would suggest the following steps: Break the problem down: You need numbers to iterate over and you need 2 divisors which when multiplied will give you the third. You need a structure to output a collection for the answer. What if they decide to …

Member Avatar for Reverend Jim
1
636
Member Avatar for Zack_9

> I really am having a hard time understanding linked lists and how the pointers work in this project I agree. I think maybe you need to go back study link lists again. Maybe take a supplementary tutorial. Here's a [pretty good one](https://www.codementor.io/codementorteam/a-comprehensive-guide-to-implementation-of-singly-linked-list-using-c_plus_plus-ondlm5azr)

Member Avatar for Schol-R-LEA
0
874
Member Avatar for Hamsterking

Your problem is one of perception. You have 2 statements printing that `max =`. One is reporting the value of `i` and the other is reporting the value of `max`. Change the first one to `i =` and you should start seeing things right.

Member Avatar for Hamsterking
0
469
Member Avatar for joe_36

The `DataRow` class has an `ItemArray` property. Using this you can use `Min` and `Max` extensions to get what you want. If you don't want the whole row, there are other extensions available that can help you select only certain columns. Something like this: DataTable dt = new DataTable(); dt.Columns.AddRange(new …

Member Avatar for tinstaafl
0
343
Member Avatar for noxel8008

I see a couple of problems with your code: You can't use a changeable variable to declare an array. The value must either be a written constant or a constant variable. If it must be dynamic, then you'll have to use pointers and learn about memory allocation as well. The …

Member Avatar for tinstaafl
0
340
Member Avatar for bprosic

As for your immediate problem it looks like your logic is a bit wrong. If you loop through the characters and add the words starting with that character your code will work much better. A few things to note: When concatenating strings continuously like this use a StringBuilder. This way …

Member Avatar for tinstaafl
0
479
Member Avatar for bunyonb

I would suggest a `List<Course>` of a separate class for `Course`. This should only have the information about a single course including a `List<Student>` of those students registered to that course, the name of the course, a description, a max capacity and a current count. By the way, since `Course` …

Member Avatar for ddanbe
0
306
Member Avatar for Blank_1

This looks like one problem here(line 42): calcit(candidate, target, a, b, c, d); This sits outside the loop and for the life of me I can't see why you're sending the loop variables to your function. This whole function: void calcit(char candidate[10][6], char target[3][6], char a, char b, char c, …

Member Avatar for kes166
0
658
Member Avatar for Reverend Jim

''#region Header ' '' ' '' Name: ' '' ' '' QuickSort.vbs ' '' ' '' Description: ' '' ' '' Sort an array using the QuickSort algorithm. ' '' ' '' Usage: ' '' ' '' QuickSort(array,compare) ' '' ' '' array: a one dimensional array of data ' …

Member Avatar for Reverend Jim
1
2K
Member Avatar for VIPER5646

I would suggest that you refactor your data table so that you store the hours each day a specific installer is available, with perhaps a flag to indicate that there are no available hours for that installer, that day. This would give you much more flexibility in your searches as …

Member Avatar for VIPER5646
0
561
Member Avatar for Link_1

This line Dim reader3 As SqlDataReader = cmd3.ExecuteReader() doesn't look right to me. Where is `cmd3` coming from?

Member Avatar for Santanu.Das
0
2K
Member Avatar for Ja_1

I would suggest you look into using a [DataGridView](https://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview(v=vs.110).aspx) instead of a `ListView`. Once you load a `DataTable` with the data the `DataGridView` is designed to display that data, much more easily than a `ListView`.

Member Avatar for tinstaafl
0
251
Member Avatar for mohammed_46

Adding the same question 2 hours later isn't going to get you anywhere. Continue the dialog started by the answer in your first post, if you want to arrive at a solution. FYI, I would be very surprised if anyone would put the time and energy into spoon feeding you …

0
146
Member Avatar for gaurav_28

It looks to me your first most obvious problem is, this code can't run with the example you've given. Your example is a float value but all your variables are int, including your call to the scanner object. Once you have code that will run, now you can look at …

Member Avatar for tinstaafl
0
6K
Member Avatar for kberrianjr

I think your first step would be to get familiar with DataTables and the DataGridView control. These were specifically designed for viewing and editing the data to and from an SQL based database. There are plenty pf free tutorials that will help with this.

Member Avatar for Reverend Jim
0
694
Member Avatar for paul_61

Another suggestion would be a DataGridView which has the ability to sort the data by any column. With a DataTable as the data source you have the option to save/read the data to/from xml formatted text file.

Member Avatar for paul_61
0
374
Member Avatar for Mobasir

One way is to convert the table to a list of a custom class where each column is a member. Simply override the `ToString()` method to display the property you want. Setting the list as the datasource for the listbox will display your chosen property while mantaining the rest of …

Member Avatar for tinstaafl
0
152
Member Avatar for Anshika_1

It allso helps if functions aren't nested inside one another. A modern IDE, like CodeBlocks, NetBeans, or Visual Studio, which can all be used for free, helps with gettting these kinds of syntax issues straightened out.

Member Avatar for tinstaafl
0
251
Member Avatar for celestiger261

What version of Office are you using? All the latest versions have an Auto Rcovery option to let you recover documents that didn't get saved properly.

Member Avatar for Shankar.Shiv
0
358
Member Avatar for ViperVenomHD

Actually your algorithm is mostly correct. what you were forgetting is that `2` is the first prime number, but you weren't printing that. Even though your algorithm is naive, there are some optimizations worth mentioning: The greatest number that needs to be checked if it's a factor is the square …

Member Avatar for tinstaafl
0
871
Member Avatar for JModak

Assuming the parent form is designated as an `MDIContainer`. You can achieve what you want by removing the parent's menustrip from its control collection and adding the menustrip from the child form. To reverse this, handle the `FormClosed` event in the child form and remove the child form's menustrip and …

Member Avatar for tinstaafl
0
577
Member Avatar for zaka_1
Member Avatar for tinstaafl
0
117
Member Avatar for Siberian
Member Avatar for Rebecca_6

Aside from the obvious need to refactor. It's worth mentioning the root of your problem, since it will most likely occure again. When comparing strings you should always use the `.equals` function instead of the `==` operator. The `==` is for checking if 2 objects are the same object and …

Member Avatar for tinstaafl
0
302
Member Avatar for Paul Brian

Your main problem appears to be, you're using one loop, but expect it to return to 2 different places. Using one loop just for the first choice and a second loop for the second choice, will fix the immediate problem. However, you should probably think about refactoring, and use a …

Member Avatar for tinstaafl
0
248
Member Avatar for 小名

It looks to me that you're trying to return a pointer to a variable that is going out of scope as soon as the function ends. Try declaring the array in the calling function and returning void instead: void getword (char temp[total], char max[total])

Member Avatar for 小名
0
1K
Member Avatar for victoria_5

One problem you have is here: float calcstaxes(float *statetaxptr,float*countytaxptr) { float totalsale,statetax, countytax;//errors here float statetax= totalsale*.04; float countytax=totalsale *.02; *statetaxptr=statetax; *countytaxptr=countytax; } `statetax` and `countytax` are declared twice. This is one danger of declaring multiple variables on one line. Basically what you've done is this: float calcstaxes(float *statetaxptr,float*countytaxptr) { …

Member Avatar for tinstaafl
0
361
Member Avatar for rahaf_1

It looks to me that you'd be better off learning from the beginning. Here's the [link](https://docs.oracle.com/javase/tutorial/java/TOC.html) for one place to start

Member Avatar for rahaf_1
-1
1K

The End.