|
look at this link, i hope to be helpful.
http://www.unm.edu/~network/presentations/course/appendix/appendix_f/sld017.htm
-=Ehsan-de-Burge=-
mokhlesim
|
|
|
|
|
I need to convert bmp file to jpg file.
I haven't found anything that would explain it
Libjpeg is a messy library...
Please help me..
regards for your help.
|
|
|
|
|
GDI+ is your friend. Anything else is going to wrap jpeglib, and of those, I found paintlib quite good.
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not
as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Of course, paintlib is not for free ;//
Could you help me to choose something really tiny and free?
|
|
|
|
|
Of course ? You said free, and paintlib has always been free. Are you sure it's changed or have you just made an assumption ?
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not
as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
|
|
ROTFL !!!!!!
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not
as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
doh lol!!!1
todo....
:: insert inpirational text here ::
|
|
|
|
|
I'm looking for a snippet of code, which shows how one can convert a user SID to a text representation.
I'm writing an ATL component which allows the user to specify a useraccount name, and it will return a text representation of the SID for subsequent use for adding to groups/deleting from groups etc.
Anything would be great. Thanks.
|
|
|
|
|
LookupAccountSid() will return a "domain\\username" string for a SID. If you have the string version of the SID ("S-1-2-3234...") call ConvertStringSidToSid() first.
--Mike--
I'm bored... Episode I bored.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
thanks very much.
Theres a good example of constructing the String in the platform sdk\samples\winbase\security\winnt\check_sd\
|
|
|
|
|
Is there any version of jpeglib that is tiny, without need of using a mfc programming style, i just want to conver bmp to jpg file, nothing more.
Any help?
|
|
|
|
|
int01h wrote:
Is there any version of jpeglib that is tiny
No. JPEG compression is inherently complex.
without need of using a mfc programming style
Yes. Try googling for libjpeg.
|
|
|
|
|
Hey,
I'm trying to figure out how to remove something my little app has drawn after the user pressed a button.
Drawing code:
CClientDC dc(this);
CPen pen( PS_SOLID, 1, RGB( 0, 0, 0 ));
CPen* pPenOld = dc.SelectObject( &pen );
dc.MoveTo(50, 50);
dc.LineTo(540, 50);
So basically I just want to reset the window back to it's original state before the user pressed the button...
Cheers
|
|
|
|
|
You should be drawing in OnPaint, then you can just stop drawing the line and call Invalidate(FALSE);
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not
as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
ok, thanks for the reply! Got it working.. I have however another question: I have a CStatic control that I wish to draw within. I want to do this because I just want to update the drawing area and not the whole window. So if I have a standard window with a CStatic control in it, how would I draw within that CStatic control?
Cheers
|
|
|
|
|
Crap! I solved it... thnx anyhow!
Cheers
|
|
|
|
|
No worries - I only just got out of bed ( time difference )
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not
as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
I'm writing a program in c whose output is directed to a file (i.e. myprog > myfile).
My problem is that whenever I print a newline character, printf("\n"), the program outputs both a carriage return and a newline. So while the output should have just one character whose value is 10, the program outputs a 13 followed by a 10.
I this this might have something to do with Windows XP. Has anyone else heard of this?
I would greatly appreciate ANY help that can be offered.
Thanks,
Steve
|
|
|
|
|
SHaroz wrote:
My problem is that whenever I print a newline character, printf("\n"), the program outputs both a carriage return and a newline.
This is the character secuence used to denote "new line" in MS-DOS and derived products (like Windows XP). It's handled by the CRT (C RunTime library) - whenever it sees a LF, it emits CRLF.
To get "correct" line endings, open the file in binary mode. If, like in your example, it's supposed to work even with stdout, I believe you have to freopen "CONOUT$" (or whatever it's called - look up the docs for CreateFile).
++luck;
|
|
|
|
|
I tried mystream = freopen("myfile.out", wb, stdout) and it worked. The newline prints as one character. My problem is that I don't know how to find the file that stdout points to. I could avoid that if I knew a way to simply change the mode of stdout. I also thought that if the program is run like this "myprog > output.txt", argv[2] would be "output.txt". But that didn't work.
Keep in mind that this needs to be ANSI compatable, so I can't use any function that starts with an underscore (i.e. _setmode).
I tried looking up "CONOUT", but found nothing.
Do you think you could offer any more advice?
Thanks,
Steve
|
|
|
|
|
SHaroz wrote:
Keep in mind that this needs to be ANSI compatable
You didn't say that in your original post.
If you need to stay within the bounds of ANSI C, and you still need to emit only LF when running on Win32 (which is an "illegal" Win32 EOL sequence), then you might try linking with binmode.obj.
If that doesn't work, the only thing I can come to think of is to do your output to an internal string buffer, and then resort to fwrite.
++luck;
|
|
|
|
|
I have a program that plays multiple WAVS at the same time. What I cant figure out how to do is adjust the volume levels and panning for each individual WAV during playback. The only info Ive found is about changing the master WAV device volume. Can someone shed some light on how I can change the volumes and pans of individual WAV files (all of which are playing through the main WAV device output)?
Thanks!
Emil
|
|
|
|
|
I think you should look into using the directxsound stuff.. sounds like your limited without it. No pun intended!
Lata
|
|
|
|