Click here to Skip to main content
15,898,134 members
Home / Discussions / COM
   

COM

 
GeneralATL Dialog vs MFC Dialog !!! Pin
Hadi Rezaee25-May-01 18:51
Hadi Rezaee25-May-01 18:51 
GeneralATL COM Singleton Server - Help Required Pin
Adrian Metcalfe24-May-01 22:44
Adrian Metcalfe24-May-01 22:44 
GeneralCOM Threading Issue Pin
Amit Dey24-May-01 16:45
Amit Dey24-May-01 16:45 
GeneralRe: COM Threading Issue Pin
7-Jun-01 2:19
suss7-Jun-01 2:19 
GeneralServer Side ActiveX Problem Pin
12ways24-May-01 5:37
12ways24-May-01 5:37 
GeneralDrawing ActiveX window Pin
22-May-01 18:35
suss22-May-01 18:35 
GeneralRe: Drawing ActiveX window Pin
Ryan Park22-May-01 18:59
Ryan Park22-May-01 18:59 
GeneralRe: Drawing ActiveX window Pin
Kastellanos Nikos31-May-01 22:27
Kastellanos Nikos31-May-01 22:27 
first call OleInitialize(NULL) (but off course you know that)

Then create the Object and get its LPDISPATCH, or it's interface pointer.

If necesary, Invoke any method of the interface for loading documents or initializing.

Query the OleInPlaceObject interface and set the object rectagular.
RECT Pos={0,0,500,400},Clip={0,0,500,400};
OleInPlaceObject->SetObjectRects(&Pos,&Clip);


When you want to paint it , query the IViewObject interface and call the 'draw' method.
RECTL rectl={0,0,250,200};
ViewObject->Draw(DVASPECT_CONTENT,-1,0,0,0,(HDC)hdcDraw,&rectl,0,0,0);



I use this in a CGI i am making where i just want to take a
quick snapshot of Adobe's SVG control.
I will generate SVG files using CF or ASP, then renter them
using SVG control, encode them to JPG using CGI+ and sent them
to the client!
In the same pattern you can use a control founded in Corel draw
that generates barcodes.






- - - - - - - - - - - - - - - - - -
Memory leaks is the price we pay \0
01234567890123456789012345678901234
GeneralEnterbutton Pin
21-May-01 23:29
suss21-May-01 23:29 
GeneralOleCreateFromData Pin
Kastellanos Nikos21-May-01 0:24
Kastellanos Nikos21-May-01 0:24 
GeneralCoM ( ATL): resizing of a window MPlayer Pin
20-May-01 0:59
suss20-May-01 0:59 
QuestionCoM ( ATL): events through a definite interval senden? Pin
20-May-01 0:57
suss20-May-01 0:57 
GeneralThe Com-interface for control Mediaplayer Pin
20-May-01 0:53
suss20-May-01 0:53 
Generalhelp! Counterfesance ATLMOVIE from MSDN not (( Pin
20-May-01 0:47
suss20-May-01 0:47 
GeneralLifetime management of a local server Pin
Brian van der Beek19-May-01 23:36
Brian van der Beek19-May-01 23:36 
GeneralHRESULT!! Pin
18-May-01 20:37
suss18-May-01 20:37 
GeneralRe: HRESULT!! Pin
Michael Dunn19-May-01 13:59
sitebuilderMichael Dunn19-May-01 13:59 
GeneralRe: HRESULT!! Pin
20-May-01 18:11
suss20-May-01 18:11 
QuestionHow resize a ATL control inside ATL DLL? Pin
chenzhu15-May-01 15:52
chenzhu15-May-01 15:52 
AnswerRe: How resize a ATL control inside ATL DLL? Pin
Amit Dey20-May-01 12:48
Amit Dey20-May-01 12:48 
GeneralRe: How resize a ATL control inside ATL DLL? Pin
chenzhu22-May-01 16:45
chenzhu22-May-01 16:45 
QuestionHELP! how to convert to BSTR? Pin
15-May-01 11:55
suss15-May-01 11:55 
AnswerRe: HELP! how to convert to BSTR? Pin
Michael Dunn15-May-01 16:28
sitebuilderMichael Dunn15-May-01 16:28 
AnswerRe: HELP! how to convert to BSTR? Pin
John P. Curtis15-May-01 20:15
John P. Curtis15-May-01 20:15 
GeneralRe: HELP! how to convert to BSTR? Pin
18-May-01 20:34
suss18-May-01 20:34 

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.