|
can we make any control(like edit box) as the standard output device so that the result of the process can b directly shown in that particular edit box without any interaction ..............i think it is possible when we run the procees using createProces() and pass appropriate arguements.......but i am not able to complete it
AbidBhat
|
|
|
|
|
This is a good place to start
Clickety[^] and then follow the yellow brick road.
I have beaten you, Rajesh.
Maybe could win the next race.
Sorry Rajesh, I just couldn't resist
codito ergo sum
|
|
|
|
|
BadKarma wrote: I have beaten you, Rajesh.
Maybe could win the next race.
Okay, you win this time. But, I've replied him, too.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
lol !!!!!!!!
Rajesh R Subramanian wrote: you win this time
that is because u expected this tomorrow
Rajesh R Subramanian wrote: He'll ask it again tomorrow
his trick is to ask before that
|
|
|
|
|
This[^] must help you.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Process started successsfully......but i want to display the output in an edit box rather than console window ..........how to do it
AbidBhat
|
|
|
|
|
|
He'll ask it again tomorrow and I'll link him to your reply here.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
modified on Saturday, February 16, 2008 3:35 AM
|
|
|
|
|
I was not kidding, if that was not his required solution, i would expect him to answer why and what he actually needed.
|
|
|
|
|
I'm serious too. I'm seeing him asking the same thing over and over from various IDs in the past week. So, I said if he asks it again, I'll link him to your reply which would link him to David's reply which would link him to the MSDN article.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
agree,i misunderstood then your post has spelling mistake "like" change to "link".
|
|
|
|
|
Fixed, thanks.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
You can creat a MFC process or windows Application
|
|
|
|
|
Can you be more specific about your program?
|
|
|
|
|
I have to develop something of a in-house readonly database. The records are of fixed length - which is where my question comes in.
Because the database will potentially be quite large, mapping the file to memory first is not really an option - it's a server environment too so each request would drown the server with memory consumption.
For this reason, I opted to go with a simple readonly fixed record database. Where maybe a dozen records are used or read per request - but they are different each request to again mapping to memory doesn't seem practical - except maybe for temporary caching.
Anyways, my question...does the block size of the file system dictate the ideal/optimum record size?
For instance, if you setup a system with a block size of 4096, would my code realize best performance if each record was fixed at 4096 or a multiple of that???
4096 is plenty for the records I wish to store, but should this value be configurable so different systems will realize better performance?
Again, not repeat myself, but the pressing quesiton is: If the block size is 4096, should each record be that size as well - remember that I will index each record by diving the filesize by 4096 and then fseek and read 4096 bytes from that point. So I wonder, is this the right choice to make when implemenitng this custom database?
p.s-any reference material you can include is appreicated - especially if its Linux related as that the OS I'm targeting. :P
Cheers
I'm finding the only constant in software development is change it self.
|
|
|
|
|
hi
i have a application to encrypt and decrypt the data .
when i compile it says that "can not open file 'Advapi32.lib'" .
can any one help me how to Tell the linker to link the
Cryptography API.
#pragma comment(lib, "Advapi32.lib")
k.guru moorthy
|
|
|
|
|
You need to specify its path in: project properties/Linker/General/"Additional Library Directories". (for VC2005).
|
|
|
|
|
difference between CPaintDC and CClientDC:i am using MFC for this application
when i am using CClientDC pdc(this),i am able get my image (video)fully (SIF)
but when i use CCpaintDC pdc(this);i am getting the image size less than SIF.
also in the first case m getting some garbage data also at right end along wid image
<br />
#define RESW 384<br />
#define RESH 240<br />
<br />
#define STWID 140<br />
#define STHT 50<br />
<br />
int m_nStretchWidth = 0;<br />
int m_nStretchHeight = 0;<br />
<br />
UCHAR* thisImage = (UCHAR*) video_outbuf1; <br />
<br />
CRgn updatergn;<br />
updatergn.CreateRectRgn(0, 0, 320+STWID, 240+STHT);<br />
InvalidateRgn(&updatergn, FALSE);<br />
<br />
try<br />
{<br />
m_oImageInfo = new BITMAPINFO;<br />
<br />
m_oImageInfo->bmiHeader.biSize=sizeof(BITMAPINFOHEADER);<br />
m_oImageInfo->bmiHeader.biWidth = RESW;<br />
m_oImageInfo->bmiHeader.biHeight = -RESH;<br />
m_oImageInfo->bmiHeader.biPlanes = 1;<br />
m_oImageInfo->bmiHeader.biBitCount = 24; <br />
m_oImageInfo->bmiHeader.biCompression = BI_RGB;<br />
m_oImageInfo->bmiHeader.biSizeImage = RESW* RESH* 3;
<br />
LPBITMAPINFO poImageInfo = (LPBITMAPINFO)m_oImageInfo; <br />
<br />
CClientDC pdc(this);
<br />
if ((poImageInfo != NULL) && (thisImage != NULL))<br />
{<br />
int nHorz = poImageInfo->bmiHeader.biHeight;<br />
int nVert = poImageInfo->bmiHeader.biWidth; <br />
if( nHorz == 240 && nVert == 640 )<br />
{<br />
m_nStretchWidth = 640;<br />
m_nStretchHeight = 480;<br />
}<br />
else if( nHorz == 288 && nVert == 704 )<br />
{<br />
m_nStretchWidth = 768;<br />
m_nStretchHeight = 576;<br />
}<br />
else<br />
{<br />
m_nStretchWidth = poImageInfo->bmiHeader.biWidth;<br />
m_nStretchHeight = poImageInfo->bmiHeader.biHeight;<br />
}<br />
<br />
<br />
SetStretchBltMode(pdc.m_hDC,3);<br />
<br />
if(pdc && pdc.m_hDC)<br />
{<br />
int rc = ::StretchDIBits(pdc.m_hDC,<br />
STWID,<br />
STHT,
m_nStretchWidth,
-m_nStretchHeight,
0, <br />
0, <br />
poImageInfo->bmiHeader.biWidth, <br />
-poImageInfo->bmiHeader.biHeight,<br />
thisImage, <br />
poImageInfo, <br />
DIB_RGB_COLORS, <br />
SRCCOPY); <br />
<br />
}<br />
<br />
}<br />
}<br />
catch(...)<br />
{<br />
AfxMessageBox("Exception in CTestDlg::OnRenderMessage");<br />
}<br />
<br />
<br />
delete(m_oImageInfo);<br />
Girish
|
|
|
|
|
CPaintDC wraps the Windows BeginPaint() and EndPaint() APIs.
CPaintDC can ONLY be used when handling the WM_PAINT message.
CClientDC wraps the Windows GetDC()/ReleaseDC() APIs.
Check the docs for the differences in using those APIs.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
|
FindFirstFileEX(), SearchPath() APIs will be handy.
Armond Sarkisian wrote: Once I find the certain file I want to compare it with a flat file database of known MD5's.
this is like a project proposal
modified on Saturday, February 16, 2008 4:01 AM
|
|
|
|
|
Rajkumar R wrote: this is like a project proposal.
It's urgent too.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
|
dear all
i would like to compare two values magnitude, and first time i initialize one of them is 0,when second one was generated from code, i will sign second value to first one, and then in next iteration, second value will be get again from code, i want to subtract first one from second, and if the subtraction is less than certain value, then stop iteration. the example is below: but however i couldn't solove it.
sumOnePre = 0;
sumOne = sumOne + g(j);//this is already calculated in my code
if sumOne ~=sumOnePre
sumOnePre = sumOne
if sumOne - sumOnePre < 0.015
ct1 = km;// they are calculated already
but here, the problem is after sumOne is calculated currently,doesnot use first if statement, instead taking second if statement, and then use first if statement, however i couldn't solve it. anyone help me? thanks a lot
Li Zhiyuan
|
|
|
|