|
The problem is difficult to reproduce.
What happens if you comment some parts of serialization function?
|
|
|
|
|
*Sigh* As usual, I assumed the problem ran deeper than it did. My assumption that my routine to get the HTML from the browser was actually doing that seems to be wrong. It was getting it from, in my case, the file the browser had navigated to.
That is, if I loaded a file in the browser and then deleted the file and tried my GetSource function it wouldn't work...
It's hard work being an idiot.
|
|
|
|
|
Hi,
What API can I use to play a simple avi-file on the window (HWND)?
Please not using DirectX (DirectShow).
thanks in advance,
Ward
Ward
|
|
|
|
|
|
Yes, those functions I already found, but there is no example (or at least I can't see one) that shows the use of these functions to open an avi-file and display it on a window.
I've explored the MCI api (a little higher in the treeview of the link you gave me), but this is also not exactly what I need. MCIWnd gives me a complete window (including a bucn of controls), but that I don't need that.
Ward
|
|
|
|
|
Ward wrote: Yes, those functions I already found, but there is no example (or at least I can't see one) that shows the use of these functions to open an avi-file and display it on a window.
Opening an AVI file
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Final solution.
I'm sorry to say that all you were able to reply on this topic was simply a result of some high level searching the internet.
None of them showed me a nice clean piece of code that actually did it.
Finally I found it on my own using a common control of ICC_ANIMATE_CLASS.
This window class is able to to it by using simple functions like
Animate_Open and Animate_Play.
For those who are really interested, I can post a nice clean example of it.
Just ask for it and I'll post here here.
kind regards,
Ward
-- modified at 8:55 Friday 30th June, 2006
|
|
|
|
|
Ward wrote: None of them showed me a nice clean piece of code that actually did it.
Surely you can't be that lame. Sarath provided you a link to the AVI functions, and you replied to him that you already knew of them but that none of them had an example that showed how to open an AVI file. I provided you with a very succinct example of how to open an AVI file (from the link that Sarath provided).
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
The AVI functions that you brought up where all created with the purpose of editing the AVI file. The application I was looking for was to play an AVI file.
I've searched before in all the information that Sarath gave my a link to and I've also looked at the example that you've (DavidCrow) linked me too. But the functions and the example did not provided a simple solution. The purpose for me was to have a simple solution to play an avi, not the implement a complete engine using the AVI-functions. I'm sure that I would be able to accomplish that, but it had to be implemented in a very short period of time.
I understand your remarks, and I hope you understand mine as well.
kind regards,
Ward
|
|
|
|
|
What do you need?i think MCI functions are good
whitesky
|
|
|
|
|
OK, can you show example code where you can load and show an avi on a HWND, not containing any controls?
Ward
|
|
|
|
|
Well in fact i want to show like this code but its a big for this fourm so i said you can use MCI
whitesky
|
|
|
|
|
hello everybody:
How to open html file like this(http://www.codeproject.com/index.html) in win32 project,Not MFC And Not Use ShellExecute(...),
I want to write a class to show this html file,but I don't know how to write...
please Help me....
thanks....
|
|
|
|
|
Waitting for you Online...
please help me...
|
|
|
|
|
-- TTD --
|
|
|
|
|
|
|
hey all,
thanks to all for responding to my questions so far and helping me learn MFC/VC++
I have one more on my way...
Iam using VC++6.0 and have implemented the serial communcation between PC and the serial device(RABBIT3000-an 8 bit microcontroller).
When I build the program, everythign goes fine. I can send and receive packets on both ends.
But when I try to send a packet to the Rabbit from PC more than once, my VC++ code breaks..saying "assert failed"
the failure is in line 304 of MFC/SRC/WINCORE.CPP
ASSERT(pWnd == NULL || pWnd->m_hWnd == hWnd);
what does this mean?
CAn anyone explain?
Thanks in advance.
|
|
|
|
|
It has probably nothing to do with the communication itself (more with the way you are handling the data, if you show that on a window or something). It is really difficult for us to give a solution. You have to track the problem yourself. The best way to do that is to use your debugger: press F5 and see where it crashes, you can the use the call stack to see which function in your code was called last. Then, you can set breakpoints and do step-by-step debugging in the code where there are problems.
Cédric Moonen
Software developer
Charting control
|
|
|
|
|
hey there,
thanks for ur response.
Will try debugging.
|
|
|
|
|
When the assertion fires, click the Retry button. This *should* take you to line 304 of wincore.cpp. From there you can view the call stack.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hello
when i try to access the function in the secont function.....
it gives me error
these both functon belong to same class.
"Illegal call of Non Static Member Function".
how to rectify this error?
thanx
|
|
|
|
|
type some code to get more detail
|
|
|
|
|
hello..
sipxmngr::EventCallbackProc(SIPX_EVENT_CATEGORY category,void* pInfo,void* pUserData)
{
SIPX_CALLSTATE_INFO* pCallInfo = (SIPX_CALLSTATE_INFO*) pInfo ;
switch (category)
{
case EVENT_CATEGORY_CALLSTATE:
{
switch (pCallInfo->event)
{
case CALLSTATE_OFFERING:
error here sipxmngr::handleCallStateEvent(pCallInfo);
break ;
}
}
return true ;
}
int sipxmngr::handleCallStateEvent(SIPX_CALLSTATE_INFO* pCallInfo)
{
switch (pCallInfo->event)
{
case CALLSTATE_NEWCALL:
sipxmngr::handleNewCall(pCallInfo->hCall, pCallInfo->cause);
break ;
}
return 1;
}
plz tell me the solution.
|
|
|
|
|
U cant call a non-static function like this
<br />
sipxmngr::handleCallStateEvent(pCallInfo);<br />
U need to have an object of the class sipxmngr or make the second function static
|
|
|
|