|
*grin* hi
I'm sorry, I never use VB6. I started to reply b.c I thought it was a VB.NET question, then I realised half way through it was VB6. You were less than clear on this. VB6 is, as I said, dead, defunct and crap. You should put VB6 in your subject line to attract an answer from the handful of people still using it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
to attract an answer from the handful of people still using it.
Sorry
You should put VB6 in your subject line.
Thanks I will follow it.
Aleem Mohammad.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
Christian Graus wrote: put VB6 in your subject line to attract an answer from the handful of people still using it
I agree.
Christian Graus wrote: I never use VB6
Same here, and glad I never had to
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
indian143 wrote: When I compile it, it is compiling but when I run it it is saying compilation error "User-defined type not defined".
Go to references and correct all references which has a "MISSING" prefix.
|
|
|
|
|
Hi,
I am trying like that, but some times it doesnt show the "Missing" prefix. Still I am trying one by one.
Thanks,
Aleem Mohammad.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
Yeah. It's a crap. I had the same issues when I was developing in VB6. But I don't remember the workarounds as it was long time back.
|
|
|
|
|
It sucks that you're still on VB6, here's what I would do
indian143 wrote: When I compile it, it is compiling but when I run it it is saying compilation error "User-defined type not defined".
Sounds like there is a variable not defined for a udt. Like the code below:
Private Type udtScannerInfo
strLoadID As String
strLoadDate As String
End Type
Private muScannerInfo(1 To 2) As udtScannerInfo
indian143 wrote: When I added a library and tried for running the application then I got the following message "No creatable public component detected"
Sounds like a problem with the class.
Open your main project. Go to references. Write down the names of all the custom vb6 projects that are being referenced (those created in house).
Open each one separately and compile it. After you have compiled all the sep references, you should test them individually. Open up a new instance of VB6, and add it in just 1 of the vb6 projects as a reference and instantiate the objects in that .dll. Ensure each .dll works like this. If you find one that doesn't work, you've narrowed down which one is broken.
If all of them compile and they can all be used in a simple vb6 test app, then go back to your main app and continue debugging there. If you're having registry problems (aka: .dll hell), download and run dial-a-fix to repair the corrupt registration keys.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
Thanks I got it and completed.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
oracle connection in background workernew
48mins ago
I have a class (Query) that dimensions a new background worker and a new oracle connection. Each instance of the query class is supposed to query the database, wait a specific amount of time then query again. The first time a trigger an event (which creates a new instance of the query), the background worker RunWorkerCompleted event will not fire, however everytime I trigger an event after that (whether its the same one or a different one), the event will work fine. If I remove the oracle database connection instance (and all related code), this problem goes away. Does this make any sense to anyone. I dont even need to use the connection instance, as long as I try to create a new one, this keeps happening. I am so confused!
Any help would be great
Public Class Query
Implements IDisposable
Private m_trigger_time as Datetime
Private m_cfg as TriggerCfg
Private m_handle as System.Threading.AutoResetEvent
Pivate m_connection As Client.OracleConnection
Private WithEvents m_bgworker as System.ComponentModel.BackgroundWorker
Public Sub New(ByRef cfg as TtriggerCfg, ByVal time as DateTime)
m_cfg = cfg
m_trigger_time = time
m_handle = New System.Threading.AutoResetEvent(False)
m_bgworker = New System.ComponentModel. BackgroundWorker
m_connection = New Client.OracleCOnnection(My.Settings.OraConnectionString.ToString)
m_bgworker.RunWorkerAsync
End Sub
Private TriggerAction(ByVal sender as Object, ByVal e as System.ComponentModel.DoWorkEventArgs) Handles m_bgworker.DoWork
...Do db query
m_handle.Wait(New TimeSpan(0,0,10),False)
...Do db query
End Sub
Private Sub Completed(ByVal sender as Object, ByVal e as System.ComponentModel.RunWorkerCompletedEventsArgs) Handles m_bgworker.RunWorkerCompleted
Dim worker as System.ComponentModel.BackgroundWorker = Ctype(sender, System.ComponentModel.BackgroundWorker)
If e.Error IsNot Thing Then
MsgBox(e.Error.Message)
Else If e.Cancelled Then
MsgBox("Cancelled")
Else
Me.Dispose()
End Sub
End Class
|
|
|
|
|
Hi all,
I am using Visual Studio 2008 and Sql Server 2005
I am use some CLR Programming in my windows application and it goes fine.
But I got Some Error during Transaction in my application.
Error : Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
So, What is the Problem and How Can I Solve this Type of Problem.
Thanking you very much.
Arindam Banerjee
Sr. Software Developer
Rance Computer Pvt Ltd.
Kolkata (India)
|
|
|
|
|
You should be asking this in the SQL Forum. It has nothing to do with VB.NET.
|
|
|
|
|
I have developed a VB6.0 application and created Report using Crystal Reports 9. When I run the application, and opened the reports, the reports showed up correctly in my machine in which crystal reports is installed. When I build the EXE and run it in another machine without VB & Crystal Reports, My application is opening up but the Report is not opening up, instead it gives an error message "Run-time Error 429. Activex component can't create Object"
I feel probably some DLL or OCX files to be registered to make crystal reports work in the client machine. I also tried copying some DLL files and OCX files to system32 folder, but in vain. Probably some more files are missing.
Anybody Pls provide me the complete package of files to be copied in the client machine to make my Reports open up.
Thanks in advance
|
|
|
|
|
Why on earth would anyone use VB6 ? It's rubbish, it was always rubbish, and it's been a dead language for many years now.
Your VB app doesn't need the compiler to work, but your report DOES need Crystal Reports to be on the client machine.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Some of my colleagues also insisted the same solution to install crystal reports in the client machine. But it seems that there is an alternate way that doesn't need the Crystal Reports to be installed in the client machine. It only requires registering a set of DLL and OCX files. FYI i am using windows XP. Can u pls tell me the alternate way.
|
|
|
|
|
Search for "Crystal Reports distribution files" or some such thing... it is a long list of files that need to be part of your installer.
|
|
|
|
|
Search the web for the 'Crystal reports merge modules'
(name of the file is CRRuntime_12_0.msm' at least the one I have)
Add this merge module to your setup project and it will install everything it needs to run Crystal reports. (right mouse click on the project --> add --> merge module)
A little warning your setup file will grow with approximatly 40Mb
|
|
|
|
|
Is it possible to run a separate setup to install the files required for Crystal Reports alone. Since my application is a small one, I am jus going to copy the EXE alone and no other files.
|
|
|
|
|
I guess you could just create a setup project and only add those merge modules (and the exe if you want) using Visual studio.
If you do this be shure to uncheck the .NET framework condition in the setup project otherwise it will try to install that aswell and you don't need it, don't know if CR needs it tho, you might want to check that.
|
|
|
|
|
VB6 doesn't use .MSI based setups. Merge module wont do him any good unless he's using a third party packaging solution, which I doubt.
modified on Monday, November 24, 2008 9:51 AM
|
|
|
|
|
It does - you can use the MS Installer to create the MSI.
|
|
|
|
|
It's not integrated with the IDE in VB6 and is a seperate product. MS Installer is not a product to create installations, but it is a service used to install .MSI databases. The only thing that MS has that can edit .MSI's is Orca, I believe. You'd have to use a third party product, that is friendier than Orca, to generate an MSI installation and use the merge modules.
|
|
|
|
|
Oops... it's not MS Installer... Visual Studio Installer[^] is what I meant.
Yes, it is not integrated with the VB6 IDE, but you can create MSI files using this app.
|
|
|
|
|
Google for "Crystal Reports runtime install" or "Crystal Reports redistributable" and you'll find the installer to do this.
|
|
|
|
|
since your app is a small one why not rewrite the app into dotnet and move away from a dead product. You will be lucky to find the installation files for VB6/CR.
You can distribute the appropriate DLLs and register them. Finding them will be a challenge.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
manohar_balu wrote: I have developed a VB6.0 application
Why? VB6 has been dead for at least 5 years. If you are going to be doing VB programming, you should stick to VB.NET. It'll look better on a resume or c.v. than VB6 ( unless it is completely maintenance work you are doing ).
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|