|
Hi Everybody,
Can any one tell me how to create a custom fonts in VC++. Is there any SDK to create our own custome fonts.
Thanks & Regards,
Promise
If you have faith in the cause and
the means and in God, the hot
Sun will be cool for you.
|
|
|
|
|
What is the best way to arrange a ListCtrl to be re-drawn when the Window has been Minimised.
At present the CListCtrl is not on the dialog following a restore from a Minimised.
|
|
|
|
|
Catch WM_SHOWWINDOW, and force a redraw of the control with RedrawWindow() when the window is restored.
~RaGE();
|
|
|
|
|
I want to generate a message handler say COM_HANDLE which gets called, as soon as any character is received on COM1 port, from an external hardware. How can I make such an handler in VC++ ??? It will be great if I can get a code sample for doing it.
|
|
|
|
|
|
Hello everybody,
I have a .swf file that contains a button(Flash).
I want to replace this button in my mfc app.
HOW?
Best wihes.
Thanks.
|
|
|
|
|
repost
TOXCCT >>> GEII power
|
|
|
|
|
|
Hi all out there... i have a little problem with using DirectShow..
i got errors like the those shown below.. is there any1 who know how to debug it?
KNN error LNK2001: unresolved external symbol _CLSID_AudioCompressorCategory
KNN error LNK2001: unresolved external symbol _CLSID_FileWriter
KNN error LNK2001: unresolved external symbol _CLSID_FilterGraph
KNN error LNK2001: unresolved external symbol _CLSID_SystemDeviceEnum
KNN error LNK2001: unresolved external symbol _IID_IAMStreamConfig
KNN error LNK2001: unresolved external symbol _IID_IBaseFilter
KNN error LNK2001: unresolved external symbol _IID_ICreateDevEnum
KNN error LNK2001: unresolved external symbol _IID_IFileSinkFilter
KNN error LNK2001: unresolved external symbol _IID_IGraphBuilder
KNN error LNK2001: unresolved external symbol _IID_IMediaControl
KNN error LNK2001: unresolved external symbol _IID_IMediaEvent
The document from DirectShow says that Strmiids.lib are used to exports class identifiers (CLSIDs) and interface identifiers (IIDs). All DirectShow applications require this library. So i am wondering whether did i link this lib to my project. Is including <dshow.h> just enough? But y am i still having the same errors???
|
|
|
|
|
|
yes,i did.
but there s nothing changed
|
|
|
|
|
i have my application derived from CScrollview class. now i want to use Windows common font dialog box so that i can change the font and color for wjatever i write in my view.
I am able to write using the windows default font. i have made an object using class CFontDialog. got the face name of the selected font in logfont variable, but how can i use the selected font to the view.
Please help me!!
Regards
Vineet
|
|
|
|
|
Hello to everybody,
I tried to use the implementation of George Anescu[^] for encoding some text but I'm not sure I encrpyt correctly the data..... datas are taken from a buffer and are in plaintext, I allocate a buffer using
<br />
char *buffer_in=(char*)calloc(strlen(mainbuffer)+1,sizeof(char));<br />
char *buffer_out=(char*)calloc(strlen(mainbuffer)+1,sizeof(char));<br />
and the encrpyt it using
<br />
oRijndael.MakeKey(key, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",16,16);<br />
oRijndael.Encrypt(buffer_in, *buffer_out, lenght,2);
where lenght is strlen(mainbuffer)+1;
when I've executed oRijndael.Encrypt(....) I've got into buffer_out the data encrypted, but using strlen I get a lenght < of buffer_in, should I use _msize? the problem is that using oRijndael.Decrypt I've a lenght that's not the one of buffer_in,so Decrypt fails...
Hope someone has used this implementation of AES and can help me, thanks
Paolo
|
|
|
|
|
hello,
how do i know that the enter key is pressed in CEdit control. Which message notifies this event ?
I want to set focus to another control when Enter key is pressed in the edit control. Can u help plz?
Thankx,
Abin.
|
|
|
|
|
Hi,
You can handle this @ PreTranslateMessage.
Sujan
|
|
|
|
|
I have a video processing application that takes input for a web camera, do something on each frame, and immediately display the result. The application runs quite well in the beginning, with frame rate reaching up to 20fps. The problem is, it seems that the application slows down after it has run for a long time (something in the range of 15 hours or so). At this time, the frame rate is only 4 fps or so. I know it is impossible for someone to pinpoint what the problem exactly is, what I want to know is what are the possible causes for this. I have been scratching my head for the past few hours and the solution still eludes me.
Some information about my application that may be useful:
1. My app is a directshow filter
2. There is no harddisk access involved, as my app only process input frames (obtained from a webcam) and immediately display them on screen
3. I didn't detect any memory leaks, when my app's performance dropped to 4fps, it is only consuming around 10% of the available memory
4. After the performance dropped to 4fps, sometimes the fps count can increase again up to ~8fps, but it never reaches the original fps count (20 fps)
5. I have tested the app on several PCs with different configurations, and all of them exhibit the same behaviour
Thanks!
|
|
|
|
|
3. I didn't detect any memory leaks, when my app's performance dropped to 4fps, it is only consuming around 10% of the available memory.
Two ideas come to my mind:- Could it be a memory fragmentation issue? Do you happen to heavily allocate and free memory for each frame? If so, maybe you can try redesigning your stuff so that memory is reused instead, or something along that direction.
- Maybe you're running out of GDI resources?
HTH
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Indrawati wrote :3. I didn't detect any memory leaks,
Check for other leaks also, different handles like registry, files, thread etc, etc ....
There is no spoon.
mail
|
|
|
|
|
Shouldn't an int only be able to hold 32767 positive integer?
All of the integers a, b and c exceed the limit, and it runs.
The c shows a value of 552222, which is correct.
Could anyone tell me why can it exceed its limit? Thanks.
<br />
int a = 330000;<br />
int b = 222222;<br />
int c = a + b;<br />
<br />
printf("%d\n", c);<br />
<br />
-----------------------------
C++ without virtual functions is not OO. Programming with classes but without dynamic binding is called "object based", but not "object oriented".
|
|
|
|
|
16 bit vs 32 bit
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it!
|
|
|
|
|
|
Thanks guys.
This is the code from limits.h
<br />
#define INT_MAX 2147483647 /* maximum (signed) int value */<br />
#define UINT_MAX 0xffffffff /* maximum unsigned int value */<br />
#define LONG_MIN (-2147483647L - 1) /* minimum (signed) long value */<br />
#define LONG_MAX 2147483647L /* maximum (signed) long value */<br />
The INT_MAX state that the max value is 2147483647, this is the same
max value in long int according to "The Complete Reference in C" by
Herbert Schildt. And look, the value of LONG_MAX is the same as INT_MAX
except for the additional L in the end.
Question 1:
Even the sizeof(int) and sizeof(long int) give the same value, 4. Does that
mean int can hold the same amount of integers as long int?
Question 2:
Another interesting fact is that, the max value of unsigned int is
FFFFFFFF, that is 4294967295, which is the double of MAX_INT. And
the value of FFFF is 65535, and that is the max value of what the
book said.
So, FFFFFFFF is 32-bit address, and FFFF is 16-bit address?
Is that right?
Question 3:
Oh, if computer is binary system, why would the memory address represent
in hex?
Thanks
-----------------------------
C++ without virtual functions is not OO. Programming with classes but without dynamic binding is called "object based", but not "object oriented".
|
|
|
|
|
Alex Ngai wrote:
Question 1:
Even the sizeof(int) and sizeof(long int) give the same value, 4. Does that
mean int can hold the same amount of integers as long int?
Yep.
Alex Ngai wrote:
So, FFFFFFFF is 32-bit address, and FFFF is 16-bit address?
Is that right?
Yep. Or rather, 0xFFFFFFFF needs 32 bits for storage while 0xFFFF needs only 16 bit for storage.
Alex Ngai wrote:
Question 3:
Oh, if computer is binary system, why would the memory address represent
in hex?
I guess you ask why most programmers use hex when working with memory addresses and other unsigned values.
It's probably because it's easy to map hex to binary and back again.
"After all it's just text at the end of the day. - Colin Davies
"For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus
|
|
|
|
|
jan larsen wrote:
It's probably because it's easy to map hex to binary and back again.
yep, but try also to write a 32bits binary address and you will quickly come back to hex notation...
0hF1D5AB7C == 0b11110001110101011010101101111100
choose your side...
TOXCCT >>> GEII power
|
|
|
|
|
He he he, and imagine the fun we would have when coding for a 64 bit machine.
"0b000110000000000000010100000000000000000000000011000000011100 Hmmm, did I miss a 1 somewhere..."
"After all it's just text at the end of the day. - Colin Davies
"For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus
|
|
|
|