Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: hcexi
  • Order by date
  1. hcexi

    Enable / Disable someone pls help....

    try EnableWindow()
  2. hcexi

    how can I round a number,

    Hi, I don't know about round method too, so I created one myself. Hope it's all right... s-) double round( double dNumber, int nDec, bool bHalfs = false ) { const double dPow = pow( 10, nDec ); if ( bHalfs ) { const double d0 = floor( dNumber * dPow ) / dPow...
  3. hcexi

    Disabling Menu Items

    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...
  4. hcexi

    deleting a vector

    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 )
  5. hcexi

    "unresolved external symbol __sqlResults"

    If it is possible change header files: #ifdef __cplusplus extern "C" { #endif // function prototypes for sqlctdiag, ... void doSomething( void ); #ifdef __cplusplus } #endif
  6. hcexi

    Does anyone know about taskbar ? please HELP !

    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 :)
  7. hcexi

    "unresolved external symbol __sqlResults"

    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...
  8. hcexi

    ocx files & swflash.ocx

    see Microsoft: ActiveX forum.
  9. hcexi

    Arrays, maybe...

    Just place void inputch(char pID[]); above the main, or create new header file for it.
  10. hcexi

    ocx files and swflash.ocx

    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...
  11. hcexi

    CoCreateGUID() prototype + definition

    The only problem I can see is the fact you are using: CoCreateGUID instead of this CoCreateGuid
  12. hcexi

    String conversion for ActiveX method

    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 (...
  13. hcexi

    How do I execute timer and another function at he same time

    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.
  14. hcexi

    Can't alloc a two dimensional string array

    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...
  15. hcexi

    using _ecvt or _fcvt???

    Hi guys, Is there any reason why not to do it this way? double d = 0.0314; CString str; str.Format( "%.4f", d );
  16. hcexi

    Can't alloc a two dimensional string array

    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);
  17. hcexi

    API to bring the AddPrinter wizard

    Maybe you could use GetProfileString, GetProfileInt, ... functions or something similar.
  18. hcexi

    Exporting a vriable from an app

    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.
  19. hcexi

    Exporting a vriable from an app

    It seems zip file is broken.
  20. hcexi

    Exporting a vriable from an app

    Once your dll is loaded it's a part of running process. You can use stuff from application in dll and vice versa. Could you be more specific?

Part and Inventory Search

Back
Top