Hey all, was hoping you could help me with a little info here. There's this application we use that's around 10+ years old, and I'm pretty sure it was written in C++. There are some data files it uses with an extension of ".md" and a fileheader of "MDB2" I was wondering if anyone's come across a database or file type like this in the past. My reasoning is, the source for the app has been lost for some time, but that's ok, the app itself runs decent enough, but we'd really like to update the data in these files if possible. The powers that be are hoping it's a known format, but I've tried just about everything I could think of to access them. Thanks!
StylezHouse
Posts
-
Old Application - MDB2 Data? -
No parameterless constructor defined for this object.Uhh please advise what? The error is REALLY descriptive, and two people here have given you the answer. I advise you learn .NET or something, if you can't even figure out what a paremeterless constructor is.
-
Exception HandlingYou can declare the dataset outside of the Try block, and in the event of an error, add an Errors Table too it that contains all of the info. Then check for the existance of that table on the return trip.
-
Exception HandlingTry this? [WebMethod] string MethodName { try { ..Your Code return ""; } catch (SqlException ex) { return ex.Message; } } So in the event of an error, your method will return the error message, otherwise returns an empty string, or null if you prefer?
-
3-Tier CodingWow...
rei ayumi wrote:
1:When begin,what codes should i added first?
....
rei ayumi wrote:
2:What is the code for the link control from a web form to another?
<a href="page2.aspx">Goto Page 2</a>
<asp:hyperlink id="Page2Link" runat="server" navigateurl="page2.aspx" />
rei ayumi wrote:
3:How to connect to microsoft access? 4:How to make the buttons to scroll the info? 5:How to make the data to be read according to the link topic under the same database?
Seems to me you don't even know the basics... I'd suggest you get a book...or 12....and read some tutorials, or follow by example, lots of great code on this site.
-
Autodownload Acrobat reader from web browserI don't believe there is anyway for the server to know that the user successfully opened a file with a specific application. Unless you use some kind of ActiveX control or something, I don't see anyway to do what you want.
-
Naval or Space Battle Strategy gameStarcraft is the coolest game on the whole damn planet =)
-
How to make the connection globelThis is a little cleaner...
Public Sub Page_Load()
TxtTotalCus.Text = GetValue("Select Count(cuscode) From CusDetail where SalesManNo='" & SaleManNo & "'")
TxtTotTel.Text = GetValue("Select Count(cuscode) From CusDetail where SalesManNo='" & SaleManNo & "' and WayOfBooking like '%Telephone%'")
TxtTotalPP.Text = GetValue("Select Count(cuscode) From CusDetail where SalesManNo='" & SaleManNo & "' and WayOfBooking like '%Presentation%'")
TxtTotOutDoor.Text = GetValue("Select Count(cuscode) From CusDetail where SalesManNo='" & SaleManNo & "' and WayOfBooking like '%Out door%'")
End SubPrivate Function GetValue(ByVal Query) As String Dim cn As New SqlClient.SqlConnection("Initial Catalog=SalesMgt;data source=Murtuza;uid=sa;pwd=sumayya;") Dim Cm As New SqlClient.SqlCommand(Query, cn) Dim strReturn As String Try cn.Open() strReturn = Cm.ExecuteScalar If strReturn Is Nothing Then strReturn = String.Empty End If Catch ex As Exception 'Handle Error Finally Cm.Dispose() cn.Dispose() End Try Return strReturn End Function
-
Getting the value of a single cell in a datagridClose... StatusGrid.Items(1).Cells(1).Text()
-
Labels and MouseFirst off, the conversion wizard is the devil, just rewrite
Agreed, once you have the fundamentals down, I'd suggest a complete rewrite as well.
-
Interactive Graphics on a Web pageRight, but on an html page an image is an html element. You can obfuscate JavaScript code also, but if that's unacceptable, then the only solution I see is using Flash.
-
Need advice on best ways to launch and control another application.SendKeys!! Thats what I was thinking of...
-
dynamically adding linksHere's a pretty good example on using the repeater control. http://www.asp101.com/articles/john/repeater/default.asp That should help you out. And it seems you need to create a class called NewsLink that inherits Hyperlink. That has additional properties of OnMouseOver, and OnMouseOut, and when those values aren't empty, they are applied to itself. Use that inside of your repeater, with an unordered list, and you'll be good to go.
-
Need advice on best ways to launch and control another application.It's been a while, but I think you want to look at the sendmessagee function in the win32 api.
-
Interactive Graphics on a Web pageDirectX and OpenGL won't work for an Asp.NET page. Take a look at www.google.com/ig Create a free account, and check it out, you can move all kinds of stuff around. You can use GDI on the backend for dynamic image creation.
-
Sound of RefreshYou're referring to the click correct? You can't. That's a browser setting.
-
dynamically adding linksCreate a class that inherits the hyperlink or label. Give it the extra properties you need it to display. And make it render them properly. Use that class inside of a repeater, and databind a collection to it. Probably a ton of ways to implement what you want, but I think at first glance, that's the route I'd take.
-
Namespace?Namespaces are a simple way of structuring your code into simular areas. Think about it like this. The System.Data.SqlClient namespace contains all of the sql data objects and the System.Web.UI.WebControls contains all of the webcontrols. So the Datagrid is a class in the System.Web.UI.WebControls Namespace. Kind of babbling because its late, but do you get the idea?
-
ReplicationYou need to use DTS not Replication.
-
Datagrid Designer questionEither way it gets "Hard Coded" Just expand the Region of auto generated microsoft code and you'll see it.