|
Hi David thanks for reply.
I am able to open the file in view window but when i close the application and open the txt file than that file is blank. i dont know why.
If you have any article that explain the doc view architecture and splitter window than please send it to me.
Thanks
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
Is the document class overwriting the file?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Hi all
I am new in vc++ and i want to change win32 code to MFC code.I found artical from codeproject.com link is [code] http://www.codeproject.com/KB/winsdk/usbdisks.aspx[^][/code]
I want to change it output style.I want to print out in MFC Dialog application in list box. Plz help me..
Thx's in advance..
|
|
|
|
|
Get a book. For your needs, I would recommend "Programming Windows with MFC" from Jeff Prosise.
|
|
|
|
|
Create a new dialog-based project. Copy the relevant code to this new project.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
what type of problem are you facing!
|
|
|
|
|
when i declara [code] BOOL GetDisksProperty(HANDLE hDevice, PSTORAGE_DEVICE_DESCRIPTOR pDevDesc)[/code] then i am geting error [code]
error C2061: syntax error : identifier 'PSTORAGE_DEVICE_DESCRIPTOR[/code]. Plz help me
modified on Tuesday, August 12, 2008 1:42 AM
|
|
|
|
|
Hello evrybody.
I have developed an MFC application, but now I would like to enable people to develop sort of addins to that application.
I do not want to give the source code of my application, rather do the same way as Visual Studio : ie provide developers with an SDK with which they can create addins that can enhence VS.
Is there any detailed way how to do that ? Like an existing application that features the best practises for me how to organize my application internal code, and how to expose its programmable interfaces.. etc
Thank you in advance.
Our Philosophy, Mohammed Baqir Al Sadr
|
|
|
|
|
Perhaps you should take a look at Code Project's most popular aricle here[^] as it seems to include extensibilty support. Otherwise I recall an MSDN Magazine article/series from 6+ years ago that dealt with this. You could search up their back catalogue. Most people who do this sort of thing probably end up using COM either directly or in the form of hosting ActiveX controls. I belive there's a standard way to integrate property sheets with COM based plugins but I've never seen an example.
I hope you find what you're looking for.
"The secret of happiness is freedom, and the secret of freedom, courage."
Thucydides (B.C. 460-400)
|
|
|
|
|
Good Morning,
I got a small problem...
I use 2 Picture Control boxes. the first box play a stream from my webcam, the second should be overlap the first, and show a grabbed edited frame.
I just use m_webcam.ShowWindow(0) and m_pic.ShowWindow(1).
The Problem is, after i called this, the Picturebox is empty. But when i minimize and maximize the window, the Picture is shown like i expected.
Is there a way to redraw the picturebox??
|
|
|
|
|
CWnd::Invalidate is used to force the redrawing ofa certain window or control. If that helps !
Our Philosophy, Mohammed Baqir Al Sadr
|
|
|
|
|
Thank you for your awnser. I tried it, but the problem is still the same
|
|
|
|
|
I am missing the details of your problem. But it is sure that you must take care in case for video streaming application where usually the redering window is asynchronously updated by a worker thread that fetches the video data, such that if a resize or a certain wm_paint happens on the main UI thread for the rendering window, the last picture is lost unles you do manually persist it each time the worker thread brings it, so to render it in the context of the ONPaint, or the OnDraw or any similar handler executing on the context of the main UI thread.
I encountered this case in many contexts, the first with Windows RTC (videoconferencing)..
Good luck !
Our Philosophy, Mohammed Baqir Al Sadr
|
|
|
|
|
Hello everyone,
I am searching information about the number of nodes which B+ tree update/delete/insert operation will modify (e.g. modify the link to the parent or sibling). The expected information I want is, for example, insert operation will change at least 2 but at most 3 nodes.
Unfortunately, I cannot find such proved information and only the basic implementations of B+ tree. Does anyone have any conclusions or reference materials?
thanks in advance,
George
|
|
|
|
|
George_George wrote: Does anyone have any conclusions or reference materials?
Have you seen here?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Thanks DavidCrow,
I think the article only mentions the implementation details (in reference section) for insert/delete/update, not no prove or conclusion for the min/max number of nodes which will be changed (if they are still in the tree).
Any comments?
regards,
George
|
|
|
|
|
You could always step through the source code.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Thanks DavidCrow,
I just want to find some one sentence conclusion for the # of nodes changed (conclusion I mean somehting like, like # of external nodes are the # of internal nodes + 1 in a binary tree), and reading source code is slow.
regards,
George
|
|
|
|
|
George, if you need a formal proof you need to talk to this lady[^] who knows more about b+ trees than the bees themselves.
"The secret of happiness is freedom, and the secret of freedom, courage."
Thucydides (B.C. 460-400)
|
|
|
|
|
Thanks Matthew!
Why you refer her, she is the inventor for B+ Tree?
I just want to have some conclusion like the max/min time complexity of quick sort, I am surprised it is so hard to find and get an answer.
regards,
George
|
|
|
|
|
Hi all
What is wrong with my function? it keeps crashing when it gets to return.
bool CUpdateServiceModule::DoCheckForProductUpdates(ns1__Update oUpdateCode, RMproduct* prd)
{
iRet = m_pWebServiceSoap->__ns2__DoCheckForProductUpdates(pDoCheckForProductUpdates,pDoCheckForProductUpdatesResponse);
switch(iRet)
{
case SOAP_OK :
{
if(pDoCheckForProductUpdatesResponse->DoCheckForProductUpdatesResult)
{
pDoGetLatestProduct->productName = pDoCheckForProductUpdates->productName;
iRet = m_pWebServiceSoap->__ns2__DoGetLatestProduct(pDoGetLatestProduct,pDoGetLatestProductResponse);
switch(iRet)
{
case SOAP_OK :
{
RMUpdates* update = new RMUpdates;
break;
return true;
}
default:
{
Log(GetSoapError());
}
}
}
}
default:
{
Log(GetSoapError());
}
}
return false;
}
I am getting this error:
Unhandled exception at 0x004970b6 in UpdateService.exe: 0xC0000005:
Access violation reading location 0xcdcdcdd5.
Please Advise
thanks,
Jayjay
|
|
|
|
|
are you acquainted with the debugger! if not know it better. may be there is some uninitialized memory that you are using or you may be accessing some out-of-bounds variable.
what happens when you debug?
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Did you check the Call Stack?
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
By looking at code i cant tell you exactly why its crashing but i can point out few things.
1. Your function will never return true.
monsieur_jj wrote: break;
return true;
due to break following statement will never get executed.
2.
monsieur_jj wrote: RMUpdates* update = new RMUpdates;
You are just creating new instance and doing nothing with it?? How are you going to access this instance after your function returns. (If at all you need).
I hope it helps.
Regards,
Sandip.
|
|
|
|
|
This is the whole code I apologize
bool CUpdateServiceModule::DoCheckForProductUpdates(ns1__Update oUpdateCode, RMproduct* prd)
{
int iRet = SOAP_ERR;
_ns1__DoCheckForProductUpdates *pDoCheckForProductUpdates;
_ns1__DoCheckForProductUpdatesResponse *pDoCheckForProductUpdatesResponse;
pDoCheckForProductUpdates = InstantiateCheckUpdate();
pDoCheckForProductUpdatesResponse = InstantiateCheckUpdateResponse();
USES_CONVERSION;
pDoCheckForProductUpdates->productName = new std::string(W2A(prd->m_Name.c_str()));
pDoCheckForProductUpdates->productVersion = new std::string(W2A(prd->m_VersionNo.c_str()));
pDoCheckForProductUpdates->serialNumber = new std::string(W2A(prd->m_SerialNo.c_str()));
pDoCheckForProductUpdates->siteCode = new std::string(W2A(prd->m_SiteCode.c_str()));
_ns1__DoGetLatestProduct *pDoGetLatestProduct;
_ns1__DoGetLatestProductResponse *pDoGetLatestProductResponse;
pDoGetLatestProduct = InstantiateGetProduct();
pDoGetLatestProductResponse = InstantiateGetProductResponse();
iRet = m_pWebServiceSoap->__ns2__DoCheckForProductUpdates(pDoCheckForProductUpdates,pDoCheckForProductUpdatesResponse);
switch(iRet)
{
case SOAP_OK :
{
if(pDoCheckForProductUpdatesResponse->DoCheckForProductUpdatesResult)
{
pDoGetLatestProduct->productName = pDoCheckForProductUpdates->productName;
pDoGetLatestProduct->productVersion = pDoCheckForProductUpdates->productVersion;
pDoGetLatestProduct->serialNumber = pDoCheckForProductUpdates->serialNumber;
pDoGetLatestProduct->siteCode = pDoCheckForProductUpdates->siteCode;
iRet = m_pWebServiceSoap->__ns2__DoGetLatestProduct(pDoGetLatestProduct,pDoGetLatestProductResponse);
switch(iRet)
{
case SOAP_OK :
{
RMUpdates* update = new RMUpdates;
update->prdName = prd->m_Name.c_str();
update->nameVer = std::wstring(A2W(pDoGetLatestProductResponse->DoGetLatestProductResult->Version->c_str()));
update->link.append(DOWNLOADLINK);
update->link.append(std::wstring(A2W(pDoGetLatestProductResponse->DoGetLatestProductResult->Link->c_str())));
update->savePath = SetDestination(update->link.c_str());
prd->updateList->push_back(update);
return true;
}
default:
{
Log(GetSoapError());
}
}
}
}
case SOAP_CLI_FAULT :
{
return false;
}
case SOAP_SVR_FAULT :
{
return false;
}
case SOAP_TAG_MISMATCH :
{
return false;
}
case SOAP_TYPE :
{
return false;
}
case SOAP_SYNTAX_ERROR :
{
return false;
}
case SOAP_NO_TAG :
{
return false;
}
case SOAP_IOB :
{
return false;
}
case SOAP_MUSTUNDERSTAND :
{
return false;
}
default:
{
Log(GetSoapError());
}
}
return false;
}
|
|
|
|