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 :)
......) 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 their header file.
But maybe this is not the reason. :-(
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...
...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 ( is )...
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...
Hi, 2 things:
1. You cannot return pointer to local a variable from a function.
return msg;
2. You should use calloc this way:
calloc( zLarg, sizeof( char* ) );
calloc( zProf+1, sizeof( char ) );
not this way:
calloc(zLarg,1);
calloc(zProf+1,1);
I don't understand that. Sorry.
But it could be that you call InitDll with NULL parameter yourself. If you track underlying window with WM_MOUSEMOVE I would recommend to call SetCapture( HWND of your app ) and ReleaseCapture in the end.
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.