Hi I am trying to get data from grid of external application. I tried WM_GETTEXT on grid control which is a child window. But SendMessage() returns blank value. How can I get data from grid. I can see its class from Spy++ as "Txt Grid Control" without any caption. Is there any way I can get text of this grid control.
pandit84
Posts
-
Get data from Grid Control -
WM_GETTEXT does not returns data from Grid Control of external applicationHi I got handle to Grid Control of window of another ( external ) application. Used EnumChildWindows for getting child window handle. But I am unable to read text from that grid control. Can anyone provide any pointers for this ? Thanks in Advance.
-
CString assignment crashes on Windows 7Finally I have solved this issue. The CString when used with GCC was Used as LinuxCString which is internally std::string. Capacity of std::string when calculated was every time 0. so when I tried to assign const char* to LinuxCString ( i.e. CString in MSVC ) it was crashing. I have used std::string.reserve (200) method to specify the capacity first while initialization. This solves my issue. I am still evaluating whether my fix is perfect or not. Thanks all
-
CString assignment crashes on Windows 7I am sorry for adding incomplete info. I have allocated memory to object of structure myStruct in one dll and passed this struct object as a reference to another dll. This crash happens only while assinging value to
structRef.cstrFilePath
variable. Finally I was able to assign value inside CString variable using
wsccpy
method. I was able to resolve this crash with following code , but I am sure this is not the correct way to do it.
wcscpy (structRef.cstrFilePath.GetBuffer (), str.GetBuffer ()) ;
I am still trying to resolve this issue in a correct way. I am using Windows 7 system and GCC Compiler. Thanks all for replying to my previous post.
-
CString assignment crashes on Windows 7Struct is defined as below. Before crash ,value of cstrFilePath is empty.
struct myStruct
{
int charsize ;
CString cstrFilePath;
myStruct() : charsize (0)
{
cstrFilePath.Empty();
}
} ; -
CString assignment crashes on Windows 7Hi I have a function
void TakeData(myStruct &structRef)
{
CString str = TmpFileMgr->TmpFilePathName() ; //Returns file path
structRef.cstrFilePath = str ; //Crashes at this point on Windows 7
}in a dll which takes Temporary folder path and assign it in a CString variables. This CString variable is member of structure object which is passed as a reference to TakeData(myStruct &structRef)function. I am able to print temporary folder path in TakeData function and CString assigment works perfectly on Windows XP. But when I run this code on Windows 7 it crashes at the point where I am doing assigment of temp folder path in a CString variable. I have all admin rights on Windows 7 System , also I have put UAC to OFF. Please provide any input in this regard. Thanks
-
How to get list of C++ class names from source codeHow to get list of C++ class name from source code. I have created few sequence and class diagram using EA tool which I need to verify. I tried to use sourcmonitor tool but it gives only number of classes in a particular source file. But does not generate any class name list.
-
Adapter Classes for using C++ library through JNIHi , I have created C++ library(3 dlls) and I am using these library in my Java UI through JNI. In my JNI I am modifiying jobjectArray i.e. adding data inside my jobjectArray and returning it from JNI. Now my problem is if in future my C++ library changes I will have to change my JNI code. What should I do to 'tune' my JNI so that it will change with minimum impact. Does it require Adapter classes or wrapper clases. Any information on this will help me. Thanks
-
Getting IP Address from IP ControlThanks you suparman....:thumbsup:
-
Getting IP Address from IP ControlHi , I am trying to get IP Address from an IP Control using below code. But I am getting an IP Address in Reverse Order , like if my IP Contrl has 123.45.67.89 , then inet_ntoa () method return address as 89.67.45.123. Can you provide any information on how to get IP Address from IP Control.
DWORD dwIPAddress ;
::SendMessage (hwndIPAddress,IPM_GETADDRESS,0, (LPARAM) (LPDWORD) &dwIPAddress ) ;
struct in_addr addr;
addr.S_un .S_addr = (ULONG)dwIPAddress ;
char *IPAddres = new char[9] ;
IPAddres = inet_ntoa (addr) ; -
How to get list of COM Ports in Win32Thanks a lot to All, I have successfully enumerated registry and got list of COM ports available . If we have any virtual port software which can create multiple ports, then also we can enumerate registry and read those port number.
-
How to get list of COM Ports in Win32Is there any API which gives me list of Seial Ports available on system. I am trying to use QueryDosDevice () but its failed to provide any result . Thanks
-
Need suggesion in deciding a software architectureThanks
-
Need suggesion in deciding a software architectureHi , I am having a requirement to develop a project related with mechanical engineering computation. I need a suggession , will it be a good practice to go with VC++ and COM . If the project will not require multiple change request then in this case which pattern should be best suited ? If I use COM what will be its benifit? Any suggession will help me my thought process . Thanks
-
Microsecond timerFew months back I was having the same issue of Microsecond. Windows does not provide granularity of 1 microsecond. For this reason we have used Real Time OS which is an extension to Microsoft Windows . The Timer granularity is well handled by RTOS ( provides upto 1 Microsecond , which can further modified by modifying the value of 'Ticks' of clock using some API of that RTOS.
-
SOCKET : How to gracfully stop application when recv() function is blockingThanks all. I have implemented closesocket()option successfully
-
SOCKET : How to gracfully stop application when recv() function is blockingHi , I am working on an application which involves socket communication. Current in my read () function 'recv()' method is blocking, i.e. does not allow execution until it gets some data. Here at this point I want to gracfully stop application . Is there any API for this ?
-
Inside COMYes , there is NO e-book available for download.
-
Identifying a currently running applicationIf you want to know the name of Currently running .exe . Use
GetModuleFileName()
See here http://msdn.microsoft.com/en-us/library/ms683197(v=vs.85).aspx -
How to read continous data from Serial Port:)