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 for Programming
 Forum for Origin C
 dll problems
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Rimmer

Sweden
25 Posts

Posted - 06/04/2002 :  9:01:16 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I'm running msvc++ 6 and and trying the different ATI examples. After some hassle I now am able to compile some of the sample files. Others however, are still causing problems.

When compiling dlldemo I receive the following errors:

C:\Program\OriginLab\Origin7\ATI\src\DLLDemo\Test.cpp(204) : error C2065: 'hWnd' : undeclared identifier
C:\Program\OriginLab\Origin7\ATI\src\DLLDemo\Test.cpp(204) : error C2065: 'lpString' : undeclared identifier
C:\Program\OriginLab\Origin7\ATI\src\DLLDemo\Test.cpp(205) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program\OriginLab\Origin7\ATI\src\DLLDemo\Test.cpp(205) : error C2373: 'TEST2' : redefinition; different type modifiers
C:\Program\OriginLab\Origin7\ATI\src\DLLDemo\Test.cpp(62) : see declaration of 'TEST2'
C:\Program\OriginLab\Origin7\ATI\src\DLLDemo\Test.cpp(205) : error C2078: too many initializers
C:\Program\OriginLab\Origin7\ATI\src\DLLDemo\Test.cpp(205) : error C2146: syntax error : missing ';' before identifier 'HWND'
C:\Program\OriginLab\Origin7\ATI\src\DLLDemo\Test.cpp(205) : fatal error C1004: unexpected end of file found
Error executing cl.exe.

Test.dll - 6 error(s), 1 warning(s)

The other problem is how to call the dialog.dll sample found in the \moca dir

I*m using originpro 7 with sp1 installed and also the updated Moca opk

One Final question which probably doesn't belong here, but anyway heregoes:

I was going to try a repair using the install cd but when I was asked for the licence key I found that this is not the same as the serial number found in the about origin dialogbox. I'm guessing that the license key is on the box, whic is a shame since the box and I are currently seperated from eachother. Just wondering why the licence key is necassary for a simple add components or repair install.

Michael

greg

USA
1380 Posts

Posted - 06/06/2002 :  08:39:23 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The License Key is required BECAUSE the Serial Number is easily visible in the 'Help : About Origin' dialog. This is to prevent casual copying of Origin to another computer.
Your Serial Number, License Key and CD should be kept in a safe place, but accessible for technical support, repairs and upgrade installations.
Go to Top of Page

Rimmer

Sweden
25 Posts

Posted - 06/06/2002 :  3:38:24 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Yea.. that wasn't much of a problem. It just meant a trip to get the box. It was just a shame since I was only after a fresh install of the c++ sample files.

Still annoying that I can't seem to get these MFC dlls working
Go to Top of Page

member1

USA
3 Posts

Posted - 06/06/2002 :  4:46:02 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
According your article, you were trying to create the test.dll by yourself. if you just want to test the
function provided by the test.dll, you can do in the following way:
1:copy test.dll located in the origin\ati\vc\dlldemo\release folder into your Origin folder and start origin.
2:Double click on the column A(x) heading to open the Worksheet Column Format dialog box.
3:Select Numeric from the Display drop-dowm list and click OK.
4:Repeat step 2 and 3 for column B(Y).
5:Enter some numbers(for example: 0,1,2,3,4...) into the first few cells of column A
6:Select Window:Script Window to open the Script window.
7: type in the following command and press ENTER.
DLL test test1 data1_a 5 data1_b
If you trying to bulid a test.dll by yourself, then you can do as following:
1: using the viusal c++ wizard to create an empty win32 dll project.
(make sure that you will set the output name as test.dll)
2: using Project\Add To Project\File to add the test.c and test.def into the Source
Files, add the test.h into Header Files. all the files are located in the
origin\ati\src\dlldemo directory.
3: add the file mocavc6.lib in the \origin\ati\moca\lib directory to the
Source Files.
4: then compile it and you can get test.dll.
5: copy that dll into the origin folder, and run as before.

hope this will help!
Go to Top of Page

member1

USA
3 Posts

Posted - 06/06/2002 :  6:01:41 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
as for how to use the dialog.dll, you just use visual c++ to open the workspace dialog.dsw in origin\ati\moca\dialog directory and build a dialog.dll. put the dialog.dll in origin folder and then use following command:
dll -a dlg dialog //add the dll to the originlist
dlg.= //this one will give you all function dialog have.
dlg.functionName // to call anyfunction

but there maybe some problem with the mocavc6.lib and mocavc6d.lib, so you should first downlowd the latest mocavc6.lib and mocavc6d.lib and use the latest ones to update the mocavc6.lib and mocavc6d.lib.
hope this will help


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