473,396 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Using Shell Command in vb 6 to call Winhelp file

5
I had a procedure that calls some executable files. When I call .exe files compiled in VB, there's no error but when I try to call the help file which is created in Winhelp 2000, i got an error message and it wont open.

My code is this:
Shell (strPath & "\Help\MANUAL.HLP"),vbNormalFocus

error message is:"Invalid procedure call."

What is in Winhelp file? can anybody have some solutions for this? thanks..
Aug 15 '07 #1
2 3321
pureenhanoi
175 100+
I had a procedure that calls some executable files. When I call .exe files compiled in VB, there's no error but when I try to call the help file which is created in Winhelp 2000, i got an error message and it wont open.

My code is this:
Shell (strPath & "\Help\MANUAL.HLP"),vbNormalFocus

error message is:"Invalid procedure call."

What is in Winhelp file? can anybody have some solutions for this? thanks..
Shell command can call excuteable file (.exe,.com,.bat..)only. you cant use this command to call an helpfile.
To use help file, you must link help file to project (on Project Property Page), or call it dirrectly by API function:

Public Declare Function WinHelp Lib "user32" Alias "WinHelpA" (ByVal hwnd As Long, ByVal lpHelpFile As String, ByVal wCommand As Long, ByVal dwData As Long) As Long
Aug 15 '07 #2
mayo
5
thanks for your help... it works!
Aug 15 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Jeff Wagner | last post by:
I have a project of converting numerous DOS cmd shell scripts to Python. Is there a tutorial to getting started? Thanks, Jeff
8
by: Siemel Naran | last post by:
Hi. I'm writing a command shell that reads commands from standard input. At this point I have the command in a std::string. Now I want to execute this command in the shell. From the Borland...
0
by: Milind Phadnis | last post by:
Hi, I have an application which was developed with Visual C++ 6.0 and MFC. In the application, the CWinApp::WinHelp method was overridden to support context sensitive help (F1 help). The...
3
by: felecha | last post by:
I can get Windows Media Player to start, and play a wav file just fine using a command line "C:\Program Files\Windows Media Player\wmplayer.exe" c:\Temp\temp.wav But I want it to come up from...
5
by: Mavrik | last post by:
Hi all, I run a exe of VBNET on computer A, it run OK. But there is an error (missing DLL - ag8614x_32.dll) when I run the same program in computer B. I search dll on computer A and found at i386,...
4
by: RLN | last post by:
Re: Access 2003/WinXP Pro-SP3 I have a shell command that does not run correctly. I have two programs located on a file server: Pgm1.mdb and Pgm2.mdb Pgm1 launches Pgm2 via a command button...
1
by: hannahg | last post by:
I am trying to incorparate the win zip command line processor in my code on an Access 2003 database form. The code that I downloaded made a call to the windows api. It requires that you use short...
1
by: ohaqqi | last post by:
Hi guys, I'm still working on my shell. I'm trying to implement a function typefile that will take a command line input as follows: > type <file1> This command will implement a catenation of...
3
by: Max Vit | last post by:
I have come across a strange issue whilst trying to use a shell command call from Access and have spent some time trying to figure this out but can't find the cause as yet. The issue is: I need...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.