|
Hi,
that is a secondary issue. Let the managed side provide one or more buffers to the native world, which fills one and tells which one. You don't need to return a pointer for that, a simple ID could do; but if you do return a pointer, keep a Dictionary that maps pointers to Bitmaps, and perform a pointer look-up.
However, if there are only two bitmaps, and you alternate them, there is no need to return anything, alternation is quite predictable!
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Hi Luc.
I did why you told me about sending an Id instead of the buffer pointer. Now it's just a matter of drawing a 8 bit grey scale image on a picturebox without moving too much data.
Thanks for tips.
|
|
|
|
|
Need some direction on how to enumerate local groups and users remotely from a member server using a console app.
Most of the sample code out on the web requires you to know the names of the groups prior to executing the code and the select statements dont ever seem correct. I have used directoryentry to connect to the local servers but directorysearcher seems to always fail.
|
|
|
|
|
I have program that will input an amount of money so I do not want the user to input something like $2.684. I need to be able to count the number of decimals so I can create an if statement that prevents the user from inputting such a number.
|
|
|
|
|
Yes.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
well if you are using a textbox then you will need a number of different validations...
1. Check the currency symbol exists only once and is the first character, if not present you should auto add it
2. Check there is only 1 decimal point
3. Check for any , symbols you may want to include and insure they are in the right places
4. Check only two digits after the decimal place...
if(text.LastIndexOf('.') != text.Length - 3)
//not two digits after the decimal point
...there are other validations you may want to try and other methods to calculate the number of digits after a decimal.
you could also use a NumericUpDown control which has a property to set how many decimal places you wish to use, in addition to choosing if you want to you commas for thousand seperators
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
subtract the integer part
multiply by 100
subtract the integer part, again
if result not equal to 0 then you've got a problem.
|
|
|
|
|
Anyone familar with Dccg which is a software that work with RS232? i try to play around with this software, and hopefully can use my command to control the Motorola Set-top-box through the Dccg. So anyone has any ideas or suggest?
thanks a lot.
|
|
|
|
|
is it Dutch Colorectal Cancer Group [^] you are considering? Please formulate your question so most people can understand it; if applicable, provide a link too.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
|
Sorry about the Non-Clear statement. Again, Dccg stand for DigiCable Control Channel Generator. It is a software for RS232.
|
|
|
|
|
Sorry, I'm not familiar with that one. Google told me there is a Motorola patent, and not much else.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
I had enclosed the datagrid in a <div> element
<code><DIV style="OVERFLOW-Y: auto;</code> . . .
The horizontal scrollbar will move, but the datagrid will not scroll thru the data.
Is there a new way to do this now?
Please advise,
smcirish
Texas
|
|
|
|
|
how do i insert data into 2 dimensional byte array and send it as such over network
This code was posted by me...
|
|
|
|
|
You can't insert into arrays (not 1d arrays either), and you'd have to convert it to a 1d array to send it over the network.
|
|
|
|
|
how do i pass a byte array from one form to another form
This code was posted by me...
|
|
|
|
|
This might not be a very good method to do so, but I overload the Show method of the form being shown, so that it accepts a byte[] as an argument. I then store it in a class-level variable and call base.Show()
Between the idea
And the reality
Between the motion
And the act
Falls the Shadow
|
|
|
|
|
i want to store the processes running on a system in one string and send it as byte over network
if i do so how much a string can hold
or if i use string array will it work??
(i know how to list the process)
This code was posted by me...
|
|
|
|
|
Hi,
if you open a Socket or a NetworkStream you can send as much as you like, either in text (Unicode, ASCII, ...) or in binary (more compact, more compatibility concerns).
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
hello, i write from italy so my english is not so good: i'm sorry
i'm writing a program that should log filter based activity on my computer
i need to log when a document (doc, xls, ppt... etc)
is open, or readed, or is edited, or deleted
in my first attempt was capturing what files are open by all current open processes
for example:
winword.exe > test.doc // someone is reading a document
nero.exe > test.doc // someone is burning a document
but maybe is not a good solution
now, what do you think about this?
how i can do this job better?
hooks?
p.s. i cannot use windows event log for some reason... windows xp home and domains, etc
thank you in advance
|
|
|
|
|
You can try looking to FileSystemWatcher, but, as far as I know, it does not give you info on the process that caused a change.
|
|
|
|
|
It will also not tell you when a file is opened.
|
|
|
|
|
thank you for your answers
other solutions? i can use non-dotnet code too
vb6, c
|
|
|
|
|
Actually there is a LastAccessTime in the File/FileInfo classes; it does not get updated by default. It takes a registry tweak to enable that; I tried it once, it works (as in opening for read gets timestamped) but slows down Windows.
Anyway getting notified about all the files that are being read (assuming FSWatcher can cope) isn't likely to be a very good idea with indexers and AV and the like running all the time...
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
fswatch is good... but sometimes does not work
when i dragdrop a file into nero/neroexpress and burn a cd, or write an image
the file is not catched at all by fswatch
tried with cdburnerxp too and it does not too
anyway, it's a good start.
it's incredible that .netframework cannot get me the process who raised the event...
how can process monitor software (sysinternals) do this?
thanks in advance
|
|
|
|