Your function resembled a lot some of the win32 user32.dll Look at www.pinvoke.net to get some ideas based on the functions of windows
aSarafian
Posts
-
Delegate Help -
C# with soundsI found this. SAPI[^] For the needs of the original message there is this interesting part
Managed code Speech API A managed code API is being developed by Microsoft which has similar functionality to SAPI 5 but will be more suitable to be used by managed code applications. The new API is part of .NET Framework 3.0 and will be available on Windows XP, Windows Server 2003 and Windows Vista. The existing SAPI 5 API can also be used from managed code to a limited extent by creating COM Interop code (helper code designed to assist in accessing COM interfaces and classes). This works well in some scenarios however the new API should provide a more seamless experience equivalent to using any other managed code library.
-
Fetching webpages as IE/FirefoxTry looking up the WebBrowser Control which comes with .Net2
-
string processFirst may i sugest in the for loop
for (int k = 0; k <= varMessage.Length - 1; k=k+4)
and eliminate thek=k=3;
As suggested before your code must beResultMessage = ResultMessage + @"\u" + varMessage.Substring(k, 4);
-
form logic/timingCan you explain more thoroughly what you need to achieve?
-
Keyboard focus in Visual Studio C#You need either to grab the parents form key down event or you can set up a hook to grab the event whether this form is focused or not.
-
C# with soundsMy bad. I thought i remembered it correctly. I remember something that resembles it with 3 letters. Anyway sorry for the misinformation
-
C# with soundsYou need a Text To Speech interface. Such an interface is provided by Microsoft free and is called SAPI (Speech API) but i think that it was going to be upgraded and change name. Sorry i haven't gotten around it since 2003. Need to know stuff. SAPI is something like DirectX. It's Microsoft attempt to provide a generic interface for each interface realted to Speech Applications. Theretically each provider would comply and make his engine SAPI compliant. SAPI when i used it in C++ it was very harsh. Even harsher than DirectX and there is not a lot of development going on, to find easily help SAPI comes with the speech engine of Office intergrated. This means that without the need of a powerfull engine you can run your tests. I think SAPi was renamed to ATL.
-
Getting MMS off phoneBased on the Sony Ericson interface, messages,mms, contacts and generally phone data are stored in the phone. On the extention memory card are stored files like images,themes, sounds and are interface as thought aw they were on a flash drive. The problem is accessing images,sounds,contacts,messages,mms that are stored in the phone memory. That is the hard part i think. Again based on Sony Ericson's interface only.
-
get value from database into a variableYou got it all wrong. Please read a database tutorial. Just a hint. Someone must execute the desired sql command , don't you think? Its just as you have written
int a="Hello World";
the you just happen to have for text an a sql command. Read the db tutorial. -
plz help meOr look wheather autocad provides a com object collection to manipulate its objects and functionallity like office does.
-
Getting MMS off phoneFrom what i have seen in my K750I you must utilize to phones At command set. Remember those we had on our serial port modems? For my K750 there is a 400 page at command set, which i think i similar to all phones. Good Luck if I am right.
-
classes in C#.NETClasses are not only for window based programming as you call it. Classes are one of the tools to implement what is generally known as object oriented programming. Look it up on google. Generally OOP is mastered with expierence for me.
-
Type conversionphilip_cole wrote:
(int)MyValue is casting MyValue to type int. This means that MyValue has to be an int in the first place, or a type inherited from int (which isn't possible of course!). This is a faster method, because very little has to be checked or changed in memory, but you have to know that MyValue is actually an int.
Some remarks and I would appriciate your input.
(int)Something
conversion is applicable when Something is a numeric type. It just does the convertion without caring what data is lost. I did sometesting and here is what i came acrossstring a1="5"; int b1=(int)a1;
result in a compiler errorobject a1="5"; int b1=(int)a1;
result in runtime casting exception Error. -
KeyPress Event for TextBoxYou mean not even a MessageBox appears? In this case the event is the event properly set to this function? There is a project ControlInspector[^] that i found very usefull. It might help you in this situations.
-
C#.NET with Direct X -> a 3d game ?Since DirectX9 .Net has full support over DirectX and form what i have been told execution speed is very close to C++. If i started ever again creating a game I would surely chooce .Net for DirectX9.
-
No connection could be made because the target machine actively refused itPossibly a firewall error or the target IP+port is not enabled.
-
How to convert ascii to charI generally works but bear in mind that the char type in .net is not the char type in c. it has many differences.
-
Get form of running applicationi think it can be done. There is a project in codeproject that can select an other .net form and display its properties and events in a propertygrid. That means that it gets a handle to that object. Let me Look it up. Ok found it I think that this RuntimeObjectEditor Project[^]does what you are looking for not only for a form After getting the object a cast must be feasible
-
User ControlI really can't understand what you are after! Also in your code snipets you have two sequencial commands that practically ony the second has meaning. By the way posting the same in two different persons trying to help and asking different questions is not the way.