im coding an Add-In (Visual C++) that do some changes to the document files in Visual Studio (.NET).
in the code i need to get the Active Project that in the solution explorer (the one that will run when the project is execute).
how can i do that?
in MFC i think , in the class IApplication, there's ->get_ActiveProject,
but in the classes of EnvDTE there's not (i didn't find).
does anyone know about something like that? or is there another way to know which is the active/startup project?
I’m creating to Winlogon Notification Package. I have therefore written an ATL DLL with a winlogonevent handler function. I exported the winlogon event handler function with the “MyProjectName.def” file as follows
I registered the dynamic library on a terminal server and used Regmon.exe and filemon.exe to monitor the logon event on the server, and I created the registry entries inside the "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\MyProjectname" subkey to register my dll.
Thanks a lot for your answer. It think also that the messagebox is displayed in another console. But nothing is also happened when I write the registry entries before call the messagebox. I things I have first to log on the user and then create a process with his tokon.
Ah sorry, didn't checked the code behind the MsgBox
Yes, you're right - you cannot write to the registry as it is. That's because your'e trying to write to HKCU which is impossible in the current situation - there's no current user in context of winlogon package. You might try to use the HKCR or HKLM -that should work.
I see. For my info, writing to HKCU works in that situation?
Regarding your last question, AFAIK parameters are passed to a service just as they are to any C program. For the service, use the ServiceMain function that
you specified for your service. It has two parameters - argc and argv:
Does anyone know if there is a similar function to EscapeToCString in WTL? I have XML as a string and need to make sure that problem characters ('&', '<', '>', etc.) are converted before sending as part of a URL. My MFC version used EscapeToCString to do this, but now that we have converted to WTL, I have not been able to find anything to replace it with.
<small>Some people see things that are and ask, Why? Some people dream of things that never were and ask, Why not? Some people have to go to work and don't have time for all that ...
Author: George Carlin
When it came up in help as an MFC function, I guess I wasn't thinking it could be something common to MFC and ATL, but the file is in the mfcatl include directory. It didn't compile without a specific include of the file without MFC, so I assumed I could not use it. You know what that makes me!
Some people see things that are and ask, Why? Some people dream of things that never were and ask, Why not? Some people have to go to work and don't have time for all that ...
Author: George Carlin
- but this results in that the WSDL for the method exposes the parameter 'MyDate' as a string (as it should). Now one could just change the WSDL afterwards to convert the parameter to a xs:datetime - but this would get broken each time one recompiles - so this isn't the best option. I have looked through the MSDN-samples - but haven't (yet) found any way to do this.
I have an idea that one could 'play around' with the "[tag_name]"-attribute to build own datatypes - but I'm not that familiar with this attribute (yet).
Does anyone have an idea how to expose a function parameter as a different type than the primitive datatypes?
I am trying to port opensource ultr@vnc project to a activeX control. I decided choose ALT to make it.But I don't know how to start, how to use old code as much as possible.I read about ALT tutorial but it seem for bulding a new ALT activex control, not for exist project.
is threre Anyone has any experience.Help me.
for Write the Interface without follow these Steps
!.In the yourProjectname.idl add your custom Interface
@.add a Declaration in ProjectLib column in .idl file and define CoClasss for Interface
#. add a class which will handle you Interface Internally.
Actually I have to add functionality in a already developed project. The project contains 11 dlls dependent on each other. When i tried to add a class and interface in the DLL through new ATL Class wizard it gives me the error that error C2065: 'IACurrentReading' : undeclared identifier
Entries of the Interface is in the idl file but still it is not considering it.
All IDs have entries in _i.c file of my project which is created by the compiler with MIDL settings.
Do i need to set any MIDL settings so that the IDs get generated and gets added in the corresponding file
Actually I got the exact problem and the problem is that I need to run midl with the idl file of project but when i give command
It gives error
error MIDL2025 : syntax error : expecting a type specification near "HRESULT"
MIDL compiler version is 5.01.0164 and it is not a problem of updating visual studio bacause previously the file was complied with the same compiler.
I m trying to get the selected date from the outlook calender.
But when i get the explorer and try with selection object, even though i selected few dates in the outlook calender, the selection object count shows 0.
I need to get the selected dates only not the appointments for those dates.
Can anyone help me.
Thanks in advance!
Last Visit: 20-Sep-20 14:13 Last Update: 20-Sep-20 14:13