|
thnx for reply but what u r saying is good when i m creating
my own controls but i m not creating new ActiveX control. I m using the one that already exsist like MSFLEXGRID and others......... it is not necessary that i should access it from other thread but if i can access from the same thread it is also fine i m basicaly injecting code in running process to get the properties of activeX control ......... Recently i got succeded it through subclssing but the code i use was of MFC so it was working fine on applications build in MFC but it is not working on other application like the ones build through VB I was accessing the same control MSFlexGrid but it doesnot work there.....
Plz reply ASAP
|
|
|
|
|
Hi, I am a little new to the code project. Any way, I have Windows ME and do not have the Microsoft .Net FrameWork. I was wondering if their is a program that can notify me when i get new mail. I would like it if it can surport 2 gmail acounts(My Father and I have one gmail account each and we share the same computer). I would like it to stay in the System tray. I will give a gmail invite to the one you can find a program that I can use. Thanks
|
|
|
|
|
Wrong forum ?
I believe this should be going in the lounge, no?
|
|
|
|
|
may be he like to go for GMAIL forum
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
I use IGraphBuilder, IVideoWindow and IMediaControl to create simple video player. I assume it's window to desktop window so there's a problem. How can i show all items that were on desktop in my video player window(make them popup) and save their functions(run,rename,...)?
Can somebody help me pleace.
|
|
|
|
|
Hello!!
At the beginning I'd like to apologize for posting on group that doesn't fit this subject, but I haven't found any that would fit it.
I am looking for informations, hints or source codes about how to display system resources (cpu load, mem usage...) on active desktop.
I know that I need to use WMI for it and I have found documentation about the WMI on MSDN with WScript example that shows cpu load, but I don't know how to put those informations on a web page (active desktop) and refresh them continuously.
Could anybody help me?
Best regards,
Marcin
|
|
|
|
|
Does anyone know how to convert the HRESULT into something readable?
The obvious approach: FormatMessage(.....) gives the description than can be understood by any normal human!
|
|
|
|
|
hi,
Do Some Googling On HRESULT.
there are two MACROS SUCCESS, FAILURE,
Once U Get The HRESULT, u Extract Severity code,Error code tec...
go through
"http://www.codeguru.com/Cpp/misc/misc/system/article.php/c3859/"
by
baijumax
|
|
|
|
|
_com_error err(hResult);
CString strError = err.ErrorMessage();
Thanks
|
|
|
|
|
|
I've developed a component (.dll file) on my desktop computer using VC++ 6 running Windows XP SP1. When I run regsvr32 on the the desktop computer, the .dll registers and I'm able to access the component from a client program.
When I attempt to register the same component on a laptop computer (also running Windows XP SP1), regsvr32 runs quietly (not showing a "DllRegisterServer in file.dll succeeded" message or any other message), the .dll doesn't register and I'm not able to access the component from a client program.
Does anyone know why this could happen?
If I run the regsvr32 command in a batch file (on the laptop), %ERRORLEVEL% gets set to 3. Anyone know where I could find out what that might mean?
-Rob
__________________________________________________________________________
....you guys start coding and I'll go ask them what they want it to do....
|
|
|
|
|
This is probably a dependency problem. Run the VC dependency walker (depends.exe), and check that all the dependencies for your DLL are present and correct. You can compare the result with your own working computer if you need. If any of the dependencies are missing, or not on the path, then it is likely that the DLL will not register.
|
|
|
|
|
Thanks, that was it. MFC Release DLLs were on the laptop, but not the Debug DLLs. regsvr32 registers a Release version of the .dll properly.
__________________________________________________________________________
....you guys start coding and I'll go ask them what they want it to do....
|
|
|
|
|
How can i check if a CLSID is valid or not without actually creating an object i.e without calling CoCreateInstance
and if CLSIDFromAppID function fails is it necessary that the AppID is wrong
thanks
|
|
|
|
|
Hello MailMonty,
One simple way to check whether a CLSID is valid is to check for the existence of that clsid in the registry under HKEY_CLASSES_ROOT.
Regards,
Bio.
|
|
|
|
|
Hello,
I'm hosting WebControl (internet explorer) in desktop application (C++/MFC, and/or C#). Application loads some html pages stored locally. Those pages contain some JavaScript code, which looks something like this:
function GetMYNAME () {
var win = window.parent;
while ( (win.MYNAME == null) && (win.parent != null) && (win.parent != win) )
{
win = window.parent;
}
return win.MYNAME;
}
This looks for object named MYNAME in all framesets of the page. I know how to communicate with JavaScript, I know how to call functions and to get my functions called from JavaScript, but I can't figure out how to do this. I'm thinking that I need somehow to put object named MYNAME into window hierarchy, but I don't have any idea how to do this. Through that object JavaScript needs to call some functions.
Can someone point me the right way?
I can't change that JavaScript because it's auto generated from many sources and the requirement is that it must look just like that. I found out that one can do what I want, but with window.external property, but that's not allowed.
|
|
|
|
|
Hey Guys,
I´m fairly new to COM and well .. here comes my newbie question!
I am programming in C++ and I am trying to add a toolbar to the mail window of Outlook, and I want to know the best way to go about it. My current thinking is to use the NewInspector event to add the toolbar to the window. But I´m wondering if there is an easier way - like to add it by default or something during OnConnection.
One other thing.. If the right way to go about it is to use the NewInspector event, what is its dispid? (I think thats what its called ) I swear I have turned every stone in MSDN and I can´t find it! I have tried Outlook Spy as well and its not there either. Is there any resource that contains the events and their respective dispids anywhere?
Your humble COM newbie.. Glad for any help whatsoever!
P.S By Dispid I mean the following piece of code in SINK_MAP.
SINK_ENTRY_INFO(1, __uuidof(Outlook::ExplorerEvents),/*dispinterface*/ (This number here), OnNewInspector, &OnSimpleEventInfo)
Karl Stiller
|
|
|
|
|
Check the OleView. It should be there under InspectorEvents.
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
Hi,
I am new to COM, and hope that this question is not too stupid...
I have a MFC application.
I've added to this application a com class, where the idea is to export some services of my application to another applications.
At first I made a dialog inside my application, and then in this dialog I made an instance of my COM Object - I get all kinds of services from my application using my COM oject Interface.
But the other scenario doesn't work as expected:
I ran my application.
Then I ran another client, which makes an instance of the COM object,then when it tries to access my application services through the COM interface, it fails.
I think that the problem is that in the second scenario (out-process client) the client makes another instance of my application, without the needed initialization phase.
The question is - how can I avoid it? And make it work
Thank You for the Help!!!!
|
|
|
|
|
What sort of relationship do you need between your MFC app COM out-of-process server, and your client?
You can change the relationship by tweaking the automation code inside CYourApp::InitInstance() in your server app. eg.
BOOL CYourApp::InitInstance()<br />
{<br />
................<br />
CCommandLineInfo cmdInfo;<br />
ParseCommandLine(cmdInfo);<br />
<br />
if (cmdInfo.m_bRunEmbedded || cmdInfo.m_bRunAutomated)<br />
{<br />
COleTemplateServer::RegisterAll();<br />
_Module.RegisterClassObjects(CLSCTX_LOCAL_SERVER, REGCLS_MULTIPLEUSE);<br />
<br />
return TRUE;<br />
}
You can tweak the relationship between the client and server using the second parameter to _Module.RegisterClassObjects(). REGCLS_MULTIPLEUSE means that the server can be called by more than one client. REGCLS_SINGLEUSE would imply a one-to-one relationship. REGCLS_MULTI_SEPARATE may be the one that you are looking for depending on the relationship.
You can read up on the REGCLS enumeration in the help files.
Hope this helps
|
|
|
|
|
Hi!
I'm working on a shell extension called ThumbView. I want to add image information in the Information box in the left, on web view, in windows xp explorer. I thought it was called a ToolTip so I overloaded IQueryInfo, but that's the yellow tooltip that shows when you hover your mouse over a file. So now I have 2 questions:
1) What's the interface for that Information box? Or at least a name, sine ToolTip is something else =/
2) Is there a list of different info's, that works with localization (ie it translates "size" to whatever language your winxp is)?
Thx!
/JP
|
|
|
|
|
Here's a pick to demonstrate what I mean, clicky[^]
I have the actual thumbnail working for PCX and TGA files. But I want to supply "Measure" (Mått), "Size" (Storlek), "Last changed" (Senast ändrad). Crash course in swedish :P So that's why I'm guessing that there's some standard names that works with localization. Last changed and Size seem to be supplied as default, but in reversed order compared to say GIF files.
Does anyone know how to extend that info box?
|
|
|
|
|
Hi, i've just created an ATL dll which houses a full control for activeX support.
Basically it's working ok.
However i need to run some code once the control has been installed successfully. (after Register server)
This control is windowless.
In an MFC based control i could use something like OnCreate() but i don't have a clue where to start here.
I basically need an event that gets called once the control is installed.
Please Help
Thanks in advance!!!
Carl
|
|
|
|
|
Why you won't use DllRegsidterServer of you module class for this purpose???
|
|
|
|
|
Because i need to physically attach to the file in 'Downloaded Program Files' to copy a resource from inside the control onto the user machine. The control does not appear until after the return of DllRegister.
Carl
|
|
|
|