|
I asked you , whether your dll is self registrable ? If yes, then only you can use Regsvr32 .
Make sure, there is function DllRegistrServer present in your code. Make sure, you are giving valid path using "\\".
|
|
|
|
|
Actually i got the software which contains .dll and an .exe files ,how to find that .dll files is self registerable or not?.i want to execute the software through the HTML Link in ASP.NET.Plz guide me.
|
|
|
|
|
In case of dlls, its not needed to register it. In case of COM dlls only it is needed. At least you can ask this from person, you got this software from.
If its a COM dlls, use dependency walker to see exported function, there should be function DllRegisterServer .
|
|
|
|
|
The Software is SIM card Reader.We are creating the Real time WebApplication for the Mobile users.In particular Asp.net Page Having a link Which Calls that sIM CARD Reader Software.But the error was created that (one of the dll).dll was required.But that dll already with in that folder.we are get confused.plz suggest me a suitable solution to run that software in asp.net page link.
|
|
|
|
|
Have you used dependency walker as said in previous reply ?
Dependency walker will be presented in VS--> visual studio tools .
|
|
|
|
|
ya,using dependency walker i able to open an .dll file.how to register?,what is the use of dependency walker?.i didn't work before related to .dll files.
|
|
|
|
|
|
Hi
Tell me some books which is suitable for begineers in COM,
and it contians only COM concepts.
Beacuse many books introduce COM in last three Chapter.
When I read them ,its really teadious to understand what they are coming to say.
Please dont say any e books or search in googlee.
Please help me.
VIBIN
"Fool's run away,where angle's fear to tread"
|
|
|
|
|
Inside COM by Dale Rogerson[^]
Essential COM by Don Box[^]
There also the Beginners section on COM here at CodeProject here[^] if you want to learn how to do COM.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Outstanding, thanks! I just came across some stuff I have to do in COM and this will help greatly. The timing is incredible!
Mike Poz
|
|
|
|
|
Hello,
"COM+ Programming: A Practical Guide Using Visual C++ and ATL" by Pradeep Tapadiya is the best.
Regards
|
|
|
|
|
Ok, I plead guilty for using global variables in a COM project of mine.
I know global variables are bad but sometimes it's hard to avoid.
My question is: Can I have some "global in the instance scope only" kind of variables? That is, inside the instance the variables are global, every class can see them. But each instance of the object has its own set of individual "global" variables.
Is it possible to work around this?
__________________________
S.C.
|
|
|
|
|
To me this sounds like a contradiction in terms: if “each instance of the object has its own set of individual "global" variables” then they're not global!?!?
Steve
|
|
|
|
|
S.C.Wong wrote: My question is: Can I have some "global in the instance scope only" kind of variables? That is, inside the instance the variables are global, every class can see them. But each instance of the object has its own set of individual "global" variables.
Do you write global to mean public ?
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.
|
|
|
|
|
No. I mean a global variable which doesn't belong to any class. (Quite similar to a static variable. ) Like the "theApp" variable in those wizard-generated MFC project.
Lets say I have an ActiveX control called MyCtrl.
Now I insert two of MyCtrl in an dialog:
CMyCtrl1 m_ctrl1;
CMyCtrl2 m_ctrl2;
And somewhere in MyCtrl there is a global variable int g_nVariable.
The global(or static) variable g_nVariable is shared by m_ctrl1 and m_ctrl2. There is only one copy of g_nVariable.
All I want is a global variable, but of which each instance og the control has its own copy.
If I can get a pointer to the "active instance of COleControl", I can solve the problem too.
Sorry for my lousy English as it's not my first language and I am too frustrated...
__________________________
S.C.
|
|
|
|
|
Why don't you use just a class member static variable?
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.
|
|
|
|
|
S.C.Wong wrote: All I want is a global variable, but of which each instance og the control has its own copy.
Again I ask the question: if each instance has its own copy how is it global since, by definiton, all instances share the same globals?
Steve
|
|
|
|
|
If the object is not having GlobalMultiUse instancing automatically the object will have its own copy of global variables. No doubts in this regard.
|
|
|
|
|
How to set the instancing property in MFC activeX? Thanks.
__________________________
S.C.
|
|
|
|
|
Just found it. It's CoRegisterClassObject(). Thanks everyone who replied.
__________________________
S.C.
|
|
|
|
|
Hai all.
I have created a Toolbar for Internet Explorer.
I need to get the window handle of an Explorer Band(Created by me) in my tool bar.
I know the class ID of the Explorer Band, and I am able to hide and unhide the Explorer Band using that Class ID , from the toolbar using ShowBrowserBar(&vtBandGUID, &vtShow, 0); function.
But for my purpose, I need to get the window handle of the Explorer Band
How I can Get the window handle?? .
Please Help me
Thanks
George
|
|
|
|
|
IWebBrowser2::get_HWND gives you handle to main explorer window.
Use EnumChildProc ,enumerates children using this handle. You should get any window you want.
|
|
|
|
|
Hai Prasad ,
Thank you very much for ur reply . it helped me to rectify my problem.
Thanks
George
|
|
|
|
|
|
i used MS Word COM (e.g 2007) in my program to do some function
but when i run my program on a
(diffrent machine with adiffrent MS Office(2003))
then the program raise an error
any body can tell how can i generalise my program and run it over any machine has MS Office?????....
|
|
|
|