|
gloriousgopi wrote: i got an urgent requirement, i have to hook a tool bar to a messenger.
could any one help me in this regard.
Well what do you mean by "hook a toolbar" what do you want them to be able to do?
|
|
|
|
|
Thanks for you interest in this matter.
Actually i have to include a tool bar to an existing messenger for eg MSN Messenger. then how can i do that. i know how to develop a tool bar in VC++.
But how can i include it to that messanger (No source code). which is already existing and running.
Gopinath MV
|
|
|
|
|
Ok you want to attach a toolbar to an existing window... this can be done but it will be a very messy code... it don't know if MSN Messenger exposes any functionality to attach a toolbar you have to check that out, if it doesn't then
Create a HOOK DLL to inject into the MSN messenger then when the DLL initializes create a Toolbar window with the parent window being the MSN window.
The original point and click interface was a Smith & Wesson.
|
|
|
|
|
hi friend,
i think your requirement is to add a menu in a remote application. Kind of code injection mechanism. you can achieve this in a simple way.
1. get handle for target window (use find window, with class name and title or you can any other method)
2. once you have a valid handle you can get the main menu handle of target window.
3.with a valid menu handle you can attach a new menu , submenu any where in the current menu.
Hope you can try this, I am not mentioning the API’s .
Thanks
|
|
|
|
|
Thanks for u r suggestion. i will try in that way.
Gopinath MV
|
|
|
|
|
Hi guys,
I have two applications - 1. dialog based application 2. MFC gui dll.
I have to send windows message from first application to second application. The problem is MFC Gui dll application is the child application of another window and the gui dll window has no name ( as title bar is removed ).
For sending windows message, we need the window name, In my case, the gui dll window has no name and it is loaded as a child window on a third party application, in which i have no control.
So how to send message from application 1 to application 2.
Please help me guys. Its urgent.
Thanks in Advance
Velayudhan
|
|
|
|
|
I suppose you will use the window name in FindWindow function, you can use FindWindow with NULL in name and your Window's Classname in the next parameter and it will return the window handle.
Help your local Search & Rescue. Get lost!
|
|
|
|
|
Thanks,
but it will not work in the case of child windows,
|
|
|
|
|
You can always EnumWindows to find the child window.
IMHO you are better off trying to create some sort of IPC so that one window can communicate with the other and also pass on their HWNDs (IPC could be Pipes.. TCP/IP whatever suits you).
Help your local Search & Rescue. Get lost!
|
|
|
|
|
Hello,
Friends i am new in VC++.Net. I want to know hot to
set assembly version. i.e. How to set or change version number of the
dll generated by the VC++.Net project.
Thanks in advance.
Rahul Kulkarni
|
|
|
|
|
Well there is a better chance that someone will answer this in .NET forums
Don't believe everything you think.
|
|
|
|
|
When creating a .NET Assembly:
set the
[assembly:AssemblyVersionAttribute("1.0.*")];
meta attribut.
It is usually in the generated assemblyinfo.cpp.
When building a Win32 Programm:
Insert a VersionInfo in Resouce View
|
|
|
|
|
Hi all,
As a part of my project I am trying to get data from a URL , for example "www.mypage.com/data.htm"
Is there any function available in VC++ , so that I can give my URL
as an input string and get the Content of the page as a CString .
Please Help me ,
Thanks in Advance
George
|
|
|
|
|
You might be in luck
BOOL GetWebContent(LPCTSTR szURL, CString &strData)
{
strData = "";
HINTERNET hConnection = InternetOpen("Microsoft Internet Explorer",
PRE_CONFIG_INTERNET_ACCESS,
NULL,
INTERNET_INVALID_PORT_NUMBER,
0);
if (hConnection == NULL)
return FALSE;
DWORD dwSize;
CHAR szHead[] = "Accept: */*\r\n\r\n";
char *szbuf;
HINTERNET hConnect;
if (!(hConnect = InternetOpenUrl(hConnection,
szURL,
szHead,
lstrlen(szHead),
INTERNET_FLAG_DONT_CACHE,
0)))
{
InternetCloseHandle(hConnection);
return FALSE;
}
BOOL bReadInParts = FALSE;
DWORD dwNumberOfBytes = 0;
if (InternetQueryDataAvailable(hConnect,
&dwNumberOfBytes,
0,
0)){
if (dwNumberOfBytes < 0){
bReadInParts = TRUE;
}
else{
szbuf = new char[dwNumberOfBytes+1];
if (!InternetReadFile(hConnect, szbuf, dwNumberOfBytes, &dwSize)){
bReadInParts = TRUE;
}
if (dwSize < dwNumberOfBytes+1)
szbuf[dwSize] = '\0';
strData = szbuf;
delete []szbuf;
}
}
if (bReadInParts){
szbuf = new char[512];
do{
if (!InternetReadFile (hConnect, szbuf, 512, &dwSize)){
return FALSE;
}
if (!dwSize)
break;
if (dwSize < 512)
szbuf[dwSize] = '\0';
strData += szbuf;
} while(1);
delete []szbuf;
}
InternetCloseHandle(hConnect);
InternetCloseHandle(hConnection);
return TRUE;
}
I don't believe in failure. It is not failure if you enjoyed the process.
|
|
|
|
|
Hi Monty,
Its working wonderfully , Thank you very much for ur code.
Thanks
george kj
|
|
|
|
|
Hi Monty,
I tried your code and its working fine but for every url it is not fetching complete data(only 5% of the desired data) so please can you tell me that where could be the problem.....
Thanks A Ton
Ash_VCPP
|
|
|
|
|
Do you want to read objects on thml file like(links,buttons,...)?
|
|
|
|
|
Hi Whitesky,
Thankyou very much for ur response, I need only data , means text embedded in a url,
Thanks
George K J
|
|
|
|
|
Check out URLDownloadToFile()
|
|
|
|
|
Dear All,
I need to do Sysdm Tray Icon. How do i do this ?
Kindly help me .
Thanks
|
|
|
|
|
|
|
Is it possible to read data from the transmit and receive buffer of serial port. I'll be sending some data to the Tx line and the hardware will be sending response to the Rx line. How can I monitor both the data from the Tx & Rx line. We'll be using the same port to write to Tx line and monitor both lines. Is it possible ?
|
|
|
|
|
Have a look at PortMon[^].
PortMon will log all IRP's to the driver and the data sent/received.
--
Roger
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"No one remembers a coward!" - Jan Elfström 1998 "...but everyone remembers an idiot!" - my lawyer 2005 when heard of Jan's saying above
|
|
|
|
|
Its not possible to read and write from the COM port at the same time, only one operation is supported at one time.
Gas prices suggest that they have taken out lead from gas and replaced it with gold
|
|
|
|