I would like to find out how to code my program so that it will load an associated file after it is double clicked. That is, after double clicking the file the program loads and then opens the file that was double clicked. I know this must be very basic coding for someone. Thanks in advance for...
Well, I figured it out or remembered it on my own. The problem is in the include and library files directory in the project options. Needs to be set to find the vcl and object files. I think it is the default settings that work.
OK, 2ffat, you can download the two (2) different project files here:
http://www.kcesco.com/Project1.zip
I did some searches and see that other people have experienced the problem, but no explainations or solutions were offered. I don't remember the happening before.
Thanks, but they are already named differently... automatically... like Edit1, Edit2, etc.
Is that what you mean by naming them differently?
I think it has something to do with settings. It works until I try to statically link by unchecking the Use Packages box and the Use RTL box.
And...
I have been trying to compile and link w/o using packages.
Some programs I have used in the past work fine when I unlick the packages option and use dynamic link options. But lately, I try this and when I put more than one TEdit Box (for example) in the form I get the following messge:
Project...
I compiled a program using bcb6 and copied the executable to another computer and tried to run it, but got a message that program could not be run because the file "vcl60.bpl" could not be found. My question is how do I build or make the program so that it can run without the vcl60.bpl file?
What about Code Guard? Do you have that? It might work better than Dr. Watson, but you still have the problem of dealing understanding the log it produces. I don't quite understand it myself. Does anybody know of a reference with information on how to use and understand Code Guard?
Works best for me if I put the global variable(s)
right after #pragma hdrstop
#include <vcl.h>
#pragma hdrstop
//-------------------------------------------
int GlobalVariable(s);
//--------------------------------------------
USERES("Project1.res");
USEFORM("Unit1.cpp", Form1);
WINAPI...
The main problem is that when I either grab the form and shrink it or use the scroll bars to scroll past the text and image, it is all erased. The same thing happens if I click the minimize button. I don't want the user to be able to erase everything that easily. If I use TRichEdit Text I have...
Also, when I print or draw to the new form or to a bitmap and then use the scroll bar or resize the form the graphics disappear. How can I prevent this from happening?
Well, yes, that works for now, but I think I would much rather use a bitmap as sort of a print preview type thing. I'm still a little confused on how that is done though.
If someone could help me with I would be pleased.
onrdbandit, your approach works for me to bring an EditVariable or a Label, etc. "back" into scope, but how about other variables used in the form class, how can they be brought into scope?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.