|
Sorry, missed pw-> in code.
According to your code, the code is:
CWnd* pw = m_tab1.GetWindow(GW_CHILD);
while(pw)
{
MessageBox("trala");
pw=pw->GetWindow(GW_HWNDNEXT);
}
|
|
|
|
|
|
Now that i've gotten the handle to all items, i'd like to know how i may get information of which kind the item is.
is there any way to get to know whether the item is a button or a spin control or... whatever?
|
|
|
|
|
Hi All,
I am trying to run a chat client-server application in vc++.The server is running on Windows Vista whereas client is running on Windows XP.The application failed.Can anybody tell me how to make it work.
Regards,
Abinash
|
|
|
|
|
Abinash Mohanty wrote: I am trying to run a chat client-server application in vc++.The server is running on Windows Vista whereas client is running on Windows XP.The application failed.Can anybody tell me how to make it work.
Yes: fix it.
i.e. vague question -> vague answer.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Abinash Mohanty wrote: The application failed.
Wow, that was a very clear description of your problem
There's nothing wrong with using XP as client and Vista as server, so I guess you'll need to investigate a bit more than that (e.g. use your debugger).
|
|
|
|
|
While asking a question please be specific as to what you are using , what exactly is failing , which framework are you working on, what language you are using , what is the error you are getting in log file and in which method or function it fails.These all things are mandatory if you want a proper answer to your question. Else, its all to vague
Regards,
Kushagra
I hate coding but I luv to develop .
|
|
|
|
|
Sockets are not dependent on the operating systems (not even programming languages). You can have a C++ server and have a client written in VB (ugh...) connect to it.
So, you have essentially given no clue. All we know is that your program is "not working". So, the only possible suggestion to you would be "then fix it".
If you could give more details and be specific, one or the other would definitely answer your query. You might as well look at one of those plenty of articles on client/server programming. Search CP.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
hi all
my question is that can we typecast the directshow filter?
if yes how i typecast the IUnknown filter to IBaseFilter?
pls help me
|
|
|
|
|
raj1576 wrote: my question is that can we typecast the directshow filter?
Why?
raj1576 wrote:
if yes how i typecast the IUnknown filter to IBaseFilter?
Why don't you use the mechanism COM provides for, i.e. QueryInterface ?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
thanks pallini for reply
Because I am getting the value from the IUnknown filter from the gmfbridge and now i want to connect the manually graph so that I have to use typecast this IUnknown filter to the IBaseFilter.
|
|
|
|
|
Your question is unclear, to say the least. I can't make head or tail out of it. Can you explain more clearly?
Steve
|
|
|
|
|
I am using gmfbridge to play the clips
hr = pController->CreateSourceGraph(wFilter, m_pGraph, &m_pSinkFilter);
where m_pSinkFilter is the IUnknown type. If I want to GetPin of this m_pSinkFilter then this function wants the IBaseFilter type.
GetPin((IBaseFilter*)&m_pSinkFilter, PINDIR_OUTPUT);
Is this possible
|
|
|
|
|
raj1576 wrote: GetPin((IBaseFilter*)&m_pSinkFilter, PINDIR_OUTPUT);
Is this possible
What happens when you try it?
|
|
|
|
|
|
The better thing is..
IBaseFilter *pFilter = 0;
HRESULT hr;
hr = m_pSinkFilter->QueryInterace(IID_IBaseFilter, (void**)&pFilter);
if(SUCCEEDED(hr))
{
}
Cool_Dev
=======
|
|
|
|
|
raj1576 wrote: GetPin((IBaseFilter*)&m_pSinkFilter, PINDIR_OUTPUT);
That looks wrong, since m_pSinkFilter is already a pointer to an interface, you should write
GetPin((IBaseFilter*)m_pSinkFilter, PINDIR_OUTPUT)
(i.e. remove the address-of operator).
In any case, what is the purpose of bypassing the COM QueryInterface mechanism? Why don't you use m_pSinkFilter to QueryInterface for IBaseFilter ?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Now I am doing this like as
hr = pController->CreateSourceGraph(wFilter, m_pGraph, &m_pSinkFilter);
hr = m_pSinkFilter->QueryInterface(IID_IBaseFilter, (void**)&FileSource);
if(SUCCEEDED(hr))
{
hr = ConnectFilters(m_pGraph,FileSource,mxfparser);
if(FAILED(hr))
{
MessageBoxA(NULL,"failed to connect","",NULL);
}
}
But Here now connectFilters Failed.
|
|
|
|
|
Hi,
I am an experienced programmer in Linux, but new to Windows.
I want to develop windows XP driver for a PCI based device.
Also, I want to write a device capability Demonstration application.
I am free to select Visual Studio 6.0 to Visual Studio 2008.
1. Is it a good decision to do the Demo Application development in VC++ Dot-Net, and Driver Development in Non-Dot net environment?
2.Which version of Visual studio is suitable for me, considering the future usefulness of the technical knowledge I am acquiring.
3.Please suggest some good books for Windows XP Driver Development.
Thank You very Much
Jacob
|
|
|
|
|
TechAvtar wrote: 1. Is it a good decision to do the Demo Application development in VC++ Dot-Net, and Driver Development in Non-Dot net environment?
IMHO yes.
TechAvtar wrote: 2.Which version of Visual studio is suitable for me, considering the future usefulness of the technical knowledge I am acquiring.
The latest one.
TechAvtar wrote: 3.Please suggest some good books for Windows XP Driver Development.
Sorry, I don't know.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
TechAvtar wrote: 3.Please suggest some good books for Windows XP Driver Development.
Take a look here[^], lots to choose from.
|
|
|
|
|
Hi Guys,
Do we have any unicode equivalent to this _chdrive function?
I made my application unicode supporting one. previously it was working fine but now it is not working and application is crashing.
Previously it was having the value of 28 but now the value is 35. Why is it so?
code snippet:
----------------------
_chdrive(theApp.m_Dir[0]-'A'+1);
-------------------------------------------------
can anyone shed some light on this issue?
Thanks,
Rakesh.
|
|
|
|
|
Rakesh5 wrote: Do we have any unicode equivalent to this _chdrive function?
_chdrive is completely independent of UNICODE, since it accepts an integer as argument (and not a string).
Rakesh5 wrote: Previously it was having the value of 28 but now the value is 35.
Which value are you talking about ? The return value of _chdrive ? That's impossible since it returns either 0 or 1.
Please clarify your question...
|
|
|
|
|
Hi,thanks for the reply...
int a = theApp.m_Dir[0]-'A'+1 ;
Can you please tell me what is the logic behind using 'A' + 1 ;
Can you help me??
Thanks,
Rakesh.
|
|
|
|
|
Rakesh5 wrote: Can you please tell me what is the logic behind using 'A' + 1 ;
You wrote the code but you don't understand what you wrote ??
Anyway, you are taking the first letter of the m_Dir string (which is probably a drive letter) and substracting the value of 'A'. This is because the letter 'A' has a specific ASCII code (which is not 1) but the A drive should be 1. Then you are incrementing the drive number by 1.
|
|
|
|