|
Hi all,
I want to create one Add in which will for Ms- word, EXcel, and powerpoint too. I want to know if there is any book or any website which will help me out to do it. with that Add in i want to handle some picture and they shld be added to powerpoint and in powerpoint i shld be able to manipulate it. How is it possible. If some one can help me, then please do
My email id is savilani@rediffmail.com
Thanks in advance
Savita
|
|
|
|
|
Hi,
This can be achieved using automation...so try looking for some automation on net. You will good sample projects here on CP also...
Vikram Kashyap
"You will never fail until you stop trying"
|
|
|
|
|
Hi,
I have an MFC extension dll, which exports a class. The class is actually CStatic derived and uses several instances of the CImageButton from this site.
That class is exported from the dll using MFC's AFX_EXT_CLASS macro, and imported into my main exe with the same.
I want the CImageButton's in the dll-class to use bitmap resources from the DLL. But, in the code for CImageButton, it uses ::LoadBitmap to actually load the resource, the first argument of which uses AfxGetInstanceHandle() to get the HINSTANCE of the app. Of course, AfxGetInstanceHandle returns the HINSTANCE of the exe, so it all goes pete tong.
The only workaround i've found it to use a global variable of type HINSTANCE in the dll, and in DllMain to set the global var to store the HINSTANCE. Then use that HINSTANCE in place of AfxGetInstanceHandle.
Whilst it works, it doesn't seem "right"- it seems a bit of a bodge.
Is there a better way?
Thanks
Jon
using System.Beer;
|
|
|
|
|
I *think* you want to look into AFX_MANAGE_STATE(AfxGetStaticModuleState( )) - this will switch the state for you. You would put this call at the beggining of your function, BEFORE any resource calls (like LoadImage/LoadString, etc) are made.
It's possible you may want to use something other than AfxGetStaticModuleState() - look it up in MSDN - there are other variations on it if I remember right.
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
|
|
|
|
|
That looks exactly what I need. Thanks!!!
using System.Beer;
|
|
|
|
|
hi all,
I am developing a MFC Project.Now I want to display a light when clicking "Display Light" Button. I have a LED Bulb.
Procedure is like this:-
When I click "display Light" button,the LED(or a bulb) should be ON..otherwise LED should be OFF.
How do I do such a Task?. Is there a DLL or component to accomplish that task?
if any one know about that ,please help me?
Thanks in advance
|
|
|
|
|
is that a real buld/light/LED ? if so, there should be an API with some kind of external domotic controller ?
if not, what exactly you want to do ?
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
hi
A bulb is connected to the Serial or Parrel port.Then I want to handdle the Bulb using a Application.That means display light and OFF.
How do I do this using Visual C++?
Thanks in advance.
|
|
|
|
|
http://www.wotsit.org[^] contains docs for those formats and many more
"It was when I found out I could make mistakes that I knew I was on to something."
-Ornette Coleman
"Philosophy is a study that lets us be unhappy more intelligently."
-Anon.
|
|
|
|
|
I need to onvert a jpg file to a bmp file is there anyone how can help me?
|
|
|
|
|
|
Well I don't need to open the file I just want to convert the image
|
|
|
|
|
|
Well I dont want to pay to see it. sorry!
|
|
|
|
|
( if you want to do it for a single image.)
Keep it simple
|
|
|
|
|
Yes I want to do it for a singel image!
|
|
|
|
|
Open the image in Microsoft Paint and then use the saveAs option. I think it is under File.
Keep it simple
|
|
|
|
|
Well Mr.Fun
Well I need to do that in my program.
NOT in a diffrent program!
|
|
|
|
|
Have you try to use CImage class ? (.NET)
Good luck...
|
|
|
|
|
I send data to device.I send 1.
I use this code.
int i=13; //enter key
CString mm=i;
CString mmm=m_text+mm;//m_text=1
if(!(port.WriteString(mmm)))
{
MessageBox("Cannot Write to Port","Error",MB_OK); port. ClosePort();
}
else
{
MessageBox("Send by "+mmm,"Success",MB_ICONINFORMATION); }
Function is work. But PLC is not translate.
I want to know how to get send data.
|
|
|
|
|
Using a Spin Control with real numbers, but have a problem when the Up or Down spin is held down for a while.
The data increments/decrements but after a period (around 30 ~ 100) the sign of the data changes.
I am using my own routine to handle the increments/decrements via OnDeltaposSpinNewdata. The Autobuddy is set to false and the Set Buddy Integer is set to true (tried false but still the same).
void CEditDlg::OnDeltaposSpinNewdata(NMHDR *pNMHDR, LRESULT *pResult)<br />
{<br />
LPNMUPDOWN pNMUpDown = reinterpret_cast<LPNMUPDOWN>(pNMHDR);<br />
<br />
int incrementValue;<br />
<br />
m_fSpinIncrement = m_fScalingFactor;<br />
if(pNMUpDown->iDelta == -1)
{<br />
IncrementData(m_fSpinIncrement);<br />
}<br />
else
{<br />
DecrementData(m_fSpinIncrement);<br />
}<br />
*pResult = 0;<br />
}
|
|
|
|
|
I am not sure about this: When I have a DLL and an EXE compiled with VC, and the EXE loads the DLL, does each have it's own instance of the C runtime (i.e. the global variables like stdin, stdout, the heap, etc.)? Does this depend on compile settings?
TIA
Peter
we are here to help each other get through this thing, whatever it is Vonnegut jr.
sighist Fold With Us! || Agile Programming | doxygen
|
|
|
|
|
peterchen wrote:
does each have it's own instance of the C runtime
Yes, that is why you should avoid using free() and the delete operator on pointers received from a dll.
"After all it's just text at the end of the day. - Colin Davies
"For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus
|
|
|
|
|
Depends on compile settings[^]. If you choose to dynamically link CRT in all your modules (exe and dlls), it will be shared between them and it is safe to pass objects between modules.
My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.
|
|
|
|
|