|
Hi,
you can use GUIDGEN.exe
this should be present in the visual studio folder.
regards
nikhil
|
|
|
|
|
Thanks ,But First I want to delete the GUID Which is generated by vc++, After that I want to set my own guid for the same.
Looking forward....
|
|
|
|
|
u can use GuidGen tool which ships with visual studio and replace it in the idl file.
-- modified at 9:09 Wednesday 26th July, 2006
|
|
|
|
|
I have a componant and its idl file. I have included its header file in my stdafx.h and added the .c file into my project with addtoproject file. Actually that .c file containd actual definition of all IIDs and CLSIDs. Now its showing error. End file while looking for precompiled header. What to do now. Actually i dont have a clear idea how to use the classes defined in that componant.
Please tell me how to do that.
KIRAN PINJARLA
-- modified at 3:41 Thursday 20th July, 2006
|
|
|
|
|
I can help you with the first error;
You need to alter your project settings for the .c file so that it specifies "Not using precompiled headers".
If you're using VC6, you can right-click on file in FileView and select settings, you need C++ tab, category 'precompiled headers'. HINT: change it for 'All configurations' or you'll forget later!
Can't tell you how toi use the classes, since I have no idea what component you have. General stuff though :-
Make sure that you call either OleInitialize (or AfxOleInit if it's an MFC app) or CoInitialize/CoInitializeEx, or you won't be able to do anything.
To get an interface to an instance of the component, you need to call
CoCreateInstance( CLSID_xxxxx, NULL, CLSCTX_ALL, IID_zzzzzz, reinterpret_cast<void**>(&ptr));
where you have IMyInterface* ptr;
Check your return codes, and of course, if that works, eventually you'll need to call
ptr->Release();
Enjoy
Steve S
Developer for hire
|
|
|
|
|
Thank you Steve.It worked. I will try to use that componant and if got struck I hope u r there to help.
Thank You
KIRAN PINJARLA
|
|
|
|
|
i need to add Flexgrid in the ActiveX component is this posible how?
chetan
-- modified at 1:59 Thursday 20th July, 2006
|
|
|
|
|
try creating a composite dialog in activex.
-Prakash
|
|
|
|
|
//IDispatch wrapper class(es)
// .h file
class CAPI : public CWnd
{
public:
CString Login(LPCTSTR UserName, LPCTSTR Password, LPCTSTR UserId);
}
// .cpp file function
CString CAPI::Login(LPCTSTR UserName, LPCTSTR Password, LPCTSTR UserId)
{
//username = wwtest2;
//Password = RD9234;
//Userid = wwtest2;
CString result;
static BYTE parms[] =VTS_BSTR VTS_BSTR VTS_BSTR;
InvokeHelper(0x2, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,UserName, Password, UserId);
return result;
}
"God helps to whom who helps other"
|
|
|
|
|
If any body has used Netmeeting sdk please reply
I need help.
thank you
KIRAN PINJARLA
|
|
|
|
|
Actually Netmeeting COM has an Interface INmManager. I want to use it. and teh header file given for that is inmconf2.idl. If i am includeing using #include <inmconf2.idl> i am getting errors and its showing errors in idl file.
How to debug it
Please help me
KIRAN PINJARLA
|
|
|
|
|
Hi All,
My requirements needs me to pass an instance of a class xyz in a third party component(OCX) to my dll in ATL COM. how do i go about this?
We all know that passing parameters in the constructors of the exposed atl classes/objects is literally impossible unless i write my own atl library(oops sorry bad joke!).
That means the only option i have is to pass this third party component
instance to a method, i hope this is possible, even if it is, how do i define
the 'xyz' data type in the idl file?
<br />
import "oaidl.idl";<br />
import "ocidl.idl"; <br />
[<br />
object,<br />
uuid(AB375A74-76CB-4BBC-BFED-141791262B38),<br />
dual,<br />
helpstring("IExposedATLClass Interface"),<br />
pointer_default(unique),<br />
oleautomation<br />
]<br />
interface IExposedATLClass : IDispatch<br />
{<br />
[id(1), helpstring("method GetInstance")] HRESULT GetInstance([in] Ixyz *instance);<br />
};<br />
<br />
[<br />
uuid(3C9EB277-EC91-4E42-8CD7-34F918490B69),<br />
version(1.0),<br />
helpstring("MYDLL 1.0 Type Library")<br />
]<br />
library MYDLLLib<br />
{<br />
importlib("stdole32.tlb");<br />
importlib("stdole2.tlb");<br />
importlib("thirdpartycomponent.tlb");<br />
<br />
<br />
[<br />
uuid(4DC3999A-797D-4F9A-8955-812E87E4B6D0),<br />
helpstring("ExposedATLClass Class")<br />
]<br />
coclass ExposedATLClass<br />
{<br />
[default] interface IExposedATLClass;<br />
};<br />
};<br />
the compiler doesnt recognize the xyz data type...
i import the component(OCX) in my stdafx.h file, my idl file imports the midl compiler generated .tlb file in my library namespace, after all this when i try importing the component's idl file in my idl
<br />
import "oaidl.idl";<br />
import "ocidl.idl"; <br />
import "thirdpartycomponent.idl";<br />
the compiler reports ambiguous symbols.
what should i do?
I'd really appreciate any kind of help/suggestion here.
nikhil
|
|
|
|
|
Hi All,
I am working on distributed application project in VC++. In my project, I am facing problem in debugging COM+ DLL (i.e ATL-COM DLL with MTS) project module. I want to debug one function inside this COM+ DLL. The function that I want to debug is called by windows service project module(i.e myproject.exe which is run as service on the same machine where COM+ DLL is registered.)
To debug this COM+ DLL, I compile both COM+ DLL project module and windows service module(i.e myproject.exe ) in debug mode with appropriate break points. In MS Visual C++ IDE, project setting option for COM+ DLL project module, under “executable for debug session” I added path for debug version of windows service EXE (i.e myproject.exe).
The Problem is, “when I trying to debug COM+ DLL module by pressing F5, it invokes the myproject.exe and stops at statement in windows service EXE (i.e myproject.exe) which is calling function inside the COM+ DLL that I want to debug. But when I press “Debugstep Into” or F11 to debug the COM+ DLL code, it is unable to link to COM+ DLL code and returns only return value from function inside COM+ DLL that I want to debug”
You can reach me on nimesh2611@rediffmail.com
Can any one tell me what other setting required under Project setting in VC++ IDE.
Or
Can you tell me some other approach to debug this COM+ DLL ?
Or
Send me some related links or document that helps me out…
Thanks
Nimesh patel.
Nimesh
|
|
|
|
|
NEED HELP WITH WORKING IMAPI OBJECTS
hi,
I want to work with IMAPI INTERFACES. I am
working in win xp with sp2 installed in Visual C++ 6.0 environment.
I wrote a sample code just to access IDiscmaster interface ptr.
The error comes in CoCreateInstance. I searched in my hard disk IMAPI.H i cannot find it. so
//CLSID CLSID_DISCMASTER;
//HRESULT hr = S_OK;
//hr = CoCreateInstance(CLSID_DISCMASTER, NULL, 1, IID_Unknown, (void**) ppUnk);
//or i tried this also
//hr = CoGetClassObject(CLSID_DISCMASTER,CLSCTX_INPROC_SERVER, NULL, IID_IClassFacory, (void**) &ppCf);
//Both are failing why
can u just help me regarding this.
thank you,
A beginner
|
|
|
|
|
You need the Feb 2003 Platform SDK, which was the last issue 'guaranteed' to work with VC6.
I believe you can download it from here[^]
Steve S
Developer for hire
|
|
|
|
|
Thank u steve,
I stepped my first step sucessfully in creating a instance of MSDiscMaster.
I got it and thanks for u that u guided me nicely. I have to Yet get that
sdk. Yesterday i tried to create an instance and when i patiently tried to
debug where i went i wrong and i found that i am creating a wrong instance
from the registry key.Thank u very much for patiently helping me in this.
Yours truly,
K.Pavan
|
|
|
|
|
Hi
My task is to puing to other systems using WMI can u suggest how to proceed on this task.
Thanks in advance
abhi
|
|
|
|
|
HI,
I'm a new member here and am glad to be one.I'm sure I'll find vast info here
as I start to venture into learning C#. I'm currently a axapta developer which happen to use X++ language (similar to C#).
regards,
pdchua
|
|
|
|
|
|
Hi,
I`m using a BHO to load my ExplorerBar (CATID = InfoBand) by default when Explorer loads. But on some machines, which seemingly have the same setup (all WindowsXP with SP2 installed and updated) it does not load - it does not instantiate my object (the Constructor is never called) and ofcourse i receive no IObjectWithSite->SetSite call.
anyone have any ideas why this is happening? any experience with this sort of problem or suggestions on how to solve it?
Thanks in advance.
|
|
|
|
|
hi all,
I have an activex control( a video player), which i embed in IE using <object> and its class id.
So whenever IE(page) opens,an information bar comes at the top of the window.we have to Right Click>>Allow Blocked content.Then player starts playing cam files.
I need to change options of the information bar.Instead of Allow Blocked Content option ,i need to place PLAYER's name.
is it possible?
Also after Allow Blocked content option is selected,Window prompts for whether to install the Activex control.Can i do it programatically ?..anyways..
Give me some suggestions.
Thanks in Advance,
Sunita
|
|
|
|
|
The 'allow blocked content' prompt is probably coming from the Local Machine Lockdown feature in XP SP2. In Internet Options, go to the Advanced tab, scroll down to Security, and check 'Allow active content to run in files on My Computer'. If the prompt goes away, your users will not see this if accessing the page from another machine (whether over the Internet or a company intranet).
You cannot automatically install the ActiveX control. This is quite deliberate - to allow this would be a serious security hole. If you're using this on an intranet site, you could use a standalone installer to install your control using whatever management tools you have available.
Note that users not running as administrators will not be prompted to install the ActiveX control.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Please suggest a online tutorial for COM/DCOM.
KIRAN PINJARLA
|
|
|
|
|
Have you already read through this[^] and the other articles on CP?
Steve S
Developer for hire
|
|
|
|
|
Thank u steve.
KIRAN PINJARLA
|
|
|
|