CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: raghupathys

Page 1 of 4 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    74
    Views
    13,919

    Re: Why is Codeguru slow nowadays?

    Have'nt really noticed anything out of the ordinary.
    Codeguru seems pretty fast, both at work and at home. (I use Firefox).
  2. Replies
    2
    Views
    652

    Re: Get other process output

    hmm redirect the output with a redirection filter?

    am i missing something here?
  3. Replies
    12
    Views
    2,521

    Re: Stop thread

    Arjay> You are right, signalling the thread to return is the best way to end a thread. But in this situation, his thread proc consists of just one method call to some arbitrary code



    UINT...
  4. Replies
    9
    Views
    1,184

    Re: Cleaning up after an exception

    Oh! So that was you??? :wave:

    That was a really long running series of comments! And pretty interesting reading too!
  5. Replies
    9
    Views
    1,184

    Re: Cleaning up after an exception

    In your case you could also move your cleanup code into a separate function. Then you would only have multiple function calls - not duplicate code.
  6. Replies
    9
    Views
    1,184

    Re: Cleaning up after an exception

    If you are a C programmer, you can use setjmp / longjmp.

    Win32 SEH has the __try / __except / __finally semantics, which would solve your problem. Only problem being, they are meant for C again...
  7. Re: Problems when running several threads at the same time!!

    Strings? I suppose you mean threads?
  8. Replies
    12
    Views
    2,521

    Re: Stop thread

    Arjay > His method seems to be a shallow wrapper around some arbitrary function. So there doesnt seem to be much to gain by using any kind of signalling mechanism.

    Yiannakop> When you use...
  9. Replies
    5
    Views
    1,101

    Re: Unload a dll

    If you have not loaded the dll explicitly using loadlibrary it means either

    a. You have loaded it implicity - run dumpbin on your binaries and check for references to msoe.dll
    b. You are using...
  10. Replies
    5
    Views
    1,101

    Re: Unload a dll

    Call FreeLibrary() with the module handle of the dll which you wish to unload.

    You can get the module handle by calling GetModuleHandle with the name of the module as a parameter.
  11. Re: How to create eventhandlers when using dialog resources from dll

    Not sure I understand your question.

    Your already using MFC. So in your CDlgVoyageAttributes ( Which I assume is derived from CDialog) class edit the message macros, and add message handlers (with...
  12. Replies
    7
    Views
    1,276

    Re: Memory Freeing Problem

    Try using UMDH and AppVerifier. These tools are available free of cost from Microsoft.

    Check out
    http://www.microsoft.com/whdc/devtools/debugging/default.mspx
    and...
  13. Replies
    22
    Views
    2,324

    Re: Com within Thread

    You will need the message loop, when you marshal the interface pointer, and then unmarshal and use it in a different thread. This is because the proxy and stub communicate via windows messages.

    If...
  14. Replies
    9
    Views
    2,572

    Re: Make OCX control transparent?

    P.S. If you need to support Win NT / 9X / ME as well, your in a world of trouble!!! :)

    All the best, and be sure to publish it if you get it working on those platforms! :thumb:
  15. Replies
    9
    Views
    2,572

    Re: Make OCX control transparent?

    Not sure if your control is a windowless control or not.
    Also not sure for what OS you are developing.

    If it is for Win2k+, try the UpdateLayeredWindow method
    and also look at dilascia's...
  16. Replies
    1
    Views
    1,211

    newbie question - list unique attributes

    Hi,

    I'm a total newbie to XML / XSl, and I've been stuck with this problem.
    Would be grateful for any suggestions / pointers

    The problem -
    Assuming I have an xml file

    <root>
    <students>
  17. Replies
    7
    Views
    2,720

    Re: IPC from hook DLL to Application

    Just curious,
    But you have placed a pointer ( not an object ) in a shared data segment.
    So all process which map your dll can have a look at the pointer ( and the value will be the same since it is...
  18. Replies
    3
    Views
    1,032

    Re: Com addin for Office

    could i have a look at your .rgs file?
  19. Replies
    3
    Views
    1,032

    Re: Com addin for Office

    your component needs to implement the IDTExtensibility2 intrerface as well.
  20. Replies
    5
    Views
    1,479

    Re: Sharing Data between two executables

    my two pennies worth...
    http://www.codeguru.com/Cpp/COM-Tech/atl/misc/article.php/c7387/
  21. Replies
    6
    Views
    901

    Re: Handling a menu in a dialog.

    I'm not very sure about this, but when you launch the dialog with CDialog::DoModal(), the message loop is being run by windows. So any wm_command messages are routed thru CDialog. CWinApp doesnt come...
  22. Replies
    4
    Views
    838

    Re: problem with DB restore from VC++!!

    Simplest way would be to run net share <your params> using shellex.
  23. Replies
    7
    Views
    1,027

    Re: Hide A Passw string in code

    I just checked, in both debug and release builds.

    char code[6] = {'H','E','L','L','O',0}; // Does not show up in a hex editor (Release or debug build).

    char code[6] = "HELLO"; // Shows up in a...
  24. Replies
    4
    Views
    838

    Re: problem with DB restore from VC++!!

    For SQL Server(or any other app) to access the remote file, you would need to have a drive$ share.

    Let us say on machine m1, i have a file on d:\Folder1\mydata.bkp

    if i need to access this data...
  25. Replies
    7
    Views
    1,027

    Re: Hide A Passw string in code

    You could try it this way

    char code[6] = {'H','E','L','L','O',0};

    String table would still show under a hex editor
Results 1 to 25 of 95
Page 1 of 4 1 2 3 4





Click Here to Expand Forum to Full Width

Featured