15,896,557 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by dsandru1 (Top 8 by date)
dsandru1
22-Aug-12 13:31pm
View
So I need to allocate memory on the C# side to a static location so the dll can access and modify the array? Also I am going to be passing in an array of byte values, 0x01, 0x03, etc..
dsandru1
15-Aug-12 16:57pm
View
I'll try to take a look at this.
dsandru1
15-Aug-12 16:56pm
View
Do you have more information on this I can look into? It sounds like what I am after.
dsandru1
15-Aug-12 16:50pm
View
This is where I start getting confused. I am used to being able to pass pointers to objects around, but I don't know where to begin with handlers.
dsandru1
15-Aug-12 16:46pm
View
I guess the trouble isn't creating the serial class, it is finding a way to access the data in the class through multiple forms. For instance in one dialog I might have serialPort.Send(0x10), but I would have had created a new instance of serialPort without the settings selected during start-up. Also when I go to retrive the data, it is always null. *In my dialog code* textbox1.Text = serialPort.message;
dsandru1
15-Aug-12 16:36pm
View
I have read through this, but it doesn't help me with my application because it is for the console not a Windows Form. I am trying to create a class that the other Forms can access, and then pull data from that class to post on the calling Form.
dsandru1
17-Apr-12 13:24pm
View
I found the inconsistency to be in the hardware I was collecting data from. I still appreciate both solutions because they explained how to handle passing my information between threads. After seeing how this was done some other examples I previously found on the web began to make sense.
dsandru1
17-Apr-12 9:16am
View
Thank you for your quick responce. For instance with the same example above, if I had multiple data:
LRESULT CContactFault::OnDeviceShortAddress(WPARAM, LPARAM lparam)
{
DataStruct *ds = new reinterpret_cast<datastruct>(lparam);
CsLoader = _T("%d, %d");
CsTmp.Format(CsLoader, ds->data1, ds->data2);
MapFP.WriteString(CsTmp + "\n");
delete ds;
return 1;
}
When passing the structure I would pass the pointer in the LPARAM section?
Thank you for giving me examples, it really helps since it has been a while since I have done any programming.
Show More