I have an managed C++ dll lib. It has claas info like below namespace tests { public enum class clours { Start = 0; Red = 1; Green = 2; Blue = 3; End = 4; } } I have written a client application in C# and load the dll dynamically(I am using reflection). I want to access the enum members and values between 'Start' and 'End' from the client application.
mjvalan
Posts
-
Access managed C++ public enum class from C# by Dynamically loading -
Extract text from Ms -office documentsThanks Igor Green.
-
Extract text from Ms -office documentsHi, I want to extract text content of MS-OFFICE documents(PPT,XLS....), programmatically. THanks MJValan
-
Determine text file or Binary fileI want to determine, a file is text file or binary file(file name dosen't have file extension).Is there any API in Windows SDK? Thanks MJVALAN
-
Combine two iconsHai, I am ving two icon handles, and want to combine them. So that one will be the overlay over the another. I tried with the following code, but it is not displaying properly. Any other solutions? HICON CAutoDocuFileDlg::CombineIcons(HICON topIcon,HICON bottomIcon) {// begin CombineIcons ICONINFO newIcon; newIcon.fIcon = true; HDC screenDC = ::GetDC(NULL); HDC iconDC = CreateCompatibleDC(screenDC); HDC maskDC = CreateCompatibleDC(screenDC); newIcon.hbmColor = CreateCompatibleBitmap(screenDC,16,16); newIcon.hbmMask = CreateCompatibleBitmap(maskDC,16,16); HGDIOBJ oldIconDC = ::SelectObject(iconDC,newIcon.hbmColor); HGDIOBJ oldMaskDC = ::SelectObject(maskDC,newIcon.hbmMask); BitBlt(iconDC,0,0,16,16,NULL,0,0,BLACKNESS); BitBlt(maskDC,0,0,16,16,NULL,0,0,WHITENESS); DrawIconEx(iconDC,0,0,topIcon,16,16,NULL,NULL,DI_ IMAGE); BitBlt(iconDC,0,0,16,16,NULL,0,0,DSTINVERT); // DrawIconEx(maskDC,0,0,topIcon,16,16,NULL,NULL,DI_ MASK); DrawIconEx(iconDC,0,0,bottomIcon,16,16,NULL,NULL, DI_NORMAL); BitBlt(iconDC,0,0,16,16,NULL,0,0,DSTINVERT); DrawIconEx(maskDC,0,0,bottomIcon,16,16,NULL,NULL, DI_MASK); BitBlt(maskDC,0,0,16,16,NULL,0,0,DSTINVERT); ::SelectObject(iconDC,oldIconDC); ::SelectObject(maskDC,oldMaskDC); HICON newFileIcon = CreateIconIndirect(&newIcon); ::ReleaseDC(NULL,screenDC); DeleteDC(maskDC); DeleteDC(iconDC); DeleteObject(newIcon.hbmColor); DeleteObject(newIcon.hbmMask); DeleteObject(oldIconDC); DeleteObject(oldMaskDC); return newFileIcon; }// end CombineIcons
-
iCON OVERLAYI want to use Icon overlay for my files. What i ve to do with the folowing method of IShellIconOverlayIdentifier Methods are GetOverlayInfo GetPriority IsMemberOf
-
iCON OVERLAYI want to use Icon overlay for my files. What i ve to do with the folowing method of IShellIconOverlayIdentifier Methods are GetOverlayInfo GetPriority IsMemberOf (let my file type is .myp)
-
Find files recursively in subdirectoriesHello, I want to get all files in specified directory and also in subdirectories using Windows SDK. PPl who know plz send it. Valan
-
Related to reparse pointsHello ppl, I want to use NTFS reparse points for my application using VC++. I want to move infrequently used files to remote storage and ve to create a link for that file in local volume. I got only documents regarding this not any implementation details or APIs. So plz if anybody know anything related to reparse points plz send me. Valan