News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

C::B DDE on matlab

Started by ope, August 29, 2007, 07:38:53 AM

Previous topic - Next topic

ope

Hi,

I start to write a COM Server on Windows like here http://www.mathworks.com/access/helpdesk/help/toolbox/ecoder/index.html?/access/helpdesk/help/toolbox/ecoder/det/f43704.html which uses CodeWarrior as example, for use inside Matlab and C::B as Embedded IDE.

This is my first write using COM Objects  :?
function ICodeBlocksApp = CreateCBComObject
    vprint([mfilename ': creating CB com object']);
    try
        ICodeBlocksApp = actxserver('CodeBlocks.CodeBlocksApp');
    catch
        error(['Error creating COM connection to ' ComObj ...
               '. Verify that CodeBlocks is installed correctly. Verify COM access to
               CodeBlocks outside of MATLAB.']);
    end
    return;

I've get the error:
Server creation failed. Invalid ProgID 'CodeBlocks.CodeBlocksApp'
Probably the program ID 'CodeBlocks.CodeBlocksApp' is wrong. I did not found any informations on writing DDE Apps using C::B. Any help appropriate here?

Thanks
Olaf

thomas

This should probably give you a hint to the right values:
#define DDE_SERVICE    _T("CODEBLOCKS")
#define DDE_TOPIC    _T("CodeBlocksDDEServer")


No, I don't do DDE, don't ask me :P
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."