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
 Linking with Visual Studio 2012 Professional
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

01amk

Germany
7 Posts

Posted - 02/20/2013 :  05:41:40 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello I would like to program a dialog window in Visual Studio Professional 2012. I can then link the program with Origin C? if so I need further visual studio Professional 2012 every time I then my data evaluation with origin? someone or has another solution for me?

cdrozdowski111

USA
247 Posts

Posted - 02/20/2013 :  7:50:15 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You can build a resource DLL (a dialog) in Visual Studio and use it in Origin.

Here are instructions for doing it with VS 2008. They work for 2010, so I assume they work for 2012 as well:

http://wiki.originlab.com/~originla/wiki/index.php?title=Build_Resource-only_DLL_in_Visual_Studio_2008_%28User-Interface_Development%29

Now, the best way to learn how the Origin part of the coding is to study the Origin C source code (especially the code for dialog boxes) in the Origin C directory in the Origin application directory.
Go to Top of Page

01amk

Germany
7 Posts

Posted - 02/21/2013 :  04:05:44 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

I have met such description on the website, but I lack the "welcome.dll" file. The "resource.h" file I found and copied to OriginC folder. Why is it that the file "welcome.dll" missing?

Thank you for your effort!
Go to Top of Page

eparent

118 Posts

Posted - 02/21/2013 :  12:19:22 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
When you build 32-bit DLLs, Visual Studio creates the DLLs in the Debug and Release sub folders of your Visual Studio's project folder. For 64-bit DLLs, they will be created in the x64\Debug and x64\Release sub folders of your Visual Studio's project folder.

I have added this information to the wiki article to hopefully avoid this confusion for other users.

quote:
Originally posted by 01amk

Hi,

I have met such description on the website, but I lack the "welcome.dll" file. The "resource.h" file I found and copied to OriginC folder. Why is it that the file "welcome.dll" missing?

Thank you for your effort!

Go to Top of Page

01amk

Germany
7 Posts

Posted - 02/22/2013 :  01:43:30 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I've now gone through all points from top to bottom. The last point I will not go any further.
The Code Builder gives me made #8203;#8203;a mistake,
"this-> Text =" Welcome "," the bug is probably in "this", allegedly because the variable can not be declared.
What can I do about it?
I think if I can fix it, it would work only because it depends so now.

Edited by - 01amk on 02/22/2013 05:37:15 AM
Go to Top of Page

eparent

118 Posts

Posted - 02/22/2013 :  10:23:05 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
'this' is a keyword and holds a pointer to the class object from which the function was invoked. In this case it refers to the instance of MyDialog named myDlg. 'Text' is a string property that holds the window's text. I can not reproduce your compiling error here. While it should not be necessary, you can try removing 'this->'.

quote:
Originally posted by 01amk

I've now gone through all points from top to bottom. The last point I will not go any further.
The Code Builder gives me made #8203;#8203;a mistake,
"this-> Text =" Welcome "," the bug is probably in "this", allegedly because the variable can not be declared.
What can I do about it?
I think if I can fix it, it would work only because it depends so now.

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