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

Search:

Type: Posts; User: Rigel

Page 1 of 26 1 2 3 4

Search: Search took 0.10 seconds.

  1. Re: Is there any C# Api that allows me to...

    Ah... I think I found it.
    System.Net.NetworkInformation
  2. [RESOLVED] Is there any C# Api that allows me to...

    Detect whether or not a network interface or the network itself is up or down? Please let me know. Thanks.
  3. Re: Calling C# function w/out param doesn't work

    I found the problem... actually my example above wasn't entirely accurate.

    "SomeFunction" takes an interface as a parameter, not an object.

    This code works below:


    IMyObject...
  4. [RESOLVED] Calling C# function w/out param doesn't work

    I have a C# function


    SomeFunction(out MyObject obj)

    When I call this function from Managed C++



    MyObject ^mObj = nullptr;
  5. Replies
    1
    Views
    722

    How do I do this?

    I have two C# .NET projects that are loaded into one application process. Each have a reference to the same common library (let's call this common library the plugin). This plugin library needs...
  6. Replies
    0
    Views
    4,713

    What is the purpose of an inproc server?

    There are two separate dll Outlook Add-ins we are developing they both require a general library (let's call this library the "plugin") that acts as a proxy for sending/receiving messages across to a...
  7. Re: Is there anything in C# that allows me to...

    Thanks everyone
  8. Is there anything in C# that allows me to...

    Is there anything that allows me to receive an event if the user changes their windows time zone? Thanks,
  9. Re: Converting project to UNICODE causes crashes

    FOUND THE PROBLEM!
    sizeof operator is the problem and causes a stack corruption.

    Incorrect:


    TCHAR szClassName[64];
    GetClassName(hwnd, szClassName, sizeof(szClassName)-1);...
  10. Re: Converting project to UNICODE causes crashes

    Thanks, I tried that already but that doesn't help either. It's such a strange problem because when these preprocessor definitions are not defined everything works perfectly fine. This app has...
  11. Re: Converting project to UNICODE causes crashes

    I wish that were the case. Whoever wrote this program uses "_tstring" eveywhere which when looking at the string header file yields:



    #ifdef _UNICODE
    typedef wstring _tstring;
    #else...
  12. [RESOLVED] Converting project to UNICODE causes crashes

    I used the UNICODE preprocessor directive to support UNICODE, however, doing so causes bizarre crashes.



    "Unhandled exception at 0x7c96478e (ntdll.dll) in OUTLOOK.EXE: 0xC000000D: An invalid...
  13. Help, is there a way to retrieve function names in a DLL?

    I'd like to know what functions exist within an ActiveX DLL.
    What APIs can I use to retrieve this info?

    Thanks!
  14. Replies
    4
    Views
    1,081

    Is it legal to do this?

    Allocating memory for an object on one thread and deleting it on another thread? I thought that was ok and that thread share heap space?

    Maybe this is not the source of the problem and I have...
  15. How come there isn't a thread safe way to read an int?

    I was investigating using the ::InterlockedXXX family of functions but how come there isn't a thread safe way to read an int? What should be done if I want to read an int safely? Thank you
  16. Replies
    2
    Views
    4,850

    RectangleToScreen please explain.

    I'm using RectangleToScreen to try to find the exact screen coordinates of a control in a form.



    Rectangle rectQD = m_qd.Control.FindForm().RectangleToScreen(m_qd.Control.Bounds);

    ...
  17. Re: How to display a window on top without having it always top most?

    Nevermind... I have to call Activate().
  18. How to display a window on top without having it always top most?

    I have a window (let's call this window "A") that always needs to be displayed on top of the main application window when "A" is first displayed in the application.
    But after "A" is displayed we...
  19. Replies
    15
    Views
    1,740

    Re: Multiple Inheritance Problem

    Thanks that's the answer I was looking for.
  20. Replies
    15
    Views
    1,740

    Re: Multiple Inheritance Problem

    Thanks, but I thought a pointer was just a variable that held a 4 byte integer memory address. I don't see how casting this back and forth can cause so much problem.
  21. Replies
    15
    Views
    1,740

    Multiple Inheritance Problem

    There was a bug that stumped me for a while and I'd like to know the exact reason why this is happening.
    I'm going to simplify the problem here.



    class Base1 - Concrete class
    {
    virtual...
  22. Re: Something about C# events that I don't understand.

    Ahh... I looked at the code a third time...
    I think you are right.

    Very good catch! :thumb:
  23. Re: Something about C# events that I don't understand.

    Thank you everyone.

    Arjay: I'm 100% positive that DoSomething does not set m_bDoSomething = true.

    boudino: locking does not work since both events are fired on the same thread. But I have...
  24. Something about C# events that I don't understand.

    Why does this occur?
    I have a piece of code that looks like the the following:



    void MyEvent()
    {
    if( m_bDoSomething )
    {
    DoSomething();
  25. Re: Does anyone know how to capture PC locked events?

    Awesome! Thank you, I cannot believe the answer was right under my nose. Still having some problems with this as the events do not get generated but I'm taking a look at the website link you gave...
Results 1 to 25 of 626
Page 1 of 26 1 2 3 4





Click Here to Expand Forum to Full Width

Featured