3,183 Posted Topics
Re: You're not using the `sender` parameter, so it can be anything (I'd just use Me). However, you *are* using the `e` parameter, so you need to fill out a new `GridViewEventArgs` object and pass it in: Protected Sub btnEdit_Click(ByVal sender as Object, ByVal e As System.EventArgs) Handles btnEdit.Click Dim editArgs … | |
Re: Define "help", because it sounds a lot like you want us to do your homework for you. | |
Re: > I personally from my experience feel that masters degree is not required to become a good computer programmer. You don't need *any* degree to become a good programmer. You *may* need a degree to get a job as a programmer, but typically that's for your first job and subsequent … | |
Re: You spelled "asset" wrong, for one thing. For another, I suspect you wanted to use `splits` in the foreach loop rather than `assetClasses`. | |
Re: While your childish little writing dialect is cute, it's very rude to the non-native English speakers on Daniweb because they may have a very hard time deciphering it. As for the problem itself. What is the purpose of this logic? What goal are you trying to accomplish? | |
Re: Line 54 should be an `else if`. | |
Re: > the data on CDs is much more less likely to get distorted/destroyed That's easy to refute. Grab a CD and scratch it up on *either* side. You've distorted/destroyed the data with ease. Now do the same thing with a flash drive and see how much harder it is to … | |
Re: > Make necessary assumptions wherever required. I assume you're a lazy student who wants someone else to spoonfeed you answers. I assume any attempts to help will be sucked up like a leech and followed by more begging. Finally, I assume that this is also a drive-by, and closing this … | |
Re: Two different concepts that unforunately seem similar due to the "over" part. **Overloading** is when you have multiple functions that use the same name, but have different parameter lists. The function is said to be overloaded since calls that provide different arguments will call the correct function: void foo() { … | |
Re: > I would like to ask if its possible to change the size of the array No, arrays are given a size at compile time and that cannot be changed at runtime. There are ways of simulating an array that *can* be resized, but those methods are already incorporated into … | |
Re: Does your teacher want you to take the value as-is or round it? Regardless, you need to keep only the first two digits after the radix for the purposes of this program, but whether you round (and *how* you round) can affect the result. A naive approach (which should be … | |
Re: A better question is why are you using the registry for your application in the first place? That's no longer best practice for arbitrary configuration. | |
Re: Define "swap" for your purpose. Do you want to swap the file references entirely or just copy the contents of one stream to another? > Or is there a way to get the name of the file that the fstream has open? Nope. You need to save the name, which … | |
Re: Have you tried an incremental sync? http://msdn.microsoft.com/en-us/library/bb726021.aspx | |
Re: > The easiest command I've found to capture strings is "gets(string)" to set the string to your variable then just "puts(string)" to display it Easiest, sure. But with that ease comes a significant and unavoidable risk of buffer overflow because `gets` doesn't know when to stop copying characters to the … | |
Re: You can certainly use C# and .NET for desktop applications. While I do some web development at work, most of it is desktop/server apps and plugins. In Visual Studio, simply choose to make a new Console, Windows Forms, or WPF project to get started. Though be aware that there are … | |
Re: Agree with MonsieurPointer, but I'd like to believe my speculation is fairly accurate. I'm willing to bet that it's failure to provide an address to scanf. Something like: scanf("%d", x); // should be scanf("%d", &x); ![]() | |
Re: There are a few mistakes, to which one are you referring? | |
Re: > so writing macro may increase time at compilation time, but shouldn't it help at execution time as we are saving our overheads in the funtionc calling. Close. Inlined code through either an inline function or function-like macro can *reduce* execution performance if the increased object code size results in … | |
Re: > It's fairly easy to accomplish in either language. True, provided the "CSV" file is actually a subset of CSV where each record is a single line and no quoting rules are in place. Properly parsing actual CSV files is not especially difficult, but it's not quite as easy as … | |
Re: Not enough information. Is this a Windows form? A web form? WPF? Are you doing it all programmatically or using the Visual Studio designer? Typically such basic questions are better answered with a beginner's tutorial or book. | |
Re: > Does compiler allocates or reserved memory space from the data member the are not in use? Yes. > I think, compilers are smart enough to determine which data member are in use of that object and which are not. So is there a reason (WHY and WHY NOT) they … | |
Re: > but learning how to use the rand() function in this manner will help me apply it to what I need it for. These links may help for a general overview: http://eternallyconfuzzled.com/arts/jsw_art_rand.aspx http://eternallyconfuzzled.com/tuts/algorithms/jsw_tut_rand.aspx | |
Re: We require that you show some proof of effort before offering any significant help. Do you have a specific issue that you encountered when trying to answer the question? | |
Re: You're conflating "random particles" with "random numbers". Since this is a 2D plane, each particle would presumably have a random X and Y coordinate: #include <stdio.h> #include <stdlib.h> struct pairtickle { int x, y; }; /** Generates a random particle given the upper bound of each coordinate. The lower bound … | |
Re: `Me` is the VB.NET equivalent of C#'s `this`. So in C# you'd write tinstaafl's suggestion as: for (int i = 0; i < 4; i++) { this.Controls("pictureBox" + i).Visible = true; } Though this depends on each PictureBox being default named as if you dropped them onto the form and … | |
Re: Your question is hopelessly vague. What is the "Borland C++ DLL"? Is it a DLL written and compiler using a Borland compiler? Is it some DLL shipped with the Borland compiler? Give us some details. | |
Re: > but when it comes to memory storage or allocation its better to go in this way Memory footprint is a viable argument, but I'd suggest that if the memory for a variable of type int is too much, you have bigger problems. I'm not sure what you mean by … | |
Re: If it's .NET, the garbage collector is running. Whether it actually does something is up for debate, but there basically won't be a time when you have to worry about manually managing memory for stuff that the garbage collector handles. | |
Re: > do you know where to get visualstudio that works on android platform????????????????????? That's an easy one: **nowhere**. Visual Studio is a Windows desktop application. However, I know for a fact that there are Android apps that provide a C# compiler and IDE. How good they are I have no … | |
Re: > I think posts with a net rating of zero should not be considered in the overall posting quality. Just because the post has a net rating of zero doesn't negate the fact that it has votes applied. Your suggestion would take the value of votes away such that you'd … | |
Re: > Is this not correct? Perfectly correct. > Generally in a conforming implementation foo = constant; foo == the_same_constant; should only ever produce false if foo and the constant have different types (and thus the assignment causes a conversion) - unless I'm missing something. Floating point inaccuracies should only bite … | |
Re: Bitwise operators don't work with floating point types. Really the best you can do is pun the float into an unsigned char pointer and perform the operation on that. However, this could *easily* produce results that you're not expecting or that are completely erroneous given the structure of floating point … | |
Re: cards.dll isn't installed with Windows 7, but if you Google it you'll be able to find any number of sources that have it available for download. | |
Re: > I think it is 1.79769e+308. It's implementation defined. > It tells me not to use `short.MaxValue` so I assumed that `numeric_limits::max` will do the same as this? The two are roughly synonymous. I suspect the comment is saying not to use `short.MaxValue` because `short.MaxValue` gives you 32767 rather than … | |
Re: `return(count)` invokes the constructor that takes an `int`, so you get a newly constructed `counter` object using `count` as the initializer. | |
Re: > NOTE: I can't type a literal asterisk here. It is being interpreted as the italic formatting code. Use code or inline code tags and asterisks won't be interpreted as Markdown. If you want plain text, you can escape any markdown special character with a backslash. | |
![]() | Re: The trick is that arrays in C are passed by simulated reference. The syntax you're using obscures it a bit, but these three declarations are functionally identical: `void getmat(int a[50][50],int n);` `void getmat(int a[][50],int n);` `void getmat(int (*a)[50],int n);` So an array is actually passed as a pointer to the … |
Re: > please tell me why we use mysql_query? So that we can query a MySQL database? :P Your question is obvious and nonsensical, which probably means that's not really what you meant to ask. Can you be more specific? | |
Re: 3D seems to work best with high frame rate media. Otherwise it's just blurry and distracting. *How* 3D is utilized in the video is also critical. A lot of the time it's just an after thought gimmic rather than fully integrated into production from the start. All in all, I'm … | |
Re: Strings don't work like that in C, they're really just arrays under the hood, so stuff like the == operator won't work like you expect. There are standard functions that support strings in C, and you can find them in the `string.h` header. Specifically for your needs, the function is … | |
Re: When the condition is checked. For a `while` loop the condition is checked before the body of the loop runs. For a `do while` loop, the condition is checked after the body of the loop runs. In practice, this essentially means that the body of a `do while` loop will … | |
Re: Are you looking for an existing tool or suggestions on how to go about writing your own? | |
![]() | Re: When you said "did not work", please be specific. I know what happened, but that's *only* because I can deduce it due to experience. Not everyone may be able to immediately call from memory that opening a file in write mode will truncate the file to 0 bytes. You can … |
Re: A slightly simpler explanation is that the arrow operator is syntactic sugar for accessing a member of a pointer to structure or class: `p->member` is equivalent to `(*p).member`. Since the latter is awkward to type and it's very common to have a pointer to a structure or class, the arrow … | |
Re: There's no return statement, yet the method is supposed to return `bool`... | |
Re: Yes, it's called a cross compiler. The compiler itself is targeted to Linux, but builds executables that target Windows. Since cross compiling isn't my bag, my first stop in researching would be [Google](https://www.google.com/#q=linux+to+windows+cross+compiler). | |
Re: Were you perchance compiling as C99 or C++ on Linux? Because Visual Studio doesn't yet support C99's mixing of declarations and executable code unless you compile as C++. All of your other main.c errors stem from the first error. Once you move all declarations to the top of the scope, … | |
Re: > I have to subit my assignment tommorow :( If it's your assignment, why are you asking for other people to do it? Please read our rules concerning homework. |
The End.