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

Search:

Type: Posts; User: Night_Wulfe

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    4,313

    Re: Multithreading with sockets

    It's been a very long time since I've played with JAVA, so there may be some restrictions in JAVA I'm unaware of. That said, there is no reason you can't have multiple sockets per thread as they're...
  2. Replies
    3
    Views
    37,529

    Re: Detecting Race Conditions

    Thanks, Dvyukov, that gives me some patterns to research!
  3. Replies
    3
    Views
    673

    Re: what am I doing wrong?

    I believe the error is stating that you don't have a main entry point into the program. This could be a function called WinMain, main, or DllMain, depending on your project settings. Verify that...
  4. Replies
    3
    Views
    37,529

    Detecting Race Conditions

    Having written a small amount of multi-threaded code, one of the hardest things to deal with is detecting where race conditions could occur. This is especially true in code you write, believing it...
  5. Replies
    17
    Views
    2,473

    Re: calling function in dll not working

    I believe it needs to be:

    Loader:


    typedef int (__stdcall * voidFunc)(int);


    DLL:
  6. Poll: Re: Poll - Are you doing Multithreaded application development?

    Currently I'm designing and prototyping an integration application that routes messages between other applications. In addition to transferring messages between applications, it can perform...
  7. Replies
    9
    Views
    6,272

    Re: Object storage & lifetime C++ Design

    I'd love such a book, myself!

    I wouldn't mind the allocator there, nor would I mind if you had been saying that :D Considering how low level memory allocation and object management is in a...
  8. Replies
    9
    Views
    6,272

    Re: Object storage & lifetime C++ Design

    Rebinding is something I thought about a little later. I realized that the only way this would work is if the ConstructionPolicy didn't support a rebind, and the Factory would always just use the...
  9. Re: Find the full path of a specific exe file

    Unless Araxis sets a registry key telling you where it is installed, I believe your only option is to have a configuration that allows the user to specify where the compare.exe file is located.
  10. Re: C# System.String parameter passed into an unmanaged C++ DLL

    Oh I see. The problem is you're trying to pass a string type to a char* (sbyte* to C#) type. These types are incompatible. There are two ways around this:

    1) If you'd rather use the string type...
  11. Replies
    9
    Views
    6,272

    Re: Object storage & lifetime C++ Design

    Thanks guys, I appreciate the responses.

    Like I said before a lot of this is just experimentation as a learning experience on my part. So, this may very well end up with me saying "You're right,...
  12. Re: C# System.String parameter passed into an unmanaged C++ DLL

    If you were calling an exported function from the DLL, you would use the PInvoke as described by Chris. However, since you want to execute a member function of a class inside your DLL, things may be...
  13. Re: Visual c# - same code four times, one time is enough?

    Sorry, I misread your post. You can't really encapsulate the two variables on their own. As BigEd said, without more information about what your code does, you're stuck with declaring the two...
  14. Replies
    9
    Views
    6,272

    Re: Object storage & lifetime C++ Design

    Thanks for the reply, superbonzo.

    I agree that you have to specify where an object is to be constructed before hand. You can't put the cart before the horse, but you can swap out the horses and...
  15. Replies
    6
    Views
    1,587

    Re: Transparent ICON Background

    I believe you have to save your Icon with the transparent color as the background and Windows will take care of the rest when displaying the icon. There should be an option for doing this in...
  16. Replies
    9
    Views
    6,272

    Object storage & lifetime C++ Design

    Hi there! I chose to post here as I'm coding in pure C++ and that has a direct impact on my implementation. I apologize if I chose the incorrect location.

    I've been writing C++ professionally...
Results 1 to 16 of 16





Click Here to Expand Forum to Full Width

Featured