3,183 Posted Topics
Re: Is this an ASMX web service or a WCF web service? Is it active or do you just have the code/assembly? | |
Re: > how it is used and why we use it In theory you would use it just like char, and the purpose is to support extended character sets. The char type for character usage was really designed and intended for character sets (and language alphabets) that can fit into a … | |
Re: The error is precisely what it says: the file cannot be deleted until all processes have closed it and disposed of any references to it. I'd suggest downloading and running [Process Monitor](http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx) to find out which process still has a lock on that file. This will give you some direction … | |
Re: > Daniweb rules clearly state that a thread cannot be requested to be deleted You can request for a thread to be deleted by either flagging the first post or PMing a mod directly, but that request most likely won't be granted. | |
Re: > Yes, but i still need to translate it to C++. Since it's already valid C++ (assuming compiler support for non-portable stuff), you'll need to define what *you* mean by "C++". | |
Re: > So, I need to implement the following class Okay. And? > Thanks you guys. For what? You completely failed to ask a question. I'll take the high ground and assume that you're not expecting us to do your homework for you. | |
Re: You need to actually read every line, but you can ignore the lines at a specific "index" by simply not printing them. | |
Re: > can you please explain that how "hello" is working here ? Luck. :) Technically it's undefined behavior because you're passing an object of the wrong type to printf(). Functionally though, `"hello"`, `&"hello"`, and `&("hello"[0])` all evaluate to the same address, so it's not difficult to see why your output … | |
Re: > I am guessing however that the pointer in the while loop is always pointing to string data, until it > iterates on the final drive, and hits another \0 character, which causes the while test to be false. Good guess. However, there's a bit of a trick here because … | |
Re: You can use a va_list twice, provided it's properly disposed of with va_end() and re-initialized with va_start() or copied with va_copy(). What you *can't* do is assume that va_list represents a bidirectional read-only collection. It could easily be a generated array or list of arguments that are modified or destroyed … | |
Re: Make sure there's a blank line before and after the code, and double tab it. | |
Here are my downloads and impressions in order of preference so far. The season just started though. * **Genshiken Nidaime**: By far my most anticipated of the new series. I regularly reread the Genshiken manga and fully intend to follow this one to the end. * **Watashi ga Motenai no … | |
Re: n grows by a factor of 4 (`16384 / 4096 = 4`), right? And the run time also grows by a factor of 4 (`2048 / 512 = 4`), right?. While it's certainly not a conclusive test, from those two data points you really can't do much more than say … | |
Re: > P.S. Feel free to use new/delete if you never resize the array, they are faster operations for single allocations. I'd strongly recommend against using malloc(), calloc(), realloc() (and by extension free()) because they don't respect the presence of constructors and destructors. If you're working with any class type, you're … | |
Re: Whew, a lot of questions. ;) I'll answer them, but before doing that I'll strongly recommend that you consider memory mapping your files if you go the route of file lists. That way you only need to manage the organization of the files themselves as well as the memory maps, … | |
Re: > i tried to free()mem i allocate in prog using malloc But you don't. You try to free the result of fun(), which is a pointer to int that corresponds to the address of x in main(). In other words, you're trying to free something that should not be freed. … | |
Re: > but still can you tell me the way in which it is mostly implemented ? rand() is usually implemented with some form of [linear congruential generator](http://eternallyconfuzzled.com/tuts/algorithms/jsw_tut_rand.aspx). | |
Re: > what do you think makes a better programmer ? It depends on the ultimate goal. If the goal is to be a programmer who can win competitions, the answer is clearly a. If the goal is to be a viable programmer in the working world, b is the answer. … | |
Re: > And finally, I also share Ancient Dragon's concerns about security. Likewise. If you look at history, you'll see a distinct pattern of alternating between centralizing and decentralizing when it comes to data storage and retrieval. Right now with the whole Cloud nonsense we're in a decentralization period, but I'd … | |
Re: > I see on some other forums, they have a button to mark all as read if you need, and then only the individual threads are marked if you don't use it. That's available on Daniweb as well, but from the forum list [here](http://www.daniweb.com/). > But I'm quite sure that … | |
Re: It's impossible to say since study time to a working knowledge of programming varies greatly from person to person and "working knowledge" is such a nebulous term. Can you be more specific? | |
Re: > C# is a Microsoft specific language and relies on the Microsoft compiler, so your options are very limited. .NET is a Microsoft specific implementation of the CLI that includes C#. C# is an internationally standardized language whose evolution is driven solely by Microsoft presently, but there's nothing stopping someone … | |
Re: I suspect you meant for Monster to be a class rather than a namespace. | |
Re: There are good tutorials out there if you search for them. I started writing a cryptography library a couple of years ago and abandoned it, so all of my supplementary bookmarks and references are gone, unfortunately. However, I can at least offer you a basic implementation. :) I wrote it … | |
Re: Just use a vector internally and copy the array into it as an alternative constructor. Or you could have the underlying collection type be a template argument to the class. Or you could use inheritance from an interface to define both an array-based class and a vector-based class. But I'd … | |
Re: Given that "how to develop software" is extremely broad, I'll answer the specific question you asked. > how can i make the program to remember the value the user assigned to its variables without erasing it everytime i close the exe file running the program?? Persistant data would be saved … | |
Re: > I will do your homework for you after you deposit $10,000.00 USD in my PayPal account. You may want to qualify that, or you could end up doing a college student's "homework" from day one to a PhD thesis. That's not something you want to do for a mere … | |
Re: > Are ProjectConstants::CONSTANT1 and ProjectConstants::CONSTANT2 declared in the global namespace or not? A using declaration introduces names to the current namespace, so in this case yes, they are indeed in the global namespace for that particular translation unit. | |
Re: Please read our rules concerning homework. | |
Re: localhost or not, the machine must have a mail server installed and running or SMTP simply won't work. | |
Re: A character literal uses single quotes, string literals use double quotes. There's a difference, and it's rather significant. ;) | |
Re: > but what does my output need to be. According to the requirements you posted, output is not specified. Do what you want, or output nothing at all. | |
Re: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf Navigate to section 7.16.1.1-2 and you'll find this sentence: "*The parameter type shall be a type name specified such that the type of a pointer to an object that has the specified type can be obtained simply by postfixing a * to type.*" | |
Re: "Computers" is a broad subject. Can you be more specific? | |
Re: > Also, argv should be a `const char*` not a `char*`. No, it should be `char*` to be strictly conforming. Did you know that the strings in argv are modifiable? > The other is to loop through from 1 to argc and call the function getopt(). getopt() is not a … | |
Re: Don't run the .exe file? Anyway, that's not a "trick", it's legitimate code. There are innumerable ways a programmer can "trick" you with their code, and the solution is to avoid running programs from such programmers rather than expecting to somehow introspectively recognize the tricks in object code and "dodge" … | |
Re: > Could you explain me what a Keylogger is A background program than catches and logs keystrokes. > how that kind of software works It's not especially difficult to intercept keystroke messages, log them, and then pass them on to the intended destination. > how a user can protect from … | |
Re: If you're talking about the PM notification where your private messages link turns yellow, there's not presently a way to turn it off. Further, there's an item on my bug list about that notification not being entirely accurate in all cases, but it's low priority since it doesn't happen often … | |
Re: > Can it be possible to give the header file windows.h in turbo c ? Note that simply getting that header would do a whole lot of nothing. A header typically contains delcarations and requires linking with a static or dynamic object library for those declarations to be useful in … | |
Re: What are 4.txt, 5.txt, and 6.txt? | |
Re: `distance` is the name of a function in the standard library, use it for something else at your own risk. Check your spelling and choice of operators as well. | |
Re: > But just for fun-- run it a few times with different combinations and see what happens. There are only 4! permutations. It's trivial to test this algorithm rigorously by hand. | |
Re: Paragraph 15.3.15 of the standard: "*The currently handled exception is rethrown if control reaches the end of a handler of the function-try-block of a constructor or destructor.*" | |
Re: > Do people use tools that have FTP built in, or another piece of software for getting the files up to the server? It's largely personal or based on choices made by the company. I use NetBeans as the IDE and FileZilla to handle FTP stuff. Dani uses Zend Studio, … | |
Re: Try posting in the Hardware & Software category with appropriate tags. That's the "wave of the future" as far as forums and categories go. | |
Re: > Design and code a program in c that converts time in seconds to hours, minutes and seconds and display the results. I'm done, but I don't have your teacher's email so that I can turn it in for a grade. Could you post that, please? | |
I was asked this in an interview today: Q: `malloc(0); /* What does it do? */` It's a great question because it covers a subtlety in the standard and a condition that not many people will consider. Unfortunately, I wasn't 100% confident that I remembered what the standard said about … | |
Re: > I saw this one coming as soon as Dani gave members the ability to delete their account. They got the power what they wanted, now they have to deal with the responsibility. I find myself lacking any sympathy at all, especially given how hard we make it to delete … |
The End.