|
|
Hi,
i program a app which surport output a word doc from displayed contents. But now i got another problem, i cannot set the pragraph format (exp. paragraoh indent and so on) by my app automatically. I found a method -- void Selection::SetParagraphFormat(LPDISPATCH newValue), but i cannot manipulate it correctly. Please tell me how can i get rid of it.
Thank you ~o~
|
|
|
|
|
Oh, i got it as following...
//----
_ParagraphFormat wordFormat;
wordFormat = sel[i].GetParagraphFormat();
wordFormat.SetCharacterUnitFirstLineIndent(-5);
|
|
|
|
|
Hi!
I am a new member to code project and this is my first message to the forum. I am a 6th sem MCA student doing my project work in a company as part of my academic curriculum.Presently i am working on a software related to GUI testing. I am using some MFC application exe files for this purpose. My problem is that some of the exe files i am using end up with errors at the runtime. So it is my request to every member of this forum to please suggest me as to how i can get the source code of an MFC application after it is converted to exe format.
Pavithra
|
|
|
|
|
Pavithra Bhat H wrote: How to get the source code of an MFC application with .exe file extension
Try to open the file in notepad
if that doesn't work try to get in touch with the original coder and take him out to lunch
C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg
|
|
|
|
|
mailMonty wrote: Try to open the file in notepad
LMFAO
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
|
|
|
|
|
Pavithra Bhat H wrote: how i can get the source code
Have you tried contacting the original developer of the application and asking them *very* nicely - you never know they might be feeling generous and let you have it...
There is no pratical way of decompiling an exe built with c++ (something which I'm thankful of as it would probobly put me and many others out of business.) The closest your going to get is an assembly dump of the code - something which I'm guessing isn't what your looking for.
If you've got a problem with the application, contact whoever wrote it.
Gavin Taylor
w: http://www.gavspace.com
|
|
|
|
|
Gavin Taylor wrote: The closest your going to get is an assembly dump of the code
actually, he could decompile an exe into C/C++ code if the exe were built in debug mode...
but i doubt the guy who's asking the question wants to decompile such a thing but a release exe.
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]
|
|
|
|
|
toxcct wrote: he could decompile an exe into C/C++ code if the exe were built in debug mode
Even in Debug mode I didn't think it was possible to decompile it into anything particulary useable, but hey I could be wrong...
Gavin Taylor
w: http://www.gavspace.com
|
|
|
|
|
Gavin Taylor wrote: Even in Debug mode I didn't think it was possible to decompile it into anything particulary useable, but hey I could be wrong...
yes, you are.
actually, when an exe is built in debug mode, the compiler don't optimize the code generated, and lets full of stull such as identifier names, etc...
a good decompiler could decompile such an exe into a pretty well way.
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]
|
|
|
|
|
toxcct wrote: a good decompiler
could you name some of them?
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
|
|
|
|
|
vamshin wrote: could you name some of them
i don't use any of them, because this is simply illegal, and i don't perform such things...
but AFAIR, borland C++ had one...
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]
|
|
|
|
|
Yeah, I know what Debug mode is.;)
Now I think about it I suppose it could be possible to generate a reasonably readable version of your code - Oddly enough, I've never had the need to try decompiling anything i've written.
Hmmm, time to have a google and a play me thinks
Gavin Taylor
w: http://www.gavspace.com
|
|
|
|
|
|
I am working on a software named GUITAR which is available in the site http://guitar.cs.umd.edu
Pavithra
|
|
|
|
|
|
HI Mr Bhatt,
It almost impossible to get Source code of Exe.... as all source code are converted into machine instruction before becoming exe...
now AFAIK only way to debug these type of application using Machine/Assembly Code!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi all,
I am trying to customize the radio button. Problem is that the radio button does not support BS_OWNERDRAW in dialog editor. I tried to set it in PreSubclassWindow, but it's behaviour changed from radio button...
How can I successfully draw the radio button without affecting the normal functionings like automatic selection changing, grouping, etc. ?
Thank you.
- NS -
|
|
|
|
|
Hi NS17
you should use WM_DRAWITEM
////////////////Include .h///////////
class CyourButton:public CButton
{
public:
CyourButton::CyourButton();
CyourButton::~CyourButton();
DECLARE_DYNCREATE(CyourButton)
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
};
/////////////// .cpp///////////////
void CyourButton::DrawItem(LPDRAWITEMSTRUCT lpDIS)
{
CDC* m_dc = CDC::FromHandle(lpDIS->hDC);// get the device context pointer to draw into
....
....
}
|
|
|
|
|
But without BS_OWNERDRAW style it doesn't work. Applying this style is changing the behaviour of RadioButton.
- NS -
|
|
|
|
|
|
|
export table not had function name.
|
|
|
|
|
You need to to use a .def file.
Add the functions you want to export, the ordinal and the keyword NONAME.
e.g. cmkUtl.def
LIBRARY cmkUtl
EXPORTS
DllMain @1 NONAME
...cmk
Save the whales - collect the whole set
|
|
|
|
|