|
Thanks for the tip !
MMm..., I don´t know too much about marshaling, but well it´s good time to start learning, I think I have to use maybe something like "CoMarshalInterface", because I have different process, I have:
MyApp -( Different Space Proccess)-> Word Automated Instance --> MyDll
I´m advancing but very slow, but now I can paste the ActiveX in a Word automated instance, modify it from my app, and even make serialize it !, the last step it´s to do something useful XD, like for example get the picture...
I swear that if I get all this things up and running I will write a mega article for codeguru talking about this stuff
Thanks for the help Joaquin, Hasta luego !
Braulio
|
|
|
|
|
I swear that if I get all this things up and running I will write a mega article for codeguru talking about this stuff
codeguru?
Suerte con la historia ésta, seguro que cuando acabes tendrás mogollón de información para un buen artículo.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
HOOLA !!!
Ooops, sh*t not codeguru... CODEPROJECT OF COURSE
I GOT IT !!!!, It is working now, thanks to the article ( "Using Picture Objects in ATL", from VBPJ, page 102, wow it´s not so easy to make work the streams and streams persists).
Ahora tengo que ajustarlo para que no pierda memoria ni recursos, y en cuanto lo tenga voy a hacer un pedaaasssoo de artículo... XDDDD
Hasta luego, y gracias por los ánimos !
Braulio
|
|
|
|
|
enhorabuena chaval
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Congratulation!
I'm waiting for that article ,come on Braulio,but I want it here in COPDEPROJECT not codeguru.
Mazy
"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
|
|
|
|
|
Joaquín , these two functions doesn't work outside processes neither the preferred way of IGlobalInterfaceTable::RegisterInterfaceInGlobal.
He's doing the right thing, i must be a minimal error, that can't spot, i used to program in COM an ATL, but i don't touch it for about one year, and man, we can forget a lot of things that was trivial in past
Regards, Joaquín and continue your good work here at VC++ forum helping the guys . You and James T. Johnson (on the C#) are the most active guys, of course not counting Nish too
Joao Vaz
|
|
|
|
|
Hola !
As I promised you I Wrote the article about Streams and Pictures and ActiveX, you can check it out in:
http://www.codeproject.com/useritems/PictureTransfer.asp
The bad thing... something went wrong with the submission wizard and the Picture and the zip with the source is not there ( I sent one e-mail to chris with the files, let´s hope he fixes it).
Bye !
Braulio
|
|
|
|
|
Hola !
As I promised you I Wrote the article about Streams and Pictures and ActiveX, you can check it out in:
http://www.codeproject.com/useritems/PictureTransfer.asp
The bad thing... something went wrong with the submission wizard and the Picture and the zip with the source is not there ( I sent one e-mail to chris with the files, let´s hope he fixes it).
Bye !
Braulio
|
|
|
|
|
Hello,
I use the function PolyBezier(), so I have a curve composed of "n" Bezier Curves , but I don't know how to get the y coordinate of my curve giving the x coordinate. Is there a solution ?
Thanks
|
|
|
|
|
The curve is made up of connecting Bezier segments, each depending on two end points P0 and P3 and two so-called control points P1 and P2. Points in the segment are given by
x(k) = (1-k)3x0 + 3k(1-k)2x1 + 3k2(1-k)x2 + k3x3,
y(k) = (1-k)3y0 + 3k(1-k)2y1 + 3k2(1-k)y2 + k3y3,
where k ranges between 0 and 1.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hi,
Can anyone tell me how to set the title of the main window in a SDI Doc/View Architecture app. Do i can totally replace 'untitled - Name Of App' ?
Regards
Richard
|
|
|
|
|
You can try to use CWnd::SetWindowText()
Hoope it help
Bye,
BogdanO
...the night is long ... but not long enought to do some real coding ...
|
|
|
|
|
The standard way of doing this is using <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_mfc_cdocument.3a3a.settitle.asp">CDocument::SetTitle</a> .
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Add this to your PreCreate of your CMainframe :
cs.style &= ~FWS_ADDTOTITLE;
and after that use SetWindowText
Mazy
"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
|
|
|
|
|
Mazy,
Just noticed you tag line! Great choice
<p>
So, so you think you can tell
Heaven from Hell,
Blue skys from pain.
Can you tell a green field
From a cold steel rail?
A smile from a veil?
Do you think you can tell?
<p>
And did they get you to trade
Your heros for ghosts?
Hot ashes for trees?
Hot air for a cool breeze?
Cold comfort for change?
And did you exchange
A walk on part in the war
For a lead role in a cage?
<p>
How I wish, how I wish you were here.
We're just two lost souls
Swimming in a fish bowl,
Year after year,
Running over the same old ground.
What have we found?
The same old fears.
Wish you were here.
Paul Lyons
"What a long, strange trip its been".
- Robert Hunter/Jerry Garcia
|
|
|
|
|
Thanks Paul
It's so bad that there is not enough space to put all of
this song bellow my signiture every time I put message in CP
o,where is my signiture????
|
|
|
|
|
Hy!
I've creat a UI thread and now I've used ON_THREAD_MESSAGE to intercept a message post by the main thread using PostThreadMessage ...
The posted message arrived to the UI thread but it isn't dispach to the window that I have created and atached to m_pMainWnd of the UI thread.
Any idea how to solve this( eventualy an working example of ON_THREAD_MESSAGE or some kind of URL where I can find more info) ??
Thanx
Bye,
BogdanO
...the night is long ... but not long enought to do some real coding ...
|
|
|
|
|
PostThreadMessage , as its name suggests, submits messages intended for the thread itself, not any of its windows. So it's no wonder m_pMainWnd is not catching the message. ON_THREAD_MESSAGE must be located in the UI thread class. To route the message to the window, you have two options:
- Call the appropriate method of (or send a message to) the window from the thread message handler.
- Do not use
PostThreadMessage and submit the message directly to m_pMainWnd with PostMessage .
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thanx a lot!!
Bye,
Orbital^
...the night is long ... but not long enought to do some real coding ...
|
|
|
|
|
I need help writing a cpl file.
All references are useless and codes don't work.
Please contact me by email
|
|
|
|
|
It's fairly easy: build a DLL with exports the <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/Shell/reference/functions/cplapplet.asp">CPlApplet</a> function, rename it to have extension .cpl , drop it in the system directory and voilà you've got a new applet in your Control Panel.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I'm sorry.
Won't happen again.
However did u get my question ?
|
|
|
|
|
Try inserting APIENTRY just before CPlApplet .
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
before adding APIENTRY ,I could debug the code but now no debug and the code just return 0 with doing nothing.
extern "C" LONG __declspec (dllexport) APIENTRY CPlApplet(HWND hwndCPL,UINT uMsg,LPARAM lParam1,LPARAM lParam2)
something else?
Thanks
|
|
|
|
|
Ummm... Sometimes it takes longer than desired to get these things fixed... Try removing __declspec(dllexport) (but keep APIENTRY !) and add a .DEF file (i.e. create it and add it to the project as if it were a .cpp file) like this:
LIBRARY "MYFIRSTCPL"
DESCRIPTION 'My first CPL'
EXPORTS
CPlApplet @1
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|