3,183 Posted Topics

Member Avatar for </scorpion>

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 …

Member Avatar for </scorpion>
0
1K
Member Avatar for adam.meyer.712

Define "help", because it sounds a lot like you want us to do your homework for you.

Member Avatar for adam.meyer.712
0
362
Member Avatar for sagngh8

> 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 …

Member Avatar for deceptikon
0
151
Member Avatar for Madiya122

You spelled "asset" wrong, for one thing. For another, I suspect you wanted to use `splits` in the foreach loop rather than `assetClasses`.

Member Avatar for Madiya122
0
509
Member Avatar for Neko Chan

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?

Member Avatar for Neko Chan
0
159
Member Avatar for Jaspal_1
Member Avatar for dospy

> 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 …

Member Avatar for deceptikon
0
228
Member Avatar for maheshmkkd

> 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 …

Member Avatar for deceptikon
0
238
Member Avatar for uttkarshsing

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() { …

Member Avatar for deceptikon
0
201
Member Avatar for laklaker

> 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 …

Member Avatar for deceptikon
0
187
Member Avatar for coolioschmoolio

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 …

Member Avatar for deceptikon
0
515
Member Avatar for kirtee2209

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.

Member Avatar for Ketsuekiame
0
389
Member Avatar for kyle.mace.35

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 …

Member Avatar for kyle.mace.35
0
197
Member Avatar for Alvin_2

Have you tried an incremental sync? http://msdn.microsoft.com/en-us/library/bb726021.aspx

Member Avatar for deceptikon
0
167
Member Avatar for jared_masc

> 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 …

Member Avatar for deceptikon
0
5K
Member Avatar for shantanu.killer

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 …

Member Avatar for deceptikon
0
167
Member Avatar for jaya_2

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);

Member Avatar for MonsieurPointer
0
76
Member Avatar for kamalashraf
Member Avatar for nitin1

> 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 …

Member Avatar for sepp2k
0
178
Member Avatar for nitin1

> 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 …

Member Avatar for deceptikon
0
261
Member Avatar for pardeepkhatri

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.

Member Avatar for ddanbe
-1
122
Member Avatar for mark5rockzz_1

> 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 …

Member Avatar for mark5rockzz_1
0
294
Member Avatar for infatuate

> 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

Member Avatar for deceptikon
0
263
Member Avatar for bourisly

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?

Member Avatar for AndrisP
0
202
Member Avatar for Farhan_4

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 …

Member Avatar for Farhan_4
0
367
Member Avatar for pardeepkhatri

`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 …

Member Avatar for deceptikon
0
276
Member Avatar for angelinrajeesha

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.

Member Avatar for Ancient Dragon
0
268
Member Avatar for shashikumar s g

> 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 …

Member Avatar for shashikumar s g
0
341
Member Avatar for HunainHafeez

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.

Member Avatar for HunainHafeez
0
216
Member Avatar for timmyjoshua

> 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 …

Member Avatar for timmyjoshua
0
149
Member Avatar for deltascrow

> 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 …

Member Avatar for Atli
0
301
Member Avatar for prakash4

> 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 …

Member Avatar for sepp2k
0
287
Member Avatar for J_SON

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 …

Member Avatar for J_SON
0
271
Member Avatar for glenc70

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.

Member Avatar for deceptikon
0
136
Member Avatar for phorce

> 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 …

Member Avatar for mike_2000_17
0
8K
Member Avatar for prakhar_1

`return(count)` invokes the constructor that takes an `int`, so you get a newly constructed `counter` object using `count` as the initializer.

Member Avatar for deceptikon
0
101
Member Avatar for kingkong123

> 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.

Member Avatar for deceptikon
0
227
Member Avatar for SoreComet

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 …

Member Avatar for deceptikon
0
167
Member Avatar for harry_2

> 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?

Member Avatar for jkon
0
249
Member Avatar for Ancient Dragon

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 …

Member Avatar for Dani
0
238
Member Avatar for Muhammad Waqar_1

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 …

Member Avatar for Ancient Dragon
0
293
Member Avatar for happygeek
Member Avatar for joyvin13

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 …

Member Avatar for deceptikon
0
97
Member Avatar for kirennian

Are you looking for an existing tool or suggestions on how to go about writing your own?

Member Avatar for Ketsuekiame
0
191
Member Avatar for sonu_1

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 …

Member Avatar for deceptikon
0
333
Member Avatar for pars99

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 …

Member Avatar for deceptikon
0
156
Member Avatar for IcdFlying
Member Avatar for ss125
0
200
Member Avatar for CimmerianX

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).

Member Avatar for rubberman
0
329
Member Avatar for totalwar235

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, …

Member Avatar for totalwar235
0
483
Member Avatar for ALi Tahir Khan

> 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.

Member Avatar for deceptikon
-1
173

The End.