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
R

raju_shiva

@raju_shiva
About
Posts
93
Topics
49
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • CEdit Box Error
    R raju_shiva

    Hi all, I am trying to add Edit Box on my dialog application. I am creating a variable name as CString m_strEdit; through ClassWizard->Member variables but when i run the application some junk value is coming on editbox and when i close the application(i.e end all the dialogs) I am getting error. Can someone tell me,whats going on wrong The debug error is shown below

    Debug Assertion Failed!

    File:dbgheap.c

    Expresion:_CtrlIsValidHeapPointer(pUserData)

    Thanks Raj

    C / C++ / MFC debugging help

  • How to increase buffer size for CEdit Box in VC6
    R raju_shiva

    Hi, Thanks a lott.Its working Thanks Raj

    C / C++ / MFC tutorial question

  • How to increase buffer size for CEdit Box in VC6
    R raju_shiva

    Hi all, I am trying to paste some text from another file ,but only half of the text is comming. I am not able to display whole text message. How can i increase the buffer size. Thanks Raj

    C / C++ / MFC tutorial question

  • How to append string with ".
    R raju_shiva

    Hi all, How can i get this below string. For example: I want to pass string as phone+="984512345". I am trying with below code.

    CString str = "phone+=";
    str += "984512345";

    Output:str = phone+=984512345.

    I am not getting that "984512345". How can i add " to that string Thanks Raj

    C / C++ / MFC tutorial question

  • JPEG Image to an array format
    R raju_shiva

    Hi all, I am trying to open the (jpeg)image and store it into an array(matrix) format. I am not getting how to start,can anyone please help me in doing this. Thanks Raj

    C / C++ / MFC data-structures help tutorial

  • Debug Assertion Failed!
    R raju_shiva

    HI, when i am trying to debug it,its going into

    "occount.cpp file"

    COleControlSiteOrWnd *pTemp =
    new COleControlSiteOrWnd(
    hwndCtrl,
    pOccDlgInfo->m_pItemInfo[i].bAutoRadioButton);
    ASSERT(IsWindow(pTemp->m_hWnd));//the breakpoint is coming here

    The occcount.cpp path is in "C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\src\mfc". I am not getting how to cum out of this problem. Please someone help me. Thanks Raj

    C / C++ / MFC c++ help sharepoint debugging

  • Debug Assertion Failed!
    R raju_shiva

    HI sir, Yes it is initilized. here it is..

    BOOL CTestApp::::InitInstance()
    {

    // Parse command line for standard shell commands, DDE, file open
    CCommandLineInfo cmdInfo;
    ParseCommandLine(cmdInfo);
    
    
    // Dispatch commands specified on the command line.  Will return FALSE if
    // app was launched with /RegServer, /Register, /Unregserver or /Unregister.
    if (!ProcessShellCommand(cmdInfo))
    	return FALSE;
    

    }

    Thanks Raj

    C / C++ / MFC c++ help sharepoint debugging

  • Debug Assertion Failed!
    R raju_shiva

    Hi sir, Thanks for your reply.Its working fine is some system. I am trying with a fresh system(installed Windows XP and VS 2005),there i am getting this error.

    BOOL CTestApp::::InitInstance()
    {

    if (!ProcessShellCommand(cmdInfo)) // here it is giving error
    	return FALSE;
    

    }

    Thanks Raj

    modified on Monday, December 27, 2010 2:59 AM

    C / C++ / MFC c++ help sharepoint debugging

  • Debug Assertion Failed!
    R raju_shiva

    Hi all, I am trying to run my application.It is building successfuly. But i am getting run time error as...

    Debug Assertion Failed! f:\sp\vctools\vc7libs\ship\atlmfc\src\mfc\occcont.cpp

    please can anyone tell me,what may be the problem. Thanks Raj

    C / C++ / MFC c++ help sharepoint debugging

  • save image with annotation
    R raju_shiva

    Hi all, I want save the image with the annotation made on it.But i am able to save only the image but not the annotation. I am using LeadTools 16.5 version(C DLL). I know this is not the right place for this question. But if anyone knows how to save the image with annotation .please help me. I will be really greatful to you Thanks Raj

    C / C++ / MFC help tutorial question announcement

  • Replace values
    R raju_shiva

    Hi all, I am reading some values from command line and i want to replace them with other values. Command line input ranges are from (50,51,52,........... 480,481,482) I need to replace with (172,171,.....0,-1,-2,...-260) Here is my code:

    int main(int argn, char **argv)
    {
    char c;
    int h;
    double Pos[9];
    double pd[6];
    double test=51;
    printf("\nEnter position (val1, val2,val3,val4,val5,val6,val7,val8,val9):\n");

    for(h=0; h<9; h++)
    	
    scanf("%lf",&Pos\[h\]);
    	
    if(Pos\[7\]=="50")  
       Pos\[7\]=172
                 if(Pos\[7\]=="51") 
       Pos\[7\]=171;
     if(Pos\[7\]=="52") 
       Pos\[7\]=170; 	
    return 1;
    

    }

    Can someone help me how to do. Thanks Raj

    C / C++ / MFC help tutorial

  • static text box new line problem
    R raju_shiva

    Hi, I am trying to enter some messages in the static text box. But the messages are coming continously. How can i display the messages to the newline. Thanks Raj

    C / C++ / MFC help question

  • How to get the co-ordinates of rectangle
    R raju_shiva

    Hi, I corrected with

    DISPCONTAINERCELLINFO pCellInfo;
    m_ImageViewer.GetAnnotationContainer(pCellInfo->nCellIndex, pCellInfo->nSubCellIndex, &PhAnnContainer, CONTAINER_ACTION_ANNOTATION_RECTANGLE);

    But still i am no tgetting any coordinate values. Any idea will be helpful Thanks Raj

    C / C++ / MFC help question graphics docker json

  • How to get the co-ordinates of rectangle
    R raju_shiva

    Hi all, I dnt know whether its a right forum for this question.If any one can help me it will be helpful to me. I am drawing a rectangle using LeadTools. Here is the code :

    void CImageViewerView::OnAnnotationRectanle()
    {
    m_ImageViewer.SetAction(CONTAINER_ACTION_ANNOTATION_RECTANGLE,CONTAINER_MOUSE_BUTTON_LEFT,FALSE);
    m_ImageViewer.EnableActionCallBack(TRUE);
    m_ImageViewer.SetAction(110, CONTAINER_MOUSE_BUTTON_RIGHT, DCACTION_ACTIVEONLY);
    }

    How can i get the co-ordinates 1) m_ImageViewer.SetAction : Sets the rectangle for left mouse button. 2)m_ImageViewer.EnableActionCallBack: Returns if the rectangle is drawn. 3)I want to use GetAnnotationContainer() for returning the co-ordinates.

    m_ImageViewer.SetAction(110, CONTAINER_MOUSE_BUTTON_RIGHT, DCACTION_ACTIVEONLY);

    This is working fine for me,I am changing the rectangle action to Right Mouse button

    Here is the API :
    L_INT GetAnnotationContainer(L_INT nCellIndex,L_INT nSubCellIndex,HANNOBJECT * PhAnnContainer,L_UINT uFlags);

    I have this in .h file

    typedef struct tagDISPCONTAINERCELLINFO
    {
    L_UINT uStructSize;
    L_HDC hDC;
    L_INT nCellIndex;
    L_INT nSubCellIndex;
    RECT rcRect;
    RECT rcBitmapRect;
    L_INT nX;
    L_INT nY;
    }
    DISPCONTAINERCELLINFO, * pDISPCONTAINERCELLINFO;

    When i am trying to use the same

    pDISPCONTAINERCELLINFO pCellInfo;

    void CImageViewerView::OnAnnotationRectanle()
    {
    m_ImageViewer.SetAction(CONTAINER_ACTION_ANNOTATION_RECTANGLE,CONTAINER_MOUSE_BUTTON_LEFT,FALSE);
    m_ImageViewer.EnableActionCallBack(TRUE);
    m_ImageViewer.SetAction(110, CONTAINER_MOUSE_BUTTON_RIGHT, DCACTION_ACTIVEONLY);
    m_ImageViewer.GetAnnotationContainer(pCellInfo->nCellIndex, pCellInfo->nSubCellIndex, &PhAnnContainer, CONTAINER_ACTION_ANNOTATION_RECTANGLE);
    }

    But i am getting memory cannot read for pCellInfo->nCellIndex (Run Time error) If any one knows what i am doing wrong,please help me Thanks raj

    C / C++ / MFC help question graphics docker json

  • How to move rectangle with mouse
    R raju_shiva

    Hi, Thanks for your reply.The reason i used LineTo is. I have to draw to a rectangle and rotate with the given degree.I found it hard with Rectangle function. I am calculating the axis with the given degree and values first, and then drawing the lines with that axis to complete the rectangle. Now i want is : If i click the mouse on any of the line on rectangle.Mouse has to ba activated so that i can move the line and resize the rectangle.' I am confused ,how to start it. thanks Raj

    C / C++ / MFC tutorial graphics

  • How to give mouse event on rectangle and resize
    R raju_shiva

    Hi all, I am drawing one rectangle with some given values and degree. Now i want to give the mouse event if i click the mouse on that rectangle,it should be activated so that i can drag it and resize. The code i am using to draw rectangle is:

    LPTSTR lpsz;

    ColliAngle = "45";
    int ang;

    ang = _ttoi(ColliAngle);
    float Angle = ( 3.142 * ang ) / 180;
    int x[4];
    int y[4];
    x[0] = -x1 * cos(Angle) - y2 * sin(Angle);
    y[0] = x1 * sin(Angle) - y2 * cos(Angle);
    x[1] = -x1 * cos(Angle) + y1 * sin(Angle);
    y[1] = x1 * sin(Angle) + y1 * cos(Angle);
    x[2] = x2 * cos(Angle) + y1 * sin(Angle);
    y[2] = -x2 * sin(Angle) + y1 * cos(Angle);
    x[3] = x2 * cos(Angle) - y2 * sin(Angle);
    y[3] = -x2 * sin(Angle) - y2 * cos(Angle);
    for (int i=0; i<4; i++)
    {
    x[i] += center.x;
    y[i] += center.y;
    }
    MoveToEx(pCellInfo->hDC,x[3],y[3],NULL);
    for (int i=0; i<4; i++)
    {

    LineTo(pCellInfo->hDC, x\[i\],y\[i\]);
    

    }

    Please help me i dont know how to start and totally hanged. Thanks Raj

    C / C++ / MFC graphics help tutorial

  • Application error
    R raju_shiva

    Cedric Moonen wrote:

    did you install Visual Studio on the computer on which you are trying to run your application ?

    Yes,i have installed Visual studio 2005 on the system which i am trying to run

    Cedric Moonen wrote:

    you have to select the appropriate download from the list at the bottom of the page.

    I have also installed Service pack 1(VS80sp1-KB971090-X86-INTL.exe) and vcredist_x86 on the running system How can i know,which to be downloaded Thanks raj

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

  • Application error
    R raju_shiva

    Hi, I am trying to run a project which is built from other system. I installed Visual studio 2005 and trying to run the same project in different system. but its building successfully.But i am getting run-time error as

    "The application failed to initialize properly (0xc0150002).click on OK to terminate the application"

    . What may be the problem.I am using third party dlls and lib files also. Any help Thanks in advance Raj

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

  • code generation failed
    R raju_shiva

    hi all, I dont know wheither its the right forum for this question.But if any one have any idea please help me. I have installed Visual studio 2005 and trying to build the project which is already running fine in another PC. But i am getting this error when i build it in new machine.

    Error 210 fatal error LNK1257: code generation failed

    How can i solve it Thanks Raj

    C / C++ / MFC help question csharp visual-studio ai-coding

  • How to move rectangle with mouse
    R raju_shiva

    Hi all, I am drawing a rectangle using LineTo(HDC hdc,x,y). Now i planning to move or change the rectangle using mouse. For example:If i click the mouse on the rectangle line,then i can drag the rectangle line using mouse. Any idea will be helpful Thanks Raj

    C / C++ / MFC tutorial graphics
  • Login

  • Don't have an account? Register

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