|
@Richard, I'm looking for people who have practical advise in this, I'm new to c++ and to everything i'm trying to do here, I've been struggeling for days. There is also not a lot to find on the internet regarding this. If you don't know the answer that's ok, you don't need to answer. I'm not posting on here to get 'check the documentation' answers.
|
|
|
|
|
As I keep pointing out, the format of the data that will be presented by the device is specific to that device. So the only way to find out what it is, and what format it is sent in, is to get the technical documentation for the device. It is not a C++ issue.
|
|
|
|
|
thanks for hijacking this question, you spend days and days trying to work stuff out, put a question up for help to get this... Don't you have anything better to do? Incredible
|
|
|
|
|
What do you mean? I have tried to help you and I have told you where to find the information you need.
|
|
|
|
|
Wim Van den Borre wrote: you spend days and days trying to work stuff out And Richard is trying to lessen that time by giving you some sage advice. This is how integrations work, if devices are spitting out data in certain format (and many times that format is specific to the vendor) it is up to YOU to determine (by looking at available vendor documentation) and code for this format.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
Ow boy, i started by telling i'm a complete beginner and was looking for people who have experience in this. I'm not looking for dataformats, i'm looking to connect w10 bluetooth through c++ not a lot to find on the interwebz, so if anyone has had succesfull experience with this please answer this thread.
|
|
|
|
|
You're not going to find anyone who has experience SPECIFIC TO YOUR DEVICE. You're getting the correct advice, and as a beginner, you need to learn that the best source of information on a specific device is the manufacturer of that device.
|
|
|
|
|
years ago i made some mvc apps, the help i got on codeproject was incredible.
Seems this is down the drain, none of you 3 are even reading my question, in stead of thinking about an answer (why else would you responsd to a question?) it's rtfm and acting hurt.
|
|
|
|
|
I have read it. THe advice you've gotten gets you to the point right after successfully connecting to the device. Reading data from it is device dependant, and that is where the CP advice ends and the manufacturer advice begins.
|
|
|
|
|
|
Wim Van den Borre wrote: i'm a complete beginner and was looking for people who have experience in this. You are making a huge assumption that anyone here, beside yourself, has any experience with talking to a "garmin watch via bluetooth."
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
|
That almost looks like tools one could use to read data from a Garmin device. I wonder if it would help the OP!
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
I wanted to navigate to a page in PDF file.
Theoretically, this could be done with ShellExecute (NULL, "open", "Path \ File", param1, NULL, SW_NORMAL), where
param1 = "# page = 123" or "/ A page = 123" or "/ A \" page = 123 \ ""; then the PDF file is opened, but the page is not activated.
You could do the same thing by opening PDF and then navigating to the page. It's a good idea, but it has the disadvantage that I don't know either.
Does anyone know?
Thanks for the answers
|
|
|
|
|
It will depend on which application actually opens the PDF file.
|
|
|
|
|
|
You don't "control the PDF". You have to control the application that is opening and displaying the PDF file.
How you do that depends entirely on the application you're using to display the PDF. There's probably going to be applications where you don't have that control.
You can do it if the machine has Acrobat Reader installed it, which is what the previous answer is using.
|
|
|
|
|
Hello.
I'm trying to get text data from another program.
The window handle was found.
Please check the image link.
CLICK Here - Attach Image Link
But I'm not sure what to do next.
Should I use something similar to the GetDlgCtrlID method?
I do not know.
The return is -1.
Please advise.
thank you.
|
|
|
|
|
|
cocaya wrote: the GetDlgCtrlID method That will only return a valid id if the handle is that of an actual dialog control. But even if it does, the id will not be of any use.
To get the text of a Window in another process, you must send the WM_GETTEXT message (Winuser.h) - Win32 apps | Microsoft Docs[^] to it. But you first need to know that the Window contains valid text.
|
|
|
|
|
*CLICK here : Attach Image Link
handle => 0x001229e8
GetControlText(IntPtr hWnd){
// Get the size of the string required to hold the window title (including trailing null.)
Int32 titleSize = SendMessage((int)hWnd, WM_GETTEXTLENGTH, 0, 0).ToInt32();
// If titleSize is 0, there is no title so return an empty string (or null)
if (titleSize == 0)
return String.Empty;
StringBuilder title = new StringBuilder(titleSize + 1);
SendMessage(hWnd, (int)WM_GETTEXT, title.Capacity, title);
return title.ToString();
}
Thanks reply, but
When this function is executed, String.Empty is returned.
How can I get grid table values??
I desperately want to solve it.
please help me..
|
|
|
|
|
|
Thanks for the advice.
I tried the following, but the return value is 0.
int nTextLength = SendMessage(hwnd6, WM_GETTEXTLENGTH, 0, 0).ToInt32();
How should I approach it?ㅜ.ㅜ
CLICK Here : MS inspect.exe capture.
|
|
|
|
|
1. Why are you calling ToInt32 on a value that is already an int type?
2. If WM_GETTEXTLENGTH returns zero, then that tells you the Window is not a Text type. As I said yesterday, if the contents are shown in a grid then you need to find out what actual control it is, and use the control's methods to extract the contents.
|
|
|
|
|
Hi there,
I found difficulties to understand the following function,
void MakeGetStatusCMD(void)
Under this function, float type WORDS and size are defined .
This function is using for UART/MODEBUS communication protocol. Its using to know the status of receiving data in main dsp control board. Variables are defined for size of DSP Registers and counter of register.
At last, its written
<pre lang="C++">SendDSPCMD()
modified 30-Aug-21 21:41pm.
|
|
|
|