Click here to Skip to main content
16,005,222 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: On which OS Architecture i am 32 Bit or 64 Bit, Can c++ tell me? Pin
Richard MacCutchan2-Jan-11 1:18
mveRichard MacCutchan2-Jan-11 1:18 
GeneralRe: On which OS Architecture i am 32 Bit or 64 Bit, Can c++ tell me? Pin
jschell2-Jan-11 8:49
jschell2-Jan-11 8:49 
GeneralRe: On which OS Architecture i am 32 Bit or 64 Bit, Can c++ tell me? Pin
Richard MacCutchan2-Jan-11 23:29
mveRichard MacCutchan2-Jan-11 23:29 
GeneralRe: On which OS Architecture i am 32 Bit or 64 Bit, Can c++ tell me? Pin
Philippe Mori10-Mar-11 15:26
Philippe Mori10-Mar-11 15:26 
AnswerRe: On which OS Architecture i am 32 Bit or 64 Bit, Can c++ tell me? Pin
Karpov Andrey1-Jan-11 6:45
Karpov Andrey1-Jan-11 6:45 
Questionsaveing bindingsource to database (sql) Pin
sam_b15-Dec-10 11:33
sam_b15-Dec-10 11:33 
QuestionIs there anyone have experience in programming Controller Area Network? Pin
kent524414-Dec-10 22:11
kent524414-Dec-10 22:11 
AnswerRe: Is there anyone have experience in programming Controller Area Network? Pin
Luc Pattyn15-Dec-10 1:22
sitebuilderLuc Pattyn15-Dec-10 1:22 
Hi,

1.
you're asking in the wrong forum: C++/CLI is the .Net version of C++, not the PIC version! I will not proceed here beyond this single reply.

2.
I have done lots of CAN applications, and I have used several PIC models, however I never did real CAN on PIC (I have a CAN-like protocol running on a tiny PIC, all in software though). So all I can offer is a set of advice:

3.
make sure you read all you can get about CAN in general, and thoroughly read your PIC's documentation. Peripherals need a lot of initialization (see the start of your Main functions), and a single error or omission there may cause total failure.

4.
Your test set-up is sending basically the same message back and forth from one PIC to the other, it does not offer any observability: it could be running fine without you noticing anything, or it could fail completely, how can you tell? I suggest you connect a few LEDs (or any other output device) and set their value inside the while loop; displaying a few bits of RxTx_Data[0] should generate an incrementing binary pattern. Observability is key in all debugging, and often is even more important on embedded systems; take care of it from the start, the payback will be immediate.

5.
For any serious application you would need interrupts, and probably also CAN message filtering (assuming multiple PIC nodes and a rather busy CAN bus). Your test has neither. So it may become much more complex.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

GeneralRe: Is there anyone have experience in programming Controller Area Network? Pin
kent524415-Dec-10 5:54
kent524415-Dec-10 5:54 
GeneralMy last CAN reply in this forum. Pin
Luc Pattyn15-Dec-10 6:08
sitebuilderLuc Pattyn15-Dec-10 6:08 
GeneralRe: My last CAN reply in this forum. Pin
kent524415-Dec-10 6:19
kent524415-Dec-10 6:19 
QuestionRe: My last CAN reply in this forum. Pin
kent52449-Jan-11 21:32
kent52449-Jan-11 21:32 
AnswerRe: My last CAN reply in this forum. Pin
Luc Pattyn10-Jan-11 0:40
sitebuilderLuc Pattyn10-Jan-11 0:40 
GeneralRe: My last CAN reply in this forum. Pin
kent524411-Jan-11 5:40
kent524411-Jan-11 5:40 
GeneralRe: My last CAN reply in this forum. Pin
kent524412-Jan-11 15:03
kent524412-Jan-11 15:03 
GeneralCAN diagram Pin
Luc Pattyn12-Jan-11 15:09
sitebuilderLuc Pattyn12-Jan-11 15:09 
GeneralRe: CAN diagram Pin
kent524412-Jan-11 16:45
kent524412-Jan-11 16:45 
GeneralRe: CAN diagram Pin
Luc Pattyn12-Jan-11 17:21
sitebuilderLuc Pattyn12-Jan-11 17:21 
QuestionHow to convert SAFEARRAY to System::Object Pin
ptr_Electron12-Dec-10 23:19
ptr_Electron12-Dec-10 23:19 
AnswerRe: How to convert SAFEARRAY to System::Object Pin
Radhakrishnan G.14-Dec-10 20:06
Radhakrishnan G.14-Dec-10 20:06 
QuestionHow to use C DLL in C++/CLI Pin
cancerion1-Dec-10 23:32
cancerion1-Dec-10 23:32 
AnswerRe: How to use C DLL in C++/CLI Pin
Luc Pattyn2-Dec-10 1:00
sitebuilderLuc Pattyn2-Dec-10 1:00 
Questionconversion Pin
rajniyadav1a1-Dec-10 19:09
rajniyadav1a1-Dec-10 19:09 
AnswerRe: conversion Pin
Ajay Vijayvargiya1-Dec-10 21:12
Ajay Vijayvargiya1-Dec-10 21:12 
Questionpythonqt scriptint & orting to lower version Pin
appollosputnik25-Nov-10 16:41
appollosputnik25-Nov-10 16:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.