Type: Posts; User: LeanA
Search took 0.03 seconds.
September 26th, 2010, 10:01 AM
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 +...
September 26th, 2010, 09:59 AM
I just clarified this. If I use
and press CTRL + F5, it still errors (0xC0000005).
September 24th, 2010, 11:57 AM
Hi All thanks for replying,
Okay, thank you for your help.
I will try that and get back to you. Thank you for this!
September 23rd, 2010, 09:24 AM
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...
September 21st, 2010, 07:21 AM
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!...
September 19th, 2010, 11:12 AM
Hi all, thanks for replying
I tried using HRESULT hr = CoInitializeEx(0, COINIT_MULTITHREADED); as well as HRESULT hr = CoInitializeEx(0, COINIT_APARTMENTTHREADED);.
September 15th, 2010, 11:30 AM
Hi all, thanks for replying
I tried commenting out the ones you mentioned, however, the error still occurs.
I added 0xC0000005 to the Exception in Debug->Exception....
September 15th, 2010, 11:01 AM
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...
September 14th, 2010, 10:58 AM
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...
September 14th, 2010, 04:12 AM
Here is the code in order to provide more information:
September 13th, 2010, 10:55 PM
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++....
September 13th, 2010, 11:26 AM
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...
September 12th, 2010, 05:27 AM
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):
September 10th, 2010, 10:57 PM
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...
July 22nd, 2010, 02:46 AM
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...
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...
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...
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...
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...
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
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...
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...
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?
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:
Hi Paul, and Victor, thanks for replying.
Thankyou for those inputs! I'll keep them in mind.
Thank you very much!
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.