|
Dr.Watson runs because your app crashed hard with something like an access violation. It's not a problem with Dr.Watson. Your app is what's causing it to start up and put together a crash dump.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Ok, I checked my program step by step and line by line.
In theory nothing is wrong because my program first releases all resources it uses (up to now there is no problem) then closes all the forms (no problem) but as soon as I want to unload my main form frmMain so that the program finishes, instead of exiting, dwwin.exe process starts and my process remains running.
I don't get any sort of error or any thing and I can go around the problem by kiling the dwwin.exe with the new instance of my program (and hence resulting in the previous instance to terminate.
But I want to know why? I tries Unload frmMain and event End both of which resulted in dwwin.exe being started (I still don't know how my program should crash only at the final line?)
Thanks
|
|
|
|
|
Well, since your app is crashing on the last line of code, I'd say that your app is doing something, that on the surface, appears legal and executes, but destabilizes the VB6 Runtime. You can't do EVERYTHING using VB...
I would start by making a small test app that just creates a new Desktop, then kills it and quits and see what happens.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi all,
i am working on my final project for uni, PC based scope, just thinking about how windows plots and draws the the screen is very different to ya basic graph, for example 0,0 is in the top left-hand corner of the screen. That's not a problem, you just subtract the height from the plotted data. The biggest problems will come from the integer based xy coordinates, for example plotting sin(2*pi*f*t) will need to be scaled and rounded, resulting in trucation error. For now i need a way of plotting one pixel,when you use drawlines there is acually two which does not look pretty when plotting graphs, its look jaggered.
for example using this code...
myGraphics.DrawLine(myPen, 100, 100, 101, 100)
when this is drawn the line looks like its made of two pixels.
one way round this is this code...
Private Sub Form1_Paint(ByVal sender As Object, _<br />
ByVal e As System.Windows.Forms.PaintEventArgs) _<br />
Handles MyBase.Paint<br />
<br />
<br />
Me.PlotFunction(100, 100, Color.Red, Me)<br />
<br />
<br />
End Sub<br />
<br />
<br />
Private Function PlotFunction(ByVal x As Integer, ByVal y As Integer, ByVal colour As Color, ByVal hnd As Object)<br />
'return the current form as a drawing surface <br />
Dim myGraphics = Graphics.FromHwnd(hnd.Handle)<br />
'instantiate a new pen object using the color structure<br />
Dim myPen = New Pen(Color:=colour, Width:=1)<br />
Dim maskpen = New Pen(Color:=hnd.BackColor, Width:=1)<br />
'draw the line on the form using the pen object<br />
myGraphics.DrawLine(myPen, x, y, x + 1, y)<br />
'draw the mask the blank out second pixel<br />
myGraphics.DrawLine(maskpen, x + 1, y, x + 2, y)<br />
End Function
this works by blanking out the second pixel with the base colour of the form.
any ideas or easier way of doing this?
thanks
Andy
|
|
|
|
|
Create a single pixel bitmap in the color you need, then use Graphics.DrawImageUnscaled to draw that image at the coordinates you need.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Ive always just used DrawRectangle(x,y,1,1)
Never had any specific problems with this.
|
|
|
|
|
I'm working on a report which allows the user to select which columns they want to be displayed. For the weight column, the user can select if they want the weight displayed in LBS, ST, or MT (they can choose however many they want). In order to do this, I wrote a simple case statement in my select clause that references three bits that are passed from my form (@ShowWeightLBS, @ShowWeightST, @ShowWeightMT). So if @ShowWeightLBS = 1 Then <weight conversion="" fn.=""> & ' LBS' Else ' ' and so on. For the rest of the columns I thought I would use the same concept (in order to hide the entire column), but I then realized what a mess it would turn into in terms of the column headings matching up with the actual data. I realize I can just "hide" the column by basing the fields suppress value on a formula, but I want the columns to be flush and not have large amounts of empty space between them. Is there a simpler way to hide (and suppress) columns?
Thanks,
Tom
-- modified at 9:31 Monday 6th February, 2006
|
|
|
|
|
What is the best way of invoking an Excel macro within VB.Net.
I want the macro do something like....all data to be in bold for say a certain range.
Would the best thing be just to code it via VB.Net.
|
|
|
|
|
hello everyone,
I am currently evaluating a citrix product which automates userid/password submission to win32 applications. That means, users do not need to remember the login credentials.
I have tried the same with a vb win32 application which had a login form. Now, I need to try logging into a win32 application which does not use windows forms. Could you please advise for what kind of application would it be? How can i create a win32 vb application which does not use vb form for logging into the application?
please advise. thanks and regards,
Ajay kumar suri
|
|
|
|
|
AjaySuri wrote: , I need to try logging into a win32 application which does not use windows forms.
What do you mean by "no forms"? Then how do the user type in a username and password if there is no interface?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi, I have made a small application in VB.Net/MSAccess. I want to install this application on a different machine. I have made the setup as per the instructions and installed the application on my machine itself. However, an error message pops up when I run the application. The error message is related to database connectivity. The MS Access DB is located in a folder named database within the application folder.
I need to know what steps are needed to be carried out with respect to the MS Access Database. Do I have to copy the MS Access DB to the specified folder as mentioned in the error message. (It points to C:\Program Files\Database)
Thnx for any help.
With Best Regards,
Mayur
|
|
|
|
|
Try using 'Application.StartupPath'
Dim path As String = Application.StartupPath
Dim cnStr As String = "Provider=Microsoft.Jet.OLEDB.4.0;" _
& " Data source= " & path & "\Database\YourDBname.mdb"
Dim strSelect As String = SelectString
Dim cn As New OleDb.OleDbConnection(cnStr)
Dim cmd As New OleDb.OleDbCommand(strSelect, cn)
Dim da As New OleDb.OleDbDataAdapter(cmd)
|
|
|
|
|
Hey Richard,
Thnx for your help. I have been using the same. please refer to the connection string below.
con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data source=" & Application.StartupPath & "\..\Database\XYZ.mdb"
This works fine when run on the development machine. However, I need to install this application on another machine. It displays an error message regarding the database connection. Please help me out with this. thnx
With Best Regards,
Mayur
|
|
|
|
|
Hi Mayur
Did you put the actual database connection lines in a Try...Catch block - then you can see exactly what the error is by using MessageBox.Show(ex.message). Post the exact message and maybe I can help.
IS MDAC installed on the target machine?
Try<br />
cn.Open()<br />
da.FillSchema(dt, SchemaType.Source)<br />
Return True<br />
Catch ex As Exception<br />
MessageBox.Show(ex.Message) 'WHAT MESSAGE DO YOU GET?<br />
Return False<br />
Finally<br />
cn.Close()<br />
End Try<br />
|
|
|
|
|
Hey Richard, right now i will not be able to provide you with the exact error message since I am busy with some critical work. However, the error message as far as I remember was something like this "Unable to find the database in C:\Program Files\Database". This has got me stumped. Why does it search in C:\Program Files\Database. Also, can you please tell me how the MS Access database has to be deployed on the client machine.
With Best Regards,
Mayur
|
|
|
|
|
hi all
i have used an ActiveX control in my VB project.
when i run it there are no errors and the forms are displayed.but in design time when i switch to form view(i.e View Object) from code view it displays an error msg "errors during load..refer to log for details".when i referred to the corresponding log file it says "license not found"..
what could be the reason behind it?
-- modified at 6:45 Monday 6th February, 2006
|
|
|
|
|
It's because the design-time license for whatevery control your using doesn't have a design-time license installed on your dev machine. This mieans that you're not authorized to use the control in your own applications. I really can't tell you more than that without knowing which control your trying to use.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-- modified at 10:02 Monday 6th February, 2006
|
|
|
|
|
Hello,
I am working on an Excel application which is sometimes triggered via OLE by another application. The application sends an OLE-command, which calls a macro inside Excel. This works in most cases.
Sometimes, by hitherto unknown reasons, the OLE command does not arrive to Excel.
Does anybody know possible reasons for this?
Are there possibilities to reestablish the OLE communication?
Regards
Michael
|
|
|
|
|
hi
i want to make addin for outlook thats catches the mouse click on the mailitem(means when i click on any mail in my inbox).
thanks in advance
Ankit Patial
|
|
|
|
|
I havn't seen anything like that, but here is a link to OutlookCode.com
that has a lot of outlook programming stuff.
http://www.outlookcode.com/[^]
progload
|
|
|
|
|
hi my website is done and now i want it to upload to the web. i saved it in c:\inetpub\wwwroot. how do i upload my file to my domain name "www.mydomain.com"
-- modified at 5:11 Monday 6th February, 2006
|
|
|
|
|
Why don't you ask them? You're paying for the space and support, so use it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello Everyone !
I am fine and hoping the same for you.
I need your help in builing and "scrolling text" application. Actually i want to make an application in which i need to scroll my text (from Database) vertically upward, like we see some websites with Current news etc.
Thanx in advance for helping me.
Bye
Arfan Qadir
|
|
|
|
|
|
I want to make a Connection to a Password protected Access 2003 Database.
I tried to make a "Data Connection" in "Server Explorer" tab. In the "Data link properties" dialog box, I select "Microsoft Jet 4.0 OLE DB Provider" in the Provider tab, and in the Connection tab, I select my Database location and default checked "Blank Password" with username "Admin" (Default). It works fine if the Database has no password set.
But when I set password on Database and unchecked "Blank Password" and enter my password in the field "Password" and then click on "Test Connection", it failed to make a connection to Database.
Please help me solve this problem.
Also i have to give a complete location of database, is there any way to give the location of database to the same of executable, e.g. in the Bin folder both files (Database and MyProgram.exe) present, it automatically collect the location of executable file.
Iftikhar Ali
|
|
|
|