Click here to Skip to main content
15,892,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: bitblt(...) fails when we lock and unlock (CTRL+ALT+DEL) the system Pin
CPallini11-May-08 23:57
mveCPallini11-May-08 23:57 
AnswerRe: bitblt(...) fails when we lock and unlock (CTRL+ALT+DEL) the system Pin
Super Hornet12-May-08 0:08
Super Hornet12-May-08 0:08 
AnswerRe: bitblt(...) fails when we lock and unlock (CTRL+ALT+DEL) the system Pin
CPallini12-May-08 0:25
mveCPallini12-May-08 0:25 
GeneralRe: bitblt(...) fails when we lock and unlock (CTRL+ALT+DEL) the system Pin
Super Hornet12-May-08 1:11
Super Hornet12-May-08 1:11 
QuestionAsynchronous Process Call _spawnl() --- Plz Help me Pin
Member 453498211-May-08 23:03
Member 453498211-May-08 23:03 
AnswerRe: Asynchronous Process Call _spawnl() --- Plz Help me Pin
Mark Salsbery12-May-08 6:02
Mark Salsbery12-May-08 6:02 
QuestionAsynchronous Process Call--- Plz Help me Pin
Member 453498211-May-08 23:02
Member 453498211-May-08 23:02 
QuestionHow to embed a MS Word in a window Pin
Yajnesh Narayan Behera11-May-08 22:27
Yajnesh Narayan Behera11-May-08 22:27 
Hi in my project there is a window where I have to embed a word application using OLE. It is fine for Internet explorer, but for Word rather embedding it is opening as a separate application. One thing if I use IWebBrowser2 to achieve it is fine, but there is a problem relating to history so I am trying to do it in this way.

The flow is as follows: The syntax is based on plain C.

CLSID idMsWord;
HRESULT hr;
IStorage *pStorage;
IOleObject *browserObject;
_IOleClientSiteEx *_iOleClientSiteEx;


hr = CLSIDFromProgID(L"word.document", &idMsWord);

hr = StgCreateStorageEx(NULL, STGM_READWRITE | STGM_SHARE_EXCLUSIVE | STGM_DIRECT | STGM_CREATE, STGFMT_DOCFILE, 0, NULL, 0, &IID_IStorage, (LPVOID*) &pStorage);

if (!OleCreate(&idMsWord, &IID_IOleObject, OLERENDER_DRAW, 0, (IOleClientSite *)_iOleClientSiteEx, (void**)pStorage, (void**)&browserObject))
{
GetClientRect(hwnd, &rect);
rect = *R;
// Let word object know that it is embedded in an OLE container.
if (!OleSetContainedObject((struct IUnknown *)browserObject, TRUE))
{
browserObject->lpVtbl->DoVerb(browserObject, OLEIVERB_INPLACEACTIVATE, NULL, (IOleClientSite *)_iOleClientSiteEx, -1, hwnd, &rect);
browserObject->lpVtbl->Release(browserObject);
}
}
_IOleClientSiteEx is the structure which holds IOleClientsite.
Now when DoVerb is beieng executed a new word application is being opened as a separate application rather as an embedded one.

Please help to resolve this issue as it is related to my project.
AnswerRe: How to embed a MS Word in a window Pin
Rajesh R Subramanian12-May-08 1:13
professionalRajesh R Subramanian12-May-08 1:13 
GeneralRe: How to embed a MS Word in a window Pin
Yajnesh Narayan Behera12-May-08 1:49
Yajnesh Narayan Behera12-May-08 1:49 
GeneralRe: How to embed a MS Word in a window Pin
Rajesh R Subramanian12-May-08 1:58
professionalRajesh R Subramanian12-May-08 1:58 
GeneralRe: How to embed a MS Word in a window Pin
Yajnesh Narayan Behera14-May-08 0:28
Yajnesh Narayan Behera14-May-08 0:28 
AnswerRe: How to embed a MS Word in a window Pin
Rajesh R Subramanian14-May-08 1:02
professionalRajesh R Subramanian14-May-08 1:02 
QuestionHow can set the Value of Edit Box? Pin
Le@rner11-May-08 22:08
Le@rner11-May-08 22:08 
AnswerRe: How can set the Value of Edit Box? [modified] Pin
Sarath C11-May-08 22:30
Sarath C11-May-08 22:30 
GeneralRe: How can set the Value of Edit Box? Pin
Le@rner11-May-08 23:12
Le@rner11-May-08 23:12 
QuestionRe: How can set the Value of Edit Box? Pin
Rajesh R Subramanian11-May-08 23:14
professionalRajesh R Subramanian11-May-08 23:14 
AnswerRe: How can set the Value of Edit Box? Pin
Le@rner11-May-08 23:47
Le@rner11-May-08 23:47 
QuestionRe: How can set the Value of Edit Box? Pin
Rajesh R Subramanian12-May-08 0:00
professionalRajesh R Subramanian12-May-08 0:00 
AnswerRe: How can set the Value of Edit Box? Pin
Le@rner12-May-08 0:30
Le@rner12-May-08 0:30 
AnswerRe: How can set the Value of Edit Box? Pin
Rajesh R Subramanian12-May-08 1:01
professionalRajesh R Subramanian12-May-08 1:01 
GeneralRe: How can set the Value of Edit Box? Pin
Le@rner12-May-08 1:14
Le@rner12-May-08 1:14 
QuestionRe: How can set the Value of Edit Box? Pin
Rajesh R Subramanian12-May-08 1:16
professionalRajesh R Subramanian12-May-08 1:16 
QuestionRe: How can set the Value of Edit Box? Pin
Rajkumar R12-May-08 19:13
Rajkumar R12-May-08 19:13 
QuestionRe: How can set the Value of Edit Box? Pin
David Crow12-May-08 3:06
David Crow12-May-08 3:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.