|
stephen please, don't forget the <pre> tags
|
|
|
|
|
I used the "Ignore HTML tags in this message (good for code snippets)" option. There's no need for <pre> tags when this is selected. I can't see anything missing.
Steve
|
|
|
|
|
............
...........
else
cout<<"Cant open file"<
|
|
|
|
|
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
|
|
|
|