|
Respected All
Regards!
I am David and a nowadys learning VC++.
" I have to develop the TRENDS of any Geometric Functions like Sin(),Cos() etc, against time or something else.
mean that how to draw the Functions graphically against Time or any things.
Thanks
Best Wishes.
David
david
|
|
|
|
|
Search on this website for a chart control. This will allow you to drw these functions inside a chart.
|
|
|
|
|
Hi everybody,
I am doing a project in image processing using VC++.
I want to dispaly the image to the user, for which I got all the information about the bitmap from the Serialize function. Except 24 bit bitmap all other bitmaps are not displayed properly
Should I add any extra code for displaying 1,4,8 bit bitmap?
Pls Help
|
|
|
|
|
Hi,
You should you Device-Independent Bitmaps rather Device-Dependent Bitmaps. it might solve your problem.
Jitendra.
|
|
|
|
|
Hi,
You should use Device-Independent Bitmaps rather Device-Dependent Bitmaps. it might solve your problem.
Jitendra.
|
|
|
|
|
Dear All,
My application converts images of TIFF format to TIFFG3Fax. For this i'm using WriteFile sdk method to write data to the file. It fails. But when i use _lwrite, it works fine. Can someone tell me what is the differences between these two functions. _lwrite is obsolete so MSDN says that WriteFile should be used. But it fails with error code 183 (ERROR_ALREADY_EXISTS)
Please help!
Devoirs,
____________________________________________________________
rishabhs
I think therefore I am.
|
|
|
|
|
0:000> u kernel32!_lwrite
kernel32!_lwrite:
7c838d93 8bff mov edi,edi
7c838d95 55 push ebp
7c838d96 8bec mov ebp,esp
7c838d98 837d1000 cmp dword ptr [ebp+0x10],0x0
7c838d9c 741f jz kernel32!_lwrite+0x21 (7c838dbd)
7c838d9e 6a00 push 0x0
7c838da0 8d4510 lea eax,[ebp+0x10]
7c838da3 50 push eax
0:000> u
kernel32!_lwrite+0x11:
7c838da4 ff7510 push dword ptr [ebp+0x10]
7c838da7 ff750c push dword ptr [ebp+0xc]
7c838daa ff7508 push dword ptr [ebp+0x8]
7c838dad e8ed81fdff call kernel32!WriteFile (7c810f9f)
Pretty funny huh? I think u need to paste both code snipets.
8bc7c0ec02c0e404c0cc0680f7018827ebee
|
|
|
|
|
Well, yes, that you went all the way to some disassembly
If you load the C run time source code and visually trace through it, you could see that all the 'standard' file IO calls typically devolve into CreateFile, ReadFile, WriteFile, and CloseHandle - after psending a fair bit of time mapping the fiol I/O flags and parameters into the ones that the Win32 API expects
|
|
|
|
|
Of course they are, that was the point
8bc7c0ec02c0e404c0cc0680f7018827ebee
|
|
|
|
|
those low level C functions wrap the WIN API. So if you would write windows apps for the 16 bit version, some of the code would still be usable, since it's still provided. If you used the 16 bit API however chances are that the code would become invalid since those function might no longer exist.
If you look in implementation of STL, CRT functions or whatever library MS has written, in the end they all call the WIN API to do the job. So basically all the libraries all wrappers around the system specific API.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Thank you very much this information
|
|
|
|
|
You're welcome!
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
OOPS...i shows me as Anonymous. never mind. Once again thanks for your replies.
Devoirs
____________________________________________________________
rishabhs
I think therefore I am.
|
|
|
|
|
hello,
i want to write a lotus addin to monitor the email that send and receive,but i do not any information about what to do,does someone can give me some introduce to help me in starting my work?
thanks
|
|
|
|
|
Hi,
How to go about getting data from another running application? This is wat I am trying to do. There is program A running and storing data in the hard disk. I am creating a program which will retrive the real time data. This means that when i open the program, it will retrive the current data that program A is recording. However I do not run program B when A is running. I will run B as and when needed.
Any idea?
Aaron
|
|
|
|
|
You can't - if program A is writing to disk, it will own the file until it closes it. Are you writing both programs ? If so, you should look into some interprocess communication to send this data, bypassing the file. Otherwise, you can't do it so long as program A has the file open.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Not true, you can set the "sharing" parameters so another application can read from a file while you write to it.
8bc7c0ec02c0e404c0cc0680f7018827ebee
|
|
|
|
|
Did you wrote program A? If not, than you might be in some trouble. If you wrote program A, you should change the part where you open the file for writing and modify it so it shares access to it. Read here[^] for more information on sharing files.
If you did not write program A, you can try to open the file that shares all access to it. This way, there might be a chance that you can access the file if program A did not deny all access..
Good luck.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
ok tks will look into the share format of the file. If i set it to share read, logically it should work. rite?
Aaron
|
|
|
|
|
Maybe, if the other program didn't open the file without sharing the file for writing. I think that it is better to open the with sharing all access. That way, you will be sure that you don't deny some access that program A has. Also be sure to open the file READ_ONLY.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
In my application, I want to change the height of a dialog's caption bar. Is it possible, and how to do it?
Thanks in advance.
|
|
|
|
|
I have a customized menu, which has a background, icon and sidebar.But what I can't accomplish is to remove the white bounding border(what I mean is the thin white rectangular lines surrounded the bottom and top menu item and of course the menu items in between), anyone can provide advices?
Thanks
|
|
|
|
|
I have a CTreeCtrl that contains three levels of entries all with check boxes.
Whenever a check box changes state I would like to cascade that change down to all children of that tree item. I cannot seem to figure out how to do this easily.
|
|
|
|
|
Article: Tree Control With Check Boxes
- the OnLButtonDown code shows how to detect a check change.
- the checkitems/uncheckitems code shows how to cascade through child check boxes.
Pssst. You see that little light on your monitor? That's actually a government installed spy camera. Smile and wave to big brother!
|
|
|
|
|
Thanks That Worked Great. However, I did put some code in to toggle the check states based on a spacebar keypress by filtering the OnKeyDown() message
void CCascadingCheckTreeCtrl::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
{
// Check to See if This is the Space Bar
BOOL bProcessChange = FALSE, oldcheck = FALSE;
HTREEITEM hItem = GetSelectedItem();
if ((nChar == 32) && hItem)
{
bProcessChange = TRUE;
oldcheck = GetCheck(hItem);
}
// Call the Base Class
CTreeCtrl::OnKeyDown(nChar, nRepCnt, nFlags);
// Process Teh Sate Chaneg (isf any)
if (bProcessChange)
{
BOOL newcheck = GetCheck(hItem);
if (newcheck != oldcheck)
{
CheckAllChildItems(hItem, newcheck);
}
}
}
|
|
|
|