Hi Thanks for replay. I downloaded debugview application it is also not display issue. Still i couldn't identify the issue. Please help me
D Manivelan
Posts
-
Problem when I run the application using cntrl+F5. Wintech OPC DLL -
Problem when I run the application using cntrl+F5. Wintech OPC DLLHi, 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
-
OPC DA3Hi, 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.
-
WinTECH opc clientHi, 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.
-
ISSUE - TCP/IP sockets in MFC VS2017The 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 -
ISSUE - TCP/IP sockets in MFC VS2017float 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
-
ISSUE - TCP/IP sockets in MFC VS2017Hi, 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;
}
-
ISSUE - TCP/IP sockets in MFC VS2017Hi, 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;
}
-
RDLC SetPageSettingsHi, 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);
-
CFileDialog fileDlg debug assertion errorHi, 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);
} -
Remote PC MySql Connect to My PCYes that PC also in the network. I can connect via run mode.
-
Remote PC MySql Connect to My PCHi, 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.
-
Controls are flickering in MFC CView(MDI)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.
-
CListBox HeaderHi, 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 itemint 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.
-
Combobox value not showed in the datagridviewHai, 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
-
How to increase row height in list view vb.net 2008Hai, Am working windows application and using list view control but i can't increase row height. Please help me. very urgent. Thanks D.Manivelan
-
Memory leak problemHi 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
-
CDialogbar's button tooltip can't showHi, 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;
} -
CDaoDatabase for Opening MS-AccessHi 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
-
MSCOMCT2.OCX Compatible problem in win 7(64 bit)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.