Hi all,
Is it possible to execute a command like 'CompileAndSaveAll' at runtime?
In a new app I use a codelibrary. (The app is still changing, codelib also)
I add this lib to the references at startup with code.
By adding the lib the db enters a 'decompiled' state.
I would like to compile at runtime or is this not needed?
Btw: I also remove this lib with code when the app closes.
Any ideas?
Arno R 10 2858
"Arno R" <ar***********@tiscali.nl> wrote in message
news:43********************@dreader2.news.tiscali. nl...
Hi all,
Is it possible to execute a command like 'CompileAndSaveAll' at runtime?
In a new app I use a codelibrary. (The app is still changing, codelib also)
I add this lib to the references at startup with code.
By adding the lib the db enters a 'decompiled' state.
I would like to compile at runtime or is this not needed?
Btw: I also remove this lib with code when the app closes.
Any ideas?
Arno R
Intriguing question. I am no expert so I'm anxious to see replies from
others to this (in the old days, Michka was really good at these kinds of
questions). It's my understanding that the compile is always done as needed,
so there is no need to force it. But, wouldn't the code in the library be
already compiled anyway?
Randy
YES!
Why don't you take Salad's advise and grow up and get a life and quit
sending emails to my office.
"If you have anything to contribute to the group, contribute. Your war
with Datasheet is simply pissing and moaning in the wind for the sake of
nothing. Grow up and get a life."
Salad
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications re******@pcdatasheet.com www.pcdatasheet.com
If you can't get the help you need in the newsgroup, I can help you for a
very reasonable fee. Over 1000 Access users have come to me for help.
Need a month calendar or 7 day calendar? Need appointment scheduling? Need
room reservations scheduling? Need employee work scheduling? Contact me!
"Arno R" <ar***********@tiscali.nl> wrote in message
news:43********************@dreader2.news.tiscali. nl...
Hi all,
Is it possible to execute a command like 'CompileAndSaveAll' at runtime?
In a new app I use a codelibrary. (The app is still changing, codelib also)
I add this lib to the references at startup with code.
By adding the lib the db enters a 'decompiled' state.
I would like to compile at runtime or is this not needed?
Btw: I also remove this lib with code when the app closes.
Any ideas?
Arno R
"Randy Harris" <ra***@SpamFree.com> schreef in bericht news:V9****************@newssvr30.news.prodigy.com ... Intriguing question. I am no expert so I'm anxious to see replies from others to this (in the old days, Michka was really good at these kinds of questions). It's my understanding that the compile is always done as needed, so there is no need to force it. But, wouldn't the code in the library be already compiled anyway? Randy
Just got an intriguing answer from our mutual friend. Let's ignore that one...
The code in the library is compiled indeed when I deliver this codelib.mde
BUT when this library is added to the refs of the application, the application is not compiled anymore.
Again: I am not sure if it 'hurts', but I would want to compile if that is needed.
Btw: This application is an mdb, codelib is an mde.
This is the app I am/was developing with a co-worker.
I asked a question about that a few weeks ago.
Arno R
Why don't you take Salad's advise and grow up and get a life and quit
sending emails to my office.
"If you have anything to contribute to the group, contribute. Your war
with Datasheet is simply pissing and moaning in the wind for the sake of
nothing. Grow up and get a life."
Salad
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications re******@pcdatasheet.com www.pcdatasheet.com
If you can't get the help you need in the newsgroup, I can help you for a
very reasonable fee. Over 1000 Access users have come to me for help.
Need a month calendar or 7 day calendar? Need appointment scheduling? Need
room reservations scheduling? Need employee work scheduling? Contact me!
"Arno R" <ar***********@tiscali.nl> wrote in message
news:43********************@dreader2.news.tiscali. nl...
"Randy Harris" <ra***@SpamFree.com> schreef in bericht
news:V9****************@newssvr30.news.prodigy.com ... Intriguing question. I am no expert so I'm anxious to see replies from others to this (in the old days, Michka was really good at these kinds of questions). It's my understanding that the compile is always done as needed, so there is no need to force it. But, wouldn't the code in the library be already compiled anyway?
Randy
Just got an intriguing answer from our mutual friend. Let's ignore that
one...
The code in the library is compiled indeed when I deliver this codelib.mde
BUT when this library is added to the refs of the application, the
application is not compiled anymore.
Again: I am not sure if it 'hurts', but I would want to compile if that is
needed.
Btw: This application is an mdb, codelib is an mde.
This is the app I am/was developing with a co-worker.
I asked a question about that a few weeks ago.
Arno R
"Arno R" <ar***********@tiscali.nl> wrote in message
news:43********************@dreader2.news.tiscali. nl...
"Randy Harris" <ra***@SpamFree.com> schreef in bericht
news:V9****************@newssvr30.news.prodigy.com ... Intriguing question. I am no expert so I'm anxious to see replies from others to this (in the old days, Michka was really good at these kinds of questions). It's my understanding that the compile is always done as
needed, so there is no need to force it. But, wouldn't the code in the library be already compiled anyway?
Randy
|Just got an intriguing answer from our mutual friend. Let's ignore that
one...
Agreed.
|The code in the library is compiled indeed when I deliver this codelib.mde
|BUT when this library is added to the refs of the application, the
application is not compiled anymore.
|Again: I am not sure if it 'hurts', but I would want to compile if that is
needed.
|
|Btw: This application is an mdb, codelib is an mde.
|This is the app I am/was developing with a co-worker.
|I asked a question about that a few weeks ago.
|Arno R
Now I understand. I'm pretty certain that, even though the application
indicates compile needed, all of the modules retain all of their compiled
code. If that is indeed the case, there would be nothing to gain by forcing
a recompile.
Randy
Randy Harris admitted to lieing in the newsgroups. He is insincere and a
person that can not be
trusted. He thinks he is big stuff joining Arno R and his band of dimwits
who willing get great pleasure in polluting the nesgroups.
Randy,
Why don't you follow the advise of David Fenton ---
"Stop. I'm on the verge of killfiling the bunch of you who are
polluting the newsgroup with theis bitchfest."
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications re******@pcdatasheet.com www.pcdatasheet.com
If you can't get the help you need in the newsgroup, I can help you for a
very reasonable fee. Over 1000 Access users have come to me for help.
Need a month calendar or 7 day calendar? Need appointment scheduling? Need
room reservations scheduling? Need employee work scheduling? Contact me!
"Randy Harris" <ra***@SpamFree.com> wrote in message
news:O7****************@newssvr30.news.prodigy.com ... "Arno R" <ar***********@tiscali.nl> wrote in message news:43********************@dreader2.news.tiscali. nl...
"Randy Harris" <ra***@SpamFree.com> schreef in bericht news:V9****************@newssvr30.news.prodigy.com ... Intriguing question. I am no expert so I'm anxious to see replies from others to this (in the old days, Michka was really good at these kinds of questions). It's my understanding that the compile is always done as
needed, so there is no need to force it. But, wouldn't the code in the library be already compiled anyway?
Randy
|Just got an intriguing answer from our mutual friend. Let's ignore that one...
Agreed.
|The code in the library is compiled indeed when I deliver this codelib.mde |BUT when this library is added to the refs of the application, the application is not compiled anymore. |Again: I am not sure if it 'hurts', but I would want to compile if that is needed. | |Btw: This application is an mdb, codelib is an mde. |This is the app I am/was developing with a co-worker. |I asked a question about that a few weeks ago.
|Arno R
Now I understand. I'm pretty certain that, even though the application indicates compile needed, all of the modules retain all of their compiled code. If that is indeed the case, there would be nothing to gain by forcing a recompile.
Randy
"PC Datasheet" <no****@nospam.spam> wrote in message
news:VY*****************@newsread1.news.atl.earthl ink.net... "Stop. I'm on the verge of killfiling the bunch of you who are polluting the newsgroup with theis bitchfest."
mr pc datasleet u say *theis bitchfest* all places in ng yes? not in good
english USD$20 dictionary!!! is like palce for korean eating dogs? please
say what is *theis bitchfest* if racist talking please stop very soon ok?
Sherwood Wang
*** BIG TIME MVP ***
SysCmd 504, 16483 ' - Save And Compile
or try this Dev Hashish code:
'********** Code start **********
Function fCompileProject() As Boolean
Dim db As Database
Dim ctr As Container
If Not Application.IsCompiled Then
Set db = CurrentDb
Set ctr = db.Containers!Modules
If ctr.Documents.Count > 0 Then
DoCmd.OpenModule ctr.Documents(0).Name
Else
'No Modules present, try Forms container
Set ctr = db.Containers!Forms
'no need to check for count since this code
'itself must be present *somewhere*
DoCmd.OpenForm ctr.Documents(0).Name
End If
DoCmd.RunCommand acCmdCompileAndSaveAllModules
DoCmd.Close acModule, ctr.Documents(0).Name
End If
fCompileProject = Application.IsCompiled
End Function
'*********** Code End **********
I've never noticed any difference between compiled and uncompiled code.
(david)
"Arno R" <ar***********@tiscali.nl> wrote in message
news:43********************@dreader2.news.tiscali. nl...
Hi all,
Is it possible to execute a command like 'CompileAndSaveAll' at runtime?
In a new app I use a codelibrary. (The app is still changing, codelib also)
I add this lib to the references at startup with code.
By adding the lib the db enters a 'decompiled' state.
I would like to compile at runtime or is this not needed?
Btw: I also remove this lib with code when the app closes.
Any ideas?
Arno R
"david epsom dot com dot au" <david@epsomdotcomdotau> schreef in bericht news:43***********************@lon-reader.news.telstra.net... SysCmd 504, 16483 ' - Save And Compile or try this Dev Hashish code: '********** Code start ********** Function fCompileProject() As Boolean Dim db As Database Dim ctr As Container If Not Application.IsCompiled Then Set db = CurrentDb Set ctr = db.Containers!Modules If ctr.Documents.Count > 0 Then DoCmd.OpenModule ctr.Documents(0).Name Else 'No Modules present, try Forms container Set ctr = db.Containers!Forms 'no need to check for count since this code 'itself must be present *somewhere* DoCmd.OpenForm ctr.Documents(0).Name End If DoCmd.RunCommand acCmdCompileAndSaveAllModules DoCmd.Close acModule, ctr.Documents(0).Name End If fCompileProject = Application.IsCompiled End Function '*********** Code End ********** I've never noticed any difference between compiled and uncompiled code. (david) "Arno R" <ar***********@tiscali.nl> wrote in message news:43********************@dreader2.news.tiscali. nl... Hi all, Is it possible to execute a command like 'CompileAndSaveAll' at runtime? In a new app I use a codelibrary. (The app is still changing, codelib also) I add this lib to the references at startup with code. By adding the lib the db enters a 'decompiled' state. I would like to compile at runtime or is this not needed? Btw: I also remove this lib with code when the app closes. Any ideas? Arno R
Thanks David,
I already had been trying the SysCmd 504, 16483 earlier.
Found that with a Google search.
I just though it was not working, because when I checked in a module the option to Compile was/is still enabled ...
Same with the function, but the value of Application.IsCompiled changes in both occasions.
So I think the app *is* compiled when Application.IsCompiled =True
Confusing this ...but thanks a lot.
Arno R
???? Dev Hashish ????
I think my Spell Check must have clobbered that :~)
*** this Dev Ashish code ***
Glad he could help :~)
(david)
"Arno R" <ar***********@tiscali.nl> wrote in message
news:43********************@dreader2.news.tiscali. nl...
"david epsom dot com dot au" <david@epsomdotcomdotau> schreef in bericht
news:43***********************@lon-reader.news.telstra.net... SysCmd 504, 16483 ' - Save And Compile
or try this Dev Hashish code:
'********** Code start ********** Function fCompileProject() As Boolean Dim db As Database Dim ctr As Container
If Not Application.IsCompiled Then Set db = CurrentDb Set ctr = db.Containers!Modules If ctr.Documents.Count > 0 Then DoCmd.OpenModule ctr.Documents(0).Name Else 'No Modules present, try Forms container Set ctr = db.Containers!Forms 'no need to check for count since this code 'itself must be present *somewhere* DoCmd.OpenForm ctr.Documents(0).Name End If DoCmd.RunCommand acCmdCompileAndSaveAllModules DoCmd.Close acModule, ctr.Documents(0).Name End If
fCompileProject = Application.IsCompiled End Function
'*********** Code End ********** I've never noticed any difference between compiled and uncompiled code.
(david)
"Arno R" <ar***********@tiscali.nl> wrote in message news:43********************@dreader2.news.tiscali. nl... Hi all,
Is it possible to execute a command like 'CompileAndSaveAll' at runtime?
In a new app I use a codelibrary. (The app is still changing, codelib also) I add this lib to the references at startup with code.
By adding the lib the db enters a 'decompiled' state. I would like to compile at runtime or is this not needed?
Btw: I also remove this lib with code when the app closes.
Any ideas?
Arno R
Thanks David,
I already had been trying the SysCmd 504, 16483 earlier.
Found that with a Google search.
I just though it was not working, because when I checked in a module the
option to Compile was/is still enabled ...
Same with the function, but the value of Application.IsCompiled changes in
both occasions.
So I think the app *is* compiled when Application.IsCompiled =True
Confusing this ...but thanks a lot.
Arno R This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Christopher |
last post by:
I am getting a parse error from g++ pointing at my catch line and can't
figure out whats wrong with this code:
#include "BigPosInt.h"
#include <iostream>
#include <new>
#include <assert.h>
...
|
by: Eric Newton |
last post by:
I'm wondering if there's a compile time cast gaurantee if any?
Given the following:
//----- begin sample code
public interface IRegion
{
string Text { get; }
RectangleF Area { get; }
}
|
by: Glen |
last post by:
I'm working on a custom assembly and I'm trying to figure out the best
approach to handling known constraints within the assembly, once
compiled, to alert the developer at compile time of a...
|
by: Dave Rahardja |
last post by:
I have the following program that uses an array of chars to simulate a bit
set:
---------
// An out-of-bounds exception
class BoundsException {};
template <int bits = 1>
class Bitset
|
by: John Smith |
last post by:
Hi
I'm porting some C++ code to new platforms and have some 1-byte aligned
structures which need a specific size. Since datatypes can vary on different
platforms (which I found out the hard way...
|
by: Lonewolf |
last post by:
hi all,
I realize the example on MSDN for IPCChannel has compile error in
VS2005 pro. Either I'm missing something or there's something seriously
wrong with MSDN on that section. I reproduce the...
|
by: bonk |
last post by:
Hello,
I am currently trying to wrap my head around what actually happens when
I compile a normal (native) c++ class with the /CLR Flag in Visual C++
2005 (C++/CLI).
Suppose I have the...
|
by: wei8010 |
last post by:
int fun()
{
static int x = 1000;
return 0;
}
int main( int argc, char* argv )
{
cout<<x<<endl;
}
|
by: desktop |
last post by:
I have read that using templates makes types know at compile time and
using inheritance the types are first decided at runtime. The use of
pointers and casts also indicates that the types will...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |