Great thanks for the help. Out of all the C++ books I have I could not find that anwser.
DR Clevenger
Posts
-
Project Icon for MC++ -
Project Icon for MC++Sorry. When you look in explorer at the .exe file you only see the default icon... it looks like an icon for a console app. I want to use the icon I used in the winform. My problem is, after installing the app the default icon (the console one) shows up in the start menu. I just need to change that icon in the project. In C# I can change this in the project properties pages under General|Application Icon. Sorry about not being more clear. I'm more of a C# person or I sould say, that I have only written console apps in C++ and not really any WinForm apps. Thanks for the help.
-
Project Icon for MC++How do I set the project level icon? After the project has been built I still have the default icon. I know in C# you set it in the project properties but I do not have that option in MC++ (unless I'm just blind).
-
Convert from __GC String to const WCHARThanks for your help and the information.
-
Convert from __GC String to const WCHARI got it I forgot to put the 'const' in the method.
-
Convert from __GC String to const WCHARThanks, When I try this I get the following: cannot convert parameter 1 from 'const wchar_t __pin *volatile ' to 'WCHAR *' Conversion loses qualifiers: Here is the code Unmanaged Code UserStatus* WaitForChanges(WCHAR* dn) { UserStatus* status = new UserStatus(); MonitorLDAPChanges(pdn); return status; } Managed Code const __wchar_t __pin * str = PtrToStringChars(dn); WaitForChanges(str);
-
Convert from __GC String to const WCHARHello All, I trying to call an unmanged code function from managed code and the unmanaged code function requires a type of WCHAR. How can I convert a __GC String to type of WCHAR so it be passed to the function. If I type out the value, such as const WCHAR *pdn = L"Some value"; It works; however I need the "Some value" to be passed in as a variable. By the way this unmanged code is in unicode, if that helps. Thanks, DC
-
Active Directory NotificationThank you very much. I will try that.
-
Active Directory NotificationHas anyone every done anything with Active Directory Notification. I need to write a service that listens to LDAP and lets me know when things change such password changes, etc. I found the sample code on MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netdir/ad/example\_code\_for\_receiving\_change\_notifications.asp), however I'm unable to get the code to compile. I seem to be missing all of the header files. -Any thoughts? Thanks
-
App.Config FileOk I got it. In C++ .Net you have to copy the file and rename it yourself. In C# and VB.Net It will do that for you. Thanks
-
App.Config FileI know how to use that in C# but I'm having trouble using it in C++. Do you have any sample syntax for this... I'm a little new to C++ syntax. Thanks
-
App.Config FileHow do I get values from the section in the app.config file in managed C++?