|
Can I control the IE browser by using a COM?
is there a example?
thanks!
|
|
|
|
|
Yes, you can. Internet Explorer has a rich set of COM-interfaces, so you can do almost anything you want. You can get the documentation (samples included) by downloading the Internet Development SDK from Microsoft, or by browing it online using the MSDN Library (URL for both the SDK and the Library: http://msdn.microsoft.com).
|
|
|
|
|
Hi,
I'm trying to create a setup wizard and im wondering how to copy files across to other directories, creat new directories and create icons for the desk top. Can anybody help
Cheers
Dor
|
|
|
|
|
hi,
If u r using VC++ for ur application, i think its better to use the "Install Shield for VC++". That will save ur lot of work as we can do it easily with the wizrds taht it provides.
Hope this Hepls u...
Regards
hkprs
|
|
|
|
|
You can use Inno setup which is free :-
http://www.jrsoftware.org/isdl.php
Nish
My miniputt high is now 29
I do not think I can improve on that
My temperament won't hold
www.busterboy.org
|
|
|
|
|
May be i must for each toolbar button create item menu?
|
|
|
|
|
In VC++ 6.0 you could use the class wizard.
I guess in VC++ 7.0 it must be through similar means...
Nish
My miniputt high is now 29
I do not think I can improve on that
My temperament won't hold
www.busterboy.org
|
|
|
|
|
early i think also as you.
How I can do this?
|
|
|
|
|
hi:
where to get the windows xp icons (the icons for App ,Toolbar...)
Thanks
benben
|
|
|
|
|
benben wrote:
where to get the windows xp icons
Huh? You mean you want XP style true color icons in non-XP OSs
Nish
My miniputt high is now 29
I do not think I can improve on that
My temperament won't hold
www.busterboy.org
|
|
|
|
|
If your OS is windows xp,use this tool search
your hard disk for icons : Icon Searcher v1.3
Download url: http://softplus.126.com
Enjoy!
|
|
|
|
|
This is driving me crazy , wonder if anyone can help.
I'm am having some serious problems with GetMenuItemInfo and
SetItemInfo using WTL, but only with the dwItemData memeber, everything else seems to work
fine...
Let's say in OnCreate I try to add some data to the ID_FILE_NEW Menu
Item like so: lets make it a simple DWORD instead of a pointer just to keep things
clear...
CMenuItemInfo mii;
CMenuHandle menu = m_CmdBar.GetMenu();
CMenuHandle submenu = menu.GetSubMenu(0);
mii.fMask = MIIM_DATA | MIIM_ID;
mii.dwItemData = 1001;
mii.wID = ID_FILE_NEW;
if( submenu.SetMenuItemInfo(ID_FILE_NEW,FALSE,&mii) == 0 )
{
// Little helper function
ShowLastError();
}
Then when I the user selects the menu item in OnFileNew, I do this:
CMenuItemInfo mii;
CMenuHandle menu = m_CmdBar.GetMenu();
CMenuHandle submenu = menu.GetSubMenu(0);
mii.fMask = MIIM_DATA;
// I could actually use wID here passed in but I want to test
// the the specific menu item at the moment
if( submenu.GetMenuItemInfo(ID_FILE_NEW,FALSE,&mii) == 0 )
{
// Little helper function
ShowLastError();
}
DWORD dwTestData = mii.dwItemData;
dwTestData is always '0' no matter what I try to set it to.. I can
retrieve the Menu item text and print it out so I know I'm dealing
with the right menu item... I don't know if I am going wrong with
setting the data or retrieving it... It is really driving me nuts,
I feel like I am missing something very obvious here.
Thanks,
Scott
PS.. Here is an example project:
http://www.binaryrevelations.com/menutest.zip
=======================================
: W. Scott Dillman
: Principle Software Engineer
: binaryRevelations Interactive, LLC.
: http://www.binaryrevelations.com
=======================================
|
|
|
|
|
SetMenuItemInfo
The SetMenuItemInfo function changes information about a menu item.
Remarks
The application must call the DrawMenuBar function whenever a menu changes, whether or not the menu is in a displayed window.
Not sure if that will make a diff or not.
Todd Smith
CPUA 0x007 ... shaken not stirred
|
|
|
|
|
I got a really good reponse on this from the WTL group on Yahoo... It seems that the command bar class is causing the problem... It uses the data item to store drawing information, so I can either use a plain menu or extend the command bar class and use something like a STL map to store my data.. thanks for the reponse..
=======================================
: W. Scott Dillman
: Principle Software Engineer
: binaryRevelations Interactive, LLC.
: http://www.binaryrevelations.com
=======================================
|
|
|
|
|
Does anyone know how I can program in Microsoft Visual C++ 6.0 in 16-bit for DOS? Thanks
Steve
|
|
|
|
|
I am just curious why?
I think (not sure) that I saw a 16-bit SDK on MSDN.
- Matt Newman
-Sonork ID: 100.11179:BestSnowman
†
|
|
|
|
|
I dont think VC++ 6.0 can output 16 bit executables.
You might want to try alternatives like Turbo C++ for DOS
Or try and get an older version of VC++ that also came with the 16 bit model. Maybe 1.5.
Nish
My miniputt high is now 29
I do not think I can improve on that
My temperament won't hold
www.busterboy.org
|
|
|
|
|
I want to work with the HotKey Control in dialog .
And i'm interesting in the follows feature :
- how to store entered values ?
- how to put them into dialog (how-to put into dialog combination "Alt+Control+ A", for example, - at least with the simple letter presentation i have not find solution - how ?) ?
Also i'm interesting : I need all the time to convert manually VK_F8, MOD_WIN, .. etc. values into the codes (for storage) and vice versa, or exist much more wise solution ?
thank you
|
|
|
|
|
How do you go about dealing with a situation when the "lpDialogTemplate" variable in the parent's DoModal (i.e. Dialog::DoModal()) is null, when you are trying creating and calling a dialog's DoModal?
According to the comments in the CDialog code, it means that it failed to load the dialog template resource. But how would this happen? under what circumstances would you get this?
|
|
|
|
|
I guess if you accidentally rename or corrupt the dialog resource this would happen.
Nish
My miniputt high is now 29
I do not think I can improve on that
My temperament won't hold
www.busterboy.org
|
|
|
|
|
Hi,
I have some code like this:
-----------------------------
void CMyClass::SetIconText(HWND desktopLV)
{
LVITEM lvItem;
::ZeroMemory(lvItem, sizeof(LVITEM));
lvItem.mask = LVIF_TEXT;
lvItem.iItem = 0;
lvItem.lvItem.pszText = "Tralala";
lvItem.cchTextMax = 16;
::SendMessage(desktopLV, LVM_SETITEMTEXT, (int)(WPARAM)0, (LPARAM)(LPLVITEM)&lvItem);
-----------------------------
So, for test purposes, I'm trying to change the text of the first icon on my desktop. (The HWND is okay, since I can use other messages like LVM_SETTEXTCOLOR, etc.).
The problem is, that when the code gets executed, the program crashes...but I can't see the reason, since I believe I did everything okay (obiously, I didn't... .
Any ideas?
Thanks in advance
--Jörg
|
|
|
|
|
That will never work because the desktop window belongs to another process. The string is in your app's process space, which Explorer cannot access. You cannot pass pointers between processes without using shared memory.
--Mike--
Rollin' in my 5.0
With the rag-top down so my hair can blow.
My really out-of-date homepage
Sonork - 100.10414 AcidHelm
Big fan of Alyson Hannigan and Jamie Salé.
|
|
|
|
|
I have o develop a netmeeting application
which only has to send and reciev files nothing else
please help as running short on time and very new to com
take care
pauli
|
|
|
|
|
The platform SDK has some good examples of using netmeeting via the COM object.
Michael
|
|
|
|
|
the msdn inof on it is here http://msdn.microsoft.com/library/default.asp?url=/library/en-us/termserv/tsref_8d66.asp
now I try and call that function, the first parameter it takes is
hWnd
[in] Handle of the window to receive session change notifications.
What handle is that? I tried making a class of CMyProg and putting it there but I get some external error that says
traytest2Dlg.obj : error LNK2001: unresolved external symbol _WTSRegisterSessionNotification@8
Debug/traytest2.exe : fatal error LNK1120: 1 unresolved externals
I don't know if it has to do with the parameter i'm passing or not. Any help is very appreciated
|
|
|
|