948 Posted Topics

Member Avatar for monstercameron

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 …

Member Avatar for Ketsuekiame
0
178
Member Avatar for Nfurman

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 …

Member Avatar for Nfurman
0
942
Member Avatar for kerp

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 …

Member Avatar for kerp
0
427
Member Avatar for judithSampathwa

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.

Member Avatar for nick.crane
0
624
Member Avatar for dima shawahneh
Member Avatar for kalpa23
Member Avatar for aldrin12

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

Member Avatar for Stefano Mtangoo
0
201
Member Avatar for dhawalchauhan
Member Avatar for anerchy

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 :'(

Member Avatar for nick.crane
0
246
Member Avatar for lakarr

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 …

Member Avatar for lakarr
0
316
Member Avatar for phummon

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

Member Avatar for phummon
0
279
Member Avatar for kayfar

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

Member Avatar for Lusiphur
0
472
Member Avatar for Ketsuekiame

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 …

Member Avatar for Ketsuekiame
1
180
Member Avatar for Member 785147

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 …

Member Avatar for Member 785147
0
224
Member Avatar for virusisfound

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 …

Member Avatar for Ketsuekiame
0
161
Member Avatar for Stefano Mtangoo

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 …

Member Avatar for Stefano Mtangoo
0
638
Member Avatar for Kanoisa

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 …

Member Avatar for Ketsuekiame
0
198
Member Avatar for dima shawahneh

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

Member Avatar for Ketsuekiame
0
172
Member Avatar for anil1991

I had to do this in C++ for my course years ago. It was a good exercise, I thoroughly enjoyed it :)

Member Avatar for Member 784361
0
107
Member Avatar for MarkBrend

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]

Member Avatar for nick.crane
0
120
Member Avatar for Tumelo Mofokeng
Member Avatar for Ketsuekiame
0
58
Member Avatar for sanam2010

You need to add a reference to the System.Data library to your project.

Member Avatar for sanam2010
0
79
Member Avatar for tomtetlaw

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

Member Avatar for tomtetlaw
0
130
Member Avatar for jimJohnson

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 …

Member Avatar for nbaztec
0
371
Member Avatar for louiscos77
Member Avatar for gameon
Member Avatar for Zinderin

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.

Member Avatar for Zinderin
0
277
Member Avatar for Rallici

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

Member Avatar for Rallici
0
243
Member Avatar for vaina74

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 …

Member Avatar for vaina74
0
226
Member Avatar for nsutton

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"

Member Avatar for nsutton
0
164
Member Avatar for bruno386

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 …

Member Avatar for Ketsuekiame
0
112
Member Avatar for Roulaa

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 …

Member Avatar for Roulaa
0
215
Member Avatar for Hawkpath
Member Avatar for NathanOliver
0
139
Member Avatar for madhan

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

Member Avatar for madhan
0
107
Member Avatar for zentropy

You need to use the [URL="http://en.wikipedia.org/wiki/Berkeley_sockets"]Berkeley socket library[/URL].

Member Avatar for Ketsuekiame
0
358
Member Avatar for gidireich

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

Member Avatar for Radical Edward
0
147
Member Avatar for judithSampathwa

What do you think is happening? (I'm not being facetious, I just want to try and get you to think about it)

Member Avatar for Ketsuekiame
0
171
Member Avatar for programming2010

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]

Member Avatar for Ketsuekiame
0
113
Member Avatar for USSDeveloper

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 …

Member Avatar for Ketsuekiame
0
122
Member Avatar for leejiaen1212

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 …

Member Avatar for Ketsuekiame
0
293
Member Avatar for nwhitfield

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

Member Avatar for nwhitfield
0
95
Member Avatar for nwhitfield

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 …

Member Avatar for IsharaComix
1
93
Member Avatar for vsawant

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]

Member Avatar for ZootAllures
-1
151
Member Avatar for highflyer8

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.

Member Avatar for arkoenig
0
1K
Member Avatar for GAME

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.

Member Avatar for GAME
0
84
Member Avatar for RoyMicro

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

Member Avatar for RoyMicro
0
104
Member Avatar for mattloto

You need to download the DirectX SDK and then just point your compiler/makefile to the directory that includes the headers/libraries

Member Avatar for Ketsuekiame
0
280
Member Avatar for hisugan
Member Avatar for Ketsuekiame
0
83
Member Avatar for venomxxl

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 …

Member Avatar for venomxxl
0
101
Member Avatar for Pellatrex

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.

Member Avatar for Pellatrex
0
1K

The End.