|
Is there a way to save and import components (.ogx files) in VS 2005 like there was in VC++6.0?
What I need is to transfer a dialog in VS2005 to a VC6.0 project.
Any help is appreciated.
Thanks
Dave
I'm pretty sure I would not like to live in a world in which I would never be offended.
I am absolutely certain I don't want to live in a world in which you would never be offended.
Dave
|
|
|
|
|
No component gallery om vc2005 (it was removed since vc2002).
To copy dialogs, copy the vc6 dialog part from resource file (.rc) into vc2005 resource file..
--
======
Arman
|
|
|
|
|
I need to access windows user account properties.
What I want to do is,
Whether a user account is part of,
a. local administrator
b. domain administrator
c. exchange administrator
d. local user
e. domain user
Apart from this I want to also display
a. local GPO(Group policy setting)
b. domain policy setting
c. security policy setting
d. domain controller policy setting
I want to get a windows user account name and display what properties and what GPO policy setting it has?
I tried using LDAP, ADSI, LSA, but could not get all these rights!
Please advise!
Ramesh
|
|
|
|
|
|
hello,
Suppose I am developing an application in VC++ which helps in modifying data in excel.
For doing so I use COM components to get connected to excel and add a sheet etc.
But Suppose I have written a program in VC++ which uses pointers and I want to use the program in VB then will I be able to run my methods written in VC++ from VB
Prithaa
|
|
|
|
|
If your VC++ app is a COM server then you can access from VB.
Cheers,
Suresh
|
|
|
|
|
Hello,
Thanks for your reply.
But even if VB does not support pointers and references can I use COM. I don't know whether VB supports pointers .But if it doesn't then in my COM classes I should not use pointers.Is it?
Prithaa
|
|
|
|
|
VB doesnt support Pointer, however you can use COMponents which use pointers in their code.
As we all know COM is a binary standard, you are basically re-using the binary code not the C++ source code.
Cheers,
Suresh
|
|
|
|
|
Hello,
Thanks for your reply.
Is there any link to elaborate your point.
I have sort of undestood.
Prithaa
|
|
|
|
|
|
Hi, I currently have bitmaps coming in as files from a usb input and I'm wondering what library is suitable for displaying the bitmaps into a video. If so can someone point me in the right direction?
Thanks
|
|
|
|
|
If you just want to display them as a video then you can draw the bitmaps to a window as they
come in.
If you want to save a video file then you'll need to know the file format, and if it's a compressed
format, how to compress the images into a video stream.
For free, if Windows Meda Format is acceptable, you can use the Windows Media Format SDK[^]
to write an image stream to a Windows Media Video (WMV) file.
There's lots of third party stuff available I'm sure, but I've never used any.
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Thanks for the hints.
I've heard DirectShow can also be a relevant library, or is that mainly for displaying video?
|
|
|
|
|
DirectShow will work. The only problem I see with that is that there's no source filter available
to dump images into so you'd need to develop your own. Otherwise it would be similar to using
Windows Media Format. In fact, besides AVI, Windows Media (with MPEG-4) is the only included
way of writing files. Windows Media Format would be simpler than adding an extra layer on top
of it.
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Which version of the Windows Media SDK do you recommend, or should I use the latest (version 11)?
Thanks
|
|
|
|
|
I suppose the latest one (11) is fine. I'm still on 9.5 for no other reason than I haven't used
any of the newer DRM stuff in 11 and I haven't installed it. Maybe today if I'm bored
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Hi,
I am trying to get IID_IHTMLElement but its failing, in few cases. The GetlastError function returns 0 for these cases.
I am using following function call to achive this,
IHTMLElement * pElement = NULL;
IHTMLDocument2 * pHTMLDoc = NULL;
HRESULT hr;
IServiceProvider * pSP = NULL;
hr = pAccWindow->QueryInterface(IID_IServiceProvider, (void **)&pSP);
hr = pSP->QueryService(IID_IHTMLElement, IID_IHTMLElement, (void **)&pElement);
I do not get any exception, bur I getting pElement as NULL.
I got these failure when I press the Browser BACK button in MSIE 6.0.
Any pointer will be helpful,
Thanks in Advance
ARLahare
|
|
|
|
|
Abhi Lahare wrote: The GetlastError function returns 0 for these cases.
You need to diagnose the HRESULT
led mike
|
|
|
|
|
Return value is E_INVALIDARG
but not sure what is wrong with input parameter.
Regards
ARLahare
|
|
|
|
|
According to the docs, the object "can be an element or a window".
Have you tried querying for IID_IHTMLWindow2 first as documented?
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
|
Without knowing anything about this, I did a quick SDK search. This sample code (and similar
code found on Google) seems to be common -
HRESULT hr;
IHTMLWindow2 * pWindow;
IHTMLElement * pElement;
hr = pSP->QueryService(IID_IHTMLWindow2, IID_IHTMLWindow2,
(void **)&pWindow);
if (FAILED(hr))
hr = pSP->QueryService(IID_IHTMLElement, IID_IHTMLElement,
(void **)&pElement);
pSP->Release();
if (SUCCEEDED(hr))
{
assert( pWindow || pElement);
....
code here...
if (pElement)
pElement->Release();
if (pWindow)
pWindow->Release();
}
Maybe that helps?
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
From my experience the IHTMLElement interface is not accessed via IServiceProvider but simply via QueryInterface on the element in question. GetLastError is not used for error handling in COM: COM is designed with remote access in mind and the GetLastError mechanism is thread specific. In your code what is pAccWindow ?
Steve
|
|
|
|
|
Thanks Stephen,
I have seen code samples where IServiceProvider is used to accesses IHTMLElement and its working in my code for other cases.
pAccWindow is the IAccessible pointer.
Thanks for your help
ARLahare
|
|
|
|
|
A problem became apparent when I tried to run an app I have that utilizing the Dropdown arrows for toolbar buttons in Windows Vista. I haven't had much luck in the Vista forum, so I thought I'd approach my issue from a different angle and entertain the idea that it might not be related to Vista and maybe just something I'm doing wrong. Maybe it's been working on previous systems out of pure luck.
(I don't want it to be a crosspost, but in case somebody asks, the problem on Vista was the buttons end up too big vertically to fit in the toolbar)
Anyway, here's what I am adding to my CMainFrame::OnCreate to get dropdown arrows. I am also adding text to the right of the buttons. I'll assume I'm just using the "new" button for demonstration.
Am I doing this part correctly in general (2000, XP, etc...)?
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
//...
if (!m_wndToolBar.CreateEx(this,TBSTYLE_FLAT|TBSTYLE_LIST,
WS_CHILD|WS_VISIBLE|CBRS_TOP|CBRS_TOOLTIPS|
CBRS_FLYBY|CBRS_SIZE_DYNAMIC) ||
!m_wndToolBar.LoadToolBar(IDR_MAINFRAME))
{
TRACE0("Failed to create toolbar\n");
return -1; // fail to create
}
//...
m_wndToolBar.GetToolBarCtrl().SetExtendedStyle(TBSTYLE_EX_DRAWDDARROWS);
//...
m_wndToolBar.SetButtonStyle(m_wndToolBar.CommandToIndex(ID_FILE_NEW),
TBSTYLE_AUTOSIZE|TBSTYLE_DROPDOWN);
//...
m_wndToolBar.SetButtonText(m_wndToolBar.CommandToIndex(ID_FILE_NEW),"New");
//...
return 0;
}
|
|
|
|