Search Results

Showing results 1 to 40 of 83
Search took 0.01 seconds.
Search: Posts Made By: nmaillet
Forum: Java 25 Days Ago
Replies: 3
Views: 212
Posted By nmaillet
The == operator does not compare the characters of the string. It checks to see if they are referring to the same object. Use the mail.substring(N).equals("hotmail.com") method to compare the...
Forum: JSP Aug 26th, 2009
Replies: 2
Views: 326
Posted By nmaillet
Since there is no database is available, you could always check with the other web servers before using a UID. There could be two ways of implementing this:
- either each server keeps track of...
Forum: C++ Aug 6th, 2009
Replies: 7
Views: 204
Posted By nmaillet
Sort of, the first one simply tells the system to request a repaint given those conditions. The UpdateWindow(hWnd); function on the other hand, allows you to request an update when you need one. If...
Forum: C++ Aug 5th, 2009
Replies: 7
Views: 204
Posted By nmaillet
WindowClass.style = CS_HREDRAW | CS_VREDRAW
This causes the system to call request a repaint of the window when the width of the window is changed (CS_HREDRAW) or the height of the window is changed...
Forum: C# Aug 5th, 2009
Replies: 4
Views: 408
Posted By nmaillet
When creating Form 1, use this method:
Application.Run(new Form1());
This should set Form 1 as the main window of the program, and should terminate the program when it is closed.
Note: This calls...
Forum: Windows NT / 2000 / XP Aug 4th, 2009
Replies: 5
Views: 399
Posted By nmaillet
I'm not sure how you're going about this. Don't try and downgrade in Windows, boot from the Windows XP installation disk if you have one. Re-imaging would require you to have a PC image created...
Forum: Java Aug 4th, 2009
Replies: 1
Views: 253
Posted By nmaillet
This is an decoding problem. By passing a byte array into a String constructor, it does not consider the exact value, it uses the default character set of the system (probably UTF-8). Converting it...
Forum: C# Aug 4th, 2009
Replies: 16
Views: 85,262
Posted By nmaillet
Take a look at this:
using System;
using System.Collections.Generic;

public class Global
{
private static readonly List<Global> CLASSES = new List<Global>();
public static int Count
...
Forum: Storage Aug 4th, 2009
Replies: 0
Views: 315
Posted By nmaillet
Hi all,

Does anybody know any good websites for finding benchmarks on a variety of storage devices (i.e. HDD, Flash drives, SSD, etc.)? Preferably where different types of connections, such as...
Forum: Computer Science Aug 4th, 2009
Replies: 5
Views: 449
Posted By nmaillet
I am too tired right now to try that formula out. But you could consider:
if(A.angle < 180)
if(B.angle > A.angle && B.angle < A.angle + 180)
//turn counter-clockwise
else
//turn clockwise...
Forum: C# Aug 4th, 2009
Replies: 16
Views: 85,262
Posted By nmaillet
efficacious,

You could just add a static List to a class. For example:

public class Global
{
//instance variables

static List<Global> CLASSES = new List<Global>();
public static...
Forum: C# Aug 3rd, 2009
Replies: 6
Views: 374
Posted By nmaillet
The Suspend method has been deprecated because it is unsafe, since you are never certain where you stopped the threads execution. Instead you could declared a boolean variable, and then check it at...
Forum: Java Jul 31st, 2009
Replies: 6
Views: 332
Posted By nmaillet
Try looking around this site: https://labs.ericsson.com/apis/mobile-java-communication-framework/forums/general-development-information/sony-ericsson-sdk-224-javatm-me-platform
Forum: Java Jul 30th, 2009
Replies: 3
Views: 332
Posted By nmaillet
I doubt this is possible without the use of JNI, simply because I don't believe that Java has a method to encapsulate other application's windows as a Java Window object (could be wrong though).
Forum: C++ Jul 30th, 2009
Replies: 5
Views: 225
Posted By nmaillet
You're having a problem with scope. You declared it in the main function, as well as within the do statement. Therefore when you set it in the do statement it will set the variable in the do...
Forum: Java Jul 29th, 2009
Replies: 8
Views: 476
Posted By nmaillet
Try looking at http://java.sun.com/docs/books/tutorial/. I can't really tell you if they are really good tutorials (as I learned in high school/university), but it should give you an idea of Java...
Forum: Java Jul 28th, 2009
Replies: 8
Views: 476
Posted By nmaillet
First, the switch statement must be contained within a method. Also, there should not be a semicolon after switch (s).
Forum: C++ Jul 28th, 2009
Replies: 2
Views: 267
Posted By nmaillet
Take a look at http://msdn.microsoft.com/en-us/library/8etzzkb6(VS.71).aspx. The rename attribute doesn't actually rename anything within the DLL, it simply gives an alias for any property to avoid...
Forum: C# Jul 27th, 2009
Replies: 3
Views: 282
Posted By nmaillet
One thing I might recommend, is adding some header information to the file. It may not be necessary for your needs, but you may want to simply add some version information, just in case you modify...
Forum: C# Jul 26th, 2009
Replies: 7
Views: 296
Posted By nmaillet
i = i + 1 would be equivalent to ++i. Since the expression (i = i + 1) evaluates as i + 1.
Forum: C# Jul 26th, 2009
Replies: 7
Views: 296
Posted By nmaillet
I always though it was executed after the entire expression, however if you run this code:
class Program
{
static void Main(string[] args)
{
int i = 0;
int d = (i++) +...
Forum: C++ Jul 25th, 2009
Replies: 2
Views: 263
Posted By nmaillet
Setting the console font is platform dependent, therefore you'll need to use the Windows SDK for this. Take a look at http://msdn.microsoft.com/en-ca/library/ms682073(VS.85).aspx for console...
Forum: C++ Jul 25th, 2009
Replies: 3
Views: 344
Posted By nmaillet
The default constructor is just used when no other constructors have been declared. To create a no-arg constructor (override the default constructor):
class MyClass {
public:
MyClass();
};
...
Forum: C++ Jul 25th, 2009
Replies: 6
Views: 190
Posted By nmaillet
When you create a new array, the elements in the array are not initialized to any default value. Therefore whatever happens to be in the memory where the array is created, it will be that until you...
Forum: Java Jul 25th, 2009
Replies: 2
Views: 406
Posted By nmaillet
The problem is that it cannot find the class com.sun.gluegen.runtime.DynamicLookupHelper when initializing a GLCanvas. Did you include the gluegen-rt.jar library in your classpath?
Forum: C# Jul 24th, 2009
Replies: 14
Views: 601
Posted By nmaillet
Well, the file shown in the image says it uses UTF-8 encoding; try using the UTF8Encoding class instead of the ASCIIEncoding class.
Forum: C# Jul 17th, 2009
Replies: 6
Views: 788
Posted By nmaillet
The new ThreadStart(Method1) simply encapsulates a method that will be called when the thread is started. The new Thread(new ThreadStart(Method1)) creates a new Thread object that can be used to...
Forum: Java Jul 16th, 2009
Replies: 2
Views: 209
Posted By nmaillet
Could you please post some code? I just test the method, and it seems to work fine for me. You could try repainting the tabbed pane, although it shouldn't make a difference.
Forum: C++ Jul 3rd, 2009
Replies: 3
Views: 204
Posted By nmaillet
A few things: first of all, make the second if statement else-if; second, make the last else-if statement else. Also, pushups should be >50/>30. You should be more carefull with your brackets too:...
Forum: Java Jun 30th, 2009
Replies: 1
Views: 204
Posted By nmaillet
In order to use a native library, you would need to use the Java Native Interface found at http://java.sun.com/javase/6/docs/technotes/guides/jni/index.html. You can then interact with the DLL using...
Forum: Java Jun 27th, 2009
Replies: 1
Views: 370
Posted By nmaillet
It's most likely trying to load a JAR file, in the bin folder relative to the location of the EXE. So if you have the examengine.jar file, you should put it in a bin folder, which should be in the...
Forum: C# Jun 26th, 2009
Replies: 4
Views: 420
Posted By nmaillet
The FileStream.Read method uses the offset to define a position in byte array, not in the file, file position is 0, and increases each time a byte is read from the file. Or you can use...
Forum: C++ Jun 18th, 2009
Replies: 11
Views: 662
Posted By nmaillet
Correct me if I'm wrong but I don't think your actually intending to read the file as binary. Your file contains the "characters" 0069... So 0 would give you 48, 6 would give you 54, etc. according...
Forum: Visual Basic 4 / 5 / 6 Jun 18th, 2009
Replies: 3
Views: 405
Posted By nmaillet
First, the DLL's required for the executable in the Debug folder, are used for debugging purposes only, therefore you should always use the executable in the Release folder when distributing an...
Forum: VB.NET Jun 12th, 2009
Replies: 1
Views: 770
Posted By nmaillet
Well, one way you could go about it, is using the Dictionary class (in System.Collections.Generic). Set the key to string and the value to integer (Dictionary<string, int>). Then for each column,...
Forum: VB.NET Jun 11th, 2009
Replies: 2
Views: 996
Posted By nmaillet
I don't believe that support for these methods will be removed in any future release, for backwards compatability. The reason for it being marked as obsolete is because when suspending a thread, you...
Forum: VB.NET Jun 11th, 2009
Replies: 1
Views: 486
Posted By nmaillet
I believe this is what you are looking for: http://msdn.microsoft.com/en-ca/library/system.windows.controls.mediaelement.aspx. This uses the WPF, I'm not sure if you can use this with WinForms, if...
Forum: C++ Jun 11th, 2009
Replies: 3
Views: 276
Posted By nmaillet
If you are using Visual Studio, there is an option in the project properties, to make it either a static library (.lib) or a dynamic library (.dll), or any other IDE should be similar. Then you can...
Forum: C# Jun 11th, 2009
Replies: 2
Views: 277
Posted By nmaillet
An instance method is called by referencing an instance to a class. Therefore it can reference any member in the instance of a class. A static method is called by referencing the class, it can only...
Forum: C++ Jun 11th, 2009
Replies: 2
Views: 373
Posted By nmaillet
I believe what you are looking for is the EnumPrinters function in the Windows API. http://msdn.microsoft.com/en-ca/library/dd162692(VS.85).aspx
Showing results 1 to 40 of 83

 


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

©2003 - 2009 DaniWeb® LLC