|
Hello Friends,
I need to know how to check weather a push button is enabled or disabled in Win32 API ?
|
|
|
|
|
|
Hi Thanks for the reply. i got the solution.
|
|
|
|
|
about this article: http://www.codeproject.com/KB/system/inject2exe.aspx[^]
can i resize the code section of a PE file?
for example: i want to add 100 bytes(fill with 0x90) end of the code section.
i change values of "SizeOfRawData" and "VirtualSize" for Code Section header. and i change values of "PointerToRawData" and "VirtualAddress" for next sections.
but the new PE file don't execute.
Zo.Naderi-Iran
|
|
|
|
|
I would think you're more likely to get an answer by posting on the message board of that article.
For anyone here to answer, they'd have to know all about it, or download it and research it. The first is unlikely, the next is near impossible.
Good luck,
Iain.
Iain Clarke appearing by Special Request of CPallini.
|
|
|
|
|
But i have expedience for my work ...
Zo.Naderi-Iran
|
|
|
|
|
Hi Iain,
I'm happy you're still appearing by my Special Request.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
Are you trying to write a virus?
Steve
|
|
|
|
|
no, i want protect my PE file.
in first step this is my problem.
please help me
Zo.Naderi-Iran
|
|
|
|
|
What you are asking is extremely low level and involved. Not the sort of thing you can expect answered in a short message board post.
Steve
|
|
|
|
|
Actually yes, but don't tell anybody!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
class fontdlg
{
public:
void a()
{
CFontDlg dlg;
COLORREF color=dlg.GetColor();
}
}
I want to use color is other class, so how can i use color variable in other class. For that how should i declare.
|
|
|
|
|
The quick and dirty answer is
class fontdlg
{
public:
COLORREF m_color;
void a()
{
CFontDlg dlg;
m_color=dlg.GetColor();
}
};
or
class fontdlg
{
public:
COLORREF a()
{
CFontDlg dlg;
return dlg.GetColor();
}
};
But then you should be aware that you really need some background on OOP.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
Does this code helpful?
CMain m*=(CMain*) GetParent();
m->yourvalues;
|
|
|
|
|
Hamid. wrote: Does this code helpful?
Sure.
But probably has little to do with OP.
Just kidding, you know, Hamid.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
I know him but I think no because he has some wonderful ways to solve his problems ,but I know a seceret about him,he likes merrymaking if he can to find it
|
|
|
|
|
Hi all
Could you please help me identify the Win32 API or MFC function which determines the credentials of current windows user ? ie Admin or Restriced User or Power User ?
Thanks in advance
Dharani
redindian
|
|
|
|
|
IsUserAnAdmin() can tell you if the present user is an Administrator or not.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Hello All
Is there any way to know the Update in window?
In descriptive how can my programe come to when any update is done to window(Changig open window or as in codeproject the images are changing continuesly)
i can do it by making endless loop and capturing two bitmaps and comparing it, But this solution result in more CPU utilization.
So is there anybody who can solve my problem?
Thanks in advance.
Manish Patel.
B.E. - Information Technology.
|
|
|
|
|
Hi...
am using vc++ and sql server2005.
i am doing both server and client.
am sending a image file from server to client as a char*.
in client i need to save it into database.
then i need to retreive.
what is the procedure?
can anybody help me?
paulraj
|
|
|
|
|
hi
i have a application to convert from CSTRING to TCHAR .
with advanced thanks
francis
Franics K Antony
|
|
|
|
|
|
No !
Never use GetBuffer without knowing what it implies. Did you read the documentation of this function ?
|
|
|
|
|
Interesting. Can you please explain why would you want to use GetBuffer() here.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
LPTSTR pBuffer = szString.GetBuffer( 10 );
_tcscpy_s( pBuffer, 10, "String" );
szString.ReleaseBuffer( );
|
|
|
|