|
Hi hamid,
Its a perfect docs. But, I guess it gives the details of threads and synchronisation mechanism...Can u pls advice anything from where I will get the details of communication between thread?
Thx
Himangshu
|
|
|
|
|
You'll find everything you need to know here[^].
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
char buffer[] = "This is a test of the memset function";
Could help me to explain this declaration: why char, but buffer is assigned to a string?
Thanks
|
|
|
|
|
the [] indicates an array.
So it is an array of characters.
Which means string.
« Superman »
|
|
|
|
|
c++ arrays are declare with [] and data type like this when you use of this code this char array can be use as a string and you initialization without any size.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Because in C, a "string" is just an array of char that ends with a '\0' character. There are some instances (this being one of them) when a string literal and an array of char are compatible types.
|
|
|
|
|
Does anyone have a sample program (+ source code) that uses the Vista magnification APIs? Or a link to such a sample program? I'm looking for a working sample program, not the docs for the API.
|
|
|
|
|
Hi, thomas!
Thanks for your reply.
I think I had found the reason. After I delete some variables that aren't be used any more, the exception is missing. But another exception is occur same as this when I use the code following:
time_t ltime;
struct tm *gmt;
png_time ttime;
time (<ime);
gmt = gmtime (<ime);
png_convert_from_struct_tm (&ttime, gmt);
png_set_tIME (png_ptr, info_ptr, &ttime);
I trace this exception into MFC and I found when a function named _mlock was invoked in the __tzset function, the exception occur. The related code like this:
_mlock( _TIME_LOCK );
I don't know the reason and hope you or others can give me some suggestion. Thank you!
By the way: if the title of this message offend someone, I'm very sorry because this event is an emergency really.
Regards!
whiteclouds
modified on Thursday, January 1, 2009 8:20 PM
|
|
|
|
|
Hi,
0xC0000005 is an access or privilege violation, which means you can't access something;
quite often it indicates an invalid pointer, such as NULL. It could also mean you don't
have the required privileges to do something.
suggestion: look at your source code, and all the variables that appear in the line that fails.
|
|
|
|
|
Hi
I can't get your meaning. I check my code again. The address of the variable ltime is valid. All things looks like in order. But the error always occur.
Help!
Regards!
whiteclouds
|
|
|
|
|
|
I think I had resolved this problem. My solution is to instead the time_t with SYSTEMTIME structure. Then everything looks right. Otherwise I don't know the detail of it. I think maybe this structure was obsoleted.
|
|
|
|
|
Glad you got it working.
Thanks for sharing this.
|
|
|
|
|
I am developing an application using C++ and MFC. Please consider the following code from a Windows RC (Resource Script) file:
<br />
<br />
IDR_MAINFRAME MENU<br />
BEGIN<br />
POPUP "&File" {<br />
MENUITEM "&New", CALC_FILE_NEW<br />
MENUITEM "Calculate" CALCULATE<br />
MENUITEM "Abort Calculation" ABORT_CALCULATION,GRAYED<br />
MENUITEM "&Exit", CALC_FILE_EXIT<br />
}<br />
.<br />
.<br />
.<br />
I would expect the third menu selection to be grayed out. That is, the user should not be able to select it. However, this is not what happens. I would like to know why?
Thanks
Bob
|
|
|
|
|
I think you also have to specify that it's disabled as well.
|
|
|
|
|
Richard,
Thanks for the response. However, I do not think DISABLED is a valid option for creating the menu item. When I tried it, it would not going through the resource compiler. The line I tried
was:
<br />
MENUITEM "Abort Calculation" ABORT_CALCULATION,GRAYED,DISABLED<br />
Was that what you meant?
Bob
|
|
|
|
|
You're right. I checked the docs, and the word I was thinking of is "INACTIVE", not "disabled".
However, it says that GRAYED should do what you are looking for.
Can you say what behavior you are observing when you use just GRAYED?
|
|
|
|
|
Richard,
What I would like is the menu option to be set in such a way that the user cannot select it. In addition, when the menu is displayed, it should be displayed in such a way that it looks disabled to the user.
Thanks
Bob
|
|
|
|
|
I see that you are missing commas in a couple of locations in your MENUITEM list.
Perhaps that is the cause of the malfunction?
You're missing commas on the Calculate and Abort Calculation menu items.
|
|
|
|
|
Richard,
Thanks for the response. I tried adding those missing commas as you suggested but it did not solve my problem.
Bob
|
|
|
|
|
Hi
I need Amcap c++ source code(Active Movie Capture c++ sample), but I can not not find it in visual studio folder or in internet!
please give a link to it's source code,
thanks
www.logicsims.ir
|
|
|
|
|
|
Thank you
But I can't download Windows SDK, it's too big, I just wanna Amcap source code, I know it's DirectShow sample, and I've seen that 'How to compile AMCap' page,
www.logicsims.ir
|
|
|
|
|
Would you direct me to an address to download a "C++" Base64 De/En coding Class for free please?
Thank you masters!
|
|
|
|
|