Page 1 of 1

[Done] PB Windows v4.40 - Problem with project build

Posted: Sat Jan 09, 2010 6:04 pm
by byo
Hi.

I'm having a problem when building the default target.
I can run the application in the PB Editor with either debug on or off.
But everytime I try to "Build Target" it creates an executable that can't be run
(that is, I can double click on it as long as I want and nothing happens).

Is there something I'm missing?
I checked the "Input Source File", "Output Executable", and "Windows" is set as the executable format.

Thanks a lot.

Re: PB Windows v4.40 - Problem with project build

Posted: Sat Jan 09, 2010 11:34 pm
by IdeasVacuum
Hello byo

I assume that you have used earlier versions of PB and didn't have a problem creating exe files? Has something else changed on your PC recently? Anti Virus software? Change of OS? When you try to run the exe you just created, it has not been formally installed (not in the registry, not listed in add-remove programs). Some AV apps have a problem with that.

Re: PB Windows v4.40 - Problem with project build

Posted: Mon Jan 11, 2010 1:09 am
by IdeasVacuum
...another thought. You can have the compiler save a temporary exe in your source folder. Can you run that one with a double click?

Re: PB Windows v4.40 - Problem with project build

Posted: Mon Jan 11, 2010 3:42 am
by byo
Thanks a lot. :)
I will try that although I have tried everything I can and I have a deadline I probably won't meet.
The strangest thing is that the application runs from the IDE but not when built. :/

Re: PB Windows v4.40 - Problem with project build

Posted: Mon Jan 11, 2010 4:31 pm
by byo
:oops: I'm ashamed to say that the error was on my part.
Since I was creating the form with gonozal's amazing PureFORM, I wasn't taking notice of the code generated.
I was just saving the form code to a separate file.
Now I see that I was using the Scintilla gadget and PureFORM generates a code that checks for the SCINTILLA.DLL and if not available the program will end silently.

Sorry for that. :oops:
I will make a suggestion to gnozal so he can include a error message instead of just exiting the program.

Re: PB Windows v4.40 - Problem with project build

Posted: Tue Jan 12, 2010 9:01 am
by gnozal
byo wrote:I will make a suggestion to gnozal so he can include a error message instead of just exiting the program.
In PureFORM, the scintilla gadget is a custom gadget.
So you can edit its properties to add the initialization code you want.

Re: PB Windows v4.40 - Problem with project build

Posted: Sun Jan 17, 2010 9:13 pm
by byo
gnozal wrote:In PureFORM, the scintilla gadget is a custom gadget.
So you can edit its properties to add the initialization code you want.
Hmm... It's not working. I try to edit the line in the Custom Gadget tab in Configuration
but my initialization code is the same before the modification. Note: my gadget was already
created in the form.

Does this only work for new created gadgets?

Thanks for this amazing software.

Regards,

Andre

Re: PB Windows v4.40 - Problem with project build

Posted: Mon Jan 18, 2010 9:30 am
by gnozal
byo wrote:
gnozal wrote:In PureFORM, the scintilla gadget is a custom gadget.
So you can edit its properties to add the initialization code you want.
Hmm... It's not working. I try to edit the line in the Custom Gadget tab in Configuration
but my initialization code is the same before the modification. Note: my gadget was already
created in the form.
Does this only work for new created gadgets?
Yes, you will have to recreate the gadget, it's not retroactive.
When you add a custom gadget to your form, all the current custom gadget settings are also added, so the .pbf file is not dependent on the preferences.
You could also edit the .pbf file (a bit tricky, but it's plain text) : find the initialization code and replace it with some other code.

Re: [Done] PB Windows v4.40 - Problem with project build

Posted: Mon Jan 18, 2010 3:36 pm
by byo
Thank you, gnozal.
I will do that because I can't just delete the gadget at this point. :)

Keep up the good work.

Regards,

Andre