Hi, I would do it this way:
Set some bool variable(s) for storing state of menus( enabled, checked, ... )
For each menu item override UPDATE_COMMAND_UI...
pCmdUI->Enable( m_bSomeBoolVariable );
Changing of variable changes state of menu...
Well, I think it's all right. Anyway I wouldn't make it that way. :-V
It's easier to use a reference in a function call...
giveMeTheVector( IntVector& vec )
If it is possible change header files:
#ifdef __cplusplus
extern "C"
{
#endif
// function prototypes for sqlctdiag, ...
void doSomething( void );
#ifdef __cplusplus
}
#endif
The only thing I know about taskbar, it is a first instance of Windows explorer. When you in NT/2000 kill explorer process, your taskbar is gone. ( You can launch it back using taskmanager :)
One thing it could be:
If functions (sqlepilog, sqlResults, ...) were compiled with C compiler and you want them to use in C++, you need to declare them as extern "C"...
Example:
Instead of void sqlepilog( void* ); use extern "C" void sqlepilog( void* );
Or make changes in...
1. regsvr32 swflash.ocx
2. In VB project right click on controls toolbar -> Components. Then try to find ShockwaveFlash, ( or use browse button )
3. Add it into your Form and name it Flash.
4. Change Form property OLEDropMode to 1
5. Override method:
Private Sub Form_OLEDragDrop(Data As...
I would recommend to pass it as a BSTR and then convert it into CString. CString has also operator LPCTSTR that enables you to handle it as a "const char*".
You can also use STL stuff to parse it.
Example:
std::istringstream is( "10:1A:26:8F:20" );
std::string substr;
while (...
I think in this case you do not have to use multithreading. In your application you can override WM_LBUTTONDOWN and WM_TIMER messages and it should work.
Believe me, you should not EVER do that. (-:
I will try to explain it a bit...
Inside of scopes defined by your function you defined a variable. It was ok. OS ( operation system ) knew that there is a memory space for your variable. After your function ended, OS destroys variable and marks that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.