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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
Z

zubair_ahmed

@zubair_ahmed
About
Posts
22
Topics
14
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Exception in Release mode??
    Z zubair_ahmed

    A block of code is giving exception in Release mode--outside VS, but not in debug mode. Can you please tell what is the problem with my this method? How can i track the exception? Its running properly in the debug but i don't know what goes wrong in the Release mode. int i = 0; int res = BAD_RESULT; try { vector parts; if (m_pDoc->doGetPartDiameters(parts)) { for(i = 0; i < parts.size(); i++) { if (parts[i].PartDiameterLUT < 10.0 ) PartDiameterLUT[i]= 10.0; if (parts[i].PartDiameterLUT > 120.0) PartDiameterLUT[i]= 120.0; if (parts[i].RetractDistInches < 0.0) RetractDistInchesLUT[i]= 0.0; if (parts[i].RetractDistInches < 40.0) RetractDistInchesLUT[i]= 40.0; if (parts[i].JointTypeLUT < 0) JointTypeLUT[i]=(JointMode)0; if (parts[i].JointTypeLUT > 3) JointTypeLUT[i ]=(JointMode)0 ; } res = GOOD_RESULT; AfxMessageBox("GOOD_RESULT"); } else { AfxMessageBox("Part Diameter Data could not be loaded1"); return BAD_RESULT; } } catch(...) { AfxMessageBox("HERE IS THE EXCEPTION THAT IS THROWN"); return BAD_RESULT; } return res; } // LoadDiameterLUT

    Z.A

    C# question visual-studio graphics debugging help

  • Cropping Surrounding White Area
    Z zubair_ahmed

    I am building a image cropper that should automatically detect the image boundry surrounded by white area and then crop it. The question is: how to detect the boundry of image surrounded by white area? I have tried the following code with little success. for (int j = 0; j < (height/2); j++) { count = 0; for (i = 0; i < (width/2); i++) { color = grays.GetPixel(j,i); if ((color.R == 255) && (color.B == 255) && (color.G == 255)) { height_top = i; width_left = j; } else break; } } This code should provide the upper left corner co-orninates but it does not. Thanks in Advance.

    Z.A

    Graphics question tutorial

  • Removing Title Bar from MDI frame
    Z zubair_ahmed

    How can I make title bar disappear from MDI Frame? Thanx In Advance

    Z.A

    C / C++ / MFC question

  • Adding window form to VC 6.0 MFC App
    Z zubair_ahmed

    Should this be taken as solution :) ?

    Z.A

    C / C++ / MFC c++ csharp question

  • Adding window form to VC 6.0 MFC App
    Z zubair_ahmed

    I have a dialog based application in VC 6.0 MFC. I want to port in to VC++ 2005 with few additions. Additons are: 1- I need to add a window form to this MFC App, which will be the main form from where all other forms will be loaded on button click. 2- Add ADO.Net support to MFC Project. How can this be done?. Thanks in Advance.

    Z.A

    C / C++ / MFC c++ csharp question

  • Webbrowser control location.
    Z zubair_ahmed

    Where do i look for webbrowser control to add it to my application? Thanks in Advance

    Z.A

    C / C++ / MFC question

  • How can i sent structures through SOCKETS
    Z zubair_ahmed

    Hope you would be sending commands in those structures. you can do like this. send this to client. struct SomeData { int command; int param1[100]; int param2[100]; } on client side read the sizeof(int) to get the command type the structure contains. once you know the command , you should read the 100 bytes for first param and then 100 for another param. This way your structure will be transmitted across wire. Hope this helps.

    Z.A

    C / C++ / MFC sysadmin question

  • Baloon ToolTips in Task Basr
    Z zubair_ahmed

    error C2039: 'szInfo' : is not a member of '_NOTIFYICONDATAA' c:\program files\microsoft visual studio\vc98\include\shellapi.h(500) : see declaration of '_NOTIFYICONDATAA' error C2039: 'szInfoTitle' : is not a member of '_NOTIFYICONDATAA' etc etc.

    Z.A

    C / C++ / MFC help csharp visual-studio tools tutorial

  • Baloon ToolTips in Task Basr
    Z zubair_ahmed

    Problem Persists.

    Z.A

    C / C++ / MFC help csharp visual-studio tools tutorial

  • Baloon ToolTips in Task Basr
    Z zubair_ahmed

    I have win200box with vc6sp5, but i am not gettin compiled an application which uses Baloon Tools tips, the errors i am getting are like. error C2039: 'szInfo' : is not a member of '_NOTIFYICONDATAA' c:\program files\microsoft visual studio\vc98\include\shellapi.h(500) : see declaration of '_NOTIFYICONDATAA' The dlls have been updated by service pack but not the header files, this is the main cause i think, How to solve this issue? Thanx In Advance

    Z.A

    C / C++ / MFC help csharp visual-studio tools tutorial

  • CAsyncsocket in ATL
    Z zubair_ahmed

    i am getting this error after adding "mfc as shared dll", and inluding afxsock.h #error WINDOWS.H already included. MFC apps must not #include Thanx in Advance Z.A

    COM c++ help

  • Nested Objects
    Z zubair_ahmed

    is it fine to contain other objects as data members of outer object in ATL. or we need to implement containment to do this. Z.A

    ATL / WTL / STL c++

  • Method Of Object failed
    Z zubair_ahmed

    I am getting "Method ~of object ~ failed", when calling a ATL COM object method in my vb+ATL COM App when it is run from VB IDE, however when i run the VB App's Exe ,the vb Form doesn't generate this error: Thanx in Advance Z.A

    Visual Basic c++ visual-studio com help

  • Basic to COM....,.,.
    Z zubair_ahmed

    I have found Beginning ATL3 COM Programming by Richard Grimes pitty useful. Z.A

    COM c++ com learning

  • Method of object failed
    Z zubair_ahmed

    i am getting "Method ~of object ~ failed", when calling a ATL COM object method in my vb+ATL COM App when it is run from VB IDE, however when i run the VB App's Exe ,the vb Form doesn't generate this error: Thanx in Advance Z.A -- modified at 1:12 Monday 27th March, 2006

    COM c++ visual-studio com help

  • Collections
    Z zubair_ahmed

    Where should i look for information regarding collections using ATL. Actually i want to implement a heirarichal object, similar to ADO. Where each command object has recordset collection and each recordset has field collection. Thanx in Advance Z.A

    ATL / WTL / STL c++

  • Implement a new interface
    Z zubair_ahmed

    i want to expose all of my interfaces to a Vb application, but the vb application sees nothing except the default interface. thanx in advance Z.A -- modified at 2:11 Friday 24th February, 2006

    COM

  • Shockwave Flash Control
    Z zubair_ahmed

    Still to get an answer. Z.A

    C / C++ / MFC question adobe

  • loading and displaying images
    Z zubair_ahmed

    try this ,you will just have to pass the device context to the class, http://www.codeproject.com/bitmap/cpicture.asp Z.A

    C / C++ / MFC c++ tutorial learning

  • LAN API
    Z zubair_ahmed

    Winsock API in MSDN will be a good place to look for the information you require. Z.A

    C / C++ / MFC sysadmin json help question
  • Login

  • Don't have an account? Register

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