|
I thought you were on holiday? You're working way too hard.
Congrats again on the new job.
Jon Sagara
What about ?
|
|
|
|
|
Jon Sagara wrote:
Congrats again on the new job.
Thanks - I'm really stoked. Yes, I am on holiday, but I can't do without my dose of CP every day. Plus I'm on cable here, so I'm downloading lots of videos....
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Picture the daffodil. And while you do that, I'll be over here going through your stuff.
|
|
|
|
|
Christian Graus wrote:
They're going to start up again now that I have a new job. Too bad it's probably a bit late now, but I'm going to do a series on image processing.
Nah, never to late and I'll surely be waiting for the series. I just love all the options that are available in GDI++, though I think maybe they made it to easy. Maybe I'm a control freak.
Christian Graus wrote:
I don't get why Color is the only class with built in conversion to the old types, if I were to write Rect, operator RECT is the third thing I would include ( after copy constructors and operator=).
You think? Just when I get confortable with doing it this way, i have to get used to it another way. The conversions would of been nice.
|
|
|
|
|
Jay Beckert wrote:
I just love all the options that are available in GDI++, though I think maybe they made it to easy. Maybe I'm a control freak.
I agree - I am VERY glad I learned to do all the stuff GDI+ does 'by hand' before GDI+ came along and started doing it for me.
Jay Beckert wrote:
You think? Just when I get confortable with doing it this way, i have to get used to it another way. The conversions would of been nice.
I'm sorry you misunderstood me - I am saying the same thing, I said the 'third thing' only because I would always write the copy constructor and operator= for a class before pretty much anything else. I thought if I said 'first thing' as a turn of phrase someone might ask me why
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Picture the daffodil. And while you do that, I'll be over here going through your stuff.
|
|
|
|
|
Christian Graus wrote:
I'm sorry you misunderstood me - I am saying the same thing, I said the 'third thing' only because I would always write the copy constructor and operator= for a class before pretty much anything else. I thought if I said 'first thing' as a turn of phrase someone might ask me why
I understood you Christian. I think I confused you; I said "You think?" as in you would think they added the conversions just as Color. Sorry about that. I'll point at some one else and say we're with them. Hows that?
|
|
|
|
|
I'm looking for a way of taking an image file (bmp, gif or jpeg) and displaying or printing it with the same sort of quality that MS Word produces when the image has to be strected or shrunk. MS Word does some sort of dithering to make the edges fuzzy, whereas most stretch routines just lose/gain solid pixels.
Anyone got any code to do this or can suggest something?
Thanks,
Keith Worden
|
|
|
|
|
This looks like it might work for you:
Two Pass Scaling using Filters
farewell goodnight last one out turn out the lights Smashing Pumpkins, Tales of a Scorched Earth
|
|
|
|
|
For image display, I found in the past that <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/mmfunc_76if.asp">DrawDibDraw</a> does a fairly good job (smooth scaling, dithering...)
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
|
I do not know how to create a String , I'd like to do something like
String s = new String("hello");
and I'd like also to know how to compare 2 strings
thanks
Pierre
|
|
|
|
|
Look up the class CString in MSDN.
Jon Sagara
What about ?
|
|
|
|
|
Use the Class CString and the function method Compare or CompareNoCase....
CString str = _T("Hello");
if(str.Compare("Hello") == 0)
{
AfxMessageBox("Equal");
}
Regards
APATHY ERROR: Don't bother striking any key. Application has reported a "Not My Fault" in module KRNL.EXE in line 0200:103F
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
Perhaps this question has been asked before but I could not find it.
How can I get the netbios name of a computer in my lan if I only know its ip number ?
Orcun Colak
|
|
|
|
|
|
Has anyone been able to get around the problem when using CBitmapDialog. The problem is that you cannot set the text colour of static controls.
Any help would be much appreciated.
Andy.
|
|
|
|
|
I guess you're referring to Joerg Koenig's <a href="http://www.codeguru.com/dialog/BmpDlg.shtml">CBitmapDialog</a> . If so, I think you only have to change m_HollowBrush creation code, which in the orignal code is
m_HollowBrush.CreateStockObject(HOLLOW_BRUSH) to something like
m_bkbrush.CreateSolidBrush(RGB(255,0,0));
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Does anyone know where i can find an XML parser, so that I can store settings in an XML file instead of an ini file?
==================================================
When Your Mind Wonders...Where Does It Go???
|
|
|
|
|
Is there a reason you wouldn't just use the Microsoft XML Parser, 3.0 (SP2) or 4.0?
|
|
|
|
|
Well, if he hates COM he can use Xerces, but MSXML is MUCH faster.
I vote pro drink
|
|
|
|
|
I didnt notice there was MSXML in the sp, i havent exploreed it much. Ill have ago using it.
=======================================================================
When Your Mind Wonders....Where Does It Go???
|
|
|
|
|
Hello!
Help me.
How I can write Add-In for Visual C, witch catch all action of manager Visual Studio (e.c. ClassView - "add New class", "add method/property", ...).
***
and where I can read about add-in for visual studio
|
|
|
|
|
I have two object which i want treated the same.
A parent object is going to have a pointer member varible, which will either point to one of the objects or the other. I intended on achieving this by creating a header which defined a virtual interface from which the 2 objects inherit. Allowing the parent object to call standard member function present in both.
My problem is that one function present in both the child objects required different parameters.
How can i achieve this?
Cheers
Rich
|
|
|
|
|
Short answer is "cannot be done". if the functions accept different parameters, then they are not the same function, and you just cannot call them from the same virtual interface function.
However, there's probably a solution to your particular problem, but more info would be needed. Could you please ellaborate on which arguments are required in either case? How will the parent class determine which parameters to use, as it does not know the actual type of its member variable pointer beforehand?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Basically i wanted the parent class to be totally unaware of which child object was been used to achieve my task.
Seemed achieveable apart usingpure vritual interfaces apart from one parameter, it's a pointer to a 2d array in one of the object and a pointer to a string in another.
Guess my two option are:
* Use a void* and cast appropiately in each of the objects.
* Use an intermedia object which combines the two child objects.
Any other ideas? Think i am going to have to get my old uni notes out!
Thanks Again
Rich
|
|
|
|
|
* Use a void* and cast appropiately in each of the objects.
This is a no-no in OOP.
* Use an intermedia object which combines the two child objects.
Maybe, but I don't have a clear idea of your general scenario to be able to ellaborate mor on this approach. The basic question here is (IMHO): How does the parent object obtain the argument to its (of unknown type) child object? Depending on the various agents involved in the argument-passing thing, one of several design patterns can be applied.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|