189 Posted Topics
Re: Have you tried opening the file in a simple text editor (notepad)? If the file itself is in binary and you don't have the map editor the writer used to create it, you may be slightly out of luck. But, lucky for you, you're a programmer. You may want to … | |
Re: Look into the Microsoft.Office.Interop.Excel namespace. You might need the Primary Interop Assemblies depending on what version of Office you have. There's a bajillion pages out there about that namespace and using/troubleshooting it. Good luck. | |
Re: Make sure you're taking it in as a System.Web.UI.WebControl or System.Web.UI.HtmlControl, whichever it is. If you've tried this already, post some code so we can have a better understanding of how you're doing what you're trying to do. | |
Re: Have you written anything, or are you just asking us to do your homework? | |
Re: If you want something really challenging, you can try to diagram out a game, and by game I don't mean Snake. Something bigger like an RPG or first person shooter. You can then make these as simple or complicated as you want. | |
So, last night I log on to DW and to my surprise, I have a new PM. "Oh joy!", I think, "Someone wants to share a word with me!" To my utter disappointment, I open the message and it just turns out that someone wants to make my fantasies come … | |
Re: As much as I always hate to burst the bubble of an aspiring game developer, J has a good point. How simple are these games you're talking about? Are they just tic-tac-toe and checkers or something similar? For people to buy your games, first you'll need to build something that … | |
Re: I would agree with Ket or firstPerson. A* and Dijkstra's algorithms are going to be your best when you need to do a heuristic search involving cost for moving between nodes. I prefer A* most of the time for most purposes, but most all algorithms have their merits. | |
Re: What's happening is that in your for loop, you're looping while i is less than range. In your loop, the i++ is executed at the end of every loop, so when you put in your numbers, the i variable is being incremented one more time. If you put in a … | |
Re: I agree that kids shouldn't be playing inappropriate games and watching inappropriate film, but they're trying to make the game industry the only entertainment medium that is enforced by governmental laws. The ESRB is currently doing all it needs to in order to prevent kids from playing these games by … | |
Re: Have you tried OnSelectedIndexChanged? Don't forget to check Google too when you have questions, as this is one that's got gobs and gobs of information out there. | |
Re: The better thing to do would be to let us know where you get stuck so we can help you *learn* specifics, rather than just getting a finished product and plugging that code into your project. I'm not saying that's exactly what you'll do, but it seems to be a … | |
Re: Expora, your issues are due to typos. You're passing "drawScene" to the glDisplayFunc function, but your function is named "drawscene". The "initRendering" function called in main is defined as "initRenderind". Sometimes it just helps to have someone else glance at it =) Also, about your choice of compiler, just use … | |
I know this doesn't really fall under computer science, but it's the only forum that this would make sense in. Is it just me, or does it seem like there are a lot of new programmers that don't understand basic terminology about their language of choice? I don't mean this … | |
Re: As said by a shirt on ThinkGeek, In order to understand recursion, one must understand recursion. Honestly, I think it's much easier to explain in pseudo code than actual code. [CODE] Directory dir = <location> call renameFilesInDir(dir) function renameFilesInDir(Directory dir) foreach(file f in dir) rename file foreach(directory d in Dir) … | |
Re: Well, some code tags & code formatting would help us help you. It also helps to know what your error is. Regardless, I'm going to assume that the compiler is spitting back an error saying that it's throwing back that ave needs a different type of variable passed into it. … | |
Re: You never initialize score. If you don't initialize or assign a value to a variable, it's filled with crap. No one likes a crap filled variable. No one. | |
Re: One suggestion would be to just keep the initial click position in a variable at the moment of click, as well as the current held position each frame, draw a rectangle using those points. So instead of doing a while loop, you already know where the initial click was, and … | |
Re: Have you tried just Googling "C# Printing"? Seems there's a lot of good results from that. | |
Re: The reason for your error is that your permutation process stops as soon as your elements are in reverse alphabetical order. When your code permutes "b", "c", "a", it swaps to cab, then cba, then your first while loop in the permute function determines that b ([1]) is greater than … | |
Re: Check out gamedev.net. There are a lot of tutorials out there for how to do this kind of thing. I'm not sure what Allegro contains, but you may want to look into some tile engine development stuff. With a tile engine, you could make a separate application to create maps … | |
Re: You can try using a do...while loop and do b = rand() % 10 + 1 while b equals a. | |
Re: Looking at what's posted here, your main is trying to use exam, exam1, exam2 and exam3, but you never actually declare any of them. | |
Re: You can't use a type like that when you're calling a function. Just pass &rss and you should be fine. You only need the ifstream there when you're declaring an ifstream object or it's in the function definition or prototype. | |
Re: Initialization is when you set a variable equal to something for the first time. You're never actually setting your variable 'a' to any value, but in line 7, you're setting your 'Enter' variable equal to that 'a' variable. Also, your if statement condition isn't going to work how I'm assuming … | |
I didn't really know where to post this, so I figured I'd just go with the lounge. I'm looking for some business startup resources, but I want something more from the standpoint of an industry professional, rather than that of an entrepreneur. I'd like to do something along the lines … | |
Re: Well, first off, that formatting is horrible. You're going to want to start indenting properly if you want much help at DW. Second, you can't just post and say "It doesn't work" then tell people they need to figure out what's wrong with it. Post your errors or what you're … | |
Re: Your loop variable is fine, your formatting is just really inconsistent. | |
Re: And since it's only been 15 minutes since your post, you still have time to edit your post to add code tags and reformat your code so we can read it. Also, you need to tell us what you're actually having trouble with. No one is just going to finish … | |
Re: Check out this snippet: [url]http://www.daniweb.com/code/snippet217084.html[/url] Take that information and do a tad bit of research on regular expressions and you should have your answer in no time. | |
Re: [url]www.sourceforge.net[/url]. Take your pick. | |
Re: Your while statement is on the wrong line. It should be at the close of your do loop, but it's currently at the close of your switch. | |
Re: [QUOTE=Ancient Dragon;1176406] I know of no one who eats the seeds intentionally.[/QUOTE] I'll do it for a dollar. | |
Re: You're getting hit by an unexpected case of the recursions! [CODE] int sqrt(int num){ MyException excp("number is not perfect square"); cerr <<"got Here!"; double d_sqrt = sqrt(num); int i_sqrt = d_sqrt; if ( d_sqrt != i_sqrt ){ throw excp; } return sqrt(num); } [/CODE] Your exception isn't causing any issue … | |
Re: The variable "rad" is local to the area function. Whatever float is passed in to the area function is called "rad" for the scope of that function. Your line 7 where it has "area(radius)", it's taking the radius input from the scanf line and passing that variable to the area … | |
Re: You're trying to write to in_stream3, but you never open a file with it. | |
Re: I'm not 100% on this, but shouldn't your inAppId variable be a stringbuilder or something similar? Right now, you're trying to add a List as a varchar and I didn't think that would implicitly convert correctly. | |
Re: MFC is Microsoft Foundation Classes, and is a Visual C++ thing. It's good if you want to develop Windows apps like Word or Excel, or dialog based utility apps, but it's only for Windows. I always found it kind of fun to develop with, but it's occasionally looked at as … | |
Re: What about: [CODE] string labelName = "label_" = i.value; Label temp = new Label(); Label.Name = labelName; [/CODE] | |
Re: HTML & CSS basics are easy, but there are a lot of things that may not work as you expect them to, so it's good to read up a lot on how it's supposed to work. You can check out w3schools.com. There's some good tutorials there on both subjects and … | |
Re: Has it occurred to you that your plzzzzzzzzzes make it so people want to help you less? Also, try reading [URL="http://www.daniweb.com/forums/announcement61-2.html"]this announcement[/URL] before posting next time. | |
Re: It's kind of amazing, seeing so many people reply with the same answers that the current education systems are somewhat borked. I'm curious as to how many of the repliers are teachers, besides Ardav. Normally I see people furious that teachers get paid too much to "babysit" their kids and … ![]() | |
Re: You only need to initialize them in one place, but you may have trouble doing this problem in the fashion you're trying to. Your second question states that you want to return 2 variables from a function, which is not possible. A void return type means the function returns nothing. … | |
Re: It depends on how you want to use the input. Do you want A1 to do one thing and B1 to do an entirely different thing, or do you want A to do one thing, and B to do another, or 1 to do something in addition to A and … | |
Re: You have to show us that you've put some effort into it before anyone will help. What exactly are you having trouble with? | |
Anyone going to NYC for Internet Week? I'm thinking of taking a day off of work and heading into the city to check it out. | |
Re: Cast the sender object to a button and check the ID. | |
Re: It really comes down to what you want to do with programming, I'd say. Do you want to make games? Go with C/C++. Want do develop web applications? C#/Perl/Ruby/PhP, there's a lot to choose from here. Want to write embedded apps? Desktop apps can be developed with just about any … | |
Re: Your switch statement is looking for selection to correspond with a number: [CODE] switch(selection) { case 1: doSomething() break; case 2: doSomething() break; case 3: doSomething() break; } [/CODE] This should be: [CODE] switch(selection) { case 'T': case 't': doSomething() break; case 'D': case 'd': doSomething() break; case 'A': case … |
The End.