Click here to Skip to main content
15,886,362 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Running a exe from code Pin
BaldwinMartin12-Dec-03 9:04
BaldwinMartin12-Dec-03 9:04 
GeneralExecuting a program with arguments Pin
Nicolas Bonamy11-Dec-03 23:45
Nicolas Bonamy11-Dec-03 23:45 
GeneralRe: Executing a program with arguments Pin
David Crow12-Dec-03 2:48
David Crow12-Dec-03 2:48 
GeneralRe: Executing a program with arguments Pin
Nicolas Bonamy12-Dec-03 2:57
Nicolas Bonamy12-Dec-03 2:57 
GeneralRe: Executing a program with arguments Pin
David Crow12-Dec-03 3:16
David Crow12-Dec-03 3:16 
GeneralRe: Executing a program with arguments Pin
Nicolas Bonamy12-Dec-03 3:38
Nicolas Bonamy12-Dec-03 3:38 
GeneralRe: Executing a program with arguments Pin
l a u r e n12-Dec-03 20:40
l a u r e n12-Dec-03 20:40 
GeneralCComObject<> Problem Pin
Braulio Dez11-Dec-03 23:42
Braulio Dez11-Dec-03 23:42 
Hi,

I have a COM server, and a private class for the internal use of the COM object, what I want to do is to add a a method that returns a CComObject<> * Object, I have two problems:

If I make this:

<br />
CComObject<Connections> *DBGroup::GetGroupConnections(_bstr_t strGroup)<br />
{<br />
    CComObject<CConnections>* pConnections;	    <br />
    HRESULT hr = CComObject<CConnections>::CreateInstance(&pConnections);<br />
<br />
(...)<br />
return pConnections;    <br />
}<br />


1. I get a compiler error telling me that he don't knows about the Connections com component that I have created in the same server.

2. If Instead of that I return and IConnection interface, Do I generate there a leakage ? ( I don't call the "delete pConnection"), what is the solution or workaround for this problem ?

Thanks in advance, greetings
Braulio
GeneralRe: CComObject<> Problem Pin
Peter Molnar12-Dec-03 10:16
Peter Molnar12-Dec-03 10:16 
GeneralRe: CComObject&lt;&gt; Problem Pin
Braulio Dez14-Dec-03 21:38
Braulio Dez14-Dec-03 21:38 
GeneralRe: CComObject&lt;&gt; Problem Pin
Peter Molnar15-Dec-03 14:38
Peter Molnar15-Dec-03 14:38 
GeneralBlank spaces in system function pathnames Pin
dukeleto11-Dec-03 23:24
dukeleto11-Dec-03 23:24 
GeneralRe: Blank spaces in system function pathnames Pin
Ian Darling11-Dec-03 23:39
Ian Darling11-Dec-03 23:39 
GeneralRe: Blank spaces in system function pathnames Pin
David Crow25-Oct-06 3:24
David Crow25-Oct-06 3:24 
GeneralTrap Windows TaskManager end task me. Pin
KiangGiap Lau11-Dec-03 23:07
KiangGiap Lau11-Dec-03 23:07 
GeneralRe: Trap Windows TaskManager end task me. Pin
Antti Keskinen12-Dec-03 1:36
Antti Keskinen12-Dec-03 1:36 
GeneralRe: Trap Windows TaskManager end task me. Pin
KiangGiap Lau12-Dec-03 7:24
KiangGiap Lau12-Dec-03 7:24 
GeneralVisual C++ with sql query problem in Visual Studio.net Pin
sunny_rajwadi11-Dec-03 22:57
sunny_rajwadi11-Dec-03 22:57 
GeneralRe: Visual C++ with sql query problem in Visual Studio.net Pin
Anthony_Yio11-Dec-03 23:08
Anthony_Yio11-Dec-03 23:08 
GeneralKodak Image Edit Pin
satadru11-Dec-03 21:55
satadru11-Dec-03 21:55 
GeneralDialog boxes and views Pin
Sitaram Sukumar11-Dec-03 21:40
Sitaram Sukumar11-Dec-03 21:40 
GeneralRe: Dialog boxes and views Pin
Lido Paul11-Dec-03 21:52
Lido Paul11-Dec-03 21:52 
GeneralRe: Dialog boxes and views Pin
Sitaram Sukumar11-Dec-03 22:20
Sitaram Sukumar11-Dec-03 22:20 
GeneralRe: Dialog boxes and views Pin
Antti Keskinen12-Dec-03 1:27
Antti Keskinen12-Dec-03 1:27 
GeneralRe: Dialog boxes and views Pin
Sitaram Sukumar14-Dec-03 18:52
Sitaram Sukumar14-Dec-03 18:52 

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.