|
I have used a mschart component in my form,
but I have no idea how to use the my customised image to replace the background color of bars.
Thanks
|
|
|
|
|
Good Morning,
How can i enable IE to show my custom image format in it's window? IE supports by default some image types like BMP, JPG, GIF etc. How can i register my own file type in this default type list?
Thanks in advance.
|
|
|
|
|
Yes, you can open your custom files in IE. For that you need to do the file
association, its just the matter of some registry entries.
But if your images having custom format, then there must be some native application which can recognise your image format. Do you have somthing like this application?
All the best !
Cheers,
Vishal
|
|
|
|
|
Yes, I already have an application that decodes this custom format and a shell extension too. Can you help with the registry keys?
Kind regards.
Pantelis Georgiadis
|
|
|
|
|
You have to set the MIME filter for that.
Insert content type entries
HKEY_CLASSES_ROOT
-MIME
-Database
-Content Type
-application/vnd.app.ext
-CLSID - CLSID for your application
-Extension - Extension of your image files
Entries for extension
-.ext
-ProgID
Entries for ProgID
-ProgID
-DefaultIcon
-Shell
-Open
-Command - C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE %1
This much I can remember...
This all information is available on online MSDN, unfortunatly I lost the
link for that, you can get the link from online MSSN. It would take some time
to search, well I had one unsuccessful attempt. If you get that link pls.
fwd it to me.
You can take a reference from the MFC sample active document container/server. See how this application is making the registry entries.
Hope this helps you !
All the best !
Cheers,
Vishal
|
|
|
|
|
|
Hi,
I've an ActiveX control (.OCX) written in VC++ 6.0.
I am trying to use this control in C# Web Service - but everytime I invoke any of ActiveX method the service fails.
I wrote another small Windows-Application in C# to test if I can access ActiveX in C#...
Now the only problem is when I try to access ActiveX from C# Web Service.
Any help?
Thanks!
|
|
|
|
|
Hi,
I am new to COM. I just started learning the COM. Its interesting. I am learning from "Inside COM" book. I just want to be a COM programmer. So do i need to learn all COM stuffs. I read till ClassFactory and little abt Containment and Aggregation.
Do I need to learn all the other cocepts to be a good programmer like IDispath,Monikers(its not given in this book) and other threading concepts and even Aggregation in detail.
could anyone guide me on this regard?
Also I want to learn ATL too. I have done projects in ATL too. But want to be good prgmer in that too.
|
|
|
|
|
urssmiling wrote:
Do I need to learn all the other cocepts to be a good programmer like IDispath,Monikers(its not given in this book) and other threading concepts and even Aggregation in detail.
IDispatch - yes, at least if you want to interoperate with braindead languages such as VBScript, or want to use automation functionality exposed by many applications.
Monikers - it doesn't hurt. Especially not if you are to create your own monikers.
Threading concepts - absolutely.
urssmiling wrote:
could anyone guide me on this regard?
This book is highly recommended[^]
urssmiling wrote:
Also I want to learn ATL too. I have done projects in ATL too. But want to be good prgmer in that too.
You should most definately learn ATL as well, if you are going to do serious COM programming. You will become sick of all the boiler plate code otherwise.
Good music: In my rosary[^]
|
|
|
|
|
Thanks for ur reply. I have some more clarifications. Could you be more clear about IMonikers about whehter its really a needed one. Also about aggregation and containment.
Also could u specify me about learning ATL. I have Inside ATL book. Do I need to learn about all the ATL object and so on. could you guide me more on this.
Thanks.
|
|
|
|
|
Hi,
I am using ADSI api and want to extract Net BIOS name from DNS using C++.
I got following sample from MSDN. But this sample is not compiling. I got following compilation error:
error C2065: 'IADsNameTranslate' : undeclared identifier
I have Included "activeds.h" and "Iads.h" in the header files but still I am not able to get the desired result.
If someone has worked on it then please sent me the working code.
#include "activeds.h"
#include "Iads.h"
int wmain( int argc, wchar_t *argv[] )
{
IADsNameTranslate *pNto;
HRESULT hr;
hr = CoCreateInstance(CLSID_NameTranslate,
NULL,
CLSCTX_INPROC_SERVER,
IID_IADsNameTranslate,
(void**)&pNto);
if(FAILED(hr)) { exit 1;}
hr = pNto->InitEx(ADS_NAME_INITTYPE_SERVER,
CComBSTR("aDsServer"),
CComBSTR("aUser"),
CComBSTR("userDomain"),
CComBSTR("passwd"));
if (FAILED(hr)) { exit 1;}
hr =pNto->Set(ADS_NAME_TYPE_1779,
CComBSTR("cn=jeffsmith,cn=users,dc=Fabrikam,dc=com"));
if(FAILED(hr)) {exit 1;}
BSTR bstr;
hr = pNto->Get(ADS_NAME_TYPE_NT4, &bstr);
printf("Translation: %S\n", bstr);
SysFreeString(bstr);
pNto->Release();
}
Thanks and Regards
Ankur
|
|
|
|
|
Hello Friends,
I want to learn COM Programming. So, Please suggest me the path to be taken for becoming a Advance COM Programmer.
From Basic to Advance to Expert??
Neelesh K J Jain.
|
|
|
|
|
Hi Neelesh ,
TO start with COM the best resources are books and online MSDN.
Here are some good books.
Essential COM
by-Don Box
Inside COM
by-Dale Rogerson
Have fun !
Cheers,
Vishal
|
|
|
|
|
hi
i m new to the field of activex and i want to know that are activeX (internet activex) made in the vc or vb are capable of self registering. or had to something extra to
register them. particularly the (internet activex) controll. if not that what functions will be used to register them.
i had made the (internet activex) that play the movie on the page i want to know that when user will visit my page then ocx will be selfdownloaded
and selfrejisted to that client pc. or what will happen.
ddd
|
|
|
|
|
tasleem143 wrote:
activeX (internet activex) made in the vc or vb are capable of self registering. or had to something extra to
register them.
The components are capable of self registering themselves, provided they have the necesary permissions to do so.
The Internet Activex control should be singed by any of the singing authorities otherwise when it tries to register itself then u will get a security warning.
tasleem143 wrote:
what functions will be used to register them
To register an control use "Regsvr32.exe"
tasleem143 wrote:
i want to know that when user will visit my page then ocx will be selfdownloaded
and selfrejisted to that client pc. or what will happen.
For a component to download itself on to the client machine, create a Cabinet (.cab) file for that component along with the .inf file, mentioning that the control has to register itslef once it get downloaded on to the client machine.
place "cab" file in the virtual directory.
|
|
|
|
|
hi
i want to know how to make the (.cab) file for the component along with inf file. and in the codebase attribute of the object tag i should refer to that site where cabfile is placed. and in the cab file ocx will be present.
ddd
|
|
|
|
|
Hi,
Inorder to make the cabinet file u need "Microsoft Cabinet Software Development Kit. you can download it from the following location:
http://support.microsoft.com/default.aspx?scid=KB;en-us;310618&[^]
tasleem143 wrote:
i want to know how to make the (.cab) file for the component along with inf file
The following entries have to be made in the (.inf) file
<br />
[version]<br />
signature="$CHICAGO$"<br />
AdvancedINF=2.0<br />
<br />
[Add.Code]<br />
YourComponent.dll=YourComponent.dll<br />
<br />
[YourComponent.dll]<br />
file-win32-x86=thiscab<br />
clsid={CLSID of the component}<br />
FileVersion=1,0,0,1 <br />
RegisterServer=yes<br />
"YourComponent.dll" is the name of your component
Save the above as file as "YourComponent.inf" file
Run the "cabarc" utitlity as following.
cabarc n CabinetFileName.cab YourComponent.dll YourComponent.inf
it generates a cab file in the current directory.
place the cab file in the virtual directory.
tasleem143 wrote:
the codebase attribute of the object tag i should refer to that site where cabfile is placed.
declare the <object> Tag as following:
<object id="<i">ObjectName height=100 width=100
classid="CLSID:CLSID of the component"
CODEBASE="CabinetFileName.cab#version=1,0,0,1">
Tiru
|
|
|
|
|
hi
thanks for ur help i had downloaded that from site. i had bid of confusion. u said that in making the inf file i should replace the
"YourComponent.dll" with myown component. but my component extension in .ocx not .dll.
2nd u specifie that i should place the cab file in the "virtual directory". i want to know that what is that virtual directory. is that is the
place where mysite in rejistered or mysite folder.
third in the codebase tag suppose mysite is rejisted as yahoo.com and cabfile name is test then i should write this on tag
CODEBASE="http://www.yahoo.com/test.cab#version=1,0,0,1">
if want to check that locally on my computer then i should install the iis and then can check that or without that is possible. and in the
code base tag i should write
CODEBASE="C:\test.cab#version=1,0,0,1">
i had tried to check that locally without installing the" iis" it did not worked
by making the cabfile as u specified and in the cabfile the ocx and inf were presetnt. with procedure u specified.
ddd
|
|
|
|
|
tasleem143 wrote:
"YourComponent.dll" with myown component. but my component extension in .ocx not .dll
yeah u can mention your .ocx file name instead of the .dll file.
tasleem143 wrote:
i want to know that what is that virtual directory
Virtual directory is the folder that u create in your web site. it contains all the web pages.
Regarding the Code base, u just need to mention the name of the cab file and its version.
tasleem143 wrote:
i had tried to check that locally without installing the" iis" it did not worked
by making the cabfile as u specified and in the cabfile the ocx and inf were presetnt. with procedure u specified.
inorder to test it on the local machine u need to install IIS on it and follow the earlier procedure.
|
|
|
|
|
hi
thank for ur useful time. it works properly.
when u had not replied on sundays then i searched the microsft soft site for that purpose then i found and article related to the cab file in which all procedure was explained. i read that and i want that with the cab file all the dll required to run the mfc programs ie mfc42.dll should be also downloded and extracted automatically.
it was explained in that but icannot understand that all dll's (mfc42.dll and other 2) and on inf should be packed in seperate cabfile alongwith the inf file or in same cab file in which ocx is present. it is below i dont know
ddd
|
|
|
|
|
|
Hi All, I have a program which uses the IE engine to display HTML docs in it's window. It uses COM/ATL to interface to IE. Is there a function I can call which would return to my program the highlighted text in the displayed HTML doc? Also, does anyone know of a good reference (maybe a book?) that describes how the interface to the IE engine works? Thanks in advance for any ideas, Melena
|
|
|
|
|
Hi Melena,
So your program has IWebBrowser embeeded inside to render the HTML pages?
To retrieve the highlighted (selected) text you must query for an interface "IHTMLSelectionObject", once you get the interface pointer then check the type of this selection using IHTMLSelectionObject::Type. It could be "Text" or "Object"
Once you get d valid pointer you must create the range for the current selection using "IHTMLTxtRange = IHTMLSelectionObject.createRange" and here is your desire result "IHTMLTxtRange::Text" this would return you the highlighted (selected) text.
Does this helps you ?
Enjoy !
Cheers,
Vishal
|
|
|
|
|
Thanks Vishal, that helps a lot. It looks very similar to getting the selected text from Javascript.
|
|
|
|
|
Hello,
im new to MFC and ActiveX and such
I would like to write a simple opengl activeX control that i can render a cube to, and imbed in a Web page (and the cube spins etc etc), i have seen alot of examples (there is one on this site) but i cannot get them working (xcept through vb)
Are there any samples/basecodes around that i can learn from?
Also, i can create an opengl window with an SDI MFC project; but where does OpenGL anchor to for an activeX application (there is no default window?)
Can someone steer me in the right direction plz
Cheers
Muncher
|
|
|
|