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

Search:

Type: Posts; User: LeanA

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Re: How to catch error happening AFTER the code / application

    Hi Arjay, thanks for this.

    I just tested it and it errors the same (0xC0000005). However, based from my post above, I tried changing the CoInitialize to CoInitializeEx(0, Multithreaded) and CTRL +...
  2. Re: How to catch error happening AFTER the code / application

    Hi all,

    I just clarified this. If I use



    CoInitialize(NULL);


    and press CTRL + F5, it still errors (0xC0000005).
  3. Re: How to catch error happening AFTER the code / application

    Hi All thanks for replying,

    @Igor

    Okay, thank you for your help.

    @Arjay

    I will try that and get back to you. Thank you for this!
  4. Re: How to catch error happening AFTER the code / application

    Hi Igor, thanks for replying;

    I would just like to clarify if you mean by "COM-aware" is managed code?

    So in C#, the CoInitialize and CoUinitialize is defined in a similar manner like the one...
  5. Re: How to catch error happening AFTER the code / application

    Hi again, thanks for replying

    Ok, I will do that also thank you.

    I just found out something weird.

    In my C++ code, if I compile and run the code using "CTRL + F5", the error does not occur!...
  6. Re: How to catch error happening AFTER the code / application

    Hi all, thanks for replying

    @itsmeandnobodyelse

    I tried using HRESULT hr = CoInitializeEx(0, COINIT_MULTITHREADED); as well as HRESULT hr = CoInitializeEx(0, COINIT_APARTMENTTHREADED);.
    ...
  7. Re: How to catch error happening AFTER the code / application

    Hi all, thanks for replying


    @itsmeandnobodyelse

    I tried commenting out the ones you mentioned, however, the error still occurs.


    I added 0xC0000005 to the Exception in Debug->Exception....
  8. Re: How to catch error happening AFTER the code / application

    Hello all thanks for replying,

    Will try the 'cleaning' functions and get back to you.

    Actually, I have seen some threads similar to the error I am experiencing with the same DLL. Microsoft said...
  9. Re: How to catch error happening AFTER the code / application

    Hi itsmeandnobodyelse, thanks for replying.

    I just tried what you suggested (add a return as well as the debug). The same error still occurs.

    I was able to stop at the return breakpoint and...
  10. Re: How to catch error happening AFTER the code / application

    Hi all:



    Here is the code in order to provide more information:




    #include "stdafx.h"
  11. Re: How to catch error happening AFTER the code / application

    Hi all,

    The dll I am using is from Microsoft. I already reported it to the Microsoft connect.

    I am about 80% sure that the dll is what is wrong. I tried using it in 2 languages: C# and C++....
  12. How to catch error happening AFTER the code / application

    Hi all!



    I am using a DLL which I am not sure if has some issues. The problem is that it always causes my application to crash right AFTER the code / application.


    However, I can properly...
  13. Replies
    5
    Views
    13,027

    Re: How to put Date into VARIANT data type?

    Hi Igor and 0xc0000005,

    Thanks for replying and the solutions! What worked was:

    varDate = _variant_t(mytime, VT_DATE);

    Another solution (but with more lines of code):

    VARIANT var;...
  14. Replies
    5
    Views
    13,027

    How to put Date into VARIANT data type?

    Hi all,



    I want to insert a Date type into a VARIANT that will be used by a certain function that needs a Date, but requires a VARIANT* data type.



    The function looks something like...
  15. Using COM Components by registering DLL in run time

    Hi all,



    Does anyone know how to automatically register a DLL in run-time or just possible to integrate it into an exe file?

    This is so I can call COM components that require that DLL...
  16. Re: Calling CoCreateInstance in C# (C++ to C# migration)

    Hi, I finally solved this problem:

    Here is a link that helped me with how to use the Management Point API in C# : http://msdn.microsoft.com/en-us/library/cc144347.aspx and...
  17. Calling CoCreateInstance in C# (C++ to C# migration)

    Hi all,

    I am migrating some code from C++ to a C# WebService, and specifically I use CoCreateInstance in the C++ code. I have two questions that interests me:


    1) Is it possible to integrate a...
  18. Replies
    2
    Views
    3,498

    Re: Impersonating a user from Windows PE

    Hi oliv, thanks for replying.

    Yes, I know the password of the administrator account. I can even get the username and password of a Network Access Account in case I do not know the password of any...
  19. Replies
    2
    Views
    3,498

    Impersonating a user from Windows PE

    Hi all,

    I am working with the SMS management point API, and the invoke method. The invoke method is used to send a message from a client computer to a remote computer. The remote computer will...
  20. SMS 2003 Management Point API: Error code: 800706BA

    Hi all,

    I am doing work regarding SMS 2003 Management Point API, and I use this blog as reference: http://blogs.msdn.com/rslaten/archive/2006/04/06/Introduction-to-the-MP-API.aspx

    I am...
  21. Replies
    2
    Views
    11,497

    Re: CoCreateInstance Error Code: 80040154

    Hi hoxsiew, thanks for replying.

    Yes, that seems to be the problem. Thank you for confirming.

    What I did was create another Win PE, but this time, 32 bit version, since the needed dll file...
  22. Replies
    2
    Views
    11,497

    CoCreateInstance Error Code: 80040154

    Hi all,

    I am trying to do this one: http://blogs.msdn.com/rslaten/archive/2006/04/06/Introduction-to-the-MP-API.aspx and I am experiencing an error regarding CoCreateInstance. It returns the error...
  23. Replies
    7
    Views
    9,709

    Re: Problem with converting std::string to CString

    Hi all, thank you all for replying.

    I forgot to mention that I also tried wcout. It has the same output as in using cout.

    Or does wcout not work with CStrings too?

    Thank you!
  24. Replies
    7
    Views
    9,709

    Problem with converting std::string to CString

    Hi all,

    I am experiencing a problem in converting std::string to CString, and I don't know why it occurs. I am not using MFC. I just included atlstr.h.

    Here is the code I use:

    string mpname...
  25. Replies
    4
    Views
    6,877

    Re: Cleaning up strings

    Hi Paul, and Victor, thanks for replying.

    Thankyou for those inputs! I'll keep them in mind.

    Thank you very much!
Results 1 to 25 of 42
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured