Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

subhabasu

@subhabasu
About
Posts
11
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • IGPM interface
    S subhabasu

    Hi all, I am trying to use the IGPM interface from the gpmgmt.dll. The dll is registered in Win2008 server. But when I execute my exe file (written in C++) it simply throws an HRESULT error - "0x80040154 The class is not regsiteresd" and the GetLastError returns "1008 ERROR_NO_TOKEN". Any help is appriciated. Thanks. Subha

    C / C++ / MFC help c++ sysadmin

  • Class not registered
    S subhabasu

    Hi all, I am trying to instantiate a COM object of class GPM (gpmgmt.h and gpmgmt.dll) using CoCretateInstance. It returns "0x80040154 Class not registerd" error. The code snippet is - ::CoCreateInstance( __uuidof(GPM), // CLSID_GPM NULL, CLSCTX_LOCAL_SERVER, __uuidof(IGPM), // IID_IGPM (void **)&m_IGPMObj); , where m_IGPMObj is a IGPM pointer. I am building my code with VS2005 in XP Professional SP2. The required header file and idl file are present in my machine, but not the dll (I dont know why). MSDN suggests that the dll is available in vista and 2008 server and redistributable for 2003 server and XP SP1. I have searched the dll in 2008 server and vista, it is not there also. I also tried to install GPMC in a XP SP3 machine, it simply fails saying that - LoadLibray fails. Any help is appriciated.

    COM help com sysadmin

  • Group Policy Management
    S subhabasu

    Hi Calla, Thanks for the reply. I'll surely try the System.Security namspace. Yesterday, I have found something interesting in MSDN. They are using scripts (JScript, VBScript or Shell Script) for managing Group Policies. But I dont know even 'S' of scripting langauges. Lets see how much I can progress in that foeld with C#. Bye.

    C# csharp dotnet visual-studio com

  • Group Policy Management
    S subhabasu

    Hi all, I am trying to manage group policies programaticaly, using C#. I have searched through google from last 2 days and find nothing on it. In one forum I have found that I need to add "GPO Admin 1.0 Type Library" from COM reference into my project. But in Visual Studio 2008 (.NET framework 3.5) does not contain it. So, right now I do not know whether I can do that or not. All kind of relative suggestions are welcome. Thanks.

    C# csharp dotnet visual-studio com

  • Group Policy
    S subhabasu

    Hi Siddharth, I'm also stuck at this problem from last 2 days. :^) And it seems to me that either no one have tried that thing, or it can't be done using only C#. May be it can be done using WMI.:confused: I dont know, what to do. :(( If you get any solution don't forget to post that in this thread. Best of luck. Bye. Subha Basu

    C# csharp tutorial question

  • GIF showing problem
    S subhabasu

    Hi Xing, Thanks for your enthuasism, what you and Hamid have shown to my problem. I used that __try-__exception() block. Inside that I call 'GetExceptionCode' API, which returns me the error code 0x80000003. It means EXCEPTION_BREAKPOINT (#define EXCEPTION_BREAKPOINT STATUS_BREAKPOINT in winbase.h). And in winnt.h STATUS_BREAKPOINT is defined as 0x80000003. So, right now I am here, back again in the square. I don't understand what is the problem with Application Verifier 4.0. Without tracking by it, the application works fine.

    C / C++ / MFC visual-studio graphics debugging help

  • GIF showing problem
    S subhabasu

    Hi Hamid and Xing, Many many thanks for your suggestion. I tried what both of you have said. But that was giving "error C2712: Cannot use __try in functions that require object unwinding" in my VS 2005. Anyway I solved that error by setting "Enable C++ Exceptions" to "No". Now I can track the exception, though generating too many warnings at compile time (for disabling C++ exceptions). So, the application doesn't crashes anymore. Anyway, I need to show the GIF images. So, how can I do that after getting that exception - EXCEPTION_EXECUTE_HANDLER. What should I do :(

    C / C++ / MFC visual-studio graphics debugging help

  • GIF showing problem
    S subhabasu

    Hi Hamid, Now, I find where the problem occurrs. It is nothing to do with the project setting /DYNAMICBASE or /NXCOMPAT in Linker command line. The application only crashes if I run it with Application Verifier 4.0. Otherwise it is able to show (DrawImage) any kind of GIF image. I am giving a part of the xml file generated by the Application Verifier 4.0. I hope it will help you to understand the error properly, which I could not resolve till now. <avrf:logEntry Time="2009-04-15 : 12:18:56" LayerName="Heaps" StopCode="0x13" Severity="Error"> avrf:messageFirst chance access violation for current stack trace.</avrf:message> avrf:parameter15960002 - Invalid address causing the exception.</avrf:parameter1> avrf:parameter24ed9b280 - Code address executing the invalid access.</avrf:parameter2> avrf:parameter3129838 - Exception record.</avrf:parameter3> avrf:parameter4129854 - Context record.</avrf:parameter4>

    C / C++ / MFC visual-studio graphics debugging help

  • GIF showing problem
    S subhabasu

    Thanks Xing and Hamid, I even tried with try{ // My code snippet } catch(...) { ::Messagebox(0,0,0,0); } It does not enter in catch part. I am feeling sick of this:confused:

    C / C++ / MFC visual-studio graphics debugging help

  • GIF showing problem
    S subhabasu

    Thanks for the suggesstion Xing. Since I am writting code in pur C++ and using Win32 APIs, I didn't found what is the exception class I should use to catch it. If you can suggest me, that'll be better for me.

    C / C++ / MFC visual-studio graphics debugging help

  • GIF showing problem
    S subhabasu

    Hi all, I am trying to show single-frame/animated GIF images in a window created by 'CreateWindowEx'. I have used Image *, Graphics * (method DrawImage(Image *, INT, INT, INT, INT)) of GdiPlus dll. I used memry DC to avoid flickering. This was working fine. Now the problem is that - When I add 2 commands /DYNAMICBASE and /NXCOMPAT in linker command line (VS 2005 project settings), the application simply crashes when trying to show any kind of GIF image. Although it is showing BMP, DIB, WMF, JPG, JPEG and TIFF images perfectly. To see where the actual problem is i ran it in debug mode and find GdiPlus::Graphics::DrawImage fail to process. The Application Verifier 4.0 points that it is due to some bad address pointer. The astonishinig matter is that, in debug mode if I ignore the crash and click on 'Continue', the 'DrawImagw' returns StatusResult "Ok" and 'BitBilt' draws the image perfectly in my application window. Thanks in advance, for helping me out of this situation. Subha

    C / C++ / MFC visual-studio graphics debugging help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups