473,796 Members | 2,434 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Compile at runtime?

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
Nov 23 '05
10 2905
???? 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******** ************@dr eader2.news.tis cali.nl...

"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
Nov 24 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
3786
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) {
3
1812
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; } }
2
4647
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...
4
2946
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
4
8977
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:
2
3745
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;
2
2105
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
7
1807
by: wei8010 | last post by:
int fun() { static int x = 1000; return 0; } int main( int argc, char* argv ) { cout<<x<<endl; }
16
5434
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?
0
10455
Oralloy
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...
0
10228
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10173
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,...
0
10006
tracyyun
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...
0
6788
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5441
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...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2925
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.