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
D

D Manivelan

@D Manivelan
About
Posts
54
Topics
41
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Problem when I run the application using cntrl+F5. Wintech OPC DLL
    D D Manivelan

    Hi Thanks for replay. I downloaded debugview application it is also not display issue. Still i couldn't identify the issue. Please help me

    C / C++ / MFC csharp help c++ dotnet wpf

  • Problem when I run the application using cntrl+F5. Wintech OPC DLL
    D D Manivelan

    Hi, I have an MFC application for which I have integrated OPC function using Wintech OPC DLL. This application is an OPC Client which connects to a OPC Server and gets values from it using OPC communication. I call the OPC functions in my application. I used WPF(dll created by C#) in this application for some graphics and turned on the project setting "Common Language Runtime Support (/clr)" When I run my application in VS2008 using F5, it runs without any issues it shows correct values. But when I run the same application using Cntrl+F5 or directly run the EXE, it runs but it shows junk values. Notes Suppose i change project setting from "Common Language Runtime Support (/clr)" to "No Common Language Runtime support" it is not supported WPF dll. Please help me to find the solution for this problem

    C / C++ / MFC csharp help c++ dotnet wpf

  • OPC DA3
    D D Manivelan

    Hi, Am working in simulation we are going to develop OPC sever DA3 and OPC client DA3 in VC++(MFC). Can you suggest which vendor software suitable for us. If you know any one please provide the link.

    C / C++ / MFC c++

  • WinTECH opc client
    D D Manivelan

    Hi, Am trying to connect WinTECH OPC Client to MaxDNA V6.0.7 server in local PC and LAN network also. These Connection was successfully established but it was showed "Tag Quality bad" and "Value Unspecified Error". How to solve this issue please help me ASAP.

    C / C++ / MFC help sysadmin tutorial

  • ISSUE - TCP/IP sockets in MFC VS2017
    D D Manivelan

    The same code works fine in VS2008. And moreover the issue occurs when I try to initialize the union member before actually sending the data to the socket. My question is why I am not able to assign a float value to the union member which is also a float variable. This same line of code assigns the value in VS2008. Why its not doing it in VS2017

    UNI.S.fTestValue1 = fTest; //6.360e-39#DEN // Junk value - Wrong
    UNI.S.fTestValue2 = 190.000015f; //1.401e-45#DEN // Junk value - Wrong

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

  • ISSUE - TCP/IP sockets in MFC VS2017
    D D Manivelan

    float fLocalValue;
    float fTest;

    fTest 		        = 190.000015f;
    
    fLocalValue	        = fTest;   		//190.000015    //Correct value
    UNI.S.cChr 	        = 'c';			//'Ô'           //Junk value - Wrong
    UNI.S.fTestValue1 	= fTest;		//6.360e-39#DEN //Junk value - Wrong
    UNI.S.fTestValue2 	= 190.000015f;		//1.401e-45#DEN //Junk value - Wrong
    

    Output 190.000015 - Correct value 'Ô' - Junk value - Wrong 6.360e-39#DEN - Junk value - Wrong 1.401e-45#DEN - Junk value - Wrong

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

  • ISSUE - TCP/IP sockets in MFC VS2017
    D D Manivelan

    Hi, I have a server client application using TCP/IP sockets in MFC VS2017. Originally i have written the code in VS2008. Kindly see the below code which sends the data to client. But this same code gives me some problem in MFC VS2017. In the below code when I assign the value 190.000015f to a local variable, its taking the value whereas when I assign it to the union member variable

    UNI.S.fTestValue1

    and

    UNI.S.fTestValue2

    it showing some junk value. Please help me to fix the problem

    unsigned char* CSendValue :: SendLiveValues()
    {
    union USendLive
    {
    struct SSend
    {
    float fTestValue1;
    float fTestValue2;
    char cChr;
    }S;
    unsigned char Buffer[LIVEUNISIZE];
    }UNI;

    memset(UNI.Buffer,0,LIVEUNISIZE);
    
    float fLocalValue;
    float fTest;
    
    fTest 		        = 190.000015f;
    
    fLocalValue	        = fTest;   		//190.000015    // Correct value
    UNI.S.cChr 	        = 'c';			//'Ô'           // Junk value - Wrong
    UNI.S.fTestValue1 	= fTest;		//6.360e-39#DEN // Junk value - Wrong
    UNI.S.fTestValue2 	= 190.000015f;		//1.401e-45#DEN // Junk value - Wrong
    
        return UNI.Buffer;    
    

    }

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

  • ISSUE - TCP/IP sockets in MFC VS2017
    D D Manivelan

    Hi, I have a server client application using TCP/IP sockets in MFC VS2017. Originally i have written the code in VS2008. Kindly see the below code which sends the data to client. But this same code gives me some problem in MFC VS2017. In the below code when I assign the value 190.000015f to a local variable, its taking the value whereas when I assign it to the union member variable

    UNI.S.fTestValue1

    and

    UNI.S.fTestValue2

    , it showing some junk value. Please help me to fix the problem

    unsigned char* CSendValue :: SendLiveValues()
    {
    union USendLive
    {
    struct SSend
    {
    float fTestValue1;
    float fTestValue2;
    char cChr;
    }S;
    unsigned char Buffer[LIVEUNISIZE];
    }UNI;

    memset(UNI.Buffer,0,LIVEUNISIZE);
    
    float fLocalValue;
    float fTest;
    
    fTest 		        = 190.000015f;
    
    fLocalValue	        = fTest;   		//190.000015    // Correct value
    UNI.S.cChr 	        = 'c';			//'Ô'           // Junk value - Wrong
    UNI.S.fTestValue1 	= fTest;		//6.360e-39#DEN // Junk value - Wrong
    UNI.S.fTestValue2 	= 190.000015f;		//1.401e-45#DEN // Junk value - Wrong
    
        return UNI.Buffer;    
    

    }

    Managed C++/CLI help c++ sysadmin

  • RDLC SetPageSettings
    D D Manivelan

    Hi, Am using VS2008 Asp.net C#. I used Report.rdlc. I want to set A4size but 'SetPageSettings' function not enabled. It show error 'Does not contain a definition for SetPageSettings' Below code i used GlobalCS.sTraineeQry = sTrainQry1 + sTrainQry2 + sTrainQry3 + sTrainQry4 + sTrainQry5 + sTrainQry6 + sTrainQry7 + sTrainQry8 + sTrainQry9; //set Processing Mode of Report as Local ReportViewer1.ProcessingMode = ProcessingMode.Local; //set path of the Local report ReportViewer1.LocalReport.ReportPath = Server.MapPath("~/Session_RDLC.rdlc"); dsSession dsSes = GetData(GlobalCS.sTraineeQry);//new dsSession(); //ReportDataSource reportDataSource = new ReportDataSource(); //reportDataSource.Name = "dsSession_DataTable1"; //reportDataSource.Value = dsSes.Tables[0]; ReportDataSource reportDataSource = new ReportDataSource("dsSession_DataTable1", dsSes.Tables[0]); //ReportViewer1.LocalReport.DataSources.Clear(); System.Drawing.Printing.PageSettings ps = new System.Drawing.Printing.PageSettings(); ps.Landscape = true; ps.PaperSize = new System.Drawing.Printing.PaperSize("A4", 827, 1170); ps.PaperSize.RawKind = (int)System.Drawing.Printing.PaperKind.A4; ReportViewer1.SetPageSettings(ps);

    ASP.NET csharp asp-net graphics sysadmin help

  • CFileDialog fileDlg debug assertion error
    D D Manivelan

    Hi, Am using

    CFileDialog fileDlg

    VC++2008 version. Button use to open

    CFileDialog

    below code i used. My problem is more then 5 times i call this function. It shows 'debug assertion error' File: f:\dd\vc7libs\ship\atlmfc\src\wincore.cpp line:398 finally debug goes here

    // all other messages route through message map
    CWnd\* pWnd = CWnd::FromHandlePermanent(hWnd);
    

    Here My Code

    TCHAR szFilters[]= _T("MyType Files (*.my)|*.my|All Files (*.*)|*.*||");
    // Create an Open dialog; the default file name extension is ".my".
    CFileDialog fileDlg(TRUE, _T("my"), _T("*.my"),
    OFN_FILEMUSTEXIST | OFN_HIDEREADONLY, szFilters);
    // Display the file dialog. When user clicks OK, fileDlg.DoModal()
    // returns IDOK.
    if(fileDlg.DoModal() == IDOK)
    {
    CString pathName = fileDlg.GetPathName();
    // Implement opening and reading file in here.
    //Change the window's title to the opened file's title.
    CString fileName = fileDlg.GetFileTitle();
    SetWindowText(fileName);
    }

    C / C++ / MFC c++ help debugging announcement

  • Remote PC MySql Connect to My PC
    D D Manivelan

    Yes that PC also in the network. I can connect via run mode.

    C / C++ / MFC help c++ database mysql

  • Remote PC MySql Connect to My PC
    D D Manivelan

    Hi, Am developing MFC application and using MySql database. In my pc mysql database connection properly established. it is working fine below see that code.

    mysql_init (&dbSql);

    if (! mysql\_real\_connect ( &dbSql, "sim33", "root", "root", "dbperfscore", 3306, NULL, 0))
    {         
        AfxMessageBox ("Database connection failed");    
    	printf( "Connecion establish to another PC: Error: %s\\n",mysql\_error(&dbSql));
    }
    

    but my problem is, i can't connect another PC(remote pc) that time it shows "Database connection failed" error. Please solve this issue ASAP. please help me.

    C / C++ / MFC help c++ database mysql

  • Controls are flickering in MFC CView(MDI)
    D D Manivelan

    Dear Friends, Am developing a client server application. Am using MFC MDI. It has multiple class. One class is showing live values so i used Editbox and CListCtrl control. I was create these control in

    onCreate()

    function. It shows live in

    onDraw()

    function

    GetDlgItem(IDC_EDITBOX)->SetWindowText(sLiveValues);

    it is also updating a value but it is getting flicker. If i use

    InvalidateRect()

    function it is not flickering but not update any value. So i need to update live value in any control like EditBox,CListCtrl without flicker. How to avoid flickering. Please help me.

    C / C++ / MFC c++ sysadmin help tutorial announcement

  • CListBox Header
    D D Manivelan

    Hi, I am working in MFC application. I faced one problem in my application. This application is alread developed. It has CAlarm class it inherited CListbox like

    class CAlarmList : public CListBox

    it displays value through DrawItem

    void CAlarmList::DrawItem(LPDRAWITEMSTRUCT lpDIS)
    {
    // TODO: Add your code to draw the specified item

    int iListItem = lpDIS->itemID;
    CDC lDC;
    lDC.Attach(lpDIS->hDC);
    

    It working fine but not have header. but client looking header but CListbox not have header control how to add header please help me.

    C / C++ / MFC help c++ tutorial

  • Combobox value not showed in the datagridview
    D D Manivelan

    Hai, Am developing vb.net2008 windows application. I have two datagridview table datagridview1 column one has combobox. It stored 4 string. below see the code.

        Dim gridComboBox As New DataGridViewComboBoxCell
        With datagridFunction
            If .Rows.Count = 0 Then Return 0
             gridComboBox.Items.Add("LTrim")
             gridComboBox.Items.Add("RTrim")
             gridComboBox.Items.Add("Insert")
              gridComboBox.Items.Add("Replace")
            .Item(0, datagridFunction.CurrentRow.Index) = gridComboBox
            .Visible = True
        End With
    

    am using following code

    datagridview1.rows(0).cells(0).value = "LTrim"
    datagridview1.rows(1).cells(0).value = "RTrim"

    but combobox value not showed in the datagridview. I don't know how to show combobox value here. plz help me very urgent

    Visual Basic csharp database help tutorial

  • How to increase row height in list view vb.net 2008
    D D Manivelan

    Hai, Am working windows application and using list view control but i can't increase row height. Please help me. very urgent. Thanks D.Manivelan

    Visual Basic csharp help tutorial

  • Memory leak problem
    D D Manivelan

    Hi friends, Am developing MFC server client application. Initially it is working fine but after some time it throw some error below see that

    _CRTIMP void _cdecl _CrtDbgBreak(
    void
    )
    {
    DebugBreak();
    }

    call stack not shows any previous function. I couldn't find exact location. Please help me. Thanks

    C / C++ / MFC help c++ sysadmin data-structures performance

  • CDialogbar's button tooltip can't show
    D D Manivelan

    Hi, Am developing MFC application. I faced one problem in dialogbar. I can't add a tooltip for TopToolBar's and statbar's buttons. anyone know please help me.

    CSysWindow.h
    class CSysWindow : public CDialogBar
    {
    }

    CSysWindow.h
    CMainfrm.h
    class CMainFrame : public CMDIFrameWnd
    {
    DECLARE_DYNAMIC(CMainFrame)
    public:
    CMainFrame();
    CSysWindow m_TopToolBar;
    CSysWindow m_StatBar;
    }

    C / C++ / MFC help c++

  • CDaoDatabase for Opening MS-Access
    D D Manivelan

    Hi i have developed an tool which writes data into the MS-Access file (Eg: empdata.mdb which exist in remote pc). - Certainly this exe will run in many machine across network( Approxmatively 30 machines) When i run the exe in diffrent machines (windows 7) it giving the following error. "It is already opened exclusively by another user , or u need permission to view its data." Could anyone help in resolving the issues. Thanks & Regards Mani

    C / C++ / MFC help sysadmin

  • MSCOMCT2.OCX Compatible problem in win 7(64 bit)
    D D Manivelan

    Hi, I developed vb6 application it is working fine in win xp,win 2003 but not running win 7(64-bit). It threw following error popup.**

    Component 'MSCOMCT2.OCX or one of its dependcies not correctly registered; a file is missing or invalid.

    **after received this error i placed

    system32 floder that OCX in win7(64bit)

    again it threw error popup**

    The module "mscomct2.ocx" may not compatible with the version of Windows that you're running. Check if the module is compatible with an .x86(32-bit) or x64(64-bit) version of regsvr32.exe

    **
    what i do. please help me.

    Visual Basic help announcement
  • Login

  • Don't have an account? Register

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