confused
-
lately i been tinkering around with dll files trying to learn more about them and developed a small app that loaded the functions i use a lot across most applications i make from a dll file. the application in a sense works but the main issue i am having is parts of the program do not load as they should, and load at wrong times, maybe a screen or 2 after it should have been displayed. is there something i could do to prevent this from happening or maybe fix the problem?
-
lately i been tinkering around with dll files trying to learn more about them and developed a small app that loaded the functions i use a lot across most applications i make from a dll file. the application in a sense works but the main issue i am having is parts of the program do not load as they should, and load at wrong times, maybe a screen or 2 after it should have been displayed. is there something i could do to prevent this from happening or maybe fix the problem?
swatgodjr wrote:
parts of the program do not load as they should, and load at wrong times, maybe a screen or 2 after it should have been displayed
That is not clear. Do you mean the dll does not load when it should? Does it load late? Sorry it does not seem clear. Please give more details. Even though I may not be able to help you someone will. :) this is this.
-
swatgodjr wrote:
parts of the program do not load as they should, and load at wrong times, maybe a screen or 2 after it should have been displayed
That is not clear. Do you mean the dll does not load when it should? Does it load late? Sorry it does not seem clear. Please give more details. Even though I may not be able to help you someone will. :) this is this.
well i fixed part of it, see i made my own functions to format menus in a console app, it would display all but the last line and i think for that, the problem was because when that line gets displayed i have the program ask the user for input. but i also have the same issue some place else, i made it so if incorrect input is detected, it would load a custom error function out of the dll file and display a formated error message. if the functions are inside the program it works fine but when loaded from a dll to be used inside the exe it causes this problem. and about my question, the dll file loads like it should but some how lines of text will not appear from soem of the functions where they are supposed to.
-
well i fixed part of it, see i made my own functions to format menus in a console app, it would display all but the last line and i think for that, the problem was because when that line gets displayed i have the program ask the user for input. but i also have the same issue some place else, i made it so if incorrect input is detected, it would load a custom error function out of the dll file and display a formated error message. if the functions are inside the program it works fine but when loaded from a dll to be used inside the exe it causes this problem. and about my question, the dll file loads like it should but some how lines of text will not appear from soem of the functions where they are supposed to.
Sorry, I have never tried what you are doing. It sounds like the dll-function is displaying the error instead of the main program. You can make the dll function so that it only returns the error text message, instead of displaying it also. Take the string from it, and display it in the main program. And are you using
cout
? If you are, then you knowcout
buffers a lot of output, so the displayed output can get messy. Try using something likecprintf
. I think that should do it. If it doesn't then try the above ideas. If that doesn't help either, then create a new thread, and try posting some code with it as well, hopefully someone will help you. this is this. -
Sorry, I have never tried what you are doing. It sounds like the dll-function is displaying the error instead of the main program. You can make the dll function so that it only returns the error text message, instead of displaying it also. Take the string from it, and display it in the main program. And are you using
cout
? If you are, then you knowcout
buffers a lot of output, so the displayed output can get messy. Try using something likecprintf
. I think that should do it. If it doesn't then try the above ideas. If that doesn't help either, then create a new thread, and try posting some code with it as well, hopefully someone will help you. this is this.