|
hi guys,
this is very important please help me i'm doing win32 application on .net 2003 but i'm getting the following error
Message error LNK2001: unresolved external symbol "public: static unsigned char * Funcs::calc_func::mac" (?mac@calc_func@Funcs@@2PAEA)
for many variables i found threads on this subject on net but nothing solve my problem
please i'll appreciate any suggestions
emma
|
|
|
|
|
Thanks a lot ur right but i didn't know how should i declare it.
But it works now when i declare them in thye cpp file as
unsigned char Funcs::calc_func::X[3];
thanks a lot and i appreciate ur help.
U know what i'm new working with dlls and i would like to know how can i use it by another program coz i don't want to include my code that's why i transfered my application into dll.
Thanks in advance
-- modified at 7:24 Wednesday 25th April, 2007
emma
|
|
|
|
|
Hi
I understand that using IDispatch a COM object exposes the functionality. But is it necesary for all the COM objects to use IDispatch?
Thanks in advance
|
|
|
|
|
IDispatch using only for automation. It is necesary for all the COM objects to use IUnknown
Best regards,
Baron
|
|
|
|
|
The IDispatch supports that the script and binnary can access,but Iunknown only supports binnary.
if your com object is only accessed by binnary,you use IUnknown.
fsa
|
|
|
|
|
You need to derive your interfaces from IDispatch if you want to access the COMponents from scripting clients like VBScript..
Cheers,
Suresh
|
|
|
|
|
HI,
I'm building COM obejct in C++ and using it in C# and I can't figure out which type in C++ coresponds to bool type in C#. If I use bool in C++ , I allways get "expecting a type specification near "bool" " error. I tried boolean or BOOL , but any of them corresponds to bool in C# (after COM object is wrapped in .NET VS)
Do you have anty idea how what to use?
|
|
|
|
|
Zilo(svk) wrote: I can't figure out which type in C++ coresponds to bool type in C#.
It is BOOL .
Prasad
MS MVP - VC++
|
|
|
|
|
BOOL(C++) corresponds to int(C#)
|
|
|
|
|
Zilo(svk) wrote: BOOL(C++) corresponds to int(C#)
Use VARIANT_BOOL instead.
Prasad
MS MVP - VC++
|
|
|
|
|
thanx
that's what I needed
|
|
|
|
|
I am working in a COM project where i need to communicate with Mainframes (CICS) for storing and retrieving data. So i want information about this problem like how to communicate or is there any interface useful for this situation?
|
|
|
|
|
I require a software component to be added to an existing .net application(web based). The coponent or the software should posses the following features:
1. It should provide PC to Phone integration either on VOIP technology or TAPI or both.
2. It should provide automated phone dialing from phone number lists.
3. Transfer calls to other users internally.
4. Record conversations and provide automated call reports and statistics.
5. Every phone number in the system should be automatically clickable and the call details must be logged to that user.
6. The phone call must be recorded and stored as a sound file.
Can anyone help me to find any freewares or commercial products available in the market which can provide me the above features.
Thanks in Advance
----------------------------------
where there is a will there is a way
|
|
|
|
|
Hi
I am writing two interfaces in two separate DLLs. The interfaces are named IID_Draw and IID_Draw, but I associate a unqiue GUID with each of the interfaces. Now when I create an interface pointer of the IID_Draw of the 1st DLL, how COM resolves this kind of calls.
|
|
|
|
|
- IID_DRAW is a constant you define in your code. The value of this constant is a unique GUID
- Now looking at your question, I believe you have got these constants defined either by wizard or #import or something similar.
If this is the case, then you have to resolve this ambiguity by explicitly specifiying the namespace (it has nothing to do with COM runtime, it's more about how you code the wrapper classes or constants).
For example if you have done #import <dll or="" tlb=""> in your code, then check the generated .TLH file. You will find namespace here.
I hope this helps.
S o h a i l K a d i w a l a
To Err Is Human; to Debug, Divine
modified 21-Apr-21 21:01pm.
|
|
|
|
|
I have a dll that implements connection points. Now I have a client that uses the dll using CreateInstance(..)& queryinterface. Now how do I receive events from the DLL. I guess it should be like registering a callback function for the events inside the dll? Dont know.. how to go?
----------------------------
286? WOWW!
|
|
|
|
|
- If you are not using MFC, Check IConnectionPointContainer and IConnectionPoint interfaces
- MFC has functions -> AfxConnectionAdvise and AfxConnectionUnadvise
S o h a i l K a d i w a l a
To Err Is Human; to Debug, Divine
modified 21-Apr-21 21:01pm.
|
|
|
|
|
Hello
Just read this article: COM Connection Points By Alex C. Punnen.
http://www.codeproject.com/com/connectionpoint.asp
Regards,
|
|
|
|
|
Hi there. Writing a WORD Addin for the first time. What I want to do is cycle through the characters in a WORD Doc. Everytime I find a particular character, I want to check what character comes after it. Depending on what I find I may want to add a new character.
My question is this:
Is there a way for me to access the actual stream of characters that make up the word doc? If not, am I right to assume the recommended approach to this is to make use of the find/replace mechanism offered by the object model?
Thanks,
Ciaran
Thanks,
Ciaran
|
|
|
|
|
Can anyone please help me or give me some sample code? I need to create an ATL COM service (not a DLL) which has a dummy interface.. say. add 2 numbers.. After creating the service, i want to register it as a windows service. Then i want to create a client which connects to this service and uses the interface.. (adds 2 numbers)
I have searched online and there is not a decent article which explains the process step by step... Any help in this regard will be very useful.
Thanks in advance!!!!
|
|
|
|
|
Hello,
Just read this book: Special Edition Using Visual C++.NET
by Kate Gregory
Regards,
|
|
|
|
|
I am creating "MFC AppWizard(Dll) with Automation" in VC++ 6.0, We are in the process of developing COM wrapper equivalent to java library for windows developers.
I am not able to find following equivalents of java in COM
- Defining Constant fields(as only interface is exposed, can we declare const fields in interface??)
- Defining and calling parameterizing constructor
Can anybody shade some light on this?
Thanks,
Bhavesh
|
|
|
|
|
COM objects cannot have parameterised constructors
COM interfaces can only contain method definitions, but you could declare a constant in a COM type library
- "I'm not lying, I'm just writing fiction with my mouth"Phil Harding. myBlog [^] | mySite [^]
|
|
|
|
|
Bhavesh Vaghela wrote: - Defining Constant fields(as only interface is exposed, can we declare const fields in interface??)
Since COM objects exposes interfaces only, you can only create a method returning a constant value. BTW you can define constats as enum , see the IDL reference.
Bhavesh Vaghela wrote: Defining and calling parameterizing constructor
You cannot do this, since you don't explicitely create a COM object, there's an associated ClassObject that do it for you.
Hope that helps.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Bhavesh Vaghela wrote: I am not able to find following equivalents of java in COM
Java is a programming language, but COM is a technique that can be implemented in several languages e.g. C/C++, VB, Java etc. It doesn't make sense to compare those two.
Bhavesh Vaghela wrote: Defining Constant fields
I don't get what you mean by that, but perhaps a look at some IDL documentation[^] would help.
Bhavesh Vaghela wrote: Defining and calling parameterizing constructor
In COM you don't have a "constructor", you have a class factory that creates the instance which is created and called when the client calls ::CoCreateInstance(...) .
Technically you can have different constructors and edit the class factory to make use of them, but there's really no point. You should use persistent storage and monikers instead to let the server know how it should initialize itself.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|