948 Posted Topics

Member Avatar for ssmg
Member Avatar for faa77

I'm not 100% sure, but I don't think this can be done. There's no logical mechanic that allows this as far as I'm aware. EDIT: I stand corrected, it can be done, I just don't know how. I'm going to look into this, it looks interesting :)

Member Avatar for faa77
0
156
Member Avatar for sdhawan

Firstly, in future please use code tags. Secondly, the "VALUES" section of your SQL Statement needs to be enclosed by parenthesis also. You haven't used any. [icode]INSERT INTO MyTable(Id, Name) VALUES(12, 'BoB')[/icode]

Member Avatar for sdhawan
0
347
Member Avatar for PierlucSS

Yeah a socket can be used. You simply create a TCP Connection to port 80 and issue a request for the page. [URL="http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol"]This Site[/URL] tells you what the form of the message is. Scan the response header and see if it has 404 set. If not, you can discard the …

Member Avatar for Ketsuekiame
0
170
Member Avatar for yongj
Member Avatar for schoenfelder.p

You're trying to access a private variable from outside the class. [icode]void date::wordform(date d1)[/icode] Although you're inside the date class, you're not inside [b]the instance[/b] of d1. [icode]d1.month[/icode] will fail. You are trying to access the private variable of d1. [icode]d1.getmonth[/icode] will succeed as you are accessing the public method, …

Member Avatar for Ketsuekiame
0
148
Member Avatar for jank.iris
Member Avatar for kaiyo90

[URL="http://en.wikipedia.org/wiki/Huffman_coding"]Wikipedia[/URL] seems to be very knowledgeable in this area. Use [URL="http://translate.google.com"]Google Translate[/URL] which should assist translating it into your native language.

Member Avatar for Ketsuekiame
-1
141
Member Avatar for Veneficae

I would begin by designing something that could become quite large. I don't mean full scale design though. For example. I would treat everything as a GameObject where GameObject has some basic data like "Description", "Position" etc and some basic functionality like "PrintDescription", "Push", "Pull" etc. Then specify more; so …

Member Avatar for Veneficae
0
527
Member Avatar for Leppie

You could make it OO I guess? Something that simple doesn't really need it though but if you want to do it as an exercise, try creating classes for the types of rabbits.

Member Avatar for Leppie
0
115
Member Avatar for coop123
Member Avatar for coop123
0
116
Member Avatar for Rhap
Member Avatar for Rhap
0
287
Member Avatar for john_john

I strongly disagree with the second method also. Projects should define library boundaries not class boundaries. If you had a class that erased your HDD, a class that opened up a webpage and a class that calculated how old you were. Then I think it's perfectly acceptable that they go …

Member Avatar for Ketsuekiame
0
123
Member Avatar for Diamonddrake

If speed and quality of the drawing is an issue, you might be better moving over to Managed DirectX. Other than that, nick's post is the best logical way I can think of atm.

Member Avatar for Diamonddrake
1
121
Member Avatar for thamanna
Member Avatar for manishwadhwa22

Please clarify what you mean by DRAC. I've googled for it, but the only seemingly relevant term is the Dell Remote Access Card...

Member Avatar for Ketsuekiame
0
152
Member Avatar for godflesh231

Can you please tell us what kind of exception you're getting? I don't believe xlocale is your own code. It will probably be called during some kind of string manipulation or formatting. Can you post your code? If it's more than 50 lines, please attach as files.

Member Avatar for mitrmkar
0
163
Member Avatar for darkangelNeo

If you use Windows and you actually want to LOCK the drive, then look up the function DeviceIoControl. That should give you a place to start

Member Avatar for Ketsuekiame
0
340
Member Avatar for tuomari
Member Avatar for mikesowerbutts

You're hooking into the Windows API (P/Invoke). Have you got any left over handles using up memory? The debugger should say where your error is occurring. Also, try running this as a standard winforms app and see what happens. GC.Collect() won't always clean up the memory and unless you're running …

Member Avatar for sknake
0
222
Member Avatar for spartan118
Member Avatar for abhimanipal
0
102
Member Avatar for Cowbox

This is a misleading error. Your compiler is set to unicode, hence it needs to use [i]wide[/i] characters. std::string has a method called c_str() to convert a string to a char*. But you will need to convert it from a multi-byte-string to a wide-character-string. (other keywords are wchar, wstring and …

Member Avatar for Cowbox
0
109
Member Avatar for judithSampathwa
Member Avatar for sandhya.chethu
Member Avatar for anuragcoder

What have you tried so far? [URL="http://www.google.com"]This Website[/URL] should tell you all you need to know.

Member Avatar for daviddoria
0
116
Member Avatar for anuragcoder

If you check your other thread I've already told you what the problem is. For the sake of argument, I'll repeat myself. Calling getline is overwriting your text variable with each loop. Therefore, when you press enter twice, text contains the character '32' (Which represents Enter) When you get your …

Member Avatar for daviddoria
0
107
Member Avatar for Spiderpig085

Argh! My Eyes! o.O Onto the problem... You've declared a pointer but not told the compiler to assign anything to it. [URL="http://www.cprogramming.com/tutorial/lesson6.html"]Here's a decent tutorial on pointers[/URL]

Member Avatar for Spiderpig085
0
97
Member Avatar for deanus

Hi there! Am I correct in assuming you want to access the parallel port? You may be better using CreateFile("LPT1",GENERIC_READ|GENERIC_WRITE,0,NULL,OPEN_EXISTING,FILE_FLAG_OVERLAPPED,NULL); Then using ReadFile and WriteFile to read and write data over the port using the handle that "CreateFile" generates. The reason you cannot access it directly is because it exists …

Member Avatar for deanus
0
226
Member Avatar for daviddoria

[QUOTE=jonsca;1223227]I understand what you are getting at. I agree that sometimes people dump off yards and yards of code when it's not always necessary. However, I think asking for the smallest and yet compilable code can bring about a Heisenberg-like effect. The more the OP takes out the trickier it …

Member Avatar for Ketsuekiame
0
90
Member Avatar for weaponx69

Can you give a little more information about the segmentation fault you're getting. When does it happen? What's happening on screen? What data is given to you with the fault?

Member Avatar for weaponx69
0
125
Member Avatar for richardhoggan

Ok, when you declare a class or a struct and you don't use any access modifiers, unless you specify otherwise, they default to PRIVATE. So your variable declarations above are actually public, not private. Whereas if you don't use the "public" access modifier on your methods they will be private. …

Member Avatar for Ketsuekiame
0
95
Member Avatar for ARKaMAN

This is a scripting language for what appears to be Modern Warfare 2. Create the while loop as chiwawa10 has done but catch the disconnect event inside it and break when you see it.

Member Avatar for Ketsuekiame
0
192
Member Avatar for theABCasian

You say you think there is a memory leak. What is giving you that impression? There is a mistake in the code, it won't stop it working and it's so glaringly obvious I'm reluctant to point it out =/

Member Avatar for Ketsuekiame
0
268
Member Avatar for Nitin Daphale

[QUOTE=nick.crane;1222174]tinyint is already unsigned. It is a just a single byte of value 0-255.[/QUOTE] A point to remember if you ever need to translate to MySQL is that MySQL stores tinyint as SIGNED by default, whereas MS SQL stores it as UNSIGNED by default. You can cast between the two …

Member Avatar for Ketsuekiame
0
394
Member Avatar for new2programming

From the compiler errors you've tried to instantiate an abstract class. Abstract classes cannot be instantiated and must be inherited. This is an abstract class: [code]class MyAbstract { public: virtual void PrintLetter(char letter) = 0; } [/code] To use an abstract class you must inherit it and override the virtual …

Member Avatar for Ketsuekiame
0
160
Member Avatar for hatzi8

From an algorithmic point of view, the A* Algorithm is probably the most commonly used path-finding algorithm. Google fishing will come up with results aplenty.

Member Avatar for Sodabread
0
92
Member Avatar for gregarion

Have you stepped through your code to make sure your TransferInfo method is being called for each person?

Member Avatar for gregarion
0
115
Member Avatar for sami alzahrani
Member Avatar for khaledkhaled24

The only thing close is to use Triggers. Triggers are fired on an event you specify. The only problem is they can't connect back to your code. The only possible combination is to use triggers with a messaging server using plugins that can be found in the UDF Sources. This …

Member Avatar for Ketsuekiame
0
95
Member Avatar for Akatosh

You have to do the second one. EDIT: For memory leak diagnostics I recommend using Visual Leak Detector (if you're using Visual Studio) EDIT 2: The reason you must delete, is that if we take your code as an example, you create an instance of the point "AnotherClass" and assign …

Member Avatar for WilliamHenry
0
141
Member Avatar for Cap'nKirk

Hi there, this is a notification to the guys who that that ++i would start at "1" whereas i++ would start at 0. This is an incorrect assertion. The difference between ++i and i++ you are correct to a degree. ++i does addition before assignment and i++ does assignment before …

Member Avatar for Ketsuekiame
0
3K
Member Avatar for zizi

Please see the post above your last. That is the correct method. Remember you can use variables as your key name, they don't have to be quote marked. [code] string str = "bob"; hashtable["bob"]; hashtable[str]; [/code] Choosing either of the above will give you the same result.

Member Avatar for kvprajapati
0
3K
Member Avatar for babydol

Personally, if you wanted to do that, I would pass a pointer to the array and the array's length. [CODE]void someFunc(double* myArray, long arrayLength) { // Do stuff with array using arrayLength to ensure no out of bounds exception // Also note any changes made in here will be reflected …

Member Avatar for WaltP
0
106
Member Avatar for Moller

A much cleaner way would be to initialise your images and associate the Tag property with their name: [code]Image imgOne = Resource.YourImage; imgOne.Tag = ImageNameString; [/code] Then initialise your Image List: [code]List<Image> imageList = new List<Image>{// Your Images};[/code] Then initialise your PictureBox list: [code]List<PictureBox> pictureBoxList = new List<PictureBox>();[/code] Ok now …

Member Avatar for Ketsuekiame
0
1K
Member Avatar for LevyDee

There are basically two methods of interaction for MFC. AFXSocket (which is the MFC implementation of winsock2) or socket (C-Style library for winsock2) First you need to set up your method of communication, then choose which type of transmission protocol (TCP/UDP) and finally decide on your application protocol (how it …

Member Avatar for Ketsuekiame
0
101
Member Avatar for tiger188

Hi there, it looks like you want to be using DirectX (or the Tao OpenGL Libraries). A tutorial for DirectX in C# can be found [URL="http://www.codersource.net/AspNet/DirectX/DirectXProgramminginC.aspx"]here[/URL]

Member Avatar for ddanbe
0
597
Member Avatar for ollie60

So if I understand you. You have a list of nodes, and in each node you have 20-ish variables of data (in an array?) When you perform the List::Compare function you want it to compare a set of numbers you choose, with every variable of data in every node of …

Member Avatar for Ketsuekiame
0
86
Member Avatar for detoxx

[CODE]DbProviderFactory factory = DbProviderFactories.GetFactory("System.Data.OleDb"); DataTable userTables = null; using (DbConnection connection = factory.CreateConnection()) { connection.ConnectionString = "Provider=Microsoft .Jet.OLEDB.4.0;Data Source=" & file; // We only want user tables, not system tables string[] restrictions = new string[4]; restrictions[3] = "Table"; connection.Open(); // Get list of user tables userTables = connection.GetSchema("Tables", restrictions); } …

Member Avatar for detoxx
0
107

The End.