948 Posted Topics
Re: Raytracing doesn't take a long time because it's working out colour, it's because of the quantity of light calculations that need to be performed. If it were as simple as you thought someone would have done that by now ;) Some of the best technological minds have been trying to … | |
Re: Hi there. In response to your threading question. You need to create a [icode]new ParameterizedThreadStart(method_name_goes_here)[/icode] So when you call Thread.Start you can pass an array of Object. You cannot return a variable from a thread. (Where is it returning to?) As for your other problem, there's no real way around … | |
Re: It may be worth installing [URL="http://www.virtualbox.org/wiki/Downloads"]Oracle VirtualBox[/URL] and create a new Virtual Machine that runs Windows XP SP3. Once Windows XP SP3 is installed, create a snapshot for you to easily revert back to. On this virtual machine you can now debug in 2 ways. 1: Install visual studio and … | |
Re: What are you uploading to? There are different methods for transferring data to a website or to a custom built server application. One of them will use a web request style system, the other will use TcpClient/TcpServer. | |
Re: What settings does a Dll file have exactly? | |
Re: Please research AJAX and jQuery. | |
Re: 1. Your code is badly formed and partially incorrect. 2. We are not here to solve threads as quickly as possible or to rack up a huge "Thread Solved" count on our profiles. We are here to help inexperienced developers learn how to improve their code and problem solve better. … | |
Re: You will need to post the exact error you're getting. | |
Re: Hold on, I'll just use my magic telepathic powers to find out what errors you're getting and work out what the problem is.... *mentally strains* Nope sorry couldn't do it. My magic has failed me :'( | |
Re: It's almost exactly the same. All the "reader" and "writer" objects have a base stream. You can pass that stream to another method, just like you would in C++. [code] static void Main(string[] args) { Stream myStream = File.Open("PathToMyFile", FileMode.Open); ReadTextFile(myStream); ReadBinaryFile(myStream); Console.ReadLine(); } static void ReadTextFile(Stream myStream) { StreamReader … | |
Re: It's highly possible that the prototypes have changed since you last used the code or that you don't have the library required. I don't know enough about SunOS to go any further than that ^^ | |
Re: [icode]SerialNo=@TextBox41[/icode] You haven't added the parameter for TextBox41. This is very bad coding form by the way. Please name your controls, variables and methods so that people who look at your code can tell what it supposed to be happening at a glance. | |
EDIT: Deleted the original question. After reading, I realised that I would have to paste so much additional code that it would take someone a couple of days just to understand what was happening in my own code that it may detract from the issue at hand. Problem: When I … | |
Re: There was nothing wrong with your original implementation except one thing. You had not made an instantiation of the class. You cannot access the methods of a class, without first making a copy of the class itself. In your main.cpp file, you need a line somewhere that would read [icode]CFilaLavagem … | |
Re: The above link has everything you need. But it needs an active internet connection. Alternatively store your text strings in a resource file and use localisation. No I will not give you instructions/code on how to do it. You probably looked at the above link thought "too much effort" and … | |
Re: Well you will need an application running on the target machine. This app needs to get the details of all the current running processes. What you may actually want to do is get a list of the current open [b]windows[/b]. Unfortunately the computer cannot distinguish between a normal app and … | |
Re: Personally I would continue to learn the unmanaged C++ as this is a more general language (and can be applied to Linux/Unix/Windows) C++ .net (or managed C++) is, [b]in my opinion[/b], verging on pointless. C# is simpler and quicker (to code) than Managed C++. With the ability for C# to … | |
Re: [URL="http://32feet.net/default.aspx"]32feet[/URL] has a managed library for connectivity. But it covers everything from TCP Sockets to Bluetooth to Gps devices. Don't worry about the mobile not having an application you've written. Provided you stick to the Bluetooth specification, the mobile device will be able to communicate. | |
Re: I had to do this in C++ for my course years ago. It was a good exercise, I thoroughly enjoyed it :) | |
Re: You haven't declared the return type in your method definition. A standard definition is [icode]<accessor> <return type> <method name>([<parameter type> <parameter name>]...)[/icode] So; [icode]public int AddUp(int numberOne, int numberTwo) { return (numberOne + numberTwo); }[/icode] | |
Re: [URL="http://tinyurl.com/2dsazh4"]Here would be a good place to start[/URL] | |
Re: You need to add a reference to the System.Data library to your project. | |
Re: [QUOTE=tomtetlaw;1263882]I just restarted my computer, and without any changes to the code, it worked fine. But then after I ran the code a second time, again without any changes to the code, it gave me that exception again.. super confusing[/QUOTE] I'd say that something is wrong with the memory management. … | |
Re: It looks fine so far, but you may want to create a semaphore or look into using CriticalSections. At the moment you're waiting for a thread to exit. You need to wait for a thread to signal. Using a mutex is one way, but I wouldn't go that way. Using … | |
Re: Download the DirectX SDK from the Microsoft site. | |
Re: Zinderin, take a look at the binary reader and binary writer. That's the closest you'll get to being able to achieve what you want. | |
Re: You've misinterpreted what daviddoria has said. Include guards only go in the include file of the file you wish to guard. So [code]#ifndef PLAYER_H #define PLAYER_H /* Your header code here */ #endif[/code] You don't need that "define" anywhere else in your app :) | |
Re: Also, please explicitly return a value from main. I'm not sure if g++ will presume anything and allow that to compile, but you've declared main as an int (which is good! :D), however, you've not returned a value from the method. To indicate success back to the kernel, you should … | |
Re: First, make the correction that Pritaeas told you. If that works, then great :) If not, please tell us what the error is. Saying "Doesn't work" and dumping code, isn't exactly helpful. It's a bit like me bringing you a car and saying, "broken" | |
Re: If you want to make it cross-platform compatible I suggest you drop C# and look at Javascript and AJAX as they can update your pages in real time. The problem with this is that you need a server somewhere that you can host HTML pages on. If that isn't a … | |
Re: In your database design you should have your Foreign Keys set up to reference each table in the chain. You can set your Foreign Keys to perform an action when you perform an operation on the database. In your case you want it to delete. This will cascade the deletion … | |
Re: You think you've mastered the basics? Show us what you can do :) | |
Re: I don't understand why arrays haven't been depreciated to make way for better use of Collections (IEnumerable). Anything an array can do a List can do better and as they're two way-transferable for interop., it doesn't make sense not to use them ;) | |
Re: You need to use the [URL="http://en.wikipedia.org/wiki/Berkeley_sockets"]Berkeley socket library[/URL]. | |
Re: This is because you're declaring the function as it belongs to that class. A namespace doesn't replace a class, it contains a number of classes, separating them from the rest of your code. If you declared like this: [code] namespace MyApp { class MyClass { ...Class declaration } } [/code] … | |
Re: What do you think is happening? (I'm not being facetious, I just want to try and get you to think about it) | |
Re: You can set label text at run time by using the label name with the text property. So if your label is called "messageLabel" [icode]messageLabel.Text = "Please enter the PIC Password"[/icode] | |
Re: It's good practise in cases like these to keep your DomainObjects (for example a Person would be a DomainObject) and your DataAccessObjects separated. So I could have a PersonDao and this class has a "GetById(int id)" method. So I can call [icode]PersonDao.GetbyId(25)[/icode] and it will pull back that person for … | |
Re: You can pretty much do anything in C# you can with the other languages. You will need to decide whether the GDI is fast enough for your needs. If not then you'll need to pick a drawing API. Either Managed DirectX or Tao.OpenGL (Managed DirectX will perform better and I'm … | |
Re: Ogre is actually incredibly versatile but generally overkill unless you're making a complex game. As good practise, it may be wise to build your own basic engine ;) | |
Re: MD5 hashing your local files helps. As for things like AimBots and "GodMode" cracks, you will need to look at memory processors and signatures. Also, make sure that your "health" calculations are done server side. Also check you are being sent logical data. The server receiving information that a player … | |
Re: I suggest using a bitwise AND (much quicker as it doesn't involve a division) [icode]if(number & 1 == 1) { /*Odd number*/ }else{ /* Even number */}[/icode] ![]() | |
Re: For large numbers, it's highly probably you'll be going over (or under) the limits of the variable type. For example for a normal 10^5 number say, 123456. 2.71828182^123456 is absolutely massive. Unless you invent some kind of 128/256bit computer, you aren't going to be able to calculate that. | |
Re: Even though you don't navigate anywhere, for some reason the webbrowser control fires the navigate even to no-where. What adatapost is trying to say is that you should check to see if your button has been clicked and only execute your code if it has. | |
Re: And easy solution around the problem is to have a class that read/writes form/to the USB Device (and this is it's sole purpose in life) In this class you can have a private flag, this flag can be set true or false depending on whether an exception has been thrown. … | |
Re: You need to download the DirectX SDK and then just point your compiler/makefile to the directory that includes the headers/libraries | |
Re: [URL="http://lmgtfy.com/?q=sample+C%2B%2B+Programs"]Could try here?[/URL] | |
Re: Ok what you need to do is at the beginning of the header file for [b]one[/b] of the classes. You need to declare that there "will be a class of this type". You then drop the include for that class from the file. So take HClass1: [code] #ifndef _HEADER1 #define … | |
Re: No no, you're using [icode]Encoding.ASCII[/icode] Use [icode]Encoding.UTF8[/icode] Arabic letters are Unicode, not ASCII. Therefor, trying to decode/encode them with ASCII will cause problems. |
The End.