|
The u can just change the Color depth of ur monitor and
them try it.
Regards,
Pramod
|
|
|
|
|
|
|
Hi,
I have mapped the following code:
public long GetDlgText(long DlgId, long FldId, long Row, long Col, BSTR* Text);
to:
unsafe public long GetDlgText(long dlgid, long fldid, long row, long col, string* text);
but, off course, you cannot use * on string variables (all the rest, no problem, but string, it seems, is a 'no, no')
know I'm not sure how C# passes parameters.
I would think that it passes the value because you can use the ref keyword without the unsafe statement and I thought ref string mystring was the same as CString &mystring for example.
So is it enough for me to just write string text instead of string* text and if not, what should I do then?
[EDIT]mm, know I'm at it how can you map the keyword FAR?
eg.:
public long FormatSecProjCoord(double easting, double northing, string* e_str, string FAR* n_str){<br /> [/EDIT]
tnx!
No hurries, no worries.
-- modified at 7:07 Monday 20th March, 2006
|
|
|
|
|
Your mappings should look like this.
public ing GetDlgText( int dlgid, int fldid, int row, int col, [MarshalAs(UnmanagedType.BStr)] string text );
You don't need to map the key word far. The interop marshaler takes card of that.
I hope this helps.
Deus caritas est
|
|
|
|
|
Dude,
thank you so much, I was already looking into the attributes, but couldn't find the appropriate (is there a link to a page with the possibilities? I couldn't find one)
thanks
No hurries, no worries.
|
|
|
|
|
Im using serial port communication in my application.
In the firmware side i sent 1000 data/millisec.
the theme of my project is "No lose data in capturing time"
how can i maintain the Buffersize. i cant get all the data
in my application running time.
Send reply
|
|
|
|
|
Explain more fully for a start.
My guess is that the trouble is with the firmware side of things since our company ran some tests of MSComm vs .NET vs other third party controls and found the MS ones behaved the best in all our tests.
When writing RS232 drivers for firmware, don't to any processing in the interrupt handlers, just flag that the data is ready, somewhere else in your program you must retrieve that data ASAP otherwise it'll be overwritten. Buffersize plays a small role in RS232 comms compared to the other problems which can occur.
Ed
|
|
|
|
|
hi Ed.,
Thanks for ur reply. Actually main theme of my application is data capturing. In the firmware side they will send 1000bytes / 3 millisec.
I capture the data and do some process and display in screen with some GUI.
They will put some index for all data. Every time i lost some bulk of data during the integration. how to solve this problem
need reply
|
|
|
|
|
Have you tried buffering the data on the firmware side and sending it to the PC at a lower baud-rate. 333,333 is a very odd and high baud rate for a serial port. If you need such a high speed then you're probably better off with a USB port.
Ed
|
|
|
|
|
hi Ed.,
In firmware side only they sent 1000/3millisec. Im using 115200 baudrate.
And tell me how to read the data from USB port method. Now im using SerialPort method.
Need Reply
|
|
|
|
|
Im using serial port communication in my application.
In the firmware side i sent 1000 data/millisec.
the theme of my project is "No lose data in capturing time"
how can i maintain the Buffersize. i cant get all the data
in my application running time
|
|
|
|
|
Hi there,
I noticed that the "Bytes threshhold" that fires the read bytes event, does not fire as often as you would wish. in order to read the bytes fast enough, rather use a timer to start the readbytes event in a timer loop, instead of waiting for the serial port read event to fire.
|
|
|
|
|
Im creating a drop down toolbar button in internet explorer using C#.
Kindly let me know if any tutorial is available..
Cheers
Annie
|
|
|
|
|
Hi,
I need to create an Access Database file and then create in it tables using C#.
regards,
|
|
|
|
|
Hi, i have to get the bound of a photo.
i have a photo of a rectangle, but not always a regular rectangle
(it can be sometimes jagged), and the background can be every time
different.
How can i have automatically the bound of my jagged rectangle?
Exits any method to do this?
Thanks.
|
|
|
|
|
Wht have u used to display the Photo?
is it a pictureBox?
if it is a pictureBox u can try and get the region
of this pictureBox.
Regards,
Pramod
|
|
|
|
|
yes i use a pictureBox.
how can i use the region for my purpose
I have to recognize the profile of my rect
direct from the photo.
do you think that is possible?
thanks. nik
|
|
|
|
|
If u are using a PictureBox then the picturebox is always in a rectangular
form, u can use the Region property of the picturebox which returns an object
of the System.Drawing.Region, the u can get the bounds of the Region
using the GetBounds method of the region object
Hope that works for u
Regards,
Pramod
|
|
|
|
|
How do make my Search function which built-in in Crystal Report work?? should i write coding for particular function even tat oledi display in my interface??
angela
|
|
|
|
|
lot of samples of crystal reports
Crystal Reports
_____________________
Proud to be Albanian
_____________________
|
|
|
|
|
In one of my application i want to check for the internet connection can any one give me the code for it
Mahammadhusen
|
|
|
|
|
Just execute the Ping command of the System and check the
response that is returned after the execution,
e.g. Ping "Yahoo.com"
this can be executed from the commandline
C:\Documents and Settings\Administrator>ping "Yahoo.com"
Pinging Yahoo.com [216.109.112.135] with 32 bytes of data
Reply from 216.109.112.135: bytes=32 time=512ms TTL=250
Reply from 216.109.112.135: bytes=32 time=574ms TTL=250
Reply from 216.109.112.135: bytes=32 time=526ms TTL=250
Reply from 216.109.112.135: bytes=32 time=525ms TTL=250
Ping statistics for 216.109.112.135:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 512ms, Maximum = 574ms, Average = 534ms
The above response means the connection is available
u just need to execute the Ping system command from ur application
Regards,
Pramod
|
|
|
|
|
Your proposal can work but the better way to do it is as follows (from MSDN):
Uri myUri = new Uri("http://www.yahoo.com");<br />
HttpWebRequest myHttpWebRequest = (HttpWebRequest)WebRequest.Create(myUri); <br />
HttpWebResponse myHttpWebResponse = (HttpWebResponse)myHttpWebRequest.GetResponse(); <br />
if (myHttpWebResponse.StatusCode == HttpStatusCode.OK)<br />
Console.WriteLine("\nRequest succeeded and the requested information is in the response ,Description : {0}",<br />
myHttpWebResponse.StatusDescription);<br />
if (myUri.Equals(myHttpWebResponse.ResponseUri))<br />
Console.WriteLine("\nThe Request Uri was not redirected by the server");<br />
else<br />
Console.WriteLine("\nThe Request Uri was redirected to :{0}",myHttpWebResponse.ResponseUri);<br />
myHttpWebResponse.Close();
I used to be vain.... BUT now I'm perfect!
|
|
|
|
|
<br />
<br />
[DllImport("wininet.dll")]<br />
private extern static bool InternetGetConnectedState(out int connectionDescription, int reservedValue) ;<br />
<br />
public bool IsConnected()<br />
{<br />
int connectionDescription = 0;<br />
return InternetGetConnectedState(connectionDescription , 0);<br />
}<br />
<br />
|
|
|
|