Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




VB .exe File Unable To Run On PC Without VB


Hi,

I have built an exe file using VB 6. But I am not able to run it on a PC that does not have VB.

It runs fine on a PC with VB.

I also tried creating an installer file for that so that all the dependent files are automatically included in it. It runs, but crashes soon.

Can you help ?

Thanks.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Path/File Access Error. Unable To Read Or Write The Specified File
Hi,


I am getting the following error

"Path/File Access Error. Unable to Read or write the specified file.

Unable to Display the Image"


Following is the Code i am using .
With ImgEdit1
.Image = gStrFilePath & "" & pImagefile
.Page = 1
.Display
.FitTo 1
End With


The OS is windows 2000 and i am using ImageEdit control

the variable gStrFilePath contains the Path of the file
PImagefile contains the Image Name . Image is Tiff image.


If i click OK on the error messages the application closes. If i run the application again i am able to display the same Image.


Pls Help me

VBA .exe File Unable To Run On PC Without VB
Hi,

I have built an exe file using VB 6. But I am not able to run it on a PC that does not have VB.

It runs fine on a PC with VB.

I also tried creating an installer file for that so that all the dependent files are automatically included in it. It runs, but crashes soon.

Can you help ?

Thanks.

Unable To Run An Exe File Via PDW
Hi,
I have a vb project that I want to make a setup for.
I want to use the PDW of visual studio for that.
My project uses Access and MySQL as databases.
for connecting with MySQL I need a driver, for that a myodbc.exe file should be run.
How can I include in the setup the driver exe file and make the setup execute that driver during setup for registration?
I included the exe file in the setup and the setup just put it in the target computer as it is without executing him.
Please advise
Jo

Unable To Read .eml File Thru VB
Hi all,

I require to read the contents of a email file (.eml) saved from Outlook Express thru VB Code .. please help me out !!!

Unable To Remove A File
My program was interrupted before completion. This caused one of the files to be close with no input so the file lenght is zero(0).

The next time the program was run an error occured when the file was opened for output. The error:
error 55: File already open

In an attempt to solve this I put in a routine to delete that file prior to attempting to open it. The Routine:

Private Sub Setfile(sFileName as string, fHandle as Integer)
On Error GoTo SetFile_EH1

Close #fHandle
Open sFileName For Input As #fHandle
'If file not there will cause Error 53 and exit sub
Err.Clear
Close #fHandle
'Make sure the file is closed
Kill sFileName
Exit Sub
SetFile_EH1:
If Err.Number = 53 Then
Exit Sub
Else
MsgBox "In SetFile, Error=" & Err.Number & " " & Err.Description
End If
End Sub

The problem is that when the Kill is called, it again creates an error 55: File already open

I have checked and called the Close statement prior to calling this sub routine to insure that that file handle was indeed closed. The File handle was called using freefile.

Can't seem to solve this one!

Anybody have any ideas?

TIA
Dick Deeds

Unable To Open File..please Help!
Hi,

I am trying to open a dat file named test.dat (two column data, only numerics) from vb using the following code:


Code:
Private Sub command1_click()
Reset
Open "Test.dat" For Input As #1
Do Until EOF(1)
Line Input #1, A$
Loop
End Sub


when I run the code an error message appears saying Runtime error '55', "file already open". This happens despite my using the "Reset" command before the "open" command in the code. Why does this happen?

Please help! Thank you very much..

Unable To Open RTF File.. Pls Help
Hiiii,
I am oppening a RTF file for editing through VB and at the sametime I want to open the RTF file in a Rich text box.

But after oppening the file for Editing I am unable to open up it in the Rich Text Box.

It says "The specified Path/file name cannot be accessed or is invalid"

If I first open it in the ritch text box and then open for editing its Ok.... but I want it the other way around.

I need to first open it for editing and while it is still opened ... open it in a Ritch Text box (jn the form).

Can this be done.
How can we check if a Word or RTF file is already opened.

Thank
Sam

Unable To Read File
So, I am trying to fix up an excel 2000 spreadsheet for someone and it is giving the above error message when you try to load it, then it doesn't load at all. I was able to get Excel 2002 to run a repair on it on load and give him the spreadsheet back in an openable format (though apparently some of the data is scrambled on various worksheets). Does anyone know a really good repair and recovery tool?


To err is human. To really foul things up requires a computer.

Unable To Kill The Read-only File
I am using Kill (*.xyz) to remove few files from folder. But, if any of the xyz files to be killed is read-only, it is not getting killed. I am getting the error 'Path/File access error'. How can this be resolved?

Unable To Update Existing File..pls Help
hey guys i had this code of mine. It actually checks if same application is open if yes it will only updates the records it has but if not it will insert a new record. the problem is it doesnt update it only replaces..

here my code:

rs.Open "Select * from tblLogs", dBase, 3, 3

If txtApp.Text = "" Then
ElseIf txtApp.Text = rs.Fields("app") Then
dBase.Execute ("Update tbllogs set logs='" & Replace(txtLog.Text, Chr(13), "Enter") & "' where app= '" & txtApp.Text & "'")
Else
dBase.Execute "Insert into tblLogs values ('" & txtEmpNo.Text & "','" & wstation & "','" & txtApp.Text & "','" & Replace(txtLog.Text, Chr(13), "Enter") & "', '" & FormatDateTime(Now, vbShortDate) & "','" & FormatDateTime(Now, vbShortTime) & "','0')"
End If

Thanks in advance!

Unable To Use UDL File In Data Environment
When I use a udl file as the ConnectionSource of a DEConnection, I get the following error : "Failed getting Rowset(s) from current data source"
The DEConnection won't accept my udl anywhere, no matter what I put in my udl and no matter where I specify the connection string.

I have altered the udl file numerous times, first I used the Jet engine, then ODBC, File DSN, SYSTEM DSN, nothing worked, I have made sure that the UDL is consistent with the ODBC DSN, but it just doesn't accept it.
It works fine when I use ODBC but I would like to know how to use a UDL since it is simpler and more advanced.

Hope someone can help,

Shaul

Unable To Create An Index In MDB File
I am not able to create an index in existing table in a MDB file either using ADOX method or "Create Index" Statement.

I am using Adox 2.8 and ado 2.7 and access 2003

Any Suggestions.
Thanks.

Unable To Generate Log File During Setup
I have a setup made with VB setup tool. It usualy run good. Yesterday, I have tried to run it under win 2000 pro (not my computer). As soon as I click on the setup Icon, a msg appeared, saying: 'Unable to generate a log file'.

Did anyone ever had this problem!!!

Help!

thanx

aaahhh!!!

Unable To Delete A File While It's Being Written To
Is there a way to detect if I can delete a file without handling a error? This has come up a few times, the last time being we have scripts we generate (replace a default username with an incremented username) and then perform another similar operation on resulting file. The problem is that if you don't do some wait time in between then the first file you create is not always done writting when you try and get it again for the second operation. Is there any way to detect that nothing is writing to the file?

Unable To Move The Existing File
Unable to move the existing file ...?

Unable To Open Excel File On Office-Xp
Can anybody please help me.....I am opening a excel file through VB code which is as follows...

Dim xlapp as object
dim xlbook as object

Set xlApp = CreateObject("Excel.Application") 'New Excel.Application

Set xlBook = xlApp.Workbooks.Open("c: est.xls", , True)

This is working fine on Office-97,Office-2000 but it is not working on office-Xp , When I am running this code on the machine which is having a Office-Xp I am getting an error message...
'Unable to get the open property of the workbooks class'

Can anybody help me.......

.exe Building Disabled, Unable To Build .exe File!!
Hi,

Iīm not able to build any exe file, cause itīs disabled. After several bootings and programm kills it still ainīt working. Has anybody some idea how to re-enable it ??

- Whoops - Unable To View File" Message
I have an application that processes MS-Word files, and I enable the user to view the files through the WebBrowser control (that seemed like the best option to display a Word doc, as the OLE control sucks). Anyway, I have no problems displaying any file in the webbrowser control when I run the app from my development box (Win 98 laptop). However, when the app is run on the user's machine (Win XP Pro), while the app does display most documents without a problem, on longer ones, she is getting the message "Whoops - unable to view this file (GP) - QuickView Plus". Any idea why or how to fix it?

Unable To Find File Error (access 2000 And VB6)
Hello,
  Ok I am working on a project for work and I was wondering if someone can answer these questions for me.

Is Access 2000 compatible with VB6 I have downloaded the service pack 5.

I am trying to access the the database so that i can update the fields that are in the database but for some reason it keeps on giving me and error. The error is simply
"Cannot find the file "tracking.mdb"" I checked to see if the file was spelled right I checked to see if it is in the same directory that the application is IT IS. I am using this code to open the database

Set AddCompanyas opendatabase(sApPath & "/tracking.mdb")

I tried everything that I could think of and yet no pevail
Please help
Thank you

CR8 - Unable To Change Location Of Database File Or Tablename
Hi!
I have just started using Crystal Reports 8 with VB 6...I have some Report templates already made in VB6...while making those reports tables were created as follows:

Server Type: ODBC MS Access 97 Database
Server Name: MS Access 97 Database
Database: V:meenakshisystem1.mdb (some mapped drive from another computer)
User ID: Admin

Now say, i want to run this project on the client side...obviously in that case, the server name (here it is access so may not change, but in the case of ms sql server 2000, the server name may change), database would change....
i want all my templates to still run....how is that possible...i have written the following piece of code, but it is still not working...i have searched lots on the forums etc. but i am sure i am missing somethind very minute somewhere....pasted below is my code:
----------------------------------------------------
Dim crxApplication As New CRAXDRT.Application
Public Report As CRAXDRT.Report
Dim crxDatabaseTable As CRAXDRT.DatabaseTable
Dim crxParameterField As CRAXDRT.ParameterFieldDefinition
Dim crxFormulaField As CRAXDRT.FormulaFieldDefinition
Dim cTable As CRAXDRT.DatabaseTable

Dim myServerName As String
Dim myDatabaseName As String
Dim myTableName As String

Private Sub Form_Load()

' this rptReport1 report is prepared using EMPLOYEE table in the System1.mdb and i want to change it to use the CUSTOMER table in Sytem1.mdb at runtime or i want to change the location of my database file System1.mdb from V:meenakshi to some other place

Set Report = crxApplication.OpenReport ("V:meenakshi_Conversion
ptReport1.rpt", 1)

frmViewer.Show vbModal

For Each cTable In Report.Database.Tables

myServerName = cTable.LogOnServerName
myDatabaseName = cTable.LogOnDatabaseName
myTableName = cTable.Name
myLocation = cTable.Location

' i am just printing the servername, database name and tablename that r currently used in the rpt
Text1.Text = myServerName
Text1.Refresh
Text2.Text = myDatabaseName
Text2.Refresh
Text3.Text = myTableName
Text3.Refresh

'now i want to change the table name to CUSTOMER .... rest everything remains same ...or may be i move my database file, that is System1.mdb somwhere else and try to ask the report to use this database location now... in that case, table name remains same but database name changes to reflect the new location
cTable.Name = "EMPLOYEE"
cTable.Location = cTable.Name
cTable.SetLogOnInfo myServerName, myDatabaseName, "admin", ""
myServerName = cTable.LogOnServerName
myDatabaseName = cTable.LogOnDatabaseName



' i am just printing the servername, database name and tablename that r now used in the rpt
myTableName = cTable.Name
Text4.Text = myServerName
Text4.Refresh
Text5.Text = myDatabaseName
Text5.Refresh
Text6.Text = myTableName
Text6.Refresh


Next

frmViewer.Show vbModal
End Sub
--------------------------------------------------
thanks,
regards,
meenakshi

Unable To Properly Import .reg File Data That Contains Carriage Returns
This is a bit of an odd one. You don't actually need to use Visual Basic to test or perhaps even solve this problem, but since it has come up as part of a VB project I am posting it here.

I have written a registration module for our software that works by encrypting the windows key using our password and saving it in the customer's registry. However the system does not always work for everybody so customer support needs a way of helping them register. I am working on a new method for this that involves creating a .reg file using a key that they send to us. The idea is to send this .reg file to them, which they can double-click on to add the information inside to their registry, which will register their software, and off they go.

The problem is that the encrypted key that is stored in the registry contains carriage returns. This is not a problem when the entry is written directly to the registry using VB code. However, it turns out that if you try to write the information using a .reg file, it will not work for multiple lines. For instance, a reg file that looks like this:


Code:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USERSoftwareTest]
"Serial"="testing here we go"
Will work fine. However, a file that looks like this:


Code:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USERSoftwareTest]
"Serial"="testing here we
go"
Will not add the information to the registry at all. This even happens if the information that is in the second one was taken directly from the registry - what I mean is, if the information in Serial had a carriage-return while it was in the registry, exporting the value using Export in regedit would give me the second example that I posted. However, even though regedit wrote out the file in that manner, the information in the file will not be correctly entered into the registry when I double-click on the file.

You can try this for yourself by creating a textfile called test.reg and putting in the examples I have shown here.

I realize that a way around this is to remove carriage returns from the serial however this creates subsidiary problems for me due to the entrenched use of this system among our customers.

Thanks in advance,

-Adrian

Vb 6.0 Error When Hit Run: Unable To Initialize Appliation Lock File Terminating The
application.

when I hit Run this error message is thrown..

can some one let me know what could be reason.
thanks
nath

Help...vb6.0 Error: "unable To Initialize Application Lock File"
I get this error when I run the project file in vb6.0 environment.
any reasons why this could be happening?

"Unable To Locate Source File"
The message in the subject is being received during installation of a Visual Basic 6 program on a Windows 95 machine. The setup package was created using the setup wizard. The setup.lst file has the correct path to the file. The message is being received on several of the files in our package, including at least one microsoft file Msstkprp.dll. Any clues?

Unable To Use Nothing
here is the code I'm woking with

Code: Set returnedCells = humanSS.Cells.Find(val)
        If Not (returnedCells = Nothing) Then
            numCells = returnedCells.Count
        
            If numCells = 1 Then
                r = returnedCells.Row
                geneValue = humanSS.Cells(r, 1).Value
                ratSS.Cells(i, 4).Value = val
            End If
        End If


There are either going to be one or no cells returned from the humanSS.cells.Find(val) statement. When none are returned, I need some way of finding this or an exception in the returnedCells.* will occur when I try and access it. However in the VBA editor (Office 97) whenever I try and use the line,
Code:If Not (returnedCells = Nothing) Then
I get the error, imporper use of object. Does anyone know whats going on, or a work around.

Note: using null does not work either.
Another Note: I dont really care about efficency, my macro only needs to run successfully once.

Unable To Install VB.Net, Need Help
I am new to VB and have just brought VB.Net with the hope to learn and write some simple programs.

I have tried to install this on Win-XP with all the uptodate security patches and SP-1

I have read and followed MS Knowledge article Q312073 with nil further help to my problem

When I try to install VB.Net it seems to fail at the setup of BOOTSTRAP.MSI and returns

error 1606
could not access network location <common administrative tools> Allusers

I have a home computer with a simple home network to 1 other computer

I have converted my FAT32 files to NTFS, I have all the front page server extensions loaded.

I am unable to open under control panel the administrative tools icon and I wonder if this is somehow related to my problem.

I have run the recommened InetMgr and made the appropriate changes.

I need some help please

David Williamson

Unable To P&&D Any Longer?
I have developed a local application that I would distrubute by creating distribution cd's from the package and deployment wizard. Now when I try to create a new revision, the p&d goes through it's normal list of questions and then when I click finish, I get blown out of VB... I am about to upgrade to .net, but still have to work with this app in its present form...

Any suggestions? It always worked in the past.

drman

Others Unable To Connect
Hi,

I would appreciate help with the following. I have created an Excel VBA application that connects to a mysql database. I am using mysql odbc 3.51 and ADO from the MDAC microsoft website.

I am able to use my application succesfully. It connects and makes the correct select statements.

However, I want others to be able to use the application as well. I tried to run my program ie. run the Excel add-in on other computers. However, I get an error and
am unable to connect

When I run my program on someone elses computer and it gets to the line to conn.Open

I get the error that says
"Run-time error '-2147467259(80004005)':
[MySQL][ODBC 3.51 Driver]Host 'someelse.ipadress...' is not allowed to connnect to this MySQLserver"

I have older versions of msado15.dll and msador15.dll than the others but I don't think this is my problem.

Any suggestions? I went to mysqlcc to grant and create a user with my
colleague's ipaddress. I made up a user name for her but I got the same error message. Maybe it takes time to accept the changes or is there something else?

My connection string specifies my account in the VBA code. I thought that was the problem and then changed the connection string to match the new account I created for them but it still does not work?!

Thanks!!!!

conn.CursorLocation = adUseClient
conn.ConnectionString = "DRIVER={MySQL ODBC 3.51 Driver};" _
& "SERVER=myipaddress;" _
& "DATABASE=mydatabase;" _
& "UID=mylogin;" _
& "PWD=mypassword;" _
'& "OPTION=" & 1 + 2 + 8 + 32 + 2048 + 16384
conn.Open

Unable To Reference The DLL
Hi. My problem is making me crazy since I'm blocked about a week on this. I have to create an Access database (.mdb) and transfer some fields from the SQL database to this .mdb to be used by anyone. No big deal. Fairly easy done and it's not the problem. It is that I can't reference any DLL needed to be able to work with Access database. I've tried DAO360.DLL or MSADOX.DLL and when I click on it to register them in the COM Components of VS2003, it does NOTHING! No error, no message and no new libraries. I've tried the REGSVR32 trick but no luck there too. I can't neither find "Microsot ADO Ext 2.X for dll and security". And yes, MDAC 2.7 is installed on my computer and yes, I can installed alreday registered librairies. (BTW, I can't download the 2.8 SP1 because it askes for genuine Windows authentification. And since the computer I'm using have been bought with an english OS and reformatted with a french one, my key isn't valid anymore). But the 2.7 should suffice to create/manage a simple database. Can it be because I'm using MSDE2000 or IIS? Does somebody have a clue on this matter or a way to bypass this using the SQL commands or OLE? Thanks alot for all your help.

Unable To Get Value From Combo Box :(
Hi there,
I was trying to get value from the combo box once the user has selected it. Here are my codes:


Quote:




Private Sub Combo1_Change()
MsgBox Combo1.Text
End Sub




My problem is, every time after I have selected a value from my combo box, the "MsgBox Combo1.Text" does not work. No value is displayed. FYI, I am using "drop-down combo". Thanks for your help.

Unable To Register A Dll
HI,

I have got a dll which I am unable to register. So I am also unable to reference the dll in a VB project. I have attached the msg I get when I try to register the dll, to this thread.

The dll seems to be made in C/C++. I have details of functions which it exports...It is something like:

void GetFileNames( char *fileNames )

Now how do I call this dll from VB? I know that you can call a dll in win32 format. But what is the format?

thanks
vikram db

Unable To Relay For...
My smtp server answer in this way for addresses out of local domain
"unable to relay for address@domain.com"
What have I to do?

Unable To Make .EXE
Ok. I have been programming in VB for over a year now. I am using VB 6. Out of the blue, I go to make an EXE from one of my projects, and the option is not available. I tried reinstalling the software and rebooting to no avail!!!

I have searched the options and menu items and I cannot see anything that would prevent me from making my EXE.

Am I stupid or am I missing something?

Unable To Solve.
hi,

I have a web browser navigaite that show a web page.

I am using the virtual mouse to automatic click the selection on the web page.(step by step)

But in the web page, there is a prompting box that asking "are u sure"

I try using the virtual mouse again to click the prompting box "OK". but this time round, it seem that the mouse is being freeze due to that prompting box.

I have tried using sendkeys method but still unable to work.

Is there any way to solve this problem.

thank you!

Unable To Update
Hi everyone,

I have code that creates a new record into an access database table. I am using the DataEnviroment screen (I am unsure what type of connection it is.)


I can create a new record then update it but after that, I am unable to save the new data I enter.

Can anyone help?
Thanks
BDS

Here is a sample of my code:

Code:
Public Sub AddNewRecord()
MyDataEnviroment.rsTimeTable.AddNew
'Add Data For New Record.
MyDataEnviroment.rsTimeTable.Update
End Sub

Public Sub cmdUpdateRecord_Onclick()
MyDataEnviroment.rsTimeTable.Update
End Sub

Unable To Add Records
I have been using the following connection and recordset info for several weeks with no problem. For whatever reason it now returns an error when it gets to the .AddNew method that says:

Run-time error 3251
Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype.


Code:
Dim cnn2 As New ADODB.Connection
Dim rs2 As New ADODB.Recordset
Dim cnstr As String
cnstr = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=Transcription;Data Source=SQLSERVER"
cnn2.Open cnstr
With rs2
If .State = adStateOpen Then .Close
.Open "select top 1* from attachments where patientprofileattachmentid = -1", cnn2, adOpenDynamic, adLockOptimistic

.AddNew
End With
I can't add any new records using the above code now.
Any suggestions are appreciated...

JDavis

Unable To CreateProcessWithLogon()
I have a Windows Service which performs some automated operations and executes another application. This another application needs to run under another user account which is a member of Administrators group, but this Windows Service is unable to execute this application, however if i run this application (Windows Service) manually, under my own account (which is member of the Administrators group), this Service is able to execute the application under specified user account smoothly.

This only happens on Windows 2003 Servers. Windows 2000 Servers can perform these operations normally.

Do i need to grant SYSTEM account some special permissions somwhere?

Following is the code which i'm using for this purpose?

Code:
Option Explicit

Private Const LOGON_WITH_PROFILE = &H1&
Private Const LOGON_NETCREDENTIALS_ONLY = &H2&
Private Const CREATE_DEFAULT_ERROR_MODE = &H4000000
Private Const CREATE_NEW_CONSOLE = &H10&
Private Const CREATE_NEW_PROCESS_GROUP = &H200&
Private Const CREATE_SEPARATE_WOW_VDM = &H800&
Private Const CREATE_SUSPENDED = &H4&
Private Const CREATE_UNICODE_ENVIRONMENT = &H400&

Private Const ABOVE_NORMAL_PRIORITY_CLASS = &H8000&
Private Const BELOW_NORMAL_PRIORITY_CLASS = &H4000&
Private Const HIGH_PRIORITY_CLASS = &H80&
Private Const IDLE_PRIORITY_CLASS = &H40&
Private Const NORMAL_PRIORITY_CLASS = &H20&
Private Const REALTIME_PRIORITY_CLASS = &H100&

Private Type PROCESS_INFORMATION
hProcess As Long
hThread As Long
dwProcessId As Long
dwThreadId As Long
End Type

Private Type startupInfo
cb As Long
lpReserved As Long
lpDesktop As Long
lpTitle As Long
dwX As Long
dwY As Long
dwXSize As Long
dwYSize As Long
dwXCountChars As Long
dwYCountChars As Long
dwFillAttribute As Long
dwFlags As Long
wShowWindow As Integer
cbReserved2 As Integer
lpReserved2 As Byte
hStdInput As Long
hStdOutput As Long
hStdError As Long
End Type

Private Declare Function CreateProcessWithLogon Lib "Advapi32" Alias "CreateProcessWithLogonW" (ByVal lpUsername As Long, ByVal lpDomain As Long, ByVal lpPassword As Long, ByVal dwLogonFlags As Long, ByVal lpApplicationName As Long, ByVal lpCommandLine As Long, ByVal dwCreationFlags As Long, ByVal lpEnvironment As Long, ByVal lpCurrentDirectory As Long, lpStartupInfo As startupInfo, lpProcessInfo As PROCESS_INFORMATION) As Long
Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long

Public Function LaunchProcess(ByVal lpUsername As String, ByVal lpPassword As String, ByVal lpDomain As String, ByVal lpApplicationName As String, ByVal lpCommandLine As String)

Dim lpCurrentDirectory As String
Dim StartInfo As startupInfo
Dim processInfo As PROCESS_INFORMATION

lpCurrentDirectory = vbNullString 'use standard directory
StartInfo.cb = LenB(StartInfo) 'initialize structure
StartInfo.dwFlags = 0&

Call CreateProcessWithLogon(StrPtr(lpUsername), StrPtr(lpDomain), StrPtr(lpPassword), LOGON_WITH_PROFILE, StrPtr(lpApplicationName), StrPtr(lpCommandLine), CREATE_UNICODE_ENVIRONMENT & CREATE_NEW_CONSOLE Or CREATE_NEW_PROCESS_GROUP, ByVal 0&, StrPtr(lpCurrentDirectory), StartInfo, processInfo)

CloseHandle processInfo.hThread 'close the handle to the main thread, since we don't use it
CloseHandle processInfo.hProcess 'close the handle to the process, since we don't use it
End Function


Sub Main()
Call LaunchProcess("chuck59", "pwd", "SIGMATIC", "C:projvb6mailsend.exe", "C:mails oday.log")
End Sub


Your advice to debug this issue will be highly appreciated.

Thanks in advance.

Unable To Add A Component To Com+
Hello, first let me apologize if this is posted in the incorrect forum, but I didn't see anything I thought it would fit into better.

I'm having issues with a windows Server 2003 R2 SP2 x64 server. Prior to installing numerous patches and such I installed some Components via Com+ to an empty application. Now however I needed to change one of the components so I recompiled it, stopped the application, deleted the old registration, copied the new component, and tried to re-register it just like I've always done.

It let me go all the way through the registration wizard, and it seems to have completed successfully, but I don't see it listed with the rest of my components. I've refreshed the screen, stopped and started com+, IIS and even rebooted the server, but it still doesn't display either in Components or legacy components.

Anyone have any idea how I could possibly manage this component/ and or register it properly because I need to add an activation string so that I can export this application for deployment on my desktops?

Thanks in advance.
-Luke.

Unable To Register A Dll
Hi all,

I have a dll called EarthServerProd.dll. It was registered. I unregistered it. Changed its name to EarthServerProd_old.dll. Registered a new version of EarthServerProd.dll. Then unregistered the new version and tried to register the old one again (after renaming it again).

This is how I register it...

regsvr32 C:ProjectswebEarthAgatwebEarthAgat_LocalvbcompatEarthServerProd.dll

I get this error message...

<<dll>> is not an executable file and no registration helper is registered for this file type

I've tried multipe copies of the dll and they all give this error message. I've rebooting and it didn't help. I was able to register another dll with a different name.

I'm using XP. Anyone know what is going on?

HELP! Unable To Run My VB Appl. On Win 98
Hi! I've developed an online application using Vb 6.0 Entrtprise Edition and Oracle 8i, on windowz XP machine. Now When I used Package and Deployment wizard , the application runs fine on an XP machine but coz of some dll packed with the software, its not workin on Win 98 machines. Pls can u help me solve this problem. The list of dll encapsulated with the package is:
asycfilt.dll,COMCAT.dll,DAO350.dll,expsrv.dll,MSJET35.dll,msjint35.dll,msjter35.dll,msrd2x35.dll,mss tdfmt.dll,msvbvm60.dll.msvcrt40.dll,oleaut32.dll,olepro32.dll

Please all these dlls are just greek & latin to me. So help me tackle this problem.

Unable To Do UPDATE
M new here.I try to do change my password but unable to change it... The error is the one i put in italic,mentioning Object Variable required... may i know what goes wrong with my code..Please help .Thank you.




VB Code:
....[ If Not CheckPass_Rs.BOF Then            CheckPass_Rs.MoveFirst            str_Password = CheckPass_Rs!Password            If Trim$(UCase$(Old_Tbox.Text)) <> str_Password Then                MsgBox "Invalid old password"                Old_Tbox.Text = ""                NewPass_Tbox.Text = ""                Verify_Tbox.Text = ""                Old_Tbox.SetFocus            Else                [i]oSQL[/i].Execute "UPDATE UserMaster SET Password = '" & UCase$(NewPass_Tbox.Text) & "' where User_Id = '" & UCase$(UID_Tbox.Text) & "'"Call MsgBox("You have successfully chosen a new password", vbInformation, "Password Changed")            End If        End If

Unable To Display Help
Why am I getting the error message 'Unable to display help' when I press F1 in the IDE (VB6)?

It used to work before I formatted my hard drive. Reinstalled MSDN but VB6 can't seem to find it.

Do I have to set the path for MSDN? I don't remember doing this before. Please help...

Unable To Reinstall VB 6.0
I've been trying to reinstall Visual Studio 6 on an
Windows 2000 Professional NT box, but keep getting "xxxxx.ocx
was unable to register itself in the System
Registry," for dblist32.ocx and comct232.ocx. I've
been using Visual Studio on this pc for over a year
now w/o any trouble. I have tried deleting the ocx's
and the associated dependency files (i.e.,
comcat.dll) and reinstalling. I've tried
uninstalling and reinstalling. I've tried taking
the references out of the registry and reinstalling.

Any suggestions

Unable To Install VB
Im having a problem with VB
it kept crashing
so I uninstalled it
Now I cant install it again.

It says it cant register the file -> MSADDNDR.DLL

I dont know why it cant....

PLZ any help would be great!!!

Unable Minimize
How can I prevent from my form to be minimezed when all the other programs are being minimized by Windows?

thanx

Unable To Run A Macro ...
My program runs on a NT network.
On my machine and many others , it works fine. But, on some other machines, it don't.
My problem is : I want to open a word document, and then, execute some macros of this document. But, on some machines it says 'Unable to open this document'
It bugs when I try to execute the macro.


Code:
Private Sub Command1_Click()
Dim wrdApp As Word.Application
Dim wrdDoc As New Word.Document

Set wrdApp = CreateObject("Word.Application")

Set wrdDoc = wrdApp.Documents.Open("\ldpropublicOlivierTest.doc")

'it bugs here :
wrdApp.Run ("Project.NewMacros.Move1")

wrdApp.Selection.Text = "Test"


Do someone have an idea ??

Unable To Add Components !
Hi,
I am unable to add components in VB 6 Enterprise Edition.As soon as I open components and tick something and click OK, VB closes immediately.
What could be the problem ?

I am running VB6.0 on Windows 2000 Professional at office - could it be that I have insufficient rights ??

Thanks,
- Vikram

Unable To Run Program...
I finished up my project, and Made the Exe. It runs fine on my Machine (WinME) but when I try to load it into my other Machine (Win95) it says I need a COMDLG32.OCX. What is this, and where can I get it? (I have The Visual Basic Runtime Files 6.0 install on the Win95 machine too!)

Thanks for all your help

Unable To Select Anything Else. Help
I ran into a problem and it only occurs on NT. I have a program that acts as a shell to start an interface program. When I run this, each time the actual interface program is shelled to, the mouse pointer appears busy. On NT if I am trying to run something else and I click on Start then programs. The interface starts and where ever I was just goes away. This doesn't happen on a 98. Since the process runs every 5 seconds I can't select
anything else fast enough to run anything from the start menu. I thought this may be a problem with some setting on NT. Any suggestions?

Copyright Đ 2005-08 www.BigResource.com, All rights reserved