Click here to Skip to main content
16,004,882 members
Home / Discussions / COM
   

COM

 
AnswerRe: CLSID of a COM object? Pin
Jörgen Sigvardsson1-Jul-04 11:54
Jörgen Sigvardsson1-Jul-04 11:54 
GeneralCOM Server (exe) as a Service Pin
darkbyte26-Jun-04 10:43
darkbyte26-Jun-04 10:43 
GeneralRe: COM Server (exe) as a Service <---- Solved Pin
darkbyte29-Jun-04 1:33
darkbyte29-Jun-04 1:33 
QuestionHow can I rename an NT user using the ADSI? Pin
zzzhouzhou26-Jun-04 5:42
zzzhouzhou26-Jun-04 5:42 
Generalchange the data in C++ dll by C# program Pin
ting66825-Jun-04 17:12
ting66825-Jun-04 17:12 
GeneralRe: change the data in C++ dll by C# program Pin
darkbyte27-Jun-04 4:34
darkbyte27-Jun-04 4:34 
GeneralRe: change the data in C++ dll by C# program Pin
ting66827-Jun-04 20:19
ting66827-Jun-04 20:19 
GeneralRe: change the data in C++ dll by C# program Pin
darkbyte28-Jun-04 1:34
darkbyte28-Jun-04 1:34 
oops .. i had'nt read correctly the first time,

try making m_string a CString instead of LPCTSTR ?

Everything seems to be fine, but unless you changed your return type to something other than void, you can't assume that its being called properly.

Create a file dump function, something simple like:

<br />
void mydump(LPCTSTR dumptext)<br />
{<br />
CFile f;<br />
<br />
   f.Open("c:\\dump.txt", CFile::modeCreate | CFile::modeNoTruncate);<br />
   f.Write(dumptext);<br />
   f.Write("\n");<br />
   f.Close();<br />
}<br />


and your function should be:

<br />
void Out(LPCTSTR t)<br />
{<br />
CString dump;<br />
<br />
   m_string = t;<br />
   dump.Format("%s - %s", m_string, t);<br />
   mydump(dump);<br />
}<br />


Hope this helps you find the problem.
GeneralRe: change the data in C++ dll by C# program Pin
ting6687-Jul-04 4:04
ting6687-Jul-04 4:04 
GeneralRe: change the data in C++ dll by C# program Pin
darkbyte7-Jul-04 7:15
darkbyte7-Jul-04 7:15 
GeneralExceptions raised while CoCreateInstance Pin
Anonymous25-Jun-04 3:26
Anonymous25-Jun-04 3:26 
GeneralRe: Exceptions raised while CoCreateInstance Pin
darkbyte27-Jun-04 4:36
darkbyte27-Jun-04 4:36 
General&quot;virtual drive&quot; extension - accesing from &quot;Open File&quot; and System.IO.File API Pin
mr_mark_hewitt24-Jun-04 20:36
mr_mark_hewitt24-Jun-04 20:36 
GeneralRe: &quot;virtual drive&quot; extension - accesing from &quot;Open File&quot; and System.IO.File API Pin
darkbyte27-Jun-04 4:42
darkbyte27-Jun-04 4:42 
QuestionHow do I FULLY unregister a COM+ component programmatically from managed code? Pin
Boyd Campbell24-Jun-04 10:40
Boyd Campbell24-Jun-04 10:40 
AnswerRe: How do I FULLY unregister a COM+ component programmatically from managed code? Pin
darkbyte7-Jul-04 7:18
darkbyte7-Jul-04 7:18 
GeneralRe: How do I FULLY unregister a COM+ component programmatically from managed code? Pin
Boyd Campbell7-Jul-04 11:06
Boyd Campbell7-Jul-04 11:06 
GeneralRe: How do I FULLY unregister a COM+ component programmatically from managed code? Pin
darkbyte7-Jul-04 11:10
darkbyte7-Jul-04 11:10 
GeneralRe: How do I FULLY unregister a COM+ component programmatically from managed code? Pin
Boyd Campbell7-Jul-04 11:12
Boyd Campbell7-Jul-04 11:12 
GeneralRe: How do I FULLY unregister a COM+ component programmatically from managed code? Pin
darkbyte8-Jul-04 2:37
darkbyte8-Jul-04 2:37 
GeneralRe: How do I FULLY unregister a COM+ component programmatically from managed code? Pin
Boyd Campbell8-Jul-04 2:54
Boyd Campbell8-Jul-04 2:54 
GeneralType library that has no coclass Pin
pain23-Jun-04 16:08
pain23-Jun-04 16:08 
GeneralFile Monitor Component Pin
robdillon122-Jun-04 23:19
robdillon122-Jun-04 23:19 
GeneralRe: File Monitor Component Pin
pain23-Jun-04 16:05
pain23-Jun-04 16:05 
GeneralRe: File Monitor Component Pin
robdillon123-Jun-04 20:55
robdillon123-Jun-04 20:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.