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 > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 09-07-2010
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 Objections changing "UserFuncs.h" to <UserFuncs.h>

This is a question for the people working with the DLL Maker. In our office what we do is that under the libraries directories there is 1 DLL Maker directory. Every project uses that DLLMain and all the files in that project. The reason is maintainability, everybody uses the same DLL Maker project and when the project changes there is only 1 to update and all other projects are updates as well.

There is one problem with this approach and that is the userfuncs.h file. That file varies over the projects so you have to have multiple.

With the current implementation FlexsimFuncs.h calls the userfuncs.h with quotes "userfuncs.h" which means that flexsimfuncs starts looking in the same directory as Flexsimfuncs.h and always finds the empty userfuncs that comes with the DLL Maker project. I would like to change that into <UserFuncs.h>. With those angle brackets the compiler starts looking accoording the directories you enter in the INCLUDE environment variable and you can use a UserFuncs.h file in your own directory.

Are there any objections against this change? (and please specify because a simple YES doesn't count)

Last edited by Steven Hamoen; 09-07-2010 at 05:03 AM.
  #2  
Old 09-07-2010
Lars-Olof Leven Lars-Olof Leven is offline
Flexsim Distributor
 
Join Date: Aug 2007
Location: Sweden, Borlnge
Posts: 312
Downloads: 278
Uploads: 2
Thanks: 300
Thanked 256 Times in 139 Posts
Rep Power: 330
Lars-Olof Leven is a splendid one to beholdLars-Olof Leven is a splendid one to beholdLars-Olof Leven is a splendid one to beholdLars-Olof Leven is a splendid one to beholdLars-Olof Leven is a splendid one to beholdLars-Olof Leven is a splendid one to beholdLars-Olof Leven is a splendid one to behold
Default

Hi,

My answer is No and the reason is that someone can have different userfuncs.h for different DLL they develop.
You are using the same and for you it is better to use <>.

I would say wait to do the change and think over how you develop your DLL. What I mean with this is that you maybe can find a solution where you do not need to have <> but still be able to use one userfuncs.h for all your projects.

For my self, it does not for me because I do not use userfuncs.h and I am the only developer of DLL.

Lars-Olof
  #3  
Old 09-07-2010
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

Hi Lars-Olof,

I'm sorry but I don't completely understand your answer. Are you in favor of the change or against it?

(I'm sorry to make the question so unclear, I've changed the no into yes)

Considering your remark about: "maybe you could use one userfuncs for all your projects", that in itself is nice but doesn't solve the problem you have to change the DLL Maker directory. So next time you update, the userfunctions that you put in there could have been overwritten. And if you do a checkout of the DLL Maker you have to put your own userfuncs back in there.
  #4  
Old 09-07-2010
Lars-Olof Leven Lars-Olof Leven is offline
Flexsim Distributor
 
Join Date: Aug 2007
Location: Sweden, Borlnge
Posts: 312
Downloads: 278
Uploads: 2
Thanks: 300
Thanked 256 Times in 139 Posts
Rep Power: 330
Lars-Olof Leven is a splendid one to beholdLars-Olof Leven is a splendid one to beholdLars-Olof Leven is a splendid one to beholdLars-Olof Leven is a splendid one to beholdLars-Olof Leven is a splendid one to beholdLars-Olof Leven is a splendid one to beholdLars-Olof Leven is a splendid one to behold
Default

Hi Steven,

When I first read your question I missed read it, after I have read it again I can say it is better to change it to <> instead of "".

If I understand you right you use one DLL Maker directory for all projects. Is that directory the same as you have connected to Google Source? If yes, I would suggest not to use that approach.

Lars-Olof
  #5  
Old 09-07-2010
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

Hi Lars-Olof,

Thank you for agreeing

And you are right we use one DLL Maker Directory for all our projects and that directory is exactly the same as the repository version in google source. So why shouldn't we link to the google source project? The idea is that everybody in my team simply checks out the DLL Maker Project and is up and running.

Steven
  #6  
Old 09-07-2010
Lars-Olof Leven Lars-Olof Leven is offline
Flexsim Distributor
 
Join Date: Aug 2007
Location: Sweden, Borlnge
Posts: 312
Downloads: 278
Uploads: 2
Thanks: 300
Thanked 256 Times in 139 Posts
Rep Power: 330
Lars-Olof Leven is a splendid one to beholdLars-Olof Leven is a splendid one to beholdLars-Olof Leven is a splendid one to beholdLars-Olof Leven is a splendid one to beholdLars-Olof Leven is a splendid one to beholdLars-Olof Leven is a splendid one to beholdLars-Olof Leven is a splendid one to behold
Default

Hi,

The reason nit to use the same directory is from point of view a safety issue.

First, there is a chance that a change to the code in Google has a bug or is in a experiment state that can break the DLL maker in the version of VS C++ you are using. So if you do a update from Google then you may not be able to compile.

The second reason is that there is a probability that someone (for exampel at your place) do a change in the DLL Maker code and then update Google with that code. And that change should not be updated to Google.

The way should I work with DLL Maker is that I have one directory that handle the update with Google code and then having one directory with the latest tested DLL maker that all my project will use. With this way I can be sure that all my project will compile and work until I have tested the latest code from Google, when the code is tested I update my production directory.

Remember there is no wrong or right way to work, but it is important to know what the pros and cons are for the way that is used.

Lars-Olof
  #7  
Old 09-07-2010
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

Hi Lars-Olof,

Thanks for the clear explanation. I agree with you about the remarks about that a new version can break a project so that is a valid point.

For the update problem, nobody but me checks it out over the https, so nobody else can make any commits to the repository. But you are right, it is a point of attention.

Steven

Tags
angle-bracket, include, quotes, userfuncs.h


Thread Thread Starter Forum Replies Last Post
global variable in DLL (UserFuncs.h) Esther Bennett Q&A 7 09-12-2012 07:02 PM
Is it possible one object comprised of the function of "combiner" and "separetor"? Vic Li Q&A 1 08-19-2008 04:41 AM
about "no select" and "show parameter window from side bar" qin tian Gripes and Goodies 3 03-21-2008 08:10 AM
Which variable stores "Properties -> General ->Flags -> Protected" information? KelvinHo Q&A 1 03-06-2008 06:18 AM
"Getting Started" and "Tutorial" models for v4.01 Cliff King Product Announcements 0 12-10-2007 07:34 PM


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.