Creating A DLL From Project?
Mar 20, 2009
im trying to create a .dll called PDTKey.dll (for example) that will hold all of my applications Product Keys..and when the user inserts a Product key into the main application..it searchs in PDTKey.dll to see if the Poduct key specified is there..
View 13 Replies
ADVERTISEMENT
Apr 6, 2011
I have a pretty large project built in vb.net under VS 2008. This project is heavy using SQL.
There is one part of the project, that I need to make a smaller project. So I am taking 6 forms out of 23 and adding them into this new project. Instead of adding the data set, I built a new one. With a different name. But it's connect to the same database.
First of all, is this a good way to make a sub-project, or is there a better way.
Secondly, I am running into a problem where my table adapters are not members of dataset. I get this error in the design code. I know it's not a good idea to manually change this code.
View 5 Replies
Jul 28, 2011
create a COM dll in Visual Basic. [URL]I now want to use this dll in a C++ project. I used OLE/COM Viewer to create an .idl file as is described in the second half this tutorial.[URL]I compiled the .idl with the midl compiler and included the .h file that was created in my c++ project.Here is my Visual Basic Code
<ComClass(MyComClass.ClassId, MyComClass.InterfaceId, MyComClass.EventsId)> _
Public Class MyComClass
#Region "COM GUIDs"
[code]....
I receive the following errors when I compile my c++ project
error LNK2001: unresolved external symbol _CLSID_MyComClass
error LNK2001: unresolved external symbol IID_MyComClass
View 1 Replies
Dec 27, 2011
I've been assigned to start a new Logging Project from zero in VB.NET.The final exit of the main project is information organized in paragraphs like this:
[code]...
Every paragraph correspond to a database connection. Every connection is made with an entire diferent database.i need my logging project to save everything the user does, so the logging exit would be like the system exit but with exceptions and other important information like this: Paragraph's title 1 Paragraph's content 1.Paragraph's title 2 User wasn't able to see this information because an exception ocurred: System.WhateverException:couldn't connect to WCF.as you can see the exit is the same but i need to create a detail log because the information is delicate and the DBA needs to now wich user did what and what was the response of the system. Also i need it to be and independant project so i can re-use it in another projects. Seeing the final exit of both the main project and the logging project, what would you recommend me to use for logging in .NET?
View 1 Replies
Oct 3, 2010
i'm currently working on building a program that will take a MS Access database system produced by my company and create a VB.Net project with all the forms in it (obviously the code should be manually done, but to save time the forms and controls can be produced automatically).I have tried Googling and seem not to be able to find anything about this (which probably means I wasn't searching with the right keywords), I was wondering whether anyone knows any good resources on how to create the VB.Net project programmatically as I already know how to do all the access stuff.
View 1 Replies
Jul 23, 2008
I am building an error log in a VB project. Is there a way to extract: 1) the name of the sub that a sub routine fails on? 2) what line of code a sub routine fails on? 3) what other items can I extract that are meaningful?
View 2 Replies
Nov 29, 2010
I'm studying visual basic and wanted to know where I place my code in the new project which looks like this below:
Public
Class Form1
Private
Sub Form1_Load(ByVal sender
[CODE]...
I'm creating variables.
View 7 Replies
Sep 28, 2009
I am working on a project that has some events already created and working. One of these events is called SelectedIndexChanged Event. I am using it for one of my Subs in my frmNewInspection Class, and I am trying to use it for a second Sub and it says that "Event SelectedIndexChanged Cannot Be Found".
The event is created here in a class called LabelComoBox
Private Sub tctlInspection_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles tctlInspection.SelectedIndexChanged
'MsgBox("Index: " & tctlInspection.SelectedIndex.ToString)
[Code] .....
View 11 Replies
Feb 23, 2009
So, I fired up my old laptop while my current app was running and tried to start a new project.
As soon as the form comes up, I see this instead of the normal windows form.
Code:
at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
at Microsoft.Win32.RegistryKey.GetValueNames()
at Microsoft.VisualStudio.Shell.Design.WindowPaneProviderService.AppendWindowPanes(RegistryKey parentKey, ArrayList windowPanes)
[Code]...
View 4 Replies
Dec 20, 2011
no forms can be seen when creating a new project.. i am going to choose a window form but there are no forms to choose.
View 12 Replies
Dec 20, 2011
i am trying to create a simple program in vb.net but i cant start because there are no items found.. no forms are found am i missing some libraries or i installed it the wrong way?
View 22 Replies
Jun 12, 2009
i am a student of b-tech i want a ppt for my mini project i.e. web browser using vb.net .
View 4 Replies
Apr 23, 2009
I'm trying to use the System.Windows.Forms.MonthCalendar control within a VSTO Excel workbook. I want the MonthCalendar to pop up when I click a button in the ribbon, but so far I can't get the control to display at all.
Private Sub DeliveryDateFromCalendarButton_Click(ByVal sender As System.Object, ByVal e As Microsoft.Office.Tools.Ribbon.RibbonControlEventArgs) Handles DeliveryDateFromCalendarButton.Click
[Code].....
View 2 Replies
Aug 11, 2010
Given the following code and link to SkyDrive VS2010 project, how would I create this vb.net project and access it in my c# application?
//the following c# project reference to function in vb.net is not working
string retval = ConvertUTF8_toASCII.UTF8_toASCII(stirngToConvert);
View 5 Replies
Oct 12, 2009
Is there any performance hit (or other problem) to creating a lot of class and structure types for a project? I'm not talking about the number of objects existing in-memory during runtime; rather just defining a lot of object types during design time. I find myself making a lot of small classes and structures that are little more than simply packaging a few related variables together.
View 4 Replies
Sep 7, 2010
How do I create a project with one EXE file and the remaining files as DLL files? I have 24 forms in my windows application. I am using VB.NET.
View 2 Replies
Nov 23, 2009
It seems that in C#, a solution can contain multiple projects, which, I guess, would compile into separate but somehow related programs. It seems that this functionality is missing in VB, even though VB uses solution files as well.How would someone go about creating a tool or utility or "helper app" for a project? For example, a command line version of the program, which is a separate executable, but obviously would be distributed as part of the main program? Maybe I want to integrate a feature into windows where the user can right click on a certain file and choose "convert" from the context menu, where "convert" would open the helper app, which would read the file and save an updated copy of the file (converting from one file format to another and saving the result) without the user needing to wait for the main program to load, wait for the interface to be configured, then wait for the file conversion. The helper app would not need to display an interface to the user - just convert and save the file.
View 8 Replies
Apr 18, 2012
In my VB .Net code, I am trying to create to launch MS Project Application. Dim prjApp As Microsoft.Office.Interop.MSProject.Application = New Microsoft.Office.Interop.MSProject.Application
But I am getting the exception as follows:
"Creating an instance of the COM component with CSSID {36D27C48-A1E8-11D3-BA55-00C04F72F325} from the
IClassFactory failed due to the following error: 80010001".Note: This exception happens in 64 bit Windows 7 German OS. But the same code runs successfully in 32 bit Win XP (German and English) and 64 bit Windows 7 English OS.I have even tried the following steps in German 64 bit Win 7
1. Running the application in Administrator mode
2. Setting UAC to low.
3. Re-installing MS Project in German 64 bit Win 7.
View 1 Replies
Mar 18, 2009
I'm creating an Addin, specifically to MS Project 2007. This Addin create a toolbar with a button that will allow user to export his project to excel sheet in MS Excel 2003 or 2007. My problem is create workbook with worksheet. I already made toolbar and added the button. My button can open Excel Application but i can't add workbook and worksheet.
Code:
<script type="text/javascript">
<!--
Imports Microsoft.Office.Interop
[Code]....
View 5 Replies
Jul 13, 2011
I have started learning a bit about programming. "Create a new project, and add two text boxes and a button to the form. Write code that, when a button is clicked, places the text in the first text box into the second text box. Hint: Use the Text property of the TextBox controls." Now I am trying to look at it logically do I put the same text in both textbox properties and write code that says if it is visible in one it cant be in the other or declare the text in the code, either way I am a bit stumped, but feel if a stick with it it will click and i will be writing my own code in no time.
View 8 Replies
Jun 21, 2009
When i am creating a setup project and building it then i am getting a setup file using which if i install then it is getting installed to single user only i want the setup to build run for every user in that system and the users can access it.
View 1 Replies
Jun 16, 2009
I'm having some problem with VB project in visual studio 2008, when I open or create a new project in VB only code is displayed in the design tab but no GUI and toolbox is greyed out.
View 3 Replies
Oct 19, 2009
I'm sorry if this is in the wrong forum or has already been asked, but I'm having a problem creating what should be a relatively simple code for an Excel Project. Essentially, the code is supposed to check if a certain column has Y in it and then copy that entire row onto another sheet and then move on to check the rest of the original sheet. This version of the code seems to do everything but actually populate the cells with the information. Every other attempt I've made has ended with "Application-Based or Object Based Errors". I've worked on this code for a few days now and I just can't seem to get it right. What am I doing wrong?
Here's the code:
Sub PopulateNewSheet()
i = 2
Do While Worksheets("Main List").Cells(i, 2).Value <> 0
[CODE].................
View 1 Replies
Nov 12, 2010
I am creating a project that will execute DOS command, for example a have a Button and by clicking it it will execute the command in cmd.
For example I want to execute this simple command " ping google.com -t". how to do it?
View 1 Replies
Feb 15, 2011
I have been trying to create good multithreading programs and it is not working well considering the use of global variables, local variables etc and thread safe controls. I have not found a good way of doing it since it seemed to be not as efficient as just running it on a single thread.
The program accesses facebook and twitter api, parses etc. and I am wondering if I can just create new tasks and map the program project file and fire new instances of the project. Someone this using the taskfactory in 2010 but I thought this was just the same as the threadpool. on this: create windows services and set them to run on task scheduler??
View 2 Replies
Apr 26, 2012
I'm having a little trouble creating a game of pairs as a project.Basically I've got to the point where I can start a game, layout a bunch of cards in a grid, 6x6, and then have a way of matching the pairs together. First of all I used a For loop to assign the cards into a two dimensional array. They are pictureboxes however so when a user clicks on 2 cards, checking them to see if they match has become confusing. I've tried to stuff like this for example but it's not working: [code] This doesn't work because it can't compare the picture boxes stored to the array slot. Is there any clever person with a way around this? Or that can think of a way to compare them. The pictureboxes kinda need to stay like there though :/
View 2 Replies
Jun 13, 2011
I am creating a VB windows form applications , the working can be summarized as users fills some form and data is saved in sql server database.Now the problem i am facing is that i have to deliver this as a setup file to someone, and that person will further distribute it to different users to run on their PC, what i am thinking is that the code once installed on other computers and executed will give errors because of the connection string of sql server db as it will not match with that computer . I know that if a distribute projects i can put connection string in app.config and every user can change it according to his/her machine .But as i am giving a setup file how to solve this problem
View 1 Replies
May 1, 2009
how to write the code for my project.I am to base my new project on an existing one(existing one has code that works 100%)and create an Array of a structure that bascially holds the information from a summary form AND the totals from an AddToOrder_Click event. If you are still with me)... I cant figure out what the code is for my structure and Array so that I STILL have a Summary Form but I have an array that shows when I click my PrintPreview. So an Array is basically a "space" that holds information, like my summary form except it doesnt show until I click PrintPreview right?
If I just wanted to show the table then my code belongs in the PrintDocument1_PrintPage to show the array but the actual structure code belongs in the Click_Event of my AddToOrder? Please Please understand I AM NOT asking for anyone to write my code, basically I am asking for some clarification on what exactly creating an array from a structure is and therefore determing where the structure is to be placed in my code..
View 6 Replies
Mar 5, 2012
i've created a very simple .exe file on my project in vb winForms but i don't know if i have crystal reports, Database, .swf files on my project.
View 3 Replies
Jun 22, 2010
Step-by-Step Process of Creating a Setup and Deployment Project for windows application
View 2 Replies