Click here to Skip to main content
15,921,028 members
Home / Discussions / COM
   

COM

 
GeneralCall Addin's Function From VBA Macro Pin
Anonymous28-Jul-02 21:16
Anonymous28-Jul-02 21:16 
Generalclass factories (simple COM server) Pin
Roman Nurik28-Jul-02 19:26
Roman Nurik28-Jul-02 19:26 
GeneralRe: class factories (simple COM server) Pin
Vi229-Jul-02 2:42
Vi229-Jul-02 2:42 
GeneralRe: class factories (simple COM server) Pin
Roman Nurik29-Jul-02 6:27
Roman Nurik29-Jul-02 6:27 
GeneralRe: class factories (simple COM server) Pin
Vi229-Jul-02 19:02
Vi229-Jul-02 19:02 
GeneralLoadxml error Pin
suresh_sathya28-Jul-02 18:52
suresh_sathya28-Jul-02 18:52 
GeneralICUSTOMDOWNLOAD implementation info Pin
Dazza28-Jul-02 2:57
Dazza28-Jul-02 2:57 
GeneralUsing Managed Components (.NET) from Unmanaged Code (Delphi) Pin
MrEyes26-Jul-02 5:15
MrEyes26-Jul-02 5:15 
I am currently working on a project to migrate some delphi based com objects to .NET, for reasons that are beyond the scope of this post I am going to be doing this method by method - so I am looking at using managed components from unmanaged code.

As a test project, I create a simple delphi based com object with two methods :

RandMethodA : Returns a random number from 0-100
RandMethodB : Returns a random number from 101-200

The idea is the redirect calls into RandMethodA to a piece of .NET managed code that does exactly the same thing.

Right thats the theory over with, this is the problem I am encountering :

I have created the .NET code and using the "tlbexp" & regasm" tools I have created a TLB file for it, I then added this TLB file to the delphi COM code - when I compile with the new TLB I get alot of compile errors in a file called mscorlib_TLB.pas which seems to be something that is autogenerated when I import the .NET TLB into the project.

eg: (some not all)
[Error] mscorlib_TLB.pas(4984): Illegal type in OLE automation section: 'Byte'
[Error] mscorlib_TLB.pas(4991): Illegal type in OLE automation section: 'Single'
[Error] mscorlib_TLB.pas(4992): Illegal type in OLE automation section: 'Double'
[Error] mscorlib_TLB.pas(10396): Illegal type in OLE automation section: 'Byte'
[Error] mscorlib_TLB.pas(10403): Illegal type in OLE automation section: 'Single'
[Error] mscorlib_TLB.pas(10404): Illegal type in OLE automation section: 'Double'
[Fatal Error] ManagedRandServer_TLB.pas(45): Could not compile used unit 'mscorlib_TLB.pas'

I sincerly hope this makes sense to somebody

Thanks in advance

RANT : Why does my boss give me these "projects" aaarrrggghhh


GeneralClient Worker threads Pin
gharrison25-Jul-02 0:36
gharrison25-Jul-02 0:36 
GeneralRe: Client Worker threads Pin
Ernest Laurentin27-Jul-02 12:46
Ernest Laurentin27-Jul-02 12:46 
GeneralCOM,Socket,ASP Pin
eyedia24-Jul-02 21:06
eyedia24-Jul-02 21:06 
GeneralHidden dialog from Dll Pin
Atin Kumar24-Jul-02 18:06
Atin Kumar24-Jul-02 18:06 
GeneralRe: Hidden dialog from Dll Pin
Ernest Laurentin27-Jul-02 12:48
Ernest Laurentin27-Jul-02 12:48 
GeneralRe: Hidden dialog from Dll Pin
Atin Kumar28-Jul-02 15:35
Atin Kumar28-Jul-02 15:35 
Generalmethod executing too many times Pin
mgriffith24-Jul-02 8:09
mgriffith24-Jul-02 8:09 
GeneralSafearray with byte data Pin
Anonymous24-Jul-02 4:09
Anonymous24-Jul-02 4:09 
GeneralRe: Safearray with byte data Pin
Vi224-Jul-02 4:20
Vi224-Jul-02 4:20 
GeneralRe: Safearray with byte data Pin
Anonymous24-Jul-02 5:53
Anonymous24-Jul-02 5:53 
GeneralPassing COM object as parameter to C++ function Pin
Tomaž Štih24-Jul-02 0:23
Tomaž Štih24-Jul-02 0:23 
GeneralRe: Passing COM object as parameter to C++ function Pin
Vi229-Jul-02 3:12
Vi229-Jul-02 3:12 
GeneralVARIANT and Byte Arrays Pin
Jose Fco Bonnin23-Jul-02 22:26
Jose Fco Bonnin23-Jul-02 22:26 
GeneralInside COM Pin
CaesarCZ23-Jul-02 12:09
CaesarCZ23-Jul-02 12:09 
GeneralPass a specific C++ object through COM server Pin
chrisl23-Jul-02 3:42
chrisl23-Jul-02 3:42 
QuestionHow to disable script in my Browser Control Pin
rokia22-Jul-02 16:17
rokia22-Jul-02 16:17 
GeneralHELP: Composite Control Pin
minhhoang22-Jul-02 11:59
minhhoang22-Jul-02 11:59 

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.