|
The pointer is actually a pointer to an array of structs. How would I do the conversion from IntPtr to the struct array?
[System.Runtime.InteropServices.StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet.Auto)]<br />
public struct WKSTA_TRANSPORT_INFO_0<br />
{<br />
public int wkti0_quality_of_service;<br />
public int wkti0_number_of_vcs;<br />
public IntPtr wkti0_transport_name;<br />
public IntPtr wkti0_transport_address;<br />
public int wkti0_wan_ish;<br />
}<br />
|
|
|
|
|
Thanks for the hint with IntPtr. I managed to convert it. Not that I think that the new sollution is less unsafe, but...
|
|
|
|
|
hi all,
I need do something before remove row in DataGridView, but I don't find any helpful event provided by .NET 2.0, so how to add a event for it?
Thanks in advance.
P.S I know there have a UserDeletingRow event, it's a void event. because we set AllowUserDelete to false.
|
|
|
|
|
I am currently creating a little C# (games) project which interrogates a webserver (quite alot).
I would like to perform Http-Tunneling in order to have different IPs query the server, but with all the responses sent to me.
Alex Turc has written something which I think is very relevant here:
http://www.codeproject.com/internet/httptunneling.asp
The problem is that this is in C++ (and quite frankly, very incomprehendible/followable to me!)
If anyone has a solution / something similar but in C# I'd appreciate the help so much.
Many thanks!!
Gerry
|
|
|
|
|
This is now the 5th time you've asked this question in the space of about 18 hours. Perhaps no one knows the answer. Perhaps no one understands the question. (Actually, you make a series of statements, there is no question in your post)
|
|
|
|
|
Someone below is asking how to connect to the serial port in 1.1 on the same sort of basis. It seems to be the way of the world. Help me. No, tell me what I want. No, I want you to do it ALL. No, not like THAT. *sigh*
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Wow and here I thought peeps posted so much stuff here that threads end up not getting read...guess I was wrong. Shame about the attitude of some though, eh?
My question would be (with a nice '?' at the end of it ,
Does anynoe have a clue as to the C# implementation of:
http://www.codeproject.com/internet/httptunneling.asp[^]
Cheers,
Gerry
|
|
|
|
|
I have been tasked with developing a system similar to trading software that is used by brokers to bid and sell stocks. I have never developed a .NET application so this is to be my first. I have over 3years of programming though, so concepts are not that hard to grasp.
I have read on web services, gone through a bit on threading and am not quite sure if it should be client server based.
In brief, there are people in a room, each on a computer, bidding and selling for certain things. none of those people can see whats going on on the other's computer but each can choose to buy whats on offer, sell what they have or bid for something on sale. I think it is a typical in a stock trading floor.
Its not that I want a solution but I am wondering whether it would be recommended to use webservices or P2P programming or sockets programming (for interchanging data),
whether to use threads to offer real time data or develop my own polling mechanism to check the data?
I'm a bit overwhelmed with what I can use, but would like to know what would be most recommended for such an application.
Thanx!
|
|
|
|
|
A webservice seems like a good choice to me, it seems you need a central server of some sort and that would be the easiest way to do that.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Thanks Christian,
Are web services ideal for real-time programming? As in in my case. I intend the front end to be windows forms
|
|
|
|
|
I guess it depends on what you mean by 'real time', how big the load will be, and what machine it's going to run on. But I'd suspect that it would work out to be a good choice, yes.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
real time as in updating of anything sold, viewable to everyone. do u mind if I enquired through MSN?
|
|
|
|
|
I'd imagine a webservice will be fast enough that no-one will spot any discernable lag. No, I don't give out my MSN, but feel free to ask more questions here if you need to.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
hi all,
greetings.I'm using a check box in my application.when checked two text boxes should be visible and the entered details in that text boxes should get saved in database.can anyone give me the source for this.
Babu
|
|
|
|
|
No, we can't. The first part is trivial ( setting the Visible property on your text boxes ) and the second is impossible ( giving you code to 'save in database' without any further information regarding the database in question.
Have you tried google ? Sample database code is not in short supply online, or even on this site.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi,
I have problem with combobox.
I set AutoCompleteMode to Suggest, AutoCompleteSource to ListItems and DropDownStyle to Simple.
If I type a text that opens the AutoComplete list I am not able to accept my selection via the Return key. In that case the text of the text field is deleted. The problem does not occur if DropDownStyle is set to DropDown.
What can I do?
Please help!
Thanks
|
|
|
|
|
I have created a base form for my application in VS 2005. Next I have created a new form which will inherit the base form. I can see all the controls from the base form but I cannot add to anything that is on the base form (like to a tab control). All the controls have little locks over them and cannot be unlocked from the right mouse button menu.
Anyone had this problem or know the solution to my problem please help me.
New suggestions are also welcome.
-- modified at 3:26 Wednesday 23rd August, 2006
|
|
|
|
|
|
The reason for this behaviour is the visibility modifier for the controls in your base class.
You just put the controls onto your base form without changing their visibility from private (standard) to protected .
Thus derived classes cannot see the instance variables of your base form and the designer can't add any controls to your TabPage , for example.
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
hi,
iam using visual studio3.0 and framework version is 1.1
Now ia want to access the serial prot using c#.
in this version SerialPort namespace can't use
how can i use API to access the serial port in C#(version1.1)
or
any method top access the SerialPort namespace in this version
plz help me
i want this very urgent
prem
|
|
|
|
|
|
premkamalg wrote: i want this very urgent
But not urgent enough to do anything with the replies you've recieved all the other times you have asked this same question ? Perhaps you can explain why it is that you're still asking, although you're apparently incapable of doing anything with the answers you've already given. Are you hoping the answer will change ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
hi,
i am working with infragistics ultragrid control with c#.NET.
The problem is while printing the grid currently Tabular reports are printed exactly as they apper on the screen a single set of columns.
our intension is 2 up print (ie) two tabules per page.
Note - 2 up should be applicable to both print preview and in the actual print.
please can you help?
Rajendra.
|
|
|
|
|
If you're using a 3rd party control, they are by definition the best people to ask for help on how to use it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Dear,
-I want to check the version of file then allow to download a updated-file automatically
-I had writen a function that allows to retrieve File information using FileInfo and FileVersionInfo
-It runs well if the source file 's in my local, but it was not functionly if the source file 's in the server.
Ex: http://www.misplacedcomedygroup.com/rss.xml
-And it also throws this exception: "URI formats are not supported."
Here is my function:
//function get version
public static string GetFileVersion(string srcFile){
string fileVersion;
try {
FileVersionInfo info = FileVersionInfo.GetVersionInfo(srcFile);
fileVersion = info.FileVersion;
}
catch (FileNotFoundException e) {
throw (e);
}
}
//function get last modify time
public static string GetFileLastAccessTime(string srcFile) {
string lastAccessTime;
try {
FileInfo file = new FileInfo(srcFile);
lastAccessTime = file.LastAccessTime.ToString();
}
catch (FileNotFoundException e) {
throw (e);
}
}
Thanks regards,
Germanrose
-- modified at 0:59 Wednesday 23rd August, 2006
|
|
|
|