|
George_George wrote: I am using C++ unmanaged native exe and C# COM server.
try #import "Path to application with app name"
and see if any .tlh and .tli file generated
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
Hi ThatsAlok,
I have found there is no .tlh and .tli generated in C# COM server project. Do you know how to make then generated?
regards,
George
|
|
|
|
|
George_George wrote: I have found there is no .tlh and .tli generated in C# COM server project. Do you know how to make then generated?
look if this help How to call a COM C# component from VC++?[^]..
and by the way the original name is Alok
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
Thanks ThatsAlok, good resource!
regards,
George
|
|
|
|
|
George_George wrote: If I have a C++ client and a C# COM component. Without a tlb file, how could the C++ client utilizing the C# COM component?
Because the C# COM component implements IDispatch among other interfaces. With this one you have an automatized component, and you don't need to know the name of the method invoked, only their number (1, 2, 3, etc) which can be found in the extra information of the component, defined with IDL language.
|
|
|
|
|
Thanks Fernando,
In my C# COM Server project, no IDL file is generated, do you know how to generate it?
regards,
George
|
|
|
|
|
|
Thanks shouvik!
I think only containing interface information is not enough. I think it should also contain the CLSID (implementation class guid of the interface) information, right?
Or else, in client program, how could we know and pass both the IID and CLSID information to QueryInterface?
regards,
George
|
|
|
|
|
Might be they have some wrap over class informations written within the COM component. I actually am more like a novice when it comes to COM. Please forgive me
There are only two kinds of people who are really fascinating-people who know absolutely everything, and people who know absolutely nothing.
Oscar Wilde (1854-1900)
Regards...
Shouvik
|
|
|
|
|
Thanks all the same shouvik! Do you have any recommendations for learning resources?
regards,
George
|
|
|
|
|
|
Thanks shouvik, great links!
regards,
George
|
|
|
|
|
#include <iostream>
using namespace std;
int reduce(int n,int m)
{for (m=2;m<n;m++)
(if (n%m="=0)
cout<<m<<endl;
return" n="" m;)
(if="" (n="=m)
cout<<m<<endl;
return" m;)
}
int="" main()
{="" int="" n,m;
cout<<"please="" write="" a="" number:"<<endl;
cin="">>n;
reduce(n,m);
return 0;
} what is wrong with my cade?who can perfect it for me?
|
|
|
|
|
can you give us the intent of the code?
i.e. what do you WANT it to do?
bryce
|
|
|
|
|
thank you for your enlisting,although i have figured out it,but i will give more explanation to the problem next time
|
|
|
|
|
Hi everyone,
I am beginner and I don't know the difference between
cout<
|
|
|
|
|
endl means "move the cursor to the next line", no matter where it appears. So your first line of code moves the cursor to the next line. Your second line of code prints "statement" and then moves the cursor to the next line.
|
|
|
|
|
IIRC endl will append a \n caracter to the line and call the flush function. In other words,
cout << "statement" << endl;
is the same as writing:
cout << "statement\n";
cout.flush();
|
|
|
|
|
thanks for your thoughts...
|
|
|
|
|
dalmar mahamoud wrote: cout<<endl; and=""
cout="" <<"statement"<<="" endl;.<="" blockquote="">
there is tnohing diffrent except First Line is giving Line Break and Second one is giving line break after writing "statement" on screen!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
Can I find what kind of controls the other window has if I have the value to it's handle?
|
|
|
|
|
Use the GetClassName() function to find the class of a control.That is if it is a edit control it returns "Edit"( WC_EDIT ).
|
|
|
|
|
CWnd::FromHandle
static CWnd* PASCAL FromHandle( HWND hWnd );
gives you a Cwnd pointer to the window in question ...from there i;d be looking at the help files for information about how to get pointers to child windows
bryce
|
|
|
|
|
bryce wrote: how to get pointers to child windows
EnumChildWindow()...?
|
|
|
|
|
bryce wrote: gives you a Cwnd pointer to the window in question ...from there i;d be looking at the help files for information about how to get pointers to child windows
FindWindowEx
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|