3,183 Posted Topics

Member Avatar for Labdabeta

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

Member Avatar for Labdabeta
0
558
Member Avatar for TuteePink

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.

Member Avatar for TuteePink
0
101
Member Avatar for harinath_2007

The speed of the car was 72km/hour, and the odometer is broken. ;)

Member Avatar for woooee
0
185
Member Avatar for nomorelogic

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

Member Avatar for Moschops
0
2K
Member Avatar for ndeniche

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

Member Avatar for Reverend Jim
0
361
Member Avatar for fafa70

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 …

Member Avatar for fafa70
0
341
Member Avatar for kirtee2209

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

Member Avatar for kirtee2209
0
419
Member Avatar for ndeniche

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

Member Avatar for ndeniche
1
270
Member Avatar for christinetom

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

Member Avatar for Tumlee
0
262
Member Avatar for SA_PlaYeR
Member Avatar for NathanOliver
-1
136
Member Avatar for Xantipius

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

Member Avatar for Reverend Jim
0
1K
Member Avatar for aqzee

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

Member Avatar for deceptikon
0
263
Member Avatar for mattster

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

Member Avatar for Assembly Guy
0
857
Member Avatar for chrispitt

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

Member Avatar for deceptikon
0
145
Member Avatar for fmasroor

> Here you can download visual c++ ... Visual C++ no longer supports <iostream.h>. Nice try, but please attempt to understand the question before answering. ;)

Member Avatar for Schol-R-LEA
0
26K
Member Avatar for bCubed

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.

Member Avatar for Reverend Jim
2
547
Member Avatar for PHIPH
Member Avatar for kortneycoles

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

Member Avatar for kortneycoles
0
179
Member Avatar for WDrago

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

Member Avatar for Admin ESSL UK
0
167
Member Avatar for riahc3

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

Member Avatar for deceptikon
0
314
Member Avatar for Ancient Dragon

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

Member Avatar for diafol
0
216
Member Avatar for GhostWolf

> Too bad C and C++ don't have that. C++11 supports raw string literals that accomplish the same goal.

Member Avatar for deceptikon
0
168
Member Avatar for sihled1

You neglected to post any of your code and failed to ask a question.

Member Avatar for Schol-R-LEA
0
181
Member Avatar for wolframP

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

Member Avatar for Ancient Dragon
0
7K
Member Avatar for erum

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

Member Avatar for deceptikon
0
213
Member Avatar for LEAN.HEART.YOU

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 …

Member Avatar for deceptikon
0
109
Member Avatar for WDrago

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

Member Avatar for deceptikon
0
171
Member Avatar for bootstraptor
Member Avatar for silvercats

> This is an obvious answers. Sometimes the answers *are* obvious. Not everything has to be complicated. ;)

Member Avatar for silvercats
0
761
Member Avatar for ddanbe

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

Member Avatar for deceptikon
0
303
Member Avatar for riahc3

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

Member Avatar for deceptikon
0
183
Member Avatar for aung.kyaw.1428

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 …

Member Avatar for deceptikon
0
589
Member Avatar for kamalashraf

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.

Member Avatar for Captain119
0
192
Member Avatar for harishjoy

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

Member Avatar for harishjoy
0
294
Member Avatar for mag.magnesia
Member Avatar for kamalashraf

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 …

Member Avatar for Banfa
0
543
Member Avatar for cproger
Re: Hi

http://www.daniweb.com/community-center/daniweb-community-feedback/threads/430782/rankings-in-daniweb#post1845669

Member Avatar for rsewak
0
153
Member Avatar for <M/>

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

Member Avatar for jwenting
0
389
Member Avatar for beginner91

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

Member Avatar for Ancient Dragon
0
491
Member Avatar for Ancient Dragon

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

Member Avatar for TrustyTony
1
400
Member Avatar for PsychicTide

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 …

Member Avatar for Bean7
1
273
Member Avatar for James singizi

> what was the greatest programming challenge you ever had Being a good programmer. It's a constant challenge. ;)

Member Avatar for pritaeas
0
323
Member Avatar for cereal

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

Member Avatar for cereal
0
201
Member Avatar for Lakhan Thakur

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

Member Avatar for Moschops
0
169
Member Avatar for riahc3

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

Member Avatar for riahc3
4
468
Member Avatar for murtazamzk

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

Member Avatar for deceptikon
1
465
Member Avatar for riahc3

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

Member Avatar for Reverend Jim
0
515
Member Avatar for cshrikanth

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

Member Avatar for cshrikanth
0
139
Member Avatar for 123mehran

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

Member Avatar for ftangpos
-1
183
Member Avatar for christopher.north.520125

The End.