|
hey
that makes sense and may help
thanks
Martin
life is a bowl of cherries
go on take a byte
|
|
|
|
|
Hi,
My proposal is along the lines of Andy's:
- let the first system create the files of a set, using unique file names
(every OS has a function to provide these, if not include datetime up to
milliseconds and wait 1 millisecond after creating a file)
- when the set is complete, let the first system create a content file
listing all the files of a set;
this file too has a random filename but needs to be recognizable (maybe
by its first char, or by an extension)
- let the second system periodically look for content files; if one is found,
"execute" it, and delete all related files.
- to make sure the content file is complete, have it end on a sentinel
(a fixed line of text, file is invalid if sentinel is missing);
alternatively keep it as short as a single disk sector (512B), then it
can not be a partial file!
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
hey
thanks luc
thats another good idea
Martin
life is a bowl of cherries
go on take a byte
|
|
|
|
|
I have a report in Crystal that gets data from SQL queries and it's slow. How do I use a stored procedure to make the report access data faster?
|
|
|
|
|
Create the stored procedure to return the data from the query that you are using.
CREATE PROCEDURE [dbo].[MySelectProcedure]
@Parm1 int
AS
SELECT *
FROM MainTable MT
LEFT JOIN MyOtherTable OT ON MT.KeyField1 = OT.KeyField1
WHERE MT.MyParmField = @Parm1
Add parameters if you need them. When you are defining a new report in Crystal, you can select a stored procedure exactly like selecting a table. Add your stored procedure as the datasource. If you used parameters in it, they will show up in your parameters list in the report.
Well written stored procedures are absolutely the BEST datasource that you can use for a Crystal Report.
Tom Garth
Developer
R. L. Nelson and Associates, Inc., Virginia
|
|
|
|
|
How can I configure my setup and deployment project to install a barcode font needed for the application it installs?
|
|
|
|
|
I have one dll(Trial.dll) developed in vb.net 2.0 and I gave a strong name through sn.exe -k Trial.snk
and then I created a tlb file using cmd
regasm -tlb Trial.dll tlb:Trial.tlb
and even
regasm -codebase -tlb Trial.dll tlb:Trial.tlb
now I want this registered tlb or dll to be used in foxpro 9.0
but in foxpro when I go to tools->objectBrower->open TypeLibrary and select my tlb I am not able to see any class or methods or properties...
I don't know why
Please help
Thanks
Mital
|
|
|
|
|
FoxPro can't see a straight .NET DLL. It has to be attributed properly so that it is exposed through COM Interop. That's the only way FoxPro is going to be able to use that DLL.
Exposing .NET Framework Components to COM[^]
|
|
|
|
|
Is this possible to scroll the form's title?
Thanks In advance
Ejaz
|
|
|
|
|
It's not supported natively. Depending on how you want the title to scroll, you'd have to add your own drawing code to the form and override the WndProc method, looking for the window messages to tell you to draw your form's non-client area yourself, including the title bar. Warning! This is NOT for the person who does not know how windows work and are drawn.
|
|
|
|
|
If you are just looking to scroll the form's title then you can do it this way...
*
Add a timer to your form (control or class -- doesn't matter)
Set the interval to something like 500
*Declare 2 module variables:
Private msWindowText As String
Private miScrollPos As Int16 = 1
*Place the form's title in the msWindowText string
* In the elapsed event:
Private Sub tmrFlash_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrFlash.Tick
If miScrollPos > msWindowText.Length Then miScrollPos = 1
Me.Text = Mid(msWindowText, miScrollPos) & " " & IIf(miScrollPos = 1, String.Empty, Mid(msWindowText, 1, miScrollPos))
miScrollPos += 1
End Sub
|
|
|
|
|
hi
When I import any picture on my project and use it with any object ,
it I del it form Resources solution folder . a problem occure .. how can i deal with it ..
jooooo
|
|
|
|
|
What problem? Be more specific.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
the problem is >>
you add a picture to a form .. then you indicate the image of it .. the solution add it to Resourses folder . then you del that image from the folder with/without by mistake .. then the programm has error ..
i want to know how to repair that problem withou re add that image to the folder
i hope it's clear
jooooo
|
|
|
|
|
This depends on the version of Visual Studio you're using. But, for the straight forward answer, you have to put the file back in the Resources folder if you want this fixed.
|
|
|
|
|
Hi ..
I designed an applicatoin with two language interface .
then when i changed Language propery . then it's ok .. but when make any changes on the form the VS program hang up ..
but on other solutions it's ok ..
it's only on that solution .
i delete Bin/Debug folder contents and and alos Obj/Debug
but it's still >>>
jooooo
|
|
|
|
|
How do I control a messageboxes results? I know of the msgboxresult.yes/no/ok etc. But I am missing something because when I use this no matter what the result is it still runs the same code when it shouldnt. If someone could please give me a quick example on how to use messageboxes and have different things happen depending on the msgboxresult I would really appreciate it. Thank you...
|
|
|
|
|
Are you using Msgboxresult by itself or comparing what msgbox is returning?
If MsgBox("place question here", MsgBoxStyle.OkCancel) = MsgBoxResult.Cancel Then
End If
|
|
|
|
|
you can try this
If MessageBox.Show("Do you want Exit?", "titleBar", MessageBoxButtons.YesNo, MessageBoxIcon.Question) = DialogResult.Yes Then
'quiting the Application
Else
'Dont Quit
End If
Vuyiswa Maseko
|
|
|
|
|
Dim msgResult As MsgBoxResult = MsgBox("Do you want to SAVE this record?", MsgBoxStyle.YesNoCancel, "DATA HAS CHANGED")
Select Case msgResult
Case MsgBoxResult.Yes
' Save Data
Case MsgBoxResult.No
' Clear the form
Case MsgBoxResult.Cancel
' Do nothing
End Select
Tom Garth
Developer
R. L. Nelson and Associates, Inc., Virginia
|
|
|
|
|
Is there a way to add a radio button as a bound column to a datagrid? I can
not find any info on how to do that
If you have a sample of the code that does it please share
Thank you!!! =D
jyn
|
|
|
|
|
Hi,
do you have any idea how can I take the value of a key with hashtable?
thanks.
|
|
|
|
|
You can iterate over the Keys collection if you want to
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
Is this possible to define listview column type for Date,String and Integer Values?
Thanks In advance
Ejaz
|
|
|
|