CC3-Developer Blog - New Blog Post!
saunderl
Traveler
Notice - A new post has been published on cc3-developer.blogspot.com.
This time I give a first look at the two most important artifacts (FORMST and RDATA) in XP development.
This time I give a first look at the two most important artifacts (FORMST and RDATA) in XP development.
Comments
Dave
edit: which version of the xp toolkit do I need for cc3? there is a v6 and v7 on the fastcad website.
However I'm using Visual C++ 2010 and it doesn't work if I don't add
#include
extern "C"
{
#include
}
...
void XPCALL GetText(void);
...
DWORD *Text;
@Dave I'm using the xp toolkit found here (last post)
link
To write an XP, you need to be able to do two things: 1 - create a standard windows dll & 2 - be able to use the static .lib library file that comes with the toolkit.
Right now that not only means C/C++, but it also means using Visual C++ by Microsoft.
On the bright side,once in you C/C++ code, you can call anything you want, including code written in another language.
To see this in action, my tutorials @ cc3.leesaunders.net, where I show how to create a hybrid XP. using C/C++ & C#.
Very true! I did mention in passing in the post that the "Text" variable was not declared in the example and I noted that the "entry" command wold need to be prototyped in part #1 o the dll.
I'm trying to walk a very fine line with this blog. Too much detail and I'm back to writing full tutorial -and I just don't have the time for that right now, ot too little information and nobody will b able to understand what I'm talking about.
If anyone thinks I've left something out that could hp someone, or are confused, please postA comment.
If the comment can help someone by itself, I'll just let it "stand", but if it points out a flaw or a fallacy, I'll update the post.
I plan on writing about Intercom soon.
This time I delve deeper into the RDATA call. Plus a little gift - an online RDATA code generator!
this one is titled "Ok, you requested data, now what did you get? "
this one is titled "Beads – How to Wait for Input"
this one is titled "MyLine Command (A Complete Example)"
The complete example has tons of comments including copies of the definitions to the entities that I referenced.
this one is titled "How to walk the 'Drawing List'"
This little command is both useful as a teaching aid as well as a handy command in its own right!
this one is titled "Spiral Command In Three Parts (part #1)"
We are starting to build a spiral command.
this one is titled "Creating a Path element without adding it to the Drawing List"
The Path/Poly element is the most usefull element in XP development so ... it is very important to learn how to create one.
this one is titled "An introduction to Intercom"
Its been awhile, but ... here is a new post. This is a quick and dirty post as an introduction to Intercom. If you want to write a program and have it communicate with CC3, Intercom may be your best option. Enjoy.
This time I have an updated example for using Intercom in c#. I've included a 2-way example where a macro command in CC3 starts the process, sends data to the c# program and then when the c# program is done, it sends the results back to CC3, for a complete round trip.
Enjoy.