Hi all,
Is it possible to execute a command like 'CompileAndSave All' 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 2904
"Arno R" <ar***********@ tiscali.nl> wrote in message
news:43******** ************@dr eader2.news.tis cali.nl...
Hi all,
Is it possible to execute a command like 'CompileAndSave All' 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******@pcdata sheet.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******** ************@dr eader2.news.tis cali.nl...
Hi all,
Is it possible to execute a command like 'CompileAndSave All' 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******** ********@newssv r30.news.prodig y.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******@pcdata sheet.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******** ************@dr eader2.news.tis cali.nl...
"Randy Harris" <ra***@SpamFree .com> schreef in bericht
news:V9******** ********@newssv r30.news.prodig y.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******** ************@dr eader2.news.tis cali.nl...
"Randy Harris" <ra***@SpamFree .com> schreef in bericht
news:V9******** ********@newssv r30.news.prodig y.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******@pcdata sheet.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******** ********@newssv r30.news.prodig y.com... "Arno R" <ar***********@ tiscali.nl> wrote in message news:43******** ************@dr eader2.news.tis cali.nl...
"Randy Harris" <ra***@SpamFree .com> schreef in bericht news:V9******** ********@newssv r30.news.prodig y.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******** *********@newsr ead1.news.atl.e arthlink.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.IsC ompiled Then
Set db = CurrentDb
Set ctr = db.Containers!M odules
If ctr.Documents.C ount > 0 Then
DoCmd.OpenModul e ctr.Documents(0 ).Name
Else
'No Modules present, try Forms container
Set ctr = db.Containers!F orms
'no need to check for count since this code
'itself must be present *somewhere*
DoCmd.OpenForm ctr.Documents(0 ).Name
End If
DoCmd.RunComman d acCmdCompileAnd SaveAllModules
DoCmd.Close acModule, ctr.Documents(0 ).Name
End If
fCompileProject = Application.IsC ompiled
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******** ************@dr eader2.news.tis cali.nl...
Hi all,
Is it possible to execute a command like 'CompileAndSave All' 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@epsomdot comdotau> schreef in bericht news:43******** *************** @lon-reader.news.tel stra.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.IsC ompiled Then Set db = CurrentDb Set ctr = db.Containers!M odules If ctr.Documents.C ount > 0 Then DoCmd.OpenModul e ctr.Documents(0 ).Name Else 'No Modules present, try Forms container Set ctr = db.Containers!F orms 'no need to check for count since this code 'itself must be present *somewhere* DoCmd.OpenForm ctr.Documents(0 ).Name End If DoCmd.RunComman d acCmdCompileAnd SaveAllModules DoCmd.Close acModule, ctr.Documents(0 ).Name End If fCompileProject = Application.IsC ompiled 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******** ************@dr eader2.news.tis cali.nl... Hi all, Is it possible to execute a command like 'CompileAndSave All' 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.IsC ompiled changes in both occasions.
So I think the app *is* compiled when Application.IsC ompiled =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>
BigPosInt::BigPosInt(int init_max_digits)
{
|
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 potential issue.
For example, in the assembly I would like to add a constraint that
states a particular property member of the class can not be equal to one
other property. In standard coding I can throw an exception during
run-time, but I would rather...
|
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 since longs are not the same size
on win64 and linux x64) I would like to do a check at compile time to make
sure things are correct. This will ease future work.
Is it possible to do something like the following at preprocessing stage:
| |
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 MSDN code sample for
IPCchannel for server side in c# below. please help me see what I'm
missing here.
using System;
using System.Runtime.Remoting.Channels.Ipc;
|
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 following class deklared in c++:
// #pragma managed or #pragma unmanaged
// does not seem to make any differnce here
|
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 first be know at
runtime.
But is there some strict definitions that defines runtime code and
compile time code that can be used in general?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |