Check Whether The Barcode Reader Read A Barcode Hi,
Retalix produce the touch-screen and barcode software for the UK supermarket store i work for.
See >>
http://www.retalix.com/index.cfm pageid=544
http://www.retalix.com/index.cfm pageid=512
See also all of these that deal with EPOS ( Electronic Point Of Sale ) systems.>>
http://www.google.co.uk/search hl=en&ie=ISO-8859-1&q=epos&meta =
Regards,
S_DS
Tag: Visual Basic General Anyone have used RTP ( RTC 1.3 ) in VB.NET ? Visual Basic
Search query using search term from user input into TextBox Dim command As New SqlCommand("SELECT * FROM MyTable WHERE MyColumn LIKE @MyColumn", connection)
command.Parameters.AddWithValue("@MyColumn", TextBox1.Text & "%")
For "SqlCommand"
The error I get is:
Type 'SqlCommand' is not defined. Tag: Visual Basic General Anyone have used RTP ( RTC 1.3 ) in VB.NET ? Visual Basic
Saving an Image to an Access Database - Need help inserting an Image into an Access database. I am using Visual basic 2005, and an Access 2003 mdb.
I found this example on MSDN. This example was using a SQL database, so I change the System.Data.SqlClient to System.Data.OleDb. No luck.
Any help would be greatly appreciated
Thanks in advance -James
MS example:
Create a SQL Server or Access table with the following structure:
CREATE TABLE BLOBTest ( BLOBID INT IDENTITY NOT NULL, BLOBData IMAGE NOT NULL )
Add the following Imports statements at the top of the form's code module:
Imports System.Data Imports System.Data.SqlClient Imports System.IO Imports System.Drawing.Imaging
Add the following declaration for the database connection string below Public Class Form1 , and then modify the connection string as necessary for your environment:
Dim strCn As String = "Data Source=<server>;" &
_"Initial Catalog=<database>;Integrated Security=SSPI"
Add the following code in the Click event procedure of Button1 ( File to Database ). Modify the file path to an available sample image file as necessary. This code reads the image file from disk (by using a FileStream object) into a Byte array, and then inserts the data into the database by using a parameterized Command object.
Dim cn As New SqlConnection(strCn) Dim cmd As New SqlCommand("INSERT INTO BLOBTest (BLOBData) " & _ "VALUES (@BLOBData)", cn) Dim strBLOBFilePath As String = _ "C:\Documents and Settings\All Users\Documents" & _ "\My Pictures\Sample Pictures\winter.jpg" Dim fsBLOBFile As New FileStream(strBLOBFilePath, _ FileMode.Open, FileAccess.Read) Dim bytBLOBData(fsBLOBFile.Length() - 1) As Byte fsBLOBFile.Read(bytBLOBData, 0, bytBLOBData.Length) fsBLOBFile.Close() Dim prm As New SqlParameter("@BLOBData", SqlDbType.VarBinary, _ bytBLOBData.Length, ParameterDirection.Input, False, _ 0, 0, Nothing, DataRowVersion.Current, bytBLOBData) cmd.Parameters.Add(prm) cn.Open() cmd.ExecuteNonQuery() cn.Close()
My Code:
I am getting an error on the highlighted line.
Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim cn As New System.Data.OleDb.OleDbConnection(strCn)
Dim cmd As New OleDb.OleDbCommand( "INSERT INTO BLOBTest (BLOBData) " & "VALUES (@BLOBData)" , cn)
Dim strBLOBFilePath As String = "C:\Documents and Settings\All Users\Documents" & "\My Pictures\Sample Pictures\winter.jpg"
Dim fsBLOBFile As New FileStream(strBLOBFilePath, FileMode.Open, FileAccess.Read)
Dim bytBLOBData(fsBLOBFile.Length() - 1) As Byte
fsBLOBFile.Read(bytBLOBData, 0, bytBLOBData.Length)
fsBLOBFile.Close()
Dim prm As New OleDb.OleDbParameter( "@BLOBData" , SqlDbType.VarBinary, bytBLOBData.Length, ParameterDirection.Input, False , 0, 0, Nothing , DataRowVersion.Current, bytBLOBData)
cmd.Parameters.Add(prm)
cn.Open()
cmd.ExecuteNonQuery()
cn.Close()
End Sub Tag: Visual Basic General Anyone have used RTP ( RTC 1.3 ) in VB.NET ? Visual Basic
Events for custom control in datarepeater?? Hello, How do you access custom control events in a datarepeater In the custom control I have the folloeing code: Event ButtonClick() Private Sub Command1_Click() RaiseEvent ButtonClick End Sub This event triggers when the custom control is in a form, but I can't seem to get it to work when it is in a datarepeater. Advise please Kind regards Laurie Tag: Visual Basic General Anyone have used RTP ( RTC 1.3 ) in VB.NET ? Visual Basic
runtime resize picturepox as my form is being resized at runtime I need to resize a picturebox as a function of the horizontal size of the form. Could you point me to the parm that inform me of the event that the size of the form changed Tag: Visual Basic General Anyone have used RTP ( RTC 1.3 ) in VB.NET ? Visual Basic
Detect of form maximize Hi there,
I have an application with a datagrid on it. I want to be able to resize one of the columns within the datagrid based on if the screen is maximized or not. I have anchored all of the fields on the form, but the columns of the datagrid don't change. I figure that I can change the width of the column, but I need to be able to detect when the user clicks on the 'Maximize' button in order to set this value.
If anyone has any suggestions, I would greatly appreciate it. Thanks! - Eric - Tag: Visual Basic General Anyone have used RTP ( RTC 1.3 ) in VB.NET ? Visual Basic
2 Buttons 2 Hotkeys Here is the problem I have a form open up with two buttons for a two player game.
Button 1(z) is player one and Button 2(m) is player two first one to push their hotkey will continue.
I finally have it so the z button works when I push it but because that button is in focus. I need it so neither button is in focus so that either can push the button at any time. Tag: Visual Basic General Anyone have used RTP ( RTC 1.3 ) in VB.NET ? Visual Basic
Hi, Tailor POINT is a STRUCTURE with more than one property and is treated as a single item.
Hi,
Tailor POINT is a STRUCTURE with more than one property and is treated as a single item.
Dim myArray() As Point
is a one-dimensional (single ) unbounded array.
Point has the following properties in it's STRUCTURE
Ceiling
Empty
Equals
GetHashCode
GetType
IsEmpty
Offset
Round
ToString
Truncate
Round
X
Y
The last two lines of>>
Dim myArray() As Point
myArray(0).X = 20
myArray(0).Y = 20
refer to the same point in an array but refer to the POINT X element and the POINT Y element respectively.
Does that clear it up
Sorry i can't help much with the SQL side at the moment.
I'm trying to figure that out myself for an assignment i need to do for my university course.
Regards,
S_DS
P.S.
Here is a STRUCTURE example and a bit more code to show you what a
STRUCTURE looks like.>>
Structure myComputer
Dim hardDriveSize As Integer 'In Gigabytes
Dim cdOrDVDDrive As Boolean
Dim cdorDVDDriveType As String
Dim memorySize As Integer 'In Mb
Dim osTypeAndName As String
End Structure
Dim newComputer1 As New myComputer
'Example of an array of a STRUCTURE which is
'a single item with more than one property ( usually ). >>>>
Dim myWorkPlaceComputers() As myComputer
'Other code not connected with the array but with newComputer1 >>>>
newComputer1.cdOrDVDDrive = True
newComputer1.cdorDVDDriveType = "DVD Muliti format + - and Ram"
newComputer1.hardDriveSize = 320
newComputer1.memorySize = 768
newComputer1.osTypeAndName = "Win XP Pro Sp2"
Tag: Visual Basic General Anyone have used RTP ( RTC 1.3 ) in VB.NET ? Visual Basic
AES encryption Hi
I would like to utilize AES encryption, but it seems that it isn't support in the .net framework - any suggestions og how to implement it Tag: Visual Basic General Anyone have used RTP ( RTC 1.3 ) in VB.NET ? Visual Basic
replace isdate with string.gettypecode? Hi Cwillsh,
Based on your post, my understanding of your question is that you need to use the IsNumeric function.
As far as I know, the Microsoft.VisualBasic namespace contains the classes, modules, constants, and enumerations that constitute the Visual Basic run-time library. You don't need to manually add reference to these libraries. It is your run-time library. So you can use these library members in your code. I recommend you use the built-in versions of these functions in your VB.NET application. If you need to know the implementation of IsNumeric function, you can use the Reflector tool to check the implementation of the function.
Best regards,
Riquel Tag: Visual Basic General Anyone have used RTP ( RTC 1.3 ) in VB.NET ? Visual Basic
Using filesystem object in Visual Studio 2005 The following code fragment causes a " character to be written to both the start and end of a record that I write out to a new file. The original file does not contain these " characters at the start and end of each record. However it does contain # and \ characters at the start. (I have not included the openshare syntax because I dont think this is relevant)
The code is as follows;
Imports System.IO
Dim inputRec as string, outputRec as String
FileSystem.FileOpen(1, "C:\InFile", OpenMode.Input, OpenAccess.Read)
FileSystem.FileOpen(2, "C:\OutFile", OpenMode.Output, OpenAccess.Write)
Do Until EOF(1)
inputRec = FileSystem.LineInput(1)
outputRec = inputRec
FileSystem.WriteLine(2, outputRec)
Loop
FileSystem.FileClose(1)
FileSystem.FileClose(2) Tag: Visual Basic General Anyone have used RTP ( RTC 1.3 ) in VB.NET ? Visual Basic
Tips on overriding/disabling some basic Windows functions? I'm trying to make a fool-proof alarm clock - I have the darndest time waking up to an alarm in the morning, mostly because I can hit the snooze button in my sleep. I've got an alarm clock on my computer, but it's quite easy to just X-out of it or turn the volume down to shut it up and go back to bed.
So, I'm looking for a way to make a program that:
Can't initially be closed (I plan to make it so you have to do some basic math problems or something to shut it off)
Resets the computer's audio level if the user tries to mute it
If possible, disallows access to stuff like Shut Down/Restart/Hibernate (which could be accomplished by making the program run full-screen, if someone can explain how to do that too)
Any tips are appreciated. Tag: Visual Basic General Anyone have used RTP ( RTC 1.3 ) in VB.NET ? Visual Basic
byte array to binary string I have a standard byte array but I need each byte as a binary string, including all 8 bits. I use the convert method to get the byte as a string can't get the preceeding zero's if there are any in the binary representation.
Dim array(2) As Byte
a(0) = 10
a(1) = 0
Dim c As String = convert.tostring(a(0),2) ---> '1010 '
but i need 00001010 - any help would be greatly appreciated Tag: Visual Basic General Anyone have used RTP ( RTC 1.3 ) in VB.NET ? Visual Basic
ByVal and ByRef differences are demonstrated here. strings can hold a lot more than 65535 chars in .NET, I believe it actually can vary on a given system based on the amount of memory available. Needless to say, you can generally make VERY LARGE strings...
Here is info from MSDN documentation on value and reference types:
data type is a value type if it holds the data within its own memory allocation. A reference type contains a pointer to another memory location that holds the data.
Value Types
Value types include the following:
All numeric data types
Boolean , Char , and Date
All structures, even if their members are reference types
Enumerations, since their underlying type is always SByte , Short , Integer , Long , Byte , UShort , UInteger , or ULong
Reference Types
Reference types include the following:
String
All arrays, even if their elements are value types
Class types, such as Form
Delegates
Elements That Are Not Types
The following programming elements do not qualify as types, because you cannot specify any of them as a data type for a declared element:
Namespaces
Modules
Events
Properties and procedures
Variables, constants, and fields Tag: Visual Basic General Anyone have used RTP ( RTC 1.3 ) in VB.NET ? Visual Basic
ERROR: Unrecoverable build error when building Setup project in VS.Net 2005 Damn! I've just reinstalled VS2005, after removing everything about it and .NET Framewok 2.0 and 1.1. But the problem still appears. I don't know what to do. Creating an empty project setup it succesfully builds, but adding the primary output from the project i want to distribuite, the build process always fails. I hope for suggestions from MS. I don't think about reinstalling Windows. It may be the solution, but i'm afraid of the problem still remains. Skynet Tag: Visual Basic General Anyone have used RTP ( RTC 1.3 ) in VB.NET ? Visual Basic
can labels have focus? I have an app that dynamically builds the user interface screen from a database table. It populates textboxes, checkboxes and labels, etc. Part of the app allows the user to move the objects to new positions and records them in the db table. When an object is selected with the mouse I loop thru the controls collection to see which object has focus and then do stuff. This works fine EXCEPT for labels. When I click on a label the it never has focus as in : For Each ctl In Container.Controls MsgBox(ctl.Name & ctl.Focused) If ctl.Focused Then cSelectedName = ctl.Name StatusBar1.Text = "Selected: " & cSelectedName End If next Can labels not receive focus If so, How else can I tell which object has been clicked on Thanks Kim Allbritain Tag: Visual Basic General Anyone have used RTP ( RTC 1.3 ) in VB.NET ? Visual Basic
Issues with WebBrowser Control browsing files Hello I'm making a application i VB express 2005 using the built in WebBrowser control. It works great for browsing the internet, and it works great for browsing your local hard-drive (c:\) or memory stick. The problem however is when I'm entering the local office server. (X:\ in this case). Every time i want to open a file using the WebBrowser control im given a security warning telling me "It can be damaging to run a systemcommand on this element. Do you want to continue " Picture: http://www.pinjaweb.net/cncs/webcontrol01.jpg Now this is extremely anoying and unwanted. As this program will be used to open tens to hundreds of files each day. My drag and drop file ability within the webBrowser window also disappears when im surfing on the local file server (x:\). But works without any flaws when im using it on my local c:\ hard drive. Side note: If i run Explorer and go to my local file server x:\ i never get the warning on opening files, nor loose my drag and drop ability. Other Info: WindowsXp Sp2 IE 7 Visual Basic 2005 Express Help is appreciated at the highest levels of appreciating. Thank you for your time! Tag: Visual Basic General Anyone have used RTP ( RTC 1.3 ) in VB.NET ? Visual Basic
Timer Ticks Twice Hi All
I am experiencing a small problem (challenge). I have a VB.net (2003) windows service that fires off a routine every 2 minutes. In fact, it executes an external program, so it doesn't really do much. Everything is great until I try to add threading to the process, either by way of the
Imports System.Threading
statement directly, or by referencing a library that includes that line. When this is done, the OnTick event is fired twice. For example, the following is logged, so it seems to be serial, not simultaneous (Can't be sure though).
---------------------------------------------------------------------------- 09:11:43:S001 Service Started ---------------------------------------------------------------------------- 09:13:44:Timer Ticked - Interval = 120000 09:13:52:Timer Ticked - Interval = 120000 ---------------------------------------------------------------------------- 09:14:04:S002 Service Stopped ----------------------------------------------------------------------------
I think Olle probably had the same problem here some time ago.
When the same code runs in a console application, the time fires once. When references to threading are removed, the timer fires once. In a service with threading - twice!
Any ideas anybody
David Tag: Visual Basic General Anyone have used RTP ( RTC 1.3 ) in VB.NET ? Visual Basic
Save Before Exit Yes, I guess you are using VB 2003, disregard that post, very sorry. As for the looping issue, I don't seem to have this problem. Tag: Visual Basic General Anyone have used RTP ( RTC 1.3 ) in VB.NET ? Visual Basic
XML Serialization Hi,
I am developing desktop applications using .NET 1.0, 1.1 thru VS 2002, 2003. I need your help. I want to serialize and deserialize the following xml file. please send me your suggestions or links.
<Details>
<card id="4075035"> <Url>www.test.com</Url> <Country>India</Country> <Infoid>823733</Infoid> <sample type="jpg">test.jpg</sample> </card>
<card id="63454">
..........
.........
</card>
</Details>
Thanx.
GANESAN MURUGESAN Tag: Visual Basic General Anyone have used RTP ( RTC 1.3 ) in VB.NET ? Visual Basic
Looking for certain Icons In VS 2005 .NET , whenever you go to File - New - File , a window opens and lets you select what type of file you want to create. Above the "Templates" section there are two icons. Where can i find those to include in my project
I have recreated that screen but I lack the two buttons. Please help me if you can.
Thanks,
QWERTYtech Tag: Visual Basic General Anyone have used RTP ( RTC 1.3 ) in VB.NET ? Visual Basic
sum of Time values If you are storing a value that represents elapsed time, then the first thing to do is store the value as a number of your precesion (not time)...for example if you are storing minutes elapsed then I would use an integer field to store whole minutes and then when I need to retrieve and display the number as a time value I would use the timespan class as Tada suggested Tag: Visual Basic General Anyone have used RTP ( RTC 1.3 ) in VB.NET ? Visual Basic
Could you tell me the type of your applications? Hello. I have a question on user settings. When I install another version of my application on a customer PC I lost old users settings. Could anyone say me how could I retrieve them when I install a new version of my application
Thanks... Tag: Visual Basic General Anyone have used RTP ( RTC 1.3 ) in VB.NET ? Visual Basic
Calling Win32 API ReadFile - have problem with the buffer/stringbuilder I'm using vb.net 2005 to call ReadFile API to read disk boot sector. I have some problem with the second paramenter. I tried byte array, string, stringbuilder, nothing seems work out. Most of the time, I got error code 87 (basically parameter marshalling problem). I can use Stringbuilder to get the program to run, the problem is when the data is returned from API, the string is prematurelly terminated because byte 8 is 0 (my guess. )
The first 7 bytes read correctly by the programm (JUMP pointer, "NTFS"). Anything beyond the 7 byte is out of bound. This is ok in C; my vc++ test program uses char[512], that runs correctly. I just want to know how to do this correctly in VB.net.
Here's the entire code for a vb 2005 console app. Feel free to test it out.
Imports System Imports System.Runtime.InteropServices Imports System.Text
Module Module1 Public Const GENERIC_READ As Int32 = &H80000000 Public Const GENERIC_WRITE As Int32 = &H40000000 Public Const OPEN_EXISTING As Int32 = 3 Public Const FILE_ATTRIBUTE_NORMAL As Int32 = &H80
Public Const FILE_SHARE_READ = &H1 Public Const FILE_SHARE_WRITE = &H2 Public Const INVALID_HANDLE_VALUE = -1 Public Const INVALID_SET_FILE_POINTER = -1 Public Const FILE_BEGIN = 0
Public Structure SECURITY_ATTRIBUTES Dim nLength As Integer Dim lpSecurityDescriptor As Integer Dim bInheritHandle As Boolean End Structure Public Declare Auto Function ReadFile Lib "Kernel32.dll" ( _ ByVal hndRef As Integer, ByVal lpBuffer As StringBuilder, _ ByVal numberOfBytesToRead As Integer, ByRef numberOfBytesRead As Integer, ByVal flag As Integer) As Boolean
Public Declare Auto Function CreateFile Lib "kernel32.dll" (ByVal lpFileName As String, _ ByVal dwDesiredAccess As Int32, ByVal dwShareMode As Int32, ByRef lpSecurityAttributes As SECURITY_ATTRIBUTES, _ ByVal dwCreationDisposition As Int32, ByVal dwFlagsAndAttributes As Int32, ByVal hTemplateFile As IntPtr) As Integer
Public Declare Auto Function SetFilePointer Lib "kernel32" (ByVal hFile As IntPtr, _ ByVal lDistanceToMove As Integer, ByRef lpDistanceToMoveHigh As Integer, _ ByVal dwMoveMethod As Integer) As Integer
Public Declare Auto Function CloseHandle Lib "kernel32.dll" (ByVal hObject As IntPtr) As Boolean
Sub Main() Dim i As Integer Console.WriteLine("try to read a logic drive's first sector(s) (assume 512)") Dim handle As Integer, ret As Integer, nRead As Integer Dim s As Integer = 512 Dim ReadBuffer As New StringBuilder(s)
handle = CreateFile(" \\.\C :", GENERIC_READ Or GENERIC_WRITE, FILE_SHARE_READ Or FILE_SHARE_WRITE, _ Nothing, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, IntPtr.Zero)
If (handle <> INVALID_HANDLE_VALUE) Then ret = SetFilePointer(handle, 0, Nothing, FILE_BEGIN) If (ret <> INVALID_SET_FILE_POINTER) Then If (ReadFile(handle, ReadBuffer, s, nRead, 0&)) Then Console.WriteLine("Number of bytes read is " & nRead) For i = 0 To nRead - 1 Console.WriteLine(Convert.ToInt32(ReadBuffer(i))) Next
Else Console.WriteLine("ReadFile Error code" & Marshal.GetLastWin32Error()) End If Else Console.WriteLine("SetFilePointer Error") End If CloseHandle(handle) Else Console.WriteLine("Fail to create file") End If End Sub
End Module Tag: Visual Basic General Anyone have used RTP ( RTC 1.3 ) in VB.NET ? Visual Basic
Console.Write from Windows Forms Application I maybe missing something but couldn't you just create a console app that accepts the error message as a parameter and start that from the other app Tag: Visual Basic General Anyone have used RTP ( RTC 1.3 ) in VB.NET ? Visual Basic
How can I create an array of label !!! My code looks like this : Dim lb(10) As System.Window.Form.Label Dim i As Integer For i=0 to 9
lb(i) = New System.Window.Form.Label() lb(i).Text = "test" lb(i).Visible = true Me.Controls.Add(lb(i)) next I'll be so glad to get some solution ^^ Tag: Visual Basic General Anyone have used RTP ( RTC 1.3 ) in VB.NET ? Visual Basic
Images on buttons - Changing them dynamically and ensuring constancy Hi, I'm trying to acheive two things, but as they are both with images and buttons, I have combined them into one posting. Firstly, I want to make the image on a button dynamic. Just a snippet of code to show how to change it will be enough (googling found me lots of sites showing how to manually change it in the properties). Secondly, I want to have a central repository of images throughout my whole application, which each form will use. If I change the image in the central repository, I'd like the change to be reflected throughout the project (all forms). Is this possible Thanks. Tag: Visual Basic General Anyone have used RTP ( RTC 1.3 ) in VB.NET ? Visual Basic
unable to enter data in textbox- Access 2000 i am unable to enter a numeric value in a textbox. i converted a db from 97 to 2000. i just read that there may be some conversion problems and in particular one of the problems lies with the text boxes. microsoft instructs users to remove the textbox and then re-add it. i did that, changed the control so that it was unbound too, still can't enter anything. any suggestions how i can overcome this i completely redid my form to resolve this issue. I am doing the following to select my record (which it does), but the problem occurs when the user tries to insert a value in the text box for 'number of dubs'.
Code Snippet
===CODE=====
Private Sub editrec_Click() Dim dbs As Database Dim rs As DAO.Recordset Dim sShow As String Set dbs = CurrentDb() sShow = "Select * from [tbl_request item] WHERE [fk request ID] = " & Form_frmTapeRequestItemsV2.[fk request ID] & _ " and [fk tape ID]= " & Form_frmTapeRequestItemsV2.[fk tape ID] Set rs = dbs.OpenRecordset(sShow) MsgBox "You have selected Tape: " & rs![fk tape ID] & " for editing. You can now enter the # of Dubs." txtdubs.BackColor = vbYellow DoCmd.SetWarnings True Exit_EditRow_Click: Exit Sub Err_EditRow_Click: MsgBox Err.description Resume Exit_EditRow_Click End Sub Private Sub updateRecord() On Error GoTo Err_updateRecord DoCmd.SetWarnings False Dim sUpdate As String sUpdate = "Update [tbl_request item] SET [Number of Dubs]=" & Forms!frmTapeRequestItemsV2!txtdubs & _ "WHERE [fk request ID]= " & Forms!frmTapeRequestItemsV2![fk request ID] MsgBox "Record" & [fk tape ID] & "updated successfully. Thank you." DoCmd.SetWarnings True Exit_updateRecord: Exit Sub Err_updateRecord: MsgBox Err.description Resume Exit_updateRecord End Sub Tag: Visual Basic General Anyone have used RTP ( RTC 1.3 ) in VB.NET ? Visual Basic
opening a file Along the same lines, does anyone know why I ran into this problem. I'm working with 'Microsoft Visual Basic 2005: Step by Step' and I completed the program, MyWebLink in chapter 3. It worked perfectly. Then, getting bold, I changed the program to allow me to open a Microsoft Word file. I used the following code:
' Note the space in the file name. '
System.Diagnostics.Process.Start("winword.exe", "c:\my file.doc")
The document filename was relatively long and included spaces. Microsoft Word opened without a problem, but it had difficulty opening the file and claimed that it couldn't find the file. In fact, Microsoft Word generated an error report that it sent back to Microsoft regarding this issue. I double-checked my syntax and verified that all was correct. However, when I changed the filename to be only a single word (with no spaces), things worked great. The code looked like this:
' Note there is no space in the file name. '
System.Diagnostics.Process.Start("winword.exe","c:\myfile.doc")
Can someone tell me why this might have been the case and how I might avoid this problem in the future. Almost ALL of my document files are longer than 8 characters and almost ALL contain spaces. Is there another procedure for accomplishing this task Thanks, in advance, to anyone with the answer! I, too, am a bit noobish right now... Tag: Visual Basic General Anyone have used RTP ( RTC 1.3 ) in VB.NET ? Visual Basic
fortran dll Hello,
Thanks for your answer...
I created my macros with Excel (Microsoft office excel 2003), and once again those functions worked well in the computer which had fortran compiler. When I tried to create that same macro (or at least same kind of macro) in another computer which lacks fortran compiler, I get that "Can't find dll"-error message.
Declare Function test Lib "(the name of my dll)" (T As Single) As Single
That sentence above is the declare statement I've wrritten in VB6 (It is inside the "module").
So as you already figured it out, the question is related to VB6.
Office 2003 is used in this company. I have also created that same macro in VBA (at least I think so). I opened plank excel document and from there I went Tools=>Macro=>Visual basic editor=> then I wrote my macro. Still the dll works just fine despite the environment I created it (VBA or VB6).
How do I find out does or does not my functions call routines in the compiler
I can not tell the name of the functions because they are corporate related.
br, vbfortran Tag: Visual Basic General Anyone have used RTP ( RTC 1.3 ) in VB.NET ? Visual Basic
viskar
Can anyone guide me how can i setup the rtp audio device property in vb.net