3,183 Posted Topics
Re: > However when I look through disassemblies of pretty much any program I notice that all such library calls are gone. Those calls are hidden in the disassembly because you're looking at direct jumps into the libraries rather than the calls an assembly programmer would write. > A) Did the … | |
Re: Include the implementation of the class in the header file too. Without getting into excessive detail, template classes and member function definitions aren't split across multiple files. | |
| |
Re: > needs to be a input output text file, its part of my requirments That doesn't preclude you from also storing the data you need in memory. Load the file into memory, use it in memory, and save it back periodically or upon request. This is how most software that … | |
Re: > I'm so used to navigating directly to the specific forums I forget those even exist. Prior to the current system, you couldn't post directly to the categories, which I think is a big part of the confusion. > should be interesting to see how this pans out. :) Yup. … | |
Re: Your code isn't retrieving anything from the command line; `argv` and `argc` are unused. However, I'm not surprised at all that it doesn't work, given that you haven't initialized `fd2` to anything. Presumably you wanted to read the "address" from stdin rather than command line parameters, in which case fd2 … | |
Re: You could provide a little utility to your testers that grabs the image runtime version: using System; using System.Reflection; using System.Windows.Forms; class Program { [STAThread] static void Main() { using (var dlg = new OpenFileDialog()) { if (dlg.ShowDialog() == DialogResult.OK) { try { Console.WriteLine( "Assembly Runtime Version: {0}", Assembly.LoadFile(dlg.FileName).ImageRuntimeVersion); } … | |
Re: > For example I never post in the Java forum so I would not be eligible to receive endorsements in that forum. If you've never posted in a forum, you cannot be endorsed for that forum. The list is based on favorite places to post as shown on your profile … | |
Re: > I'm wondering where people go to get the basic knowledge needed to understand all about makefiles and their uses and how they work. Make is a domain specific language, people learn it the way they would any other language: by reading [documentation](http://www.gnu.org/software/make/manual/make.html), books, tutorials, and maybe even watching videos. … | |
| |
Re: > Can castration really prolong a man's life? No, most certainly not. How am I so sure? For the last 6 years or so my best friend has been suffering from a number of negative side effects due to hideously low testosterone (he's only 33) including but not limited to: … | |
Re: > NOW THE QUES IS THAT I CAN'T UNDERSTAND Which part don't you understand? The instructions are very explicit, though there's an assumption that you'll figure out how to calculate the distance between two points. I would expect a programming instructor to at least remind the class that the distance … | |
Re: > What's the favorite OS among the daniweb people? aha That's a much better question than "which is the best?". My favorite would be Windows 7, but similarity with Windows 7 and obvious improvements make Windows 8 a strong contender. I just have more experience with Windows 7 presently, so … | |
Re: An abstract class is meant to be used exclusively as a base class. In other words, it cannot be instantiated directly, but classes that derive from it (if not also abstract classes) *can* be instantiated. An abstract method is the same thing at the method level: there's no method body, … | |
Re: > Here you can download visual c++ ... Visual C++ no longer supports <iostream.h>. Nice try, but please attempt to understand the question before answering. ;) | |
Re: There isn't one presently, and we lack the resources to develop it officially, not to mention relative lack of demand. It's on the list of things to do, just not a super high priority right now. | |
Re: That's a very myopic view of geekdom. | |
Re: > make sure #include <stdlib> and system("PAUSE") in the code to dispplay. That's only necessary when you're running the program from an IDE that closes the window after main() returns. Not all of them do that, and it's often not worth the subtle yet hideous security risk of invoking the … | |
Re: Database servers will provide a way to query the current ID. For example, in SQL Server you'd select one of the following: select scope_identity(); -- Last identity generated explicitly in your scope select ident_current('MyTable'); -- Last identity generated for the specified table For MySql you might use something like this: … | |
Re: > What is the max file size on uploads? * Avatars: 500KB * Attachments: 1024KB > What is the max size width/height? * Avatars: 640x480 for upload, but they'll always be reduced to 80x80 * Attachments: 1600x1200 > What file types are supported? * Avatars: GIF, JPEG, and PNG * … | |
Re: > Oh, in that case what's the reason for it in the software forums -- suggest Dani remove it there. It's basic Markdown. While possible, I don't really see the necessity of restricting the core formatting like that just for the development forums. However, I do agree with Mike that … ![]() | |
Re: > Too bad C and C++ don't have that. C++11 supports raw string literals that accomplish the same goal. | |
Re: You neglected to post any of your code and failed to ask a question. | |
Re: > Well, the answer to your problem (but not to your question) is to change your IDE. Dev-C++ is far too old to support C++11. The compiler can be changed to point to a newer version of MinGW. The only issue is there's no direct support for new features in … | |
Re: > Perhaps the user on the server does not have priviliges to modify the registry. An exception should be thrown in that case, but you can verify permissions without much difficulty using the RegistryPermission class. Here's a helper class that does the grunt work (for cleanliness): using System.Security; using System.Security.Permissions; … | |
Re: As an alternative to Inno Setup, I'd also recommend [WiX](http://wixtoolset.org/). That's what we use at my consulting company in place of the Visual Studio setup project, which has given us trouble in the past, and it's proven quite versatile and powerful (if a little obtuse initially). Also note that if … | |
Re: > storage > In formal terms, "static" is a storage-class specifier. That doesn't uniquely define `static` though. There are other storage class specifiers, and data types in general can be described as partially defining a variable's storage attributes. Unfortunately, persistence doesn't quite cut it either if we're talking about a … | |
Re: I'm digging the name, bootstraptor. Welcome aboard. :) | |
Re: > This is an obvious answers. Sometimes the answers *are* obvious. Not everything has to be complicated. ;) | |
Re: > As Dani says - it was at the top and very few people clicked on it. If you want something to remain unread, don't label it "Top Secret" or "Don't Click This". Instead, label it "Rules", or "FAQ", and you'll guarantee that nobody will click the link regardless of … | |
Re: > That "for" loop (according to what you have said) is the same as a while loop saying: Close. It's more like this (note that the braces introducing a scope are significant): { int i = 5; while (i < 2) { System.out.println("What?"); i++; } } System.out.println("Who?"); Since `i` is … | |
Re: My first approach would be to monitor the last write time for the USBSTOR registry key in a windows service and persist those results in a separate database or file. Really the most difficult part of that would be working around the complete lack of support for time stamps in … | |
Re: Can you do it on paper? Knowing how to solve the problem manually is paramount if you want to tell the computer how to do it. | |
Re: > What could have gone wrong.. Clearly you passed a null pointer to fprintf on line 55. Focus on what possible circumstances would result in that action when troubleshooting. | |
| |
Re: If you only need to determine whether a number *could* be in a certain base, just check the digits. If there are any illegal digits for the base, you can exclude that base. If you need to say conclusively that something like 1001011001 is binary, it's much harder. That particular … | |
Re: http://www.daniweb.com/community-center/daniweb-community-feedback/threads/430782/rankings-in-daniweb#post1845669 | |
Re: > confusing your and you're I see what you did there. ;D > and HR departments still get it wrong... Indeed. I recall seeing a prominent job offer for a Java position requiring 10+ years of experience...in 2001. Clearly they were just using buzzwords and random numbers that sounded experienced. | |
Re: You can modify the show state for another process' window using ShowWindow: #include <iostream> #include <tchar.h> #include <Windows.h> using namespace std; int main() { TCHAR *title = _T("Untitled - Notepad"); if (HWND h = FindWindow(0, title)) { ShowWindow(h, SW_HIDE); } else { cerr << "Window not found\n"; } } However, … | |
Re: > He passed away a couple years ago, I think it's time for DaniWeb to retire his account and move on. No offense toward Dave's memory in any way as he was easily one of my best friends online, but why would we need to retire his account? How is … | |
Re: Traditionally in computer-based fields a degree was mostly useful for your first job. After that your experience and skills would determine marketability, and that's still true more so than in other fields. However, these days a 4 year degree is becoming more and more of a step 1 filter by … | |
![]() | Re: > what was the greatest programming challenge you ever had Being a good programmer. It's a constant challenge. ;) |
Re: > it adds automatically an empty line between 1. Item One and 2. Item Two Yes, that's a quirk or the Markdown formatting that I've been unable to fix without introducing other quirks. > When going to submit I get this error: Yup, that's because you indented the nested items … | |
Re: > A special type of variable (Different from oridinary variable) What's special about it? A variable holds a value. A pointer's value is an address. How is that different enough to warrant being called "special"? Further, what constitutes an "ordinary" variable? Be forewarned, if you say `int` is an ordinary … | |
Re: > tl;dr - Everyone starts as a newbie but you only learn by exploring and using the things you don't know about. I want to preface this with the comment that there's no malice or judgement in this post, it's *just* an observation based on limited experience. I'm reminded of … | |
Re: > when I run the code and press y it says access is denied. So what can I do? Log in with an account that has permission to shut the computer down and then run the program. | |
Re: > Why? The long and short of it is that shit, while technically profanity, is rarely used as a malicious attack in the context of our community. Most often it's a descriptive term for actions, objects, or concepts (eg. "That code is shit", "Your idea is shitty", "That's some funny … | |
Re: Directly you'd do it like this: #include <stdio.h> #define length(a) (sizeof (a) / sizeof *(a)) int main(void) { char Colstr[3][15] = {"Red", "Blue", "Green"}; char Volstr[7][15] = {"1", "2", "3", "3.5", "4", "4.5", "5"}; char Sndstr[4][15] = {"lo", "med", "hi", "vhi"}; int n[3] = {3, 7, 4}; int i, j; … | |
Re: > The main purpose is to show "test" in output Presumably the purpose is to show 'this is a "test"' as the output. Unfortunately, the code is wrong even if you exclude the syntax error in your return statement. You must escape double quotes in a string: printf("this is a … | |
The End.