Compiling An Exe With A Database
Feb 1, 2010My program is a database one. I need it to compile to an exe. And be able to be put on a cd and sent into school with the database working? How do i ?
[Code]...
My program is a database one. I need it to compile to an exe. And be able to be put on a cd and sent into school with the database working? How do i ?
[Code]...
I keep getting this error when I try and use a MS Access database in my application:
The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.
After Google'ing the error for a while I came to see that this is a problem when running the application in 64-bit mode. If I was to compile the app in 32-bit it would work, so I went to try and find out how to do it. I got as far as the advanced compiling options in my projects settings page, but then I also read that I can't even set the CPU type in Visual Basic 2008 Express.
is this true? Is there no way I can set my project to run in 32-bit mode? The thing is, I did a similar thing with a database a few months ago and this worked, and I don't remember in the slightest what I did.
EDIT: After taking a look at my old projects compiling options, it is indeed set for Active (x86) Platform, but this option is not showing up in my new project. Weird.
EDIT 2: Here's a screenshot. Top one is the old project with the 32-bit running option and the bottom is the new one without those options.
[URL]
How do i compile my vb project?I tried to compile , but i'm not sure which setting i should put and what i shouldnt.i did tried publishing, but i'm not sure which path of location to be publish and i put c:/ as the path and i can't load the database.The location of my db path in the string.[code]
View 1 RepliesI want to make a POS System but my problem is can I compile the database so that when I create an installer for the system and install it in other PCs, they won't require MS SQL Server(just the .NET framework) to be installed. Is that possible?.. or I have Install MS SQL Server for every PC?
View 4 Replies In one of my forms witch I imported from VB2008 there are all properties saved in the *.resx file. One Property, of the Type System.Windows.Forms.Keys, can contain the Value 'Ctrl+F1' witch compiles fine in VB2008, but not in VB2010. To reproduce, simply add the following to any resx file:
<data name="cmdFenster.ShortcutKeys" type="System.Windows.Forms.Keys, System.Windows.Forms">
<value>Ctrl+F1</value>
</data>
It will compile fine with VB2008, but not with VB2010. Notice: The VB2010 also generates this Code in the resx file
The program is currently trying to pull information from three different database tables and compiling the information onto one screen, to do this i am using three different connections and a function to handle the data at each stage. The issue is as my code hits PageLoadStage of "2" and runs the QueryDatabase() Function i am encountering an error of: "OleDB exception unhandled: No value given for one or more of the required parameters." This occurs on line 15 of the first code snippet. Can anyone explain this and/or identify any code issues if that is the cause.
[Code]...
I'm trying to compile old Visual Basic dll code on XP, and it gives me error message "Error in loading DLL". I don't know exacty which dll is it, but the project references external dll created in visual studio 2008.
View 2 RepliesI am using VB .NET 2010 express, thought I don't know how much that matters. I was wanted to create an MSI installation of a bunch of EXE patches. How can I do this?
I already have a program made that downloads all the patches and places them in a folder. I just need something to takes all those and make them into 1 .msi file.
I have an application that we wrote here at work that uses the SharpSVN wrapper for SVN. It has served us well of the past few years. However, we have started bringing in 64-bit systems and our application cannot seem to access the SharpSVN dll on these systems. I have downloaded the 64-bit version of the SharpSVN dll and I am wondering what to do next. I cannot stop my 32-bit users from using the application, so I need to be able to compile for both platforms. Luckily, with this application, we split different layers of the ntier stack into separate projects within the solution so my business layer that utilizes the SharpSVN dll is on its own.How would I go about compiling both a 32-bit and 64-bit version of my application without having to maintain two copies of the project?
View 2 RepliesI have a 3rd party dll, and I can't have it referenced while compiling for 64 bit. Is there a way around this? I'm guessing it is because the dll is a 32 bit one, but I'm not sure about that.
View 7 Replieswhen i compile the project and run it get the error Project Project has encountered a problem and needs to close. If you were in the middle of somthing, the information you were working on might be lost[ Close ]
View 4 RepliesHow can I choose which resources to compile depending of the compile constants used? So, if VAR1=0 then I wouldn't add RESOURCE_A to my final assembly.
I searched around, but didn't find any info regarding this... I guess I'm using the wrong keywords, since I doubt nobody else had this problem/doubt ever before.
Also, I use both VS2005 and 2008 at my job, mainly VB, although I haven't got any problem using C# either.
I'm trying to compile some code that I found for an Application that I want to use. Now I've download VB.NET express created a new project and just replaced the code with the one I got, but this isn't creating the forms (textfields etc.) at all, so I can't compile it. What else do I have to do to be able to compile it.
This is the source code:
Public Class Form1
Dim psc As String
Dim pwchange As String
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[Code] .....
I am having difficulty dynamically compiling a DLL for use with Silverlight 3.0. My goal is to take some rules provided by my users and compile them into a DLL for custom editing purposes.I created a Silverlight class library project in Visual Studio to get the command line for compiling a Silverlight class library. Based on that and the many examples for compiling VB using the VBCodeProvider, I came up with the following method for comping code in a string to a DLL:
Public Function Compile(ByVal code As String, ByVal assemblyName As String) As CompilerResults
' set the compiler parameters
Dim parameters As CompilerParameters = New CompilerParameters()
parameters.OutputAssembly = assemblyName
[code]....
This does not compile with the following error:vbc : Command line (0,0) : error BC2010: compilation failed : 'Member 'IsNumeric' cannot be found in class 'Microsoft.VisualBasic.Information'. This condition is usually the result of a mismatched 'Microsoft.VisualBasic.dll'.'
I've looked and, in fact, the Silverlight version of the class Microsoft.VisualBasic.Information does not contain member IsNumeric. So I appear to be picking up the correct libraries using the sdkpath option. But I have no idea why I'm trying to call that method in the first place.how to successfully compile source code dynamically into a Silverlight compatible class library?
Suppose I have a solution containing several projects. I set the compiling path as ..in folder. A reference file xxx.dll is used in project aaa, yyy.dll is used in project bbb etc.
xxx.dll and yyy.dll are stored in c:sharedlls folder.
My question is that if I compile the entire solution, do xxx.dll and yyy.dll are draged into ..in folder automatelly?
I am not clear the purpose of the compiling of the solution exactly.
make a program that would compile a number of software installer using vb8. i'm planning to do this cause instead of always doing back up of my softwares in my hard disk whenever i'm reformatting my computer, i want to make a table in my program that would list the software names and once click, it will automatically run the installer.
View 3 RepliesAfter reading a couple of tutorials, it seems that basically NET works quite like java. All the IDE's produce an intermediate code that I have to distribute, and which NET compiles at runtime to machine code and then executes it. Leaving aside the question why so when NET works only on Windows platforms, I have some other more practical questions:Is it possible to directly compile to machine code targeted at specific platform like XP 32-bit or Win7 64-bit?
View 2 RepliesIs one able to compile VB 6 code in Visual Studio.NET ? In other words, is it backwards compatible with older VB code?Since I know there is a difference between managed code (.NET) and unmanaged code, I am wondering if Visual Studio.NET is able to compile unmanaged code as well?
View 4 Repliescompile my .hta file (and resources) to a .exe file.There are plenty of applications that claim to be able to do this - but they have not worked for this application - which is a mixture of javascript and VB.Simply, (and naively,) I don't want people looking at / screwing with the code.
EDIT: Of course, I understand that javascript and VB are not "compilable" since they are interpreted languages. I am just looking for a way to truly hide the source.
I have been using VB2005 for many years on 2 PCs. Over the last month I have been getting an error when I try to run the project from the IDE:
Error 1 Unable to copy file "objx86DebugBackup.exe" to "binx86DebugBackup.exe". The process cannot access the file 'binx86DebugBackup.exe' because it is being used by another process.
C:WindowsMicrosoft.NETFrameworkv2.0.50727Microsoft.Common.targets 2324 9 Backup
My questions:
1. What has changed?
2. One thread I found suggested that it is a bug, but if true is this something that has been introduced recently (I'm not aware up updating VB2005 unless it happened as part of the general updates).
3. How do I get it back to where it was?
The file is actually locked by my own process, no other application can be using it. I've even tried it with a few line noddy program. I always have to come right out of the IDE, wait a couple of minutes and then go back in - a total productivity killer.
It is my understanding that in .Net 4.0, VB will have an in-memory compiler.
I have to admit I don't know a lot about the compilers so I'm trying to understand the advantage of this as compared to what we had before this. Also, will C# be coming out with the same type of compiler?
has anyone seen this error with compiling web components in vb.net? i added axspreadsheet on to my form and it does not compile.[code]
View 1 RepliesA lot of my programs require the ability to write files to the hard drive. When I first made these programs for XP they worked great. Now I'm less ignorant about UAC (got a new laptop recently). And for future customers...I've noticed the potential for a LOT of annoying error messages....and quite frankly if the program can't write data to the hard drive or thumb drive it's on...there's no point to running it....
I've tried multiple times to build in the manifest a requirement for administrator or user access....I'm not sure if anything less would solve the problem...but have failed because click-once has security features in place to prevent me from doing so.I'd rather not have to tell my customers how to make the program run as an administrator by editing the file's properties...I'd much rather have a convenient pop up like what you'd see new programs such as Itunes or Filezilla show if they were in conflict with UAC requesting the privileges they need.
I'd really like to do this but have had little success.
I'm getting following error while compiling my application. Overflow Exception .... CheckErrorStatus(Int32). It has something to do with my drawing. The strange thing that my computer (where I made the application) doesn't give any error, but my clients-computer gives an error. Strange...I really don't know what could give the error...and some solutions. I've been working for one full year on the application and it works great...except not on the clients pc
View 10 RepliesI want to know how can convert (compile) a class module into a .dll file. You can refer to me an article, tutorial or a code sample.
View 1 RepliesOn compiling a visual basic assembly, int32 variables are cast as int64 for calls to adodb methods that require int32. This results in a method not found exceptions at run time. The unnecessary cast operation can be seen when using reflector to inspect the site of the method call and is not present in the source code.To further muddy the waters when the code is compiled on my 64bit windows 7 machine all is well, but on a 64bit windows 2008 r2 the unnecessary cast is added.
View 1 RepliesI have created an exe file by compling on vb. However finding that not all systems like it and .net framework & isnt as compatible as you first think. I have create an application which doesnt use "imports" to reference anything. I compiled it in .net framework 2.0. It didnt work on XP machine which had .net Framework 4.0 got runtime error. Is there anyway making the compliled .exe available for all frameworks or am I going to have to create an .exe for each .net framework to encompass all versions?? Does it have to use .net framework at all depending on the application?
View 3 RepliesMy app bundles a set of VBScripts (UTF8 text files) into a VB.NET assembly. I used to embed the script code into the classes as String members, but this is proving to be a poor design. I want to include them as resources instead. What's the best way to add resources to the CompilerParams?
What I've got so far (excluding all the error checks):
Dim comParams As New CompilerParameters()
comParams.OutputAssembly = DLL_Path
comParams.ReferencedAssemblies.Add("System.dll")
[Code]....
The CompilerParameters contain fields for EmbeddedResources and LinkedResources, but from the examples I found so far these seem to pertain only to framework resources???
I have a program which builds a child program during runtime, it all runs fine but I want I way of determining which computer it came from. It is private and when I give it to someone I get their volume serial number and I can identify who it is from that. Once they build their program which can be public so the same method won't work I want it to know it came from person.. pseudo code ex
BEGIN
Determine Person
Build Program
END
[Code]....
I have a problem with one of my projects that has only just started occuring this morning.I am using VS 2010.I get errors on every form that has a VS generated dataset, similar to;
me.<dataset> = new <namespace>.<dataset>()
and
with events <dataset> as <namespace>.<tableadapters>.<tableadapter>
[code].....