User forums > Using Code::Blocks

C::B DDE on matlab

(1/1)

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  :?

--- Code: ---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;

--- End code ---
I've get the error:

--- Code: ---Server creation failed. Invalid ProgID 'CodeBlocks.CodeBlocksApp'
--- End code ---
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:

--- Code: ---#define DDE_SERVICE    _T("CODEBLOCKS")
#define DDE_TOPIC    _T("CodeBlocksDDEServer")
--- End code ---

No, I don't do DDE, don't ask me :P

Navigation

[0] Message Index

Go to full version