|
Hi
Do anybody know what asycfilt.dll (system dll) is all about.
When i run my software (a video streaming software) on windows XP , it sometimes crash and XP default crash reporting dialog comes which says
Error occured in asycfilt.dll
Offset 00008988 etc.
so is there any way that i could judge the nature of error from this information , even if one get the detailed techinical report it is no more than bunch of assembly lines .
Unmanaged in a .NET world
|
|
|
|
|
During the processing of excel workbook in a VC program
when i open the workbook i'am currently processing the
application crashes. I have given exclusive access to
excel workbook in the program. The reason for crashing is
m_lpDispatch is becoming NULL. The Excel application that I'am opening manually is using the object through which my program accesses the excel services. Hence m_lpDispatch is becoming NULL.
Does any one has a solution
for this problem
|
|
|
|
|
Hi anybody has any inputs on Plugin Frameworks, some pointers articles would be helpful.
Regards
Tarun
Blue Pill or Red Pill........??
|
|
|
|
|
How about this one?
http://www.codeproject.com/dll/plugin.asp?target=plugin
-----
We are what we repeatedly do. Excellence, then, is not an act, but a habit.
|
|
|
|
|
There is my article about an MFC plug-in framework:
MFC plug-in architecture[^]
Roger Allen - Sonork 100.10016
Roger Wright: Remember to buckle up, please, and encourage your friends to do the same. It's not just about saving your life, but saving the quality of life for those you may leave behind...
|
|
|
|
|
Hi all,
I have two threads, one thread call the other member function.
T1 :public CWinThread{
CCriticalSecion m_csLock;
public:
void dosmt{
if(csLock.Lock()){
................
csLock.Unlock
}
}
}
and T2:public CWinThread{
};
T1 t1;
T2 t2;
In t2 member functions calls t1.dosmt();
It works fine, but sometimes, it frezee in t2 context because of m_csLock.Lock never return. Is there any body know why?
Do Manh Hung,
|
|
|
|
|
You can't use a critical section on the stack. It must be visible to both threads. You can make it a static, which is probably the easiest solution.
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
Thanks Franks, but I I still have questions.
#1. if it must be visible to both threads, why doesn't it frezee immediately. It may run one day, two days before be blocked.
#2.
Is it OK if I declare a CCriticalSecion* pCS which refer to the m_csLock in T1. Then in T2, I use function pCS->Lock/Unlock? Is the m_csLock is visible to both thread?
Do Manh Hung,
|
|
|
|
|
Critical sections block all the time, that is their job. If you get a deadlock which is what you are talking about then that is a separate issue. This can be as simple as the code inside a CS getting into an endless loop and never returning. CS's should be used for the shortest amount of time and least amount of time as possible. You need to ensure try - catch is used and any exceptions always unlock the CS.
I suggest you go and read some heavy books on multithreading, thread synchronization, deadlocks etc. This is a very difficult area and unless you have a very good understanding of the basics you will have problems.
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
Hi,
I want to hide a shortcut from desktop window. But I don't want to use hide attribute of file. I am using vc++. Can any one help me regarding this problem?
Thanks
Shoma
|
|
|
|
|
copy them into another directory, i don't know about any other way.
Don't try it, just do it!
|
|
|
|
|
Thanks for your reply. But I have to do it without moving shortcut file. Now I am concern about anly shortcut file but I have to do it for file and folders also.
If any one know anything about this then please help me.
Thanks a lot.
Shoma
|
|
|
|
|
I want to make a program by TAPI and multicast.How I should configue the environment in VC++.I've been looking for tutorials about this on MSDN and other sites,but find nothing.Who can help me?
|
|
|
|
|
get the latest SDK install it and regsiter with visual Studio.
Thats enough.
Blue Pill or Red Pill........??
|
|
|
|
|
does anyone have any ideas (I know there's lots of brute-force/ugly ways) to handle something like :-
CString strNext = genNextSeq("aa");
Where the correct progressions in the sequence given "aa" as the 'current' sequence are ab, ac, ad ... az, ba, bb, bc .. zz
Im just interested - it came up in a log file rotation scheme I was using - I just made do with yyjjj_xx where yy=year, jjj=Julian, and xx = 01..99
'G'
|
|
|
|
|
Write a base26 number class. So, your base26 'a' would have value 1. Your base26 'aa' would have value 26+1=27, your base26 'bc' would have (26*2)+3=55. Maybe your class could have a member which would generate a string version of the number held internally. Kinda like converting between hex and decimal, except instead of base16 we have base26. Sounds kinda interesting.
Chris Richardson
|
|
|
|
|
thanks Chris - I was sort of heading down this track, but expressing it like that, ie 'base26' is what seals the decision - what I was thinking about was the same, doing mod(n,26) etc, but not expressed as succinctly as you !!!
Chris Richardson wrote:
Sounds kinda interesting
yeah, funny, we take base10 for granted - this isnt that much different, except the representation of the characters changes
I like the member idea as well to generate the string from the internally held numeric value .. when I'm done I'll try to post it for a good flaying here in CP
thanks & cheers, Garth
|
|
|
|
|
Hi,
In my program, I have 56 Edit Controls where I can type the names of 56 players. Presently, I'm using ON_EN_SETFOCUS for every Edit Control to set an INT variable that tells me which Edit Control has the focus. When I want to print, delete or view the result of the player in focus, I check the variable and than print or delete the good player.
Is there an easier way to know the ID of the Edit Control in focus? Like when I want to print a player's results, just get the Edit Control ID in focus at this moment, compare the ID and identify the player.
Here's a sample of my code:
....
ON_EN_SETFOCUS(IDC_NAME13, OnEnSetfocusName13)
ON_EN_SETFOCUS(IDC_NAME14, OnEnSetfocusName14)
END_MESSAGE_MAP()
void CMainView::OnEnSetfocusName14()
{
PlayerInFocus = 14;
}
What I would like to do:
void CMainView::OnPrintPlayer()
{
Get the control ID in focus
if(Control ID == 14)
Print Player 14
else if(Control ID == 15)
Print Player 15
else if ...
}
Thanks
Dave
|
|
|
|
|
just make sure your resource ID`s are in consecutive
eg
IDC_NAME1=21
IDC_NAME2=22
.
.
.
IDC_NAME26=46
and then you could use in messagemap:
ON_NOTIFY_RANGE( NM_SETFOCUS, IDC_NAME1, IDC_NAME26, SetPlayerFocus )
define SetPlayerFocus in header as:
afx_msg void SetPlayerFocus(UINT nid, NMHDR* pNotifyStruct, LRESULT* pResult);
void CMainView::SetPlayerFocus(UINT nid, NMHDR* pNotifyStruct, LRESULT* pResult)
{
m_nPlayerWithFocus = nid - IDC_NAME1 +1 ; //results in 1 for player1 etc...
pResult = 0;
}
void CMainView::OnPrintPlayer()
{
// print whatever you like, m_nPlayerWithFocus contains value of last edit field that had focus
}
I think that should roughly do the trick...
.
.
.
.
other option, maybe even better skip the setfocus function just do:
void CMainView::OnPrintPlayer()
{
CWnd * wndFoc = GetFocus();
if( !wndFoc )
return;
int nCurrentPlayer = wndFoc->GetDlgCtrlID() - IDC_NAME1 +1;
if( 0<nCurrentPlayer && MAX_PLAYERS >=nCurrentPlayer )
PrintResultsFor(nCurrentPlayer);
}
|
|
|
|
|
As a note, you could use:
CWnd *pFocus = GetFocus();
if (pFocus && pFocus->IsKindOf(RUNTIME_CLASS(CEdit)))
{
UINT id = pFocus->GetDlgCtrlID();
// makse use of the controls id here....
Roger Allen - Sonork 100.10016
Roger Wright: Remember to buckle up, please, and encourage your friends to do the same. It's not just about saving your life, but saving the quality of life for those you may leave behind...
|
|
|
|
|
Thanks a lot, that's exactly what I was looking for!
I'm a beginner, so I'm learning...
Dave
|
|
|
|
|
Maybe I'm missing something, but why can't you just GetFocus() ? This will return a CWnd* of the window having the focus.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Hi all,
For example &File. If you press Alt + 'F' the file menu opens. ... I would like the underline to always display
Thanks all
|
|
|
|
|
no idea,
in fact, i'm not sure we really can. every App' i use show like you say, and i've never found a way to underline to always display... if only you find the solution, please tell me.
TOXCCT >>> GEII power
|
|
|
|
|
Are you talking about the way Windows XP hides the underline until you press Alt?
If you are, this is a setting that you can change in the Display Properties (Control Panel -> Display or right-click on the desktop).
There you go to "Appearance", click on "Effects" and unselect the "Hide underlined letters for keyboard navigation until I press the Alt key".
I don't know how to change this from inside a program, but as it is a user's setting, you better keep it as the user choosed it to be.
|
|
|
|