Search Results

Showing results 1 to 40 of 147
Search took 0.01 seconds.
Search: Posts Made By: GDICommander
Forum: Legacy and Other Languages 25 Days Ago
Replies: 7
Views: 1,863
Posted By GDICommander
Yeah, just ask your questions and post some code on the forum. It's the better way, more people can answer your questions.
Forum: C++ Oct 3rd, 2009
Replies: 2
Views: 250
Posted By GDICommander
Why don't you write that for getting input from the user:

string breed;
cin >> breed;

This method does not get the "\n".
Forum: C# Oct 3rd, 2009
Replies: 9
Views: 406
Posted By GDICommander
Just post your code if you have problems and we'll check it.
Forum: C# Sep 24th, 2009
Replies: 5
Views: 450
Posted By GDICommander
Unfortunately, I cannot send you the assemblies because of the security policies of where I work.

I tried to add the directory path of the Photoshop CS4 executable to the %PATH% variable (because...
Forum: C# Sep 24th, 2009
Replies: 5
Views: 450
Posted By GDICommander
Unfortunately, I can't call Process.Start() because I will need to get the opened images in Photoshop in my code. So, I need a "pointer" on the application and ApplicationClass can provide it to me.
Forum: C# Sep 23rd, 2009
Replies: 5
Views: 450
Posted By GDICommander
Hi, everyone!

I am using Interop.Photoshop.Dll from my C# Windows Forms application. I am using a com object that Adobe Photoshop CS4 provides to use Photoshop in my C# program.

I'm using the...
Forum: C# Sep 22nd, 2009
Replies: 0
Views: 324
Posted By GDICommander
Hi, everyone!

I'm writing a program in C# that needs to know opened files in a Photoshop CS4 window.

The old versions of Photoshop have a MDIClient window in the program that can be getted with...
Forum: Java Sep 2nd, 2009
Replies: 3
Solved: Sudoku help
Views: 354
Posted By GDICommander
Check this page:

http://java.sun.com/j2se/1.4.2/docs/api/java/util/Random.html
Forum: C++ Sep 2nd, 2009
Replies: 16
Views: 837
Posted By GDICommander
If your operator=() works, extract the code that creates a new list with the one provided as a parameter and use it in your copy constructor. Search for the refactoring tip Extract Method.
Forum: C++ Sep 2nd, 2009
Replies: 4
Views: 240
Posted By GDICommander
According to http://msdn.microsoft.com/en-us/library/yt4xw8fh.aspx :

The /Wp64 compiler option and __w64 keyword are deprecated and will be removed in a future version of the compiler. If you...
Forum: C++ Sep 1st, 2009
Replies: 9
Views: 355
Posted By GDICommander
If you are using UNIX, you can use valgrind to check for memory leaks. You need to add --tool=memcheck on the command line to check for leaks.
Forum: C++ Sep 1st, 2009
Replies: 4
Views: 240
Posted By GDICommander
For the step 13, it tells Visual Studio to include these libraries for the link, because the functions you are using with SDL are implemented in these libraries. The librairies must be in the...
Forum: C++ Aug 31st, 2009
Replies: 5
Views: 413
Posted By GDICommander
You can implement a sort strategy on your linked list, like bubble sort, quick sort, merge sort. Some strategies do not require an additionnal container for the answer.
Forum: C++ Aug 31st, 2009
Replies: 2
Views: 229
Posted By GDICommander
It is normal that you jump directly to system("pause") when the operator is not correct the first time. You are leaving the if-else clause after the second input prompt. You should do something...
Forum: C++ Aug 31st, 2009
Replies: 1
Views: 284
Posted By GDICommander
You should pay attention to how you have divided your problem into functions.

A function like computeCommission(int price) can be useful...
Forum: C++ Aug 31st, 2009
Replies: 5
Views: 413
Posted By GDICommander
http://www.codeguru.com/forum/showthread.php?t=366064

You can use std::sort with a STL container, like a vector or a list. You will need to write a function that determines if a element is greater...
Forum: C++ Aug 31st, 2009
Replies: 5
Views: 161
Posted By GDICommander
Your main() should be in an other file...
Forum: C++ Aug 30th, 2009
Replies: 11
Views: 551
Posted By GDICommander
Looks good, but there is a piece of code I would like to show you:

if(is_door_opened==true)

You can simplify this conditionnal expression with:

if (IsDoorOpened())

and make this method...
Forum: C++ Aug 30th, 2009
Replies: 3
Views: 183
Posted By GDICommander
This behavior is expected, because the operator >> of cin reads input in his stream until a end-of-line or a whitespace is found. So, the next operator>> call finds remaining input (the other words...
Forum: C++ Aug 30th, 2009
Replies: 5
Views: 356
Posted By GDICommander
I did a mistake in my last post: the >> operator reads data until a end-of-line character OR a whitespace is found.
Forum: C++ Aug 30th, 2009
Replies: 1
Views: 181
Posted By GDICommander
http://www.csse.monash.edu.au/~jonmc/CSE2305/Topics/10.19.OpOverload/html/text.html

On this page, look the Complex class example at the bottom. It explains that you need to declare the prototype...
Forum: C++ Aug 30th, 2009
Replies: 4
Views: 220
Posted By GDICommander
This site helped me a lot to understand the design patterns:

http://sourcemaking.com/design_patterns
Forum: C++ Aug 30th, 2009
Replies: 5
Views: 356
Posted By GDICommander
Are you sure that the file denoted with the name you provided exists?

I'm pretty sure that the answer is yes, but do you really have gSize vertices in your file? Do you really have a line at each...
Forum: C++ Aug 3rd, 2009
Replies: 0
Views: 240
Posted By GDICommander
Hello everyone!

I'm having a bad time trying to find a solution to my problem:

I'm developping a client-server application. On the server side, I am calling a method, Recoit (receive), that...
Forum: C++ Jul 29th, 2009
Replies: 2
Views: 150
Posted By GDICommander
Thank you for your help. It worked when I added pcslib.cpp with the other file on the command line with g++.
Forum: C++ Jul 29th, 2009
Replies: 2
Views: 150
Posted By GDICommander
Hello, everyone! It's been a long time using C++ and I have a link problem.

This is the code...


#include <iostream>
#include "libc++/pcslib.h"

int main()
{
Forum: Java Jul 15th, 2009
Replies: 1
Views: 237
Posted By GDICommander
Hello everyone!

I'm looking for a class in the Java API that can take the complete structure of a directory in itself and that can be passed on sockets, so it can be used on other machines of a...
Forum: C Jul 9th, 2009
Replies: 11
Views: 486
Posted By GDICommander
Hello everyone! It's me again.

I replaced malloc calls with calloc and I put sizeof(char*) for the memory allocation call for the rows of the 2D array. There are no runtime errors.

Thank you...
Forum: C Jul 9th, 2009
Replies: 11
Views: 486
Posted By GDICommander
Unfortunately, no. Now I have a runtime error on the free() call at the last line of fillArray(). The change of char* to char for referenceArray has introducted a new problem in the fillArray()...
Forum: C Jul 8th, 2009
Replies: 11
Views: 486
Posted By GDICommander
Ok, here is the complete code.


#include <stdio.h>
#include <stdlib.h>
#include <string.h>

//Variables globales.
int width;
int height;
Forum: C Jul 8th, 2009
Replies: 11
Views: 486
Posted By GDICommander
I don't think that I'm freeing the 2D array twice, because it is filled first in the fillArray() function. The referenceArray pointer is cleaned first and points to the newReferenceArray pointer....
Forum: C Jul 8th, 2009
Replies: 11
Views: 486
Posted By GDICommander
Hello, everyone!

I have a problem with memory free. Here is the necessary code to understand the problem:


void fillArray(char** referenceArray, FILE* grid)
{
//ChaƮne qui va contenir une...
Forum: Java Jul 3rd, 2009
Replies: 4
Views: 378
Posted By GDICommander
Hello everyone!

I'm developping a chat application in a client/server context and every client has a shared directory. I want the server to know the directory structure of each shared directory of...
Forum: Game Development May 18th, 2009
Replies: 1
Views: 843
Posted By GDICommander
Hi, everyone!

I'm having problems with the implantation of a free camera in a 3D world. For now, I'm using the A/D/W/S keys to make the camera go right, left, forward and backward. The problem is...
Forum: Game Development May 11th, 2009
Replies: 4
Views: 1,768
Posted By GDICommander
Thank you for all your tips. Now I understand how to do rotations and translations properly.
Forum: Game Development May 10th, 2009
Replies: 4
Views: 1,768
Posted By GDICommander
Thanks for the help! My main error was the use of the GL_MODELVIEW flag instead of the GL_MODELVIEW_MATRIX flag.

Now I would like to do rotations. I know how to use glRotate*(), but I don't want...
Forum: Game Development May 8th, 2009
Replies: 4
Views: 1,768
Posted By GDICommander
Hello, everyone!

I'm starting to learn OpenGL and I have a problem with linear transformations.

The program is very basic: I want to draw 4 squares and make them move individually (by doing...
Forum: C++ May 6th, 2009
Replies: 2
Views: 356
Posted By GDICommander
There are options in the "Compiler" section in Code::blocks to make a faster executable. This will result in a longer compilation, but the program will be faster.

On Visual Studio, you can compile...
Forum: Java Apr 8th, 2009
Replies: 9
Views: 392
Posted By GDICommander
Well, I don't know what's wrong: you have created a constructor for Plane that takes an AudioClip object and a Graphics object and you have passed your objects correctly. Looks ok to me.

What's...
Forum: C++ Apr 6th, 2009
Replies: 2
Views: 254
Posted By GDICommander
If you want to remove an element and not reduce the size of the vector, erase() is not an option. You can have a vector of pointers of Suitcases and point the pointer to 0 (after freeing the memory...
Showing results 1 to 40 of 147

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC