For those new to message boards please try to follow a few simple rules when posting your question.
Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
Keep the subject line brief, but descriptive. eg "File Serialization problem"
Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode HTML tags when pasting" checkbox before pasting anything inside the PRE block, and make sure "Ignore HTML tags in this message" check box is unchecked.
Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
Please do not post links to your question in one forum from another, unrelated forum (such as the lounge). It will be deleted.
Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
No advertising or soliciting.
We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
What windows calls a handle, linux calls a descriptor.
They are very broad concepts which can basically be called a unique reference to something and/or anything.
Internally they are usually opaque pointers to some structure that is hidden from the caller for the exact
reason you just found out. They have no real meaning outside the API other than something to identify
something inside the API.
Generally I would call it a HANDLE on windows or a descriptor on linux. It really isn't a problem you should
be able to recognize one of your own HANDLES/Descriptors because you have to allocate it from somewhere and
then just typecast it to what it is.
RULE 1: Don't expose anything on an API you don't need too.
I wrote a very small program in VCPP long ago.
I have a Debug Folder and a Release Folder.
I cannot run the Debugger to access original source code.
I have Windows 7 Pro on 32-Bit HP 515n Pavilion, and it is not compatible.
Best advice heard- Put XP in VM and run it there.
I really do not want to do that if there is another way.
I've had a few programs which won't run on any Windows version later than XP (one of them being a game named Stars! which I kind of miss).
If you cannot or do not want to use a VM, I guess your best bet is to develop it on a supported Visual C++ release. If it is small, it may take less time and effort than to try to run an unsupported version of a now quite-old IDE.
Go to the Debug or Release folder (as appropriate) in Windows Explorer. Right click the mouse on the executable program, and select "Properties". You can then set it to run in compatibility mode; no guarantees but it often works.
A few weeks ago, the NSA released a disassembly tool, ghidra, into the public domain. It is in theory only downloadable from the USA, but no one outside the USA has ever heard of VPNs. /s
I've used it on some object code, and managed to reconstruct a C version at a level that allowed me to understand what the object code was doing. It's not good enough to recompile, but you should be able to see how the code works.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
The function I need to implement is to first select a row in the ListControl, and then press the "Import" button, the program will import the file corresponding to the pre-set corresponding path of this row.
I have written an import function, just need to provide the path and name corresponding to the file you want to import.
The problem is that I don't know how to match the selected line with the pre-set path and file, because there are too many files and paths (at least 20) to be set in advance, and listcontrol has the same number of lines and files as the number of files.
The point of my problem is that I don't know how to get the number of any selected row to associate it with the corresponding path and file.
All I know is to associate any row selected by the ListControl with only one of the specified paths and files.
Among them, the "LoadRbt" function only needs to provide two parameters.
The debugging result of this code is that no matter which line is selected, the same file will be imported (the rbt file is a file I customize).
How can I select different lines and import different files?
wow,thank you for your advice!I will try later!
I tried to solve the problem myself by means of using "CStringArray".But it fails when I debug and I do not know the reason.Would you please tell me the bug?
Here are the addition codes:
I keep running into snags using Linux "autotools " generated code.
Would this work?
1. Build required C++ library on host architecture and link it to the "build" system?
I am successfully using Target Communication Framework - Agent - to "connect" from build system to host . Uses TCP.
I used "post-processing" long time ago and I was thinking if that or pre-processing could be used to "add" the library link before the main process is done. Just a thought.
I do not know to to "link" across network during program compilation / linking.
2. Could I just import / copy the correct architecture library from the host system to build system and just link it normally?
I am going to try "scp" Linux command to copy the C++ library from the host to build system.
Is there anything special why this "scp" copy would not work?
Used option 2 - scp /rcp to copy library build on ARM system to similar folder on X86.
Linked to it the usual way. Linker accepted the file format , no problems.
Test run on ARM "host" and works as expected.
It is not clear what the actual problem is, and why you cannot build the library in the same way that you build the rest of the system. Linking a library to an application should work if both sides have been built to the same target architecture.
Last Visit: 20-May-19 22:32 Last Update: 20-May-19 22:32