Type: Posts; User: Eri523
Search took 0.09 seconds.
July 19th, 2016, 12:33 PM
That static only approach should work if, instead of creating it locally and instantly discarding the TCB object, you create it only once and preserve it in a static member variable.
July 19th, 2016, 07:24 AM
That's roughly 1.3 * 10^31 combinations, and brute forcing that takes ages with just about *any* current technology! That's it. Besides, The said number is just the count of the combinations of...
July 19th, 2016, 06:21 AM
Both functions your wrapper exposes to your unmanaged code instantiate ManagedTCB::DoWork as a local variable which, including its initialization state, is lost as soon as the function returns.
Actually, although a C++/CLI wrapper is involved, I'd say this is a native C++ question, at least at this point.
The reason for the error message you're referring to lies in your AddingWrapper.h:...
Your first code snippet
private: System::Void Cam1_Click(System::Object^ sender, System::EventArgs^ e);
seems to be from MyForm.h, and that would correctly declare your event handler. I...
April 12th, 2016, 04:22 AM
Oops! :o I just noticed that I simply forgot to upload the announced attachment containing my updated version of the demo project to post #2.
Unfortunately, for obscure reasons, Codeguru currently...
April 12th, 2016, 01:24 AM
OK, first let's check if you used the correct project types for the DLL projects. For the Unmanaged project you need a Win32 Project (template path Templates/Visual C++/Win32/Win32 Project). In the...
April 11th, 2016, 06:45 AM
To make that 12 years old demo work under VS 2015, most of which is to be done is updating the old-syntax Managed C++ parts in the Managed.dll wrapper library project to the current C++/CLI syntax....
April 1st, 2016, 06:30 PM
Eventually... It's been in C++/CLI since 11 years... ☺
March 7th, 2016, 10:58 AM
The code you posted is VB .NET, not VB6 (or VBA). Perhaps that is the problem.
February 23rd, 2016, 07:46 AM
And what are these errors, and at which locations in your code? You'd best post at least a sample from your code so we can see what you have written. (Please use code tags.)
Also, in the first...
January 21st, 2016, 05:52 AM
Good point, Victor, however, if that was the problem, wouldn't then the C++ compiler flag attempts to modify the passed byte array as an error in the first place? Wouldn't const, as it's used here,...
January 16th, 2016, 01:25 PM
Another approach I like to use in scenarios like this is to have the GUI thread, in response to data changes, pass work requests to the worker thread to be processed. A great mechanism for passing...
November 19th, 2015, 02:34 AM
Why has this thread been moved to the C++/CLI section here? Wouln't C++ (non-Visual) have been the better place?
November 5th, 2015, 11:13 AM
I don't see anything obviously wrong with the tiny bits of code you posted, but you provided way too little information to say anything substantial.
What looks suspicious, though: Why (and how)...
October 17th, 2015, 02:05 PM
Sorry for that panic post yesterday. :blush: I definitely was over-alerted and pretty tired. Tried it again today after I shut down and restarted (not just hibernated and Wolke up) the system and it...
October 16th, 2015, 08:44 PM
Well, it's just what the thread title says: Instead of accepting characters in the text box for mail/phone on sign-in (yes, I did create an account), I keep getting that "ding!" sound for each and...
September 4th, 2015, 07:44 AM
Your question is rather vague. What are the concrete problems you're facing, like compilation error messages or exceptions you get, or data objects not having the expected values?
August 13th, 2015, 06:53 PM
Ok, this MB/KB thing doesn't really mean varying data types within one column, but one data type formatted in a complex manner. Parsing this from the text representation in the list view is possible...
August 11th, 2015, 02:30 PM
GetItemValue() is where the actual item data access takes place, so that's what needs to be modified in your class derived from ListViewItemComparer (an this means the abstract class from the earlier...
August 11th, 2015, 09:33 AM
You can simply modify the numeric comparer from http://forums.codeguru.com/showthread.php?550881-RESOLVED-ListView-Sorting-Alternative so that it takes its input from the subitems rather than the...
June 30th, 2015, 03:08 AM
For this purpose, think of the numbers' signs as boolean values in the sense "negate" and "don't negate". Then, essentially, you'll end up with plain binary counting.
Here's a thread with a...
June 26th, 2015, 08:07 AM
No I don't have such an example. As I wrote above, I never needed to do that. But someone else who is reading this may have.
I took a quick look at one of my own file associations created using...
June 26th, 2015, 07:22 AM
You're welcome! :)
In this case it's good practice to mark the thread [RESOLVED] using the thread tools menu at the top.
While revisiting the topic I found a small enhancement that can be made:...
June 26th, 2015, 07:00 AM
To have your program open files on start-up, let it examine the command line arguments that you can access by calling Environment::GetCommandLineArgs(). If you find a file name as the first argument,...
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!