473,624 Members | 2,290 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WinCe C# com library (tlh genaration problem)

I wrote the following lines of code under Microsoft Visual Studio 2005:
I compile my WinCE c++ application importing MyInterop.tlb generated file.
The MyInterop.tlh generated file do not contain my interface definition.
Does anyone could help me??

(Aditional info)
-When I open tlb file with visual studio and I expand MyInterop Library, I
don't see any interface
- I generate Interop.tlb with REGASM.EXE myinterop.dll /tlb:MyInterop.t lb
- I also tryed TLBEXP.EXE
- I use Compack Framework 2.0 SP1 (WinCE 5.0)
using System;

using System.Collecti ons.Generic;

using System.Text;

using System.Runtime. InteropServices ;

using System.Windows. Forms;

namespace MyInterop

{

[Guid("C5396536-5936-43fc-AE37-6FB083F80829")]

public interface IMyDotNetInterf ace

{

void ShowCOMDialog() ;

}

[ClassInterface( ClassInterfaceT ype.None)]

[Guid("877653A9-F9BC-4849-8EA3-7529D87473A2")]

public class MyDotNetClass : IMyDotNetInterf ace

{

// Need a public default constructor for COM Interop.

public MyDotNetClass()

{}

public void ShowCOMDialog()

{

System.Windows. Forms.MessageBo x.Show("I am a" +

" Managed DotNET C# COM Object Dialog");

}

}
Aug 11 '06 #1
1 2471
My interop.tlh look like that:

#pragma once

#pragma pack(push, 8)

#include <comdef.h>

namespace MyInterop {

} // namespace MyInterop

#pragma pack(pop)
"TheSebaste r" <se************ **@olympusndt.c omwrote in message
news:eu******** ******@TK2MSFTN GP06.phx.gbl...
>I wrote the following lines of code under Microsoft Visual Studio 2005:
I compile my WinCE c++ application importing MyInterop.tlb generated file.
The MyInterop.tlh generated file do not contain my interface definition.
Does anyone could help me??

(Aditional info)
-When I open tlb file with visual studio and I expand MyInterop Library,
I don't see any interface
- I generate Interop.tlb with REGASM.EXE myinterop.dll /tlb:MyInterop.t lb
- I also tryed TLBEXP.EXE
- I use Compack Framework 2.0 SP1 (WinCE 5.0)
using System;

using System.Collecti ons.Generic;

using System.Text;

using System.Runtime. InteropServices ;

using System.Windows. Forms;

namespace MyInterop

{

[Guid("C5396536-5936-43fc-AE37-6FB083F80829")]

public interface IMyDotNetInterf ace

{

void ShowCOMDialog() ;

}

[ClassInterface( ClassInterfaceT ype.None)]

[Guid("877653A9-F9BC-4849-8EA3-7529D87473A2")]

public class MyDotNetClass : IMyDotNetInterf ace

{

// Need a public default constructor for COM Interop.

public MyDotNetClass()

{}

public void ShowCOMDialog()

{

System.Windows. Forms.MessageBo x.Show("I am a" +

" Managed DotNET C# COM Object Dialog");

}

}


Aug 11 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1816
by: bene-tam | last post by:
I would like to implment a SNMP-based app. in my Pocket PC I have looked for so many C++ SNMP library, but wasnt able to port to WinCE anyone has experience/guideline for me?? pls advise thx much
0
1704
by: timtt2 | last post by:
I would like to implment a SNMP-based app. in my Pocket PC I have looked for so many C++ SNMP library, but wasnt able to port to WinCE anyone has experience/guideline for me?? pls advise
0
1929
by: //\\//\\RLe | last post by:
We are testing one of the CASIO hand device on WinCE and wireless module... while trying to run any Oracle Forms in web browser found that we need JavaInitiator for WinCE and... can't find any on web... !?! If someone use forms on wireless device probably stuck with same problem.... If there is any Java product on market please provide me some more info, also all experience would be appreciated... //\//\.
2
1664
by: GeRmIc | last post by:
Hi, I have written a C# library to interop with a C DLL. Everythings worked fine, till I made some small changes (just the name of one variable!!) inside a structure in the C# Library. Now my C DLL keep throwing an error saying that xxx is not a member of 'That_Structure' see the decleration for That_Structure. How do I remove all the previous definitions of that structure? (I run a regasm to register my C# Library and to create a...
0
1434
by: Ken Ekberg | last post by:
Hello everyone, I am moving an ATL project from VC6 to VS .NET 2003. It builds fine in VC6, but I am having problems with ADO on VS 2003. It appears that if I use the msado15.idl included with VS 2003, I get the error "error C2146: syntax error : missing ';' before identifier 'PositionEnum_Param'" My IDL imports the msado15.idl. In stdafx.h, the .tlb is #imported and therefore gets everything, including ADO.
0
1425
by: autoEx | last post by:
I am using #import directive to import the excel library to make excel files but the excel object is not recognized by my application. Here is what I do: I have simple dialog based MFC application in VC 6.00 In the dialog .cpp file, I add the following #import "D:\\Program Files\\Microsoft Office\\Office\\MSO9.DLL" no_namespac #import "C:\\Program Files\\Common Files\\Microsoft Shared\\VBA\\VBA6\\VBE6EXT.OLB" no_namespac #import...
1
2268
by: Frederic_BD | last post by:
Hello! I am trying to get a list of all the process running on WinCE. I first developed my code on NT (which is working fine) and now I am porting it to WinCE 4.20. I am using embedded Visual C++ 4 SP2. My problem is that the callback function is called only once and my program crashes. No exception seems to be thrown. Do you have some suggestions on what may be the problem?
2
1615
by: bokiteam | last post by:
Hi All, I am developing a WinCE project, when I include datagrid, it says no define.. could you please advice? it works on Win32 project by the same code... Thank you very much for you help!
0
1297
by: shakthi | last post by:
Hi all, I downloaded code foe Customizing the Windows CE .NET User Interface from msdn library and tried to run it under WINCE platform builder.From the steps given along with the code i understand that i should include .cpp files and the headerfiles with the project.Now i want to make some changes in project settings.When i right click the name of the project i find SETTINGS but i dont find anything similar to that one i found in the...
0
8242
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8177
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8629
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8488
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6112
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4084
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4183
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2611
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.