|
I agree Chris,
MS HTML Help is a pain to use. I've switched to RoboHelp (www.robohelp.com[^]), haven't looked back since. It's NOT free tho
Hope this helps
Rommel the iCeMAn,
Computer Programmer,
Barbados, West Indies.
|
|
|
|
|
Hello there,
I am trying to get the thumbnail preview of a file to display in an image control when you click on a file, like you see in Explorer. I know not all files support this, and that's ok.
After doing some googleing I found that IExtractImage is the way to go, but I can't find any vb.net code. It's all in c++ or vb6, and when I try to convert the vb6 code, I get a lot of errors/warnings that I can't seem to fix.
If anyone has any ideas of how to go about this, it would be greatly apreciated.
Thank you.
using:
XP
VS 2003
Will
|
|
|
|
|
How can I open the PrintDialog in a WEB form?
I have a crystalreport that I want to send directly(not to pdf, etc.) to a printer on the clients local machine. I've found a way to display available printers(System.Drawing.Printing.PrinterSettings.InstalledPrinters), but it only displays printers on the server, not local.
Thank you for any help!
|
|
|
|
|
First, your question belongs in the ASP.NET Forum.
Second, you can't do it using ASP.NET. ASP.NET only generates HTML that the browser can display. It has absolutely no control over the client. You'll have to come up with a JavaScript solution that the client can run itself.
No, don't ask me for an example because I don't have one.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have a function in a VC Dll that has arguments which are LPCTSTR.
I am trying to call the function in VB, but I'm having problems.
I declared the function in VB as follows:
Private Declare Function function_name Lib "dll_name" _
(ByVal arg1 As String, ByVal arg2 As String) _
As Boolean
Both arg1 and arg2 are LPCTSTR.
Does anyone know how to use a DLL function that has LPCTSTR arguments?
Thanks.
|
|
|
|
|
Hi there. I think the declaration of ByVal arg2 as String is correct for working with LPCTSTR types. I wonder if declaring the return type as Boolean is where the problem is. Try declaring the return type as Long instead.
|
|
|
|
|
The return type in the DLL is Boolean. I tried declaring the return type as Long, but it doesn't seem to work.
I'm trying to set an If statement to ensure the function is working properly:
Dim errtcp As Long
errtcp = function_Name(txtip, txtport)
If errtcp = 0 then
isopen = true
else
msgbox "error"
exit sub
end if
The function always seems to open, errtcp = 0, even though in certain cases I know it should not work.
Do you have anymore ideas?
|
|
|
|
|
Hi there. So the function is being called successfully then, and seemingly returning 0 in all cases? Would you have the source code for the C function itself?
|
|
|
|
|
Here is the C code:
#if defined(_WIN32) || defined(WIN32) || defined(__WIN32__)
#define API__declspec(dllexport)
#else
#define API
#endif
API boolean function_name(LPCTSTR arg1,LPCTSTR arg2 );
I'm thinking the API has something to do with my problem.
Thanks for your help!!
|
|
|
|
|
Hi
I you must use __stdcall in the functions exported to VB:
(if I remember correctly) the usage is like this:
<br />
API __stdcal boolean function_name(LPCTSTR arg1,LPCTSTR arg2 );<br />
|
|
|
|
|
Sorry about that. Here is the code I am using. I already updated to _stdcall. I submitted the old version of the code by mistake.
#if defined(_WIN32) || defined(WIN32) || defined(__WIN32__)
#define API
#define CALL __stdcall
#else
#define API
#define CALL
#endif
API boolean CALL function_name( LPCTSTR arg1,LPCTSTR arg2);
The function is recognized in VB fine, I just can't seem to pass the arguments properly. Any Ideas??
|
|
|
|
|
i need to print report using datareport but i want to give query in runtime but i know how to parse query using data environment
leo
Kathmandu, Nepal
|
|
|
|
|
I have a problem.I am trying to post data from vb.net file to php file.I have achieved this issue in asp file,but I can't realize on php file.Here is my pseudocode for asp file:
Request = WebRequest.Create("http://" & Me.TextBox3.Text & ":" & Me.TextBox4.Text & "/default.php")
Request.Method = "POST"
Dim vHeaders As Object
vHeaders = "Content-Type: application/x-www-form-urlencoded" + Chr(10) + Chr(13)
Dim sUserNameParameter As String = "UserName="
Dim sPasswordParameter As String = "Password="
Dim sPostData As String = sUserNameParameter & Me.TextBox1.Text & "&" & sPasswordParameter & Me.TextBox2.Text
Dim oByteString() As Byte
oByteString = ASCIIEncoding.ASCII.GetBytes(sPostData)
Request.ContentType = vHeaders
Request.ContentLength = oByteString.Length
Dim myStream As Stream
myStream = Request.GetRequestStream()
myStream.Write(oByteString, 0, oByteString.Length)
myStream.Close()
Request.Timeout = 10000
Respond = Request.GetResponse()
After that code , I take the response from the asp file and I process the data belonged to the response.
So, How can I post data to php file served by apache server?
Thanks...
|
|
|
|
|
Hi People,
After several unsuccessful attempts to use Outlook 2002/ 2003/ Exchange rules, I am unable to autoreply to all mesages received to a particular inbox.
I have set up a new mail enabled user with the sole purpose of autoreplying to messages sent to a distribution list of which this new user is a member.
Are any of you VBS guru'a able to come with something which would do the trick?
Many, many thanks in advance
|
|
|
|
|
I am binding a class object to datagrid.But it is not editable.I want to make it editable.can anyone help me.....
|
|
|
|
|
Hi, i have an item in my tree view as the below structure.
Fruite
A
Apple
B
Banana
C
Sport
F
Football
R
Running
S
Swimming
In this view I assume that Fruite and Sport item is located in the 1st level. For A, B, C, F, R and S is located in the 2nd level and Apple, Banana, Football, Running and Swimming is locate in the 3rd level. My question is, in the run time my user choose Foodball (mean they choose the 3rd level) how could I prompt the user that they choose the 3rd level? Or if they choose S , How could I know that they choose the 2nd level? Can anyone give me a sample code to do that?
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
How to pack MSDE with the .Net setup and set a sequence that MSDE is installed first and then the application.Although bootstrapper helps in installing MDAC and .Net framework on the target machine if they are not found, how can we set a sequence in bootstrapper to install MSDE.
|
|
|
|
|
Short answer:
1. Install the bootstrapper on your development machine
2. Create a setup project for your app
3. Use the bootstrapper to mask your setup project.
Long(er) answer:
1. you do not have to setup any sequence. The MSDE bootstrapper has the sequence built in already
(Install .Net, Install MSDE, Install your app). You cannot change that sequence. That is all the bootstrapper does.
2.There are some configuration options but they relate to whether you want to use a strong password on the sa account (of MSDE) and/or hard coded paths for the databases. Also some settings for what to dislay in prompts and such...
3. The bootstrapper doc is typical MS (sparse and cryptic) but the bootstraper is so simple that the MS documentation is all you need.
|
|
|
|
|
I'm trying to use bootstarpper for deploying msde but to no sucess.tell me in how to use it
|
|
|
|
|
|
i m using the same toolkit sample the problem is at step 3 of MSDE Bootstrapper it says the location does not contain any valid MSDE files which i have populated with sql database file and if u can tell me what to put for four value in the combo box.
|
|
|
|
|
If you are referring to the window that reads
"MSDE 2000 bootstrap loader configurator (Page 3 of 6)", you need to choose a location for EACH of the values in the combo box.
None of those values is the location of YOUR database. Your database should
be packaged with your application's intallation files and the restoring of it
done either manually or programatically by your application. The bootstrapper does NOT do restoring of databases.
The value that should go in the "MSDE Files" option is the location where the MSDE installation files are (the files you'd run if you wanted to install MSDE manually). Nothing to do with your database.
The value should be drive:\whereveryouinstalledthedeploymentkit\template\cd\msde\
As far as your database files are concerned, they should be added to your apps setup package as just another file(s). Then the person who installs the app restores the database manually, OR you write some code in your app that checks for the db and restores it if not there.
Hope this helps.
|
|
|
|
|
Using mapi32.dll with vb.net to compose and show a new mail message with attachments works with Outlook Express but not Outlook 2000. I can bring up a message in Outlook 2000 ONLY if it doesn't have attachments. The error returned while trying to attach files is "Unspecified Error"! Anybody knows what's up?
|
|
|
|
|
Cannot access attachments
http://support.microsoft.com/?kbid=318515
|
|
|
|
|
The files I'm trying to attach are jpg picture files. They are not in the level 1 (unsafe) category. I turned off the security for attachments and it didn't make any difference.
|
|
|
|