SuperGeek
Posts
-
Form as Startup Object -
Shared Assembly ProblemWell James I am happy to report that we did it and I could not have done it with out your help. There was a slight difference in the minor version number of the shared assembly in the GAC and the one that the GAC pointed to. I am not completely sure how I let that happen, but I did. Perhaps I did a rebuild that I forgot about. I don't know. Also, I put a copy of the same version of that assembly in the debug folder of the client application so I could compile with the same version as was pointed to by the GAC.:) The steps I followed... 1) To compile, I put a copy of my shared assembly in the same folder as my project. In the debug folder where my exe goes. 2) I removed the faulty version of the reference in the GAC 3) I readded my shared assembly to the GAC with the gacutil.exe and made absolute certain that the version numbers were exactly the same in the GAC, as assembly that the GAC pointed to and that this was the exact same version number that the client application was compiled with. I really appreciate your help.
-
Shared Assembly ProblemYou are correct. The versions do not match. I will try deleting the one in the GAC and reapply gacutil and see how it goes. I have one little concern though. If I am using a using statement such as # using // in the GAC do I need to specify version numbers and keys in the using statement. If I have to specify version numbers, or more information (recall that I am doing this on Win XP). How or where do I indicate this? Thanks for all of your help.
-
Shared Assembly ProblemOk, I compiled it by setting the search path to the assembly that I signed and checked into the GAC with sn.exe and gacutil.exe. I can see that the assembly is in the gac. However, when move the .exe that I just built to say the desktop, and try to run it, I get a runtime error. System.IO.FileNotFound error. I presume it is not really finding the dll in the GAC. Does it look in the GAC at runtime? I dont need to put the exe in the GAC too do I? I think I am not referencing the dll in the GAC. I guess I am not convinced that the CLR is finding my dll to which the GAC points to.
-
Shared Assembly ProblemPerhaps your right. That would explain why I can't seem to do it. However, this raises two new questions. 1) How do I reference the absolute location programmatically or in visual studio.Net? 2) How can I compile code that uses classes in the assembly in the GAC? If I can't reference it at compile time I just get a bunch of undeclared identifier and namespace not found errors.
-
Shared Assembly ProblemI am running into some probems using the shared assembly. I seem to be able to check it into the GAC, but I do not seem to able to find the file when I reference it. I think I have done everything the help files say to do, but when I go to build it, I get file not found error. This code works when the assembly is private. I put a detailed explaination of problem with screen shots and source code on the web at http://www.robertpeterson.ws/screenshots/GACproblem.htm Sorry for using large image sizes. I suspect that there may be some compiler option that I haven't set, but I can't imagine what else I should change. I will continue to research and hopefully correct the problem, but I hope you will look at the web page and let me know if you have any suggestions. I have looked at 4 books on Visual C++.NET. They all say how to make an assembly shared, but they don't say how to include it into a program (at least I haven't noticed an example yet.) The other thing I noticed is that they all show c://winnt/assembly as the example, but not C://WINDOWS/assembly where the gacutil puts it on the XP box. #include "stdafx.h" #using #using // File that is in the GAC #include #include using namespace ReformaterClassLibrary; using namespace System; // This is the entry point for this application int _tmain(void) { ParagraphReader * pReader = new ParagraphReader(); // Read the contents of the file pReader->FilePath = "a://paragraph.txt"; pReader->Read(); // Instantiate a Paragraph Rewriter class; ParagraphRewriter * pRewriter = new ParagraphRewriter(pReader->Data); pRewriter->MakeTriangle2(); // Reformat the paragraph // Instantiate a Paragraph Writer object to write the data to a disk ParagraphWriter * pWriter = new ParagraphWriter("a://triangle.txt"); pWriter->WriteParagraph(pRewriter->Output); cout << "System terminated normally." << endl; return 0; }
-
System PauseOk, here is what should be a simple question, but I have not been able to find it in the help files. I am writing a console application in C#. I would like to see a system pause like System.Out("PAUSE") in C++. Is there an easy way to do this?
-
Could not find installable ISAM.Hello folks, I continue to struggle with making the connection to my access 2002 database with asp.net. I think I have the connection string /provider stuff figured out, but when I try it from my server I get Could not find installable ISAM. my website host www.general-hosting.com claims to support ODBC connectivity and access, but I get this ISAM error. here is the code... connectionString = "Provider=Microsoft.Jet.OLEDB.4.0; " connectionString &= "DNS=webdata; DRIVER={Microsoft Access Driver (*.mdb)};" 'connectionString &= "Data source=amzg12122.general-hosting.com/fpdb/mywebdb.mdb;" connectionString &= "DBQ=URL=amzg12122.general-hosting.com/fpdb/mywebdb.mdb;" 'connectionString &= "Catalog=mywebdb.mdb;" Me.myWebDbconn = New OleDbConnection() Me.myWebDbconn.ConnectionString = connectionString Response.Write(connectionString) Me.myWebDbconn.Open() ' ************* Error ******************* The server generates the following error message... Server Error in '/' Application. -------------------------------------------------------------------------------- Could not find installable ISAM. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.OleDb.OleDbException: Could not find installable ISAM. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [OleDbException (0x80004005): Could not find installable ISAM.] System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr) +20 System.Data.OleDb.OleDbConnection.InitializeProvider() +57 System.Data.OleDb.OleDbConnection.Open() +131 amzg12122.general_hosting.com.WebForm1.MakeODBCConnection() in C:\Documents and Settings\Robert Peterson\VSWebCache\amzg12122.general-hosting.com\loginform.aspx.vb:54 amzg12122.general_hosting.com.WebForm1.Page_Load(Object sender, EventArgs e) in C:\Documents and Settings\Robert Peterson\VSWebCache\amzg12122.general-hosting.com\loginform.aspx.vb:34 System.Web.UI.Control.OnLoad(EventArgs e) +67 System.Web.UI.Control.LoadRecursive() +29 System.Web.UI.Page.ProcessRequestMain() +724 What I find curious, (and I really don't understand) is that e
-
ODBC Connection StringHello all, I am trying my first ASP.NET database connectivity coding. My web host lets me use ODBC and has given me a Data Source Name. (DNS). I am trying to connect to my Access File say webdata.mdb. I cannot seem to make a connection with the wizard so I would like to write a connecton string my self. It is my understanding that non-SQL server connections require that the connection string provide the provider. I would like to use Microsoft OLE DB Provider of ODBC drivers. How do I specify this in a connecton string? Do I need to specify the DNS and if so how? Any help would be greatl appreciated.
-
Application PathHere is what I hope will be a simple question. In the old VB6, we could use the app.path to get the application path. What do I used to do this in VB.NET?
-
SingletonsHi, I would like to implement a class that is a singleton (a class in which only one instance is allowed to exist as any given time) in visual basic 6. Does anyone know how to do this? Thanks in advance for your help.
-
TelephonyOk, I am halfway done for implementing my telephony application and I encountered a major problem. I am using a ZOOM USB Modem and was stunned to learn that it is half duplex. When I dial the phone, and the voice mail answers I can set tones and transmit voice, but I cannot hear what is going on at the other end. How do I switch from a send state to listening state?
-
TelephonyOk, I am halfway done for implementing my telephony application and I encountered a major problem. I am using a ZOOM USB Modem and was stunned to learn that it is half duplex. When I dial the phone, and the voice mail answers I can set tones and transmit voice, but I cannot hear what is going on at the other end. How do I switch from a send state to listening state?
-
VB.NET and Function PointsHere is an unusual question. I am using function points to estimate the size of a program. Since I have an estimate for the number of function points that I have I need to figure out how many source lines of code I need to use. The published conversion factor for Visual Basic 5.0 is about 29 SLOC / Unadusted function point. Does anyone have a conversion factor or a reference for VB.NET?
-
TelephonyThanks for the help everyone! I guess the hard part is learning what functions are available in TAPI and whether or not my drivers support it. Does anyone know of a good reference book or website that would list the functions that TAPI provides?
-
TelephonyTHANKS! I have never seen that gotdotnet site before, I think I may start spending some time there. I think TAPI is definetly the way to go, (assuming I have a modem that supports TAPI). Does anyone know of any good books or websites that detail the TAPI functions?
-
TelephonyThanks for advice. I will have to look into the TAPI. I would prefer to work in VB or VB.NET. The application is really supposed to be a GUI that let the operator here voice mail and exercise the options in the voice mail. I do not think we are going to be supporting any sort of database. We are dialing the voice mailbox, sending the tones through the phone line, for example if the option is press 2 for "To Reply to this Message" the user could click a button for reply and the software would send the tone for two. I think we can get by with only supporting windows 2000 or XP.
-
TelephonyHi. I have been asked to develop my first telephony application. I think I want to do it with Visual C++ or Visual Basic.NET. The application: A program that will let the user dial in to his/her voice mail and access all of the features of the voice mail throught the computer. Does anyone know of existing libraries that might be helpful? Do we need a special modem? Does anyone know if it might be easier to implement in another language? Any help would be greatly appreciated.
-
TelephonyHi. I have been asked to develop my first telephony application. I think I want to do it with Visual C++ or Visual Basic.NET. The application: A program that will let the user dial in to his/her voice mail and access all of the features of the voice mail throught the computer. Does anyone know of existing libraries that might be helpful? Do we need a special modem? Does anyone know if it might be easier to implement in another language?
-
Opening and Displaying TIFF imagesHi folks, Does anyone know of any free source, components, or libraries that can open a TIFF file format and convert it to a bitmapped image. While I am at it, does anyone know of free source, components, or libraries that implement the Floyd-Stienberg dithering algorithm for halftoning. I have tried some stuff I found on the web and most of my test cases can not be opened by the code I have found. Thanks for any help!!!