|
It's already masked. It just seems the list control is painting the background in the color it likes, otherwise I would see bright green.
Code for the image list looks like this:
<br />
m_ImageList.Create(16, 17, ILC_COLOR32 | ILC_MASK, 1, 20);<br />
m_ImageListBmp.LoadBitmap(IDB_LISTIMAGES);<br />
m_ImageList.Add(&m_ImageListBmp, BRGREEN);<br />
BRGREEN is the color I use for transparency.
|
|
|
|
|
I have opened A process(an Exe.) using CreateProcess function,which is running in my system in hiden mode,
I want to send some message to that Exe in my program,that should respond to my message.how i will
i do this. Please anybody help me
nirmal
|
|
|
|
|
Interprocess Communication (IPC) is available in several forms. Some are:
Clipboard
WM_COPYDATA message
Pipes
DDE
Sockets
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Hi aaaan,
Hope I understood your question
I think it's possible example you can run one Application
and use FindWindow Now and you can insert item to menu(example)
Infact I check this question now and get this answer
|
|
|
|
|
I got the handle of that exe using FindWindow ,then i want to process some message using SendMessage fun but it is not working.
SendMessage(hndl, WM_KEYDOWN, VK_TAB, 1L);
is there anything wrong?.
|
|
|
|
|
Hi aaaan,
I wrote that I tested now,but anyway see(Example)
I run one my application then I use FindWindow with my program name then I get handle from window and Insert a item to menus and this worked and insert my item to Main Menu from another Application for another events (I think Im not sure Its worked)
you try to insert item and see does it work?
|
|
|
|
|
I should send some data to two different places, right now I send all the data to one location through a socket and I need to create another socket to send some other data to a second location as follow:
If (data1){
send to LOC1;
}else
send to LOC2;
This LOC1 connection should always be open, at this point I have the socket and connection to LOC2
Please help me to know how to make the second connection to LOC1, for the first connection to LOC2 the code uses CfgRemoteAddr=127.0.0.1 and some local port: local 1222 and remote 1223.
as follow:
if( hCfg->CfgApiSocket->CfgTCP )
.
...
...
if( !hSocket->sSend( hCfg->CfgApiSocket->CfgRemoteAddr, 0, ( LPSTR )XMLString, XMLSize ))
{
//Socket::sSend( LPSTR Address, INT PortId, LPSTR txBuff, INT txBuffSize )
tmpVar = 0;
memset( Buff, '\0', MAX_LOADSTRING );
tmpVar = hSocket->GetError(( LPSTR )Buff );
LogError( "WEAPIClass", "InSockProcess", "Error sSend Socket: %d, %s", tmpVar, Buff );
LinkStatus( IPC_LINK_DOWN, 0, NULL, 0 );
}
else
{
LogAppDiag( LOGGER_INBOUND_DIAG, XMLString, XMLSize, LOG_FORMAT_ASCII );
}
what Do I need to write to get the second connection?
Appreciate any idea
Nahi
|
|
|
|
|
have to send some data as XML format to two different places right now I send all the data to one location through a socket and I need to create another socket to send some other data to second location as follow:
If (data1)
send to LOC1
else
send to LOC2
and this LOC1 connection should always be open
at this point I have the socket and connection to LOC2
Please help me to know how to make the second connection to LOC1, for the first connection to LOC2 the code uses CfgRemoteAddr=127.0.0.1 and some local port: local 1222 and remote 1223.
as follow:
if( hCfg->CfgApiSocket->CfgTCP )
.
...
...
if( !hSocket->sSend( hCfg->CfgApiSocket->CfgRemoteAddr, 0, ( LPSTR )XMLString, XMLSize ))
{
//Socket::sSend( LPSTR Address, INT PortId, LPSTR txBuff, INT txBuffSize )
tmpVar = 0;
memset( Buff, '\0', MAX_LOADSTRING );
tmpVar = hSocket->GetError(( LPSTR )Buff );
LogError( "WEAPIClass", "InSockProcess", "Error sSend Socket: %d, %s", tmpVar, Buff );
LinkStatus( IPC_LINK_DOWN, 0, NULL, 0 );
}
else
{
LogAppDiag( LOGGER_INBOUND_DIAG, XMLString, XMLSize, LOG_FORMAT_ASCII );
}
Appreciate any idea
|
|
|
|
|
Hello All
How to know the Path where the Application EXE is present in run time?
If multiple copies of the EXE is present in diff directories I have to do some process depeneding on from where it is getting executed.
I tried to search in CWinApp but i could get only the Application Name (m_pszAppName). how to find the whole path of EXE file?
Thanks for your time
Ravi
|
|
|
|
|
sravishankar wrote: How to know the Path where the Application EXE is present in run time?
Use GetModuleFileName(NULL, ...) .
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
hi all,
Can anyone please tell me how to lock a folder,so that the user does not have access to it.
Thanks in advance,
|
|
|
|
|
You'll need to search for Access Control Entry (ACE) and Access Control List (ACL).
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
hi,
Can you provide me with a code snippet about how to lock a folder.
|
|
|
|
|
Well if it contains only few files keep it opened , or else go for ACL
and look for the api
1.LockFileEx or
2.SetsecurityFIle (ACL)
Regards,
FarPointer
|
|
|
|
|
hi,
Does LockFileEx works for a folder also?
I could not find the Api SetsecurityFile in the MSDN.
|
|
|
|
|
|
Can i use "SetNamedSecurityInfo" function to lock the folder.
If yes,how can i use it.
|
|
|
|
|
when i open my project its automatically generate a cpp file & compiler gives error this file does not exist.
please reply
byeeeeee
|
|
|
|
|
Which file, which compiler error ?
That was a really fully detailed question.
|
|
|
|
|
hello sir
actually i'm using a vs.net c++ enviornment.when i open my solution file my i got the file in my source folder named "DataSetXmlLoad.cpp".
and this file does not exist on the system.
i have mannualy delete that file.when i try to delete the file system give me "the file u want to delete does not exist on the disk."
i hope this time is more clear.
|
|
|
|
|
Remove it frol your project (don't choose the option delete but remove).
|
|
|
|
|
please explain more, i really don't get you.
what environment do you use ?
what kind of project do you use ?
what file is generated ?
and what is the exact compiler error returned ?
|
|
|
|
|
hello sir
actually i'm using a vs.net c++ enviornment.when i open my solution file my i got the file in my source folder named "DataSetXmlLoad.cpp".
and this file does not exist on the system.
i have mannualy delete that file.when i try to delete the file system give me "the file u want to delete does not exist on the disk."
i hope this time is more clear.
|
|
|
|
|
|
How do I cahnge the icon of my builden MFC-app exe file. I always got the standard mfc-icon...
_____________________________
...and justice for all
APe
|
|
|
|