|
Christian Graus wrote:
-it's easy.
Damn right it is! I'd like to thank you by the way for the tutorials. Getting started on a new technology is always difficult at first.
Drinking In The Sun
Forgot Password?
|
|
|
|
|
Hi all,
I would like to make a program which converts normal text to a gif. What technologies should I be looking at? GDI? GDI+?
I am looking for something lightweight and fast.
Thanks,
James
Drinking In The Sun
Forgot Password?
|
|
|
|
|
You'll need to find a library that can create a .GIF file. You can either try and find the spec and code it yourself, or find a third-party library that does that kind of conversion. Beware though, that unless you have a license from Unisys (I think that's who owns the patent on the compression used in .GIF format), your code will technically be illegal!
No generalization is 100% true.
Not even this one.
|
|
|
|
|
it would only be illegal if it's used commercially
|
|
|
|
|
"Unisys has frequently been asked whether a Unisys license is required in order to use LZW software obtained by downloading from the Internet or from other sources. The answer is simple. In all cases, a written license agreement or statement signed by an authorized Unisys representative is required from Unisys for all use, sale or distribution of any software (including so-called "freeware") and/or hardware providing LZW conversion capability (for example, downloaded software used for creating/displaying GIF images). "
this is from the Unisys website. (they've moved the pages and now i can't find the page i got this from, though it was there like two weeks ago). note that this is a change in their position from earlier times (pre-1995), when they did allow non-commercial use.
see burnallgifs and "A Software Developer's Perspective" for some interesting reading.
-c
Cheap Oil. It's worth it!
|
|
|
|
|
|
i don't know. i haven't seen anything that talks about it. but, if you're using the program to do something that ends up in public (like, using the code on a webserver to generate a web page hit counter, for example), then it's not really "personal" use.
save yourself the hassle, just use the PNG format. it compresses as well or better than GIF, is more flexible, has no patent concerns; the basic flavors are supported on all browsers.
-c
Cheap oil. It's worth it!
|
|
|
|
|
Hi,
I have a listbox (CListCtrl, report style), and I feed it with data. If its contents gets too large, a scrollbar appears on the right side.
Under some circumstances, when removing some items again, empty rows rest in the control. I do not know if it has to do something with the scrollbar (e.g. only if it disappears or so).
Any suggestions ?
A bug ?
Any equal experiences ?
Heard about it already?
On the internet I found some equal situation:
Anybody aware of bug in CListCtrl
CListCtrl funny stuff (bug or incorrect use?)
|
|
|
|
|
I like to connect to a certain port of server on Internet. For this purpose my application uses the well known function of WinSock API, connect() having prototype :
int connect( SOCKET s,
const struct sockaddr FAR *name,
int namelen
);
But, before i use this function, i have to populate "struct sockaddr" about the port and address of server. right !!
Suppose, my client application is running on a machine behind a firewall eg SOCKS. Then please tell me how can i connect to server under this condition.
I shall be thankful if you explain me clearly or write some example pseudocode. There is an example present at CP, but it is not too good to understand and it uses MFC Socket Classes.
|
|
|
|
|
|
Sorry Nish, yo didn't get my question
I know very well how to connect to server. What i want to ask is that if firewall present at client side then how can we connect to server.
|
|
|
|
|
|
Grab yourself a copy of Privoxy and have a look inside gateway.c.
|
|
|
|
|
Why does all functions that you export get so wird name?
I exported ShowPopUp() from my DLL and when I "View dependencies" it had name ?ShowPopUp@@YAXXZ.
Is there a way to get the "real" name there!?
Today wasn't my day for writing English, so... hope you understand! (as you allways do)
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C# and C++!
|
|
|
|
|
The compiler mangles function names to support overloading!
Thus if you have void Abc(int) and void Abc(char*) obviously the compiler will have to use two different names.
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
|
|
|
|
|
I've found out how to fix it!
It worked!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C# and C++!
|
|
|
|
|
I've found the solution!
I added the function name in the .def file under the EXPORTS line in the file!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C# and C++!
|
|
|
|
|
|
Oh... so that's the "right" solution?
well... I'll try that out!
Thank you man!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C# and C++!
|
|
|
|
|
I tried your advice and wrote like this:
// .h file
extern "C" void MyFunc();
// .cpp file
extern "C" void MyFunc()
{
// bla bla
}
But when I "View dependencies" there is no functions that I can see! ?
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C# and C++!
|
|
|
|
|
Rickard Andersson wrote:
But when I "View dependencies" there is no functions that I can see! ?
If you use extern "C" that's to avoid name mangling.
If you want to export a function you can use __declspec( dllexport )
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
|
|
|
|
|
The compiler decorates the names when you export using __declspec(dllexport). To have undecorated names, use a DEF file (as you found out)
James
Drinking In The Sun
Forgot Password?
|
|
|
|
|
Check out The Ultimate (DLL) Header article (in the DLL section) by Joseph Newcomer. It explains exporting, .DEF files, etc., in detail and gives a good way to manage all of this stuff.
No generalization is 100% true.
Not even this one.
|
|
|
|
|
can some give me the CODE for removing noise from an image..
thanks
looking forward from all the gurus of code
|
|
|
|
|
first, define "noise". different noises require different filters.
-c
Cheap Oil. It's worth it!
|
|
|
|