Login Page - Create Account

Support Board


Date/Time: Fri, 10 Jan 2025 17:53:08 +0000



[User Discussion] - Development Work for ACSIL developer, Grid Window Callable from ACSIL Custom Study

View Count: 1615

[2016-08-30 04:12:38]
enemyspy - Posts: 306
To anyone interested in this.

I need someone to code me up a simple set of functions using WIN32 that make a window containing a very simple grid. I need it to be called from a custom study. Or from a Class stored in a persistent pointer. Ideally using either babyGrid.h or simpleGrid.h. Unless anyone is aware of something better for native c++?

I just need the code as more of an example template to then build from. I am struggling with getting this going From a Dll. The Limited examples that are available online all use a WinMain() function. Most Seem to say to Use MFC for this, so not a lot out there. I can't seem to reconcile how I would modify anything I have found to work from within a study function.

For now I will use NamePipes to a c# forms exe. But I don't want to do it this way so if anyone wants some work hit me up.
[2016-08-30 15:54:33]
enemyspy - Posts: 306
just to be clear I do have a budget for this, don't need anything earth shattering
[2016-08-30 23:16:44]
norvik_ - Posts: 106
You'd like a form with a grid inside your custom study dll? Look at Win32++ library, example with the dialog form included.
Date Time Of Last Edit: 2016-08-30 23:49:13
[2016-08-31 06:00:24]
enemyspy - Posts: 306
Thanks I will take a look at that. Just looking for something that I can put some checkboxes in that turn bool variables on and off in the study, and a few rows that display some rows from a small 2dmatrix beside each checkbox.
[2016-09-04 11:39:58]
norvik_ - Posts: 106
Made some tests. Best and IMO only one relayble is using IPC and shared memory object. Callbacks in custom study and dll with form course variant exeptions in Sierra
[2016-09-15 00:31:32]
enemyspy - Posts: 306
Hmm thanks for that reply. I don't always get emails notifying me of thread updates for some reason. A shared memory object would make this a lot better. I am not exactly sure how to do that in the context of using it accross seperate languages, is this Possible to have a shared memory object between a native c++ app and c# app? Have trouble with intertwining managed and un-manged code, but need to learn that.

At the moment streaming data to a Forms App via named pipes which is still unstable because of some thread sync issues I have not fixed yet. Still researching and trying to figure that out. I have discovered that is a lot harder than it looks at a glance.
[2016-09-15 18:55:47]
norvik_ - Posts: 106
IPC with shared memory is possible between diff langs, cpp & java no problem. Don't have an exprience with C#. Why you dislike to use c++ for creating additional window with grid and checkbox controls?
[2016-09-16 06:28:28]
enemyspy - Posts: 306
It is not that I dislike c++ for grid and checkbox controls. I think it would likely be better, after I spend like 60 hours trying to figure it out. Its just that I have always been able to get around coding a window from scratch, and have just never needed to code a window before in c++. This is the first time I have ever needed to make a window in c++.
So this is a bad answer that basically says I am lazy, but I like c# forms applications for this as you can just Drag and drop everything to design the window even more easily than it can be done in wordpress, and if you want deploy it as a web app and server easily. Then you just need to write the functions to put in the control functions so they know what to do. So it eliminates the learning curve of how to actually code a window with form controls.

With a shared memory object it is still necessary to serialize the data? For example could two apps just share an object of stl containers?
Date Time Of Last Edit: 2016-09-16 06:34:09
[2016-09-17 17:28:55]
norvik_ - Posts: 106
Dinamyc memory allocation is impossible with shared data segment, so I think using stl containers has no sence. You can find answer from expirienced programmers here:http://www.codeproject.com
Very mach examples. http://www.codeproject.com/Articles/15183/IPC-Between-Managed-and-Unmanaged-Code

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account