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

Search:

Type: Posts; User: Radius

Page 1 of 15 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    14
    Views
    1,691

    Re: sizeof(myclass) acting strangely.

    It is a 3rd party library, but only interfacing using regular function calls and nothing else.

    I thought memory corruption too but no memory checkers are alerting on anything, and the fact that...
  2. Replies
    14
    Views
    1,691

    Re: sizeof(myclass) acting strangely.

    Yes, I have not only checked that but every class pointer, member var and even gone so far as checking hWnd values for all relevant member variables and parent classes. I have been at this for quite...
  3. Replies
    14
    Views
    1,691

    Re: sizeof(myclass) acting strangely.

    Sorry, if this is too unclear I can post some more robust code. I was trying to keep it simple as not too flood with too much useless info but maybe that was not the best approach.

    [edit]
    ...
  4. Replies
    14
    Views
    1,691

    Re: sizeof(myclass) acting strangely.

    Direct observation getting the pointers to the member variables.
  5. Replies
    14
    Views
    1,691

    Re: sizeof(myclass) acting strangely.

    The library is built in the same project, the build order includes it as the first item like all my other projects.



    Here's what I do:

    Form class: int *x = &iVar; // Let's say it == 0x530...
  6. Replies
    14
    Views
    1,691

    Re: sizeof(myclass) acting strangely.

    Ok sorry, maybe I didn't describe it well enough, I'm a little fried at the moment. ;)

    I mean the size of the class definition not the declaration, so MY_CLASS myclass;

    I do sizeof(MY_CLASS);
    ...
  7. Replies
    14
    Views
    1,691

    sizeof(myclass) acting strangely.

    Hello,

    I have encountered a serious problem in my mode and was hoping someone may have a suggestion.

    I have a 3rd party library (cringe) and I have used it successfully in many projects. For...
  8. Replies
    0
    Views
    715

    COM memory allocation error?

    Hi, I am having a real problem. I have made an ATL service which serves up some data in the form of structures. My application can request one or all structures to be read, it's pretty simple that...
  9. Replies
    2
    Views
    752

    Re: ATL service, COM and problems

    1) Because I'm cutting and pasting that bit from another app that someone else in the shop made a couple of years ago. I don't really know the finer points of why to use one over the other, but his...
  10. Replies
    2
    Views
    752

    ATL service, COM and problems

    Hello,

    I have an ATL service that is serving up a COM interface to another app I'm building. Here's the issue:


    MULTI_QI qi;
    HRESULT hr;


    qi.pIID = &IID_ISecMan;
  11. Replies
    7
    Views
    1,126

    Re: Getting an application "handle"?

    Yep, everything is thread safe.

    Ok, I get what you're saying about the registering and pinging. I like that idea, keeps things simple and I already have a mechanism for keeping things separate in...
  12. Replies
    7
    Views
    1,126

    Re: Getting an application "handle"?

    I was thinking of that, but how do I keep track of who owns what in the sense of the data they check out? If two apps of the same type are started and both check something out, then app 1 dies, how...
  13. Replies
    7
    Views
    1,126

    Re: Getting an application "handle"?

    Kolkoo, I think I understand, I was actually just discovering functions related to that kind of thing when I read the replies to the post, thanks!

    Arjay, I am using an ATL COM service which acts...
  14. Replies
    7
    Views
    1,126

    Getting an application "handle"?

    Hi,

    I have a project where there's a service running and it's serving information to a number of applications. What I want to do is when an app connects to the service it passes a handle to itself...
  15. Thread: USB vendor ID?

    by Radius
    Replies
    0
    Views
    1,380

    USB vendor ID?

    Does anyone know about USB vendor ID's? Do I actually need one of those? They sell for $2K and you get to use the USB logo, whatever for I have no idea.

    Or can I implement a USB device without...
  16. Replies
    2
    Views
    820

    Re: Installing drivers

    Ok thanks, that makes sense.
  17. Replies
    2
    Views
    820

    Installing drivers

    Something that's bugging me, let's say I develop a simple driver that all it does is allows reading and writing of data blocks to/from a USB device, can this be installed without administrator access...
  18. Replies
    2
    Views
    851

    Re: General question about driver needs

    Thanks! That looks pretty useful.

    Two questions:

    With that license, can it be distributed with a commercial app? I really don't understand legal speak.

    And,m does it work for Vista?
  19. Replies
    2
    Views
    851

    General question about driver needs

    Hi,

    Ok, I am not very familiar with the whole driver development thing, so I just have a general question to make sure I'm going down the right road.

    We have a custom USB device, it's a...
  20. Replies
    3
    Views
    997

    Re: __int64 and problems

    Gotcha, thank you!
  21. Replies
    3
    Views
    997

    __int64 and problems

    I need to calculate the sizes in bytes of some very large files so I started playing around with unsigned __int64 datatypes.

    As a test, I took 0x40000000 and said basically: num = _GB * 2;

    (_GB...
  22. Replies
    0
    Views
    706

    SSL, email and a super user

    Hi,

    I have a service running and I cannot use MAPI because that isn't available at my level from what I understand. I also can't use SMTP because most mail servers don't allow it anymore.

    Can I...
  23. Replies
    1
    Views
    607

    Re: Looking for directories in Vista

    Oh, and I'm just using CreateFile(...) to open the files to read/write the data in the sub-directories, nothing special there.
  24. Replies
    1
    Views
    607

    Looking for directories in Vista

    Hi,

    Our testing team uncovered a small problem with a service we've developed when running it under Vista.

    The service runs in the system account or whatever it's called, the super user...
  25. Replies
    5
    Views
    1,353

    Re: STL issues with sort()?

    Ya, I've been thinking about that. I don't use this across threads or anything, but maybe something totally unrelated has ripped into the memory, I am putting some bounds checking software on here...
Results 1 to 25 of 364
Page 1 of 15 1 2 3 4





Click Here to Expand Forum to Full Width

Featured