.net - Create VB6 Application Using A Class In A DLL, Then Swap Out That DLL After Build?

Nov 17, 2011

so my question is relatively simple, can I create VB6 application that references a class in a dll, and then substitute that dll for another at runtime?Now my intial guess is... no chance in VB6.

So my thoughts turned to a VB.net interop dll. Could I do it in here, and then call the interop dll from the VB? but I'd be happy if someone knew differently.The only thing that I think would actually work would be DI in .Net, but I'm limited to .net 2, or 3.5 at a big push, so I dont know if that is possible.

I have a dll that a specific site uses, but we dont want to ship that out to everyone. Instead, we want to build a clone dll which just has the interfaces setup so that the VB6 build will complete.When it gets to the site that needs it, they want to replace the dummy dll, and drop in their version instead.

Note: We do use RegFreeCOM when its gets installed, so I do have the manifest files that I could play around with if needed.

View 2 Replies


ADVERTISEMENT

Build A Useful Class And Implement It In An Application?

Apr 16, 2009

I am trying to build a class. I am having a difficult time conceptualizing how a class is built and how it works. I want to be able to build a USEFUL class and implement it in an application.

View 1 Replies

VS 2008 : Build An Application To Monitor A Site To Build Statistics From The Data Being Read?

Mar 3, 2010

I'm trying to build an application to monitor a site to build statistics from the data being read. This HTML looks like this.

<div id="history">
<h4>HISTORY</h4>
<table border="0" cellspacing="0" cellpadding="0">

[code]...

Now I can read the html and put the text anywhere, I just don't how to read specific parts so I can separate the data out.

View 17 Replies

[2008] Application Deployment - Build->build Myapp

Mar 7, 2009

I just created a simple application. I Builded that using build->build myapp. I got .exe of that application. i runned. all went fine. but when i closed that app, even after closing it is in memory. it is still running. how to deploy it properly?

View 12 Replies

Create An Application For A Class?

Sep 24, 2010

I'm trying to create an application for a class buy I'm having a hard time. I have started it but I don't really know how to implement the message box or calculations

Here is the question Here is the code I have so far

Private Sub btnCalc_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalc.Click
' declare
Dim diameter As Decimal
diameter = CDec(txtDiameter.Text)

View 5 Replies

How To Create User Class For Application

Jun 22, 2010

I have a desktop application designed (VB.NET 2008 and SQL2005) which consists of user login and some access level for the users.The user class which i have classified are :

1. Administrator
2. Operator
3. Report User

This user has got a few access in my application. I have got stuck how to create a user class and give access level for this class and map those class to the users.

View 4 Replies

Create A Class In A Windows Form Application?

Nov 2, 2009

creating a class.cs in a win form app? Here is some code I will use many times in my application...

Dim dat As System.DateTime
Dim day As Integer
day = dat.DayOfWeek

[Code].....

And also how to call this class in my forms to invoke this..

View 4 Replies

Create An Application Without Distributing A Referenced Class Library

Mar 1, 2011

I am using VB .NET 2003. I have created a user defined Class Library and created a reference to it in my application. Is there a way I can compile the application so that the Class Library DLL is embedded into the application? I would really like to be able to distribute the application without having to distribute the DLL as a second a file.

In other words, I made a New Class Library lets say called TEST. I developed a new class within this library called MYCLASS. I built the Library TEST and created TEST.DLL. I then made a new visual basic project called APP1. I added a reference to TEST.DLL. I now can use TEST.MYCLASS within my APP1 project. The application APP1.EXE will run in the test environment, but if I move it to the runtime environment it will give me an error "File or assembly name TEST or one of its dependencies was not found". To correct this error I can place TEST.DLL in the directory where APP1.EXE resides. I would prefer not to have to put TEST.DLL in the directory. Can I easily compile it into APP1?

View 15 Replies

Build My Own Class Library?

Oct 18, 2009

Can I create my own class library, possibly to be sold commercially, in VB.NET?

View 2 Replies

Build A Class That Works With A Form?

Sep 7, 2010

I am trying to build a class that works with a form, but I keep getting the dreaded "Object reference not set to an instance of an object" Error.The form basically collects test grades and assigns them to a collection.My class code is as follows:

Public Class Scores
Private colScoreCollection As New Collection
Public mintSum As Integer
Public mdecAverage As Decimal
Public mintMinimum As Integer

[Code]...

I had a similar project I was working on that had a collection in it, but now that one is giving me the same error. It there something with my version of Visual Studio that is causing this error possibly?

View 7 Replies

Build A Class Structure To Support Two Threads?

Nov 8, 2009

I have this application that users can make exams that contain exercises of different ... whatever. Anyway when student takes the exam he chooses it from a list and then all exercises are loaded from database. I wanted to make loading process faster by loading only first exercise data and putting others in background thread.

Actually in other parts of this application something like that is done but not by me. Basicaly an api class is built around BackgroudWorker and i can use this class to put certain functions of objects to be executed in background. The idea sounds great but in real life there are some problems with it. For example for historical reasons this application uses global functions and reader and uses global connection to Access database which means if in background something is being fectched from data base and you try to fetch from database in main thread then a „reader is already open" error occurs. To avoid this error if im doing something in main thread and want to fetch some data i have to move my function from main thread into background worker function list. And basically this in my opinion stinks cuz you end up with many delegātes, invoked checking and thre result... I was just thinking that there maybe is another way to allow (maybe with events) not put everything in background in case something is happening in bakcground but rather allow bgworker to finsih current thing, then do my thing and then resume bgWorker and not create havoc in code.

Basically i have to classes - exam and exercise that each implement many interfaces (like IExercise, IExerciseResult, IExerciseYesNo, IExerciseMultipleChoise etc.)And then i have DataBase classes like ExerciseDB, ExerciseResult etc. That have functions that preparē the sql params and call sqlHelper functions.And for example when i load up exam i go throug all exercises and call LoadData function that in turn calls ExerciseDB function selectData and then i put the returned data in Exercise object. And this type of thing of course would producē error if i at the same time would try to register the answer in database for another exercise. Ofcourse i could always check and put this in background... but as i said i'd rather want to work with database from both threads.

View 13 Replies

Build A Class Where Always Have A Button At The Bottom Of A Form?

Nov 18, 2009

I'd like to build a class where I always have a button at the bottom of a form.Then when I drag and drop the button, It has to make a copy of that button called "button1", if I drag and drop the button again I'll have another button called "button2" and so on.But If I drag and drop the "button1" or "button2" they shouldn't duplicate as the original. And this is the problem I can't sort out.

This is my class:

Imports System.Windows.Forms
Imports System.Drawing
Public Class frmTablesEditor
Inherits Form

[code].....

View 1 Replies

Build A Car Class - Instanciate Many Objects Of Calss To Move More Than One Car

Feb 14, 2009

Two.JPG

I have build a Car class as follows:

Code:

Public Class Car Dim CarState As Integer Dim CarPicture As New PictureBox

Public Sub DriveIn() 'This sub to drive in the car to the lot. CarState = 1 Dim x As Integer For x = 1 To 45 If x <= 12 Then CarPicture.Top -= 3 Threading.Thread.Sleep(100)

[CODE]...

Then i tried to instanciate many objects of this calss to move more than one car as follows:Public Class Form1

Private Sub btnDrive_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDrive.Click 'Dim objCar As New Car() Dim objCar As Car objCar = New Car objCar.DriveIn() End Sub

[CODE]...

But unfortunately no car moved.

View 10 Replies

NET Class Is Recognized In VS Get A 'Type Is Undefined' Error On Build?

Mar 22, 2012

I am working on a VB NET project and had the strangest thing happen.I created a class file(just like a dozen or so I have already created). I wrote in the code to access it. The autocomplete found the class, filled it in and colored it blue, just as it should.But, when I run the app, I get a type is undefined error.

There is nothing in the class yet. And there is really no code to post..it is as straight forward as I described.I tried restarting VS; Deleting and recreating the class; Deleting the class and creating a new one with a different name.

Is there something in the VB NET configuration I can check to see if it is not being added somewhere?

I found the problem. I have 2 projects in one solution. They both share some classes that were trying to use my new classes. When I hit F5, both projects are compiled, and since I hadn't shared the classes with the second project, it errored.

So, now my question is changed; How do I specify to only build the specified Startup Project when debugging?

View 1 Replies

Create / Build Executable During Runtime?

Mar 7, 2009

As Google and Yahoo have provided barely anything, I was wondering if anyone can point me in the right direction on how to, or an example of how I can build a working executable during runtime in vb.net.It's for my custom school project.

View 1 Replies

Build An Application In VS 05?

Mar 10, 2012

i want to build an application in VS 05, and I want to include a "Settings Menu" in it.I want to know how to make it work, I mean if you check a checkbox to dissable/enable something from that application.

View 2 Replies

Is There A Way To Build Application

Jan 8, 2009

in visual studio 2008 express edition that won't need to link to Net Framework for example simple code in standard module: [code] I Unchecked "Use Net Framework" but after i builded and run the code above(on another Computer), it asked for Net Framework.

View 8 Replies

IDE - Upgrade To 2010 Projects Referencing A Class Library Targeting A Different Framework Fail To Build

Aug 18, 2010

Say I have a Framework 4.0 project that is referencing a class library targeting 3.5. The project will simply not build. It won't give me any valid error message it will just act as though the reference does not exist.

Projects that were working like this in Visual Studio 2008 are no longer working in 2010. Took me forever to figure out what there error is. If I remove the project reference and add it back the intellisense lights up and you can tell a variable referenced in the class library is found. But as soon as you build the project everything is lost. My using statements get underlined, references to the variable all turn grey and project fails to build saying the class cannot be found. Once I make the class library 4.0 as well everything builds. I get the same issue between 4.0 client profile and 4.0 as well.

View 1 Replies

Create And Build Custom Controls In 2005?

Mar 16, 2010

Can someone point me in the direction of a good tutorial on creating and building custom controls that can be added to the Toolbox?

View 6 Replies

Build An Application Without Icon?

Feb 4, 2011

As the title above, I am wondering how to build an application without an icon in vb express, or i need to use visual studio to do this.

for the above problem, I used to delete the icon manualy after the build process using visual studio resources editor.

View 10 Replies

Build N-Tier Web Application?

Oct 14, 2009

Im trying to build my first N-Tier web application. And it seems like im doing it wrong. Ive been kinda working out of this book, but to me it doesnt seem like the right way to do this. In the book the guy builds User and Data centric objects but everywhere I see ntier everyone is always talking about BLL and DAL ive seen nothign on UC and DC objects.Right now I have Interfaces and serializable structures, user and data centric objects. The data centric object does all the validation and connecting to the db, as well as returns any violated rules, but when I once i started pulling it all together it just doesnt seem right.Ive already wrote a ____ load of code and now am kinda stuck. I dont know if i am doing this right and dont want to continue writing any code if this is all messed up.Ive been reading as much as humanly possible and im still just a little confused. I mean I understand the concepts of seperating the logic into different layers and tiers and all that but as far as my implementation of that I just feel somethings a bit off.

View 3 Replies

Can Only Run Application On Build Machine

Jun 5, 2010

I've compiled my application and started testing it on other machines.

It crashes instantly on every machine except the build machine - I'm fairly new to programing so any pointers as to where I would start would be great.

If I install VS2008 on the test machines it runs fine...

I'm using VS2008 on Windows 7 (x64)

Application is set to compile x86

An entry is made in the event log:

EventType clr20r3, P1 5xhruzlemrj2jn2wizvzp1qaljyuxwtl, P2 1.0.0.0, P3 4c0abff3,
P4 ssmc program,

P5 1.0.0.0, P6 4c0abff3, P7 12, P8 e9, P9 system.invalidoperationexception, P10 NIL.

[URL]

View 3 Replies

Create A New Class That Inherits From The Base Form Class And Define A New() Method With Parameters?

Oct 1, 2008

I've been creating short test apps repeatedly to try to understand some of the concepts in VB.NET.For the most part it has been illuminating.I read Bucky's .NET knowlegebase tutorial on passing objects as parameters to newly created forms. He shows how to create a new class that inherits from the base form class and define a New() method with parameters Extending the concept I thought about doing the same thing with a form that was created at design-time (In this case Form2).

[Code]...

View 6 Replies

VS 2010 : Create A New Class And Have Each List Item Of That Class Such As 'btnID', 'btnText'?

Apr 27, 2011

I want to read a number of items from a file and then associate each of those items with a new button at run-time, so that when the user clicks one of the buttons I can display some information about that item.Can I use a LIST to manage these buttons and items? Can I create a new class and have each list item of that class, such as 'btnID', 'btnText', etc... ?

View 2 Replies

How To Create Splash Screen With Build Date / Time

Apr 20, 2010

I am creating a splash screen for my vb.net 2005 app (.net 2.0 framework). I would like to include the build date and time on the screen without having to manually enter it myself everytime I do a release.

View 1 Replies

VS 2008 DGV Inheritance - Create The Control In Another Project To Build The Dll

Nov 26, 2009

In my application i will use a customized datagridview for all the application, so instead of adding the normal datagridview and changing the properties, i created an user control and changed the inherited to datagridview... This have a problem i can't use the drag and drop...

[Code]...

View 4 Replies

When Build Project To Create Exe / Want To Include 3d Control Magic.exe Into It

Mar 11, 2010

I've used 3d control magic for VB.NET to create shaped forms.When I bulid my project to create an exe, I want to include 3d control magic.exe into it, to be installed automatically in the clients computer.

View 1 Replies

Build A Client Server Application?

Jun 3, 2011

i currently have a project. The application created in this project will be located in a server, and some machines can access this application at the same time. The problem is, i don't know what's needed to connect that application to several machines. I know how to build this application and run it in a single machine, but i have no idea about running this on server.

View 3 Replies

Build A Database Application For One Of Assignments?

Jun 3, 2011

I'm a Quite new to Visual Basic 2008. I have to build a database application for one of my assignments and one of the problems I'm having is to build a form that will be used to search a customer from a Customers table. The database is from access2007.

I have to have 4 radio buttons on the form which will be the options to search the customer by, so I can search by Customer ID, Customer Name, City and postcode. When I select one of those options I need to enter the phrase I'm looking for within a text box I have called TextBoxSearch then press a command button to perform that search but I'm not sure how to do this.

The customer ID is the 1st row, Customer name is the 3rd row, City is the 4th row and the postcode is the 5th row. How do i tell the program to go to that row and grab the detials based on the text entered from the text box? and display only those detials on the datagrid view?

View 1 Replies

Build A Phonebook Application, With Some Extras?

Jan 16, 2009

I want to build a phonebook application, with some extras.My problem is that I don't know which is the best file to save my data.I started with binary, but I wonder if there is good search capability in these files.Which do you think I should use?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved