ATTENTION

This FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices.


flexsim.com

Go Back   FlexSim Community Forum > FlexSim Software > User Development
Downloads

User Development User developed add-ons to Flexsim

  #1  
Old 04-18-2012
Esther Bennett Esther Bennett is offline
Flexsim User
 
Join Date: Mar 2008
Posts: 115
Downloads: 27
Uploads: 0
Thanks: 103
Thanked 116 Times in 50 Posts
Rep Power: 271
Esther Bennett is a name known to allEsther Bennett is a name known to allEsther Bennett is a name known to allEsther Bennett is a name known to allEsther Bennett is a name known to allEsther Bennett is a name known to all
Default Updateing a module dll to Flexsim6

Hello I am trying to update a module dll to use it in Flexsim6. I have followed the steps in the 'Updating to a New Version' of the module Development documentation and I have two questions:

  1. When I open flexsim and compile there is no flexsimcontent.lib in my C:\Users\<Your User Name>\AppData\Roaming\Flexsim\Flexsim6\compile\A folder.
  2. When I try to build my dll after copying all the files I get the following error:
    c:\program files (x86)\flexsim\flexsim6_moduledevelopment\modules\t al_m_extern\tal_m_extern\tal_m_extern\dllmain.cpp( 110): error C2039: 'getvarfastpointeroffset' : is not a member of 'objectdatatype'
    1> c:\program files (x86)\flexsim\flexsim6_moduledevelopment\modules\t al_m_extern\tal_m_extern\tal_m_extern\flexsimconte nt\objectdatatype.h(105) : see declaration of 'objectdatatype'

    Please let me know what I am doing wrong.
Esther
  #2  
Old 04-18-2012
Anthony Johnson's Avatar
Anthony Johnson Anthony Johnson is offline
Manager of Product Development
 
Join Date: Jul 2007
Posts: 440
Downloads: 86
Uploads: 4
Thanks: 171
Thanked 899 Times in 288 Posts
Rep Power: 735
Anthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond repute
Default

Hey Esther,
1. I think it's in the same directory as flexsimcontent.dll, not in the A directory, so C:\Users\<Your User Name>\AppData\Roaming\Flexsim\Flexsim6\.
2. That's a method we took out of the objectdatatype, and for some reason we needed to define it in the dll, so if you go into dllmain.cpp, you should take out the definition of objectdatatype::getvarfastpointeroffset().
The Following User Says Thank You to Anthony Johnson For This Useful Post:
Esther Bennett (04-19-2012)
  #3  
Old 04-19-2012
Carsten Seehafer's Avatar
Carsten Seehafer Carsten Seehafer is offline
FlexSim Geek
 
Join Date: Oct 2008
Location: Ritterhude, Deutschland
Posts: 230
Downloads: 45
Uploads: 1
Thanks: 474
Thanked 320 Times in 143 Posts
Rep Power: 379
Carsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud of
Default

In my case the flexsimcontent.dll, *.lib, *.exp and *pdb are in the directory C:\Users\<Your User Name>\AppData\Roaming\Flexsim\Flexsim6\compile\A

The flexsimcontent.dll is also in the directory C:\Users\<Your User Name>\AppData\Roaming\Flexsim\Flexsim6\compile

(I'm using Windows 7 64bit and Visual Studio 2010 Professional)
  #4  
Old 06-22-2012
Steven Hamoen's Avatar
Steven Hamoen Steven Hamoen is offline
Talumis, Flexsim Distributor, The Netherlands
 
Join Date: Aug 2007
Location: Soest, NL
Posts: 854
Downloads: 43
Uploads: 0
Thanks: 391
Thanked 661 Times in 379 Posts
Rep Power: 684
Steven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond repute
Default

Well I keep having problems with this as well. At home my computer shows under users\...\compile\A the files .dll, .exp and .lib

But my laptop shows in that directory only the .dll

Both machines have windows 7 64bits and visual studio express 2010 as compiler.

On the machine at home also the directories \B and \ipch and \_UpgradeReport_Files are created. Neither of these directories is present at my laptop.

Anyone with another suggestion?
The Following User Says Thank You to Steven Hamoen For This Useful Post:
Carsten Seehafer (06-24-2012)

Tags
dll, flexsim6, modules



All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.