The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 dll creating workshets in origi
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Qiang

UK
16 Posts

Posted - 07/09/2003 :  06:10:01 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,

I have a copy of origin pro and Visual C++. The aim is to try to create a dll in C++ to communicate with origin to tell it to

create a work sheet
by specifying numbe of col and rows
inject data
close worksheet.

by using SendMessage commands. at the moment it seems:

int FAR PASCAL TEST3(HWND hWnd, LPSTR lpString)
{


SendMessage(hWnd, WM_USER, 0, (LONG)(LPSTR)lpString);
return 0;
}

is a good start(?)

The dll I'll be creating is only a mock for the real thing. But it is important that I get this done.


Thanks

cpyang

USA
1406 Posts

Posted - 07/09/2003 :  2:17:01 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
There is not much support for controlling Origin worksheets from VC++. There is MOCA that provides classes for access to Origin worksheet, but you will need to use LabTalk to call those MOCA based objects.

Why not use Origin C? Origin C allows that things that you need to do and you can make your VC++ DLL as regular C functions and call them from Origin C.

CP


Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000