|
Thanks for your reply.
I do not understand the .net framework architecture.
I know that the last code program is writed with Microsoft middle language. (Just as assmebly).
But I do not know how to compile the C# code to the MSIL and compile the MSIL to the exe file, in my compiler.
|
|
|
|
|
Fired.Fish.Gmail wrote:
I do not understand the .net framework architecture.
What do you mean, exactly?
Fired.Fish.Gmail wrote: But I do not know how to compile the C# code to the MSIL
The techniques you'd have to use depend on how many features of C# you want to include, for example if you'd have only a single expression you could just post-order dump your AST and be done with it, otherwise it takes more work but never really a lot (for a decent example you could look at the mono compiler)
Fired.Fish.Gmail wrote: compile the MSIL to the exe file
You could do it yourself (but it's not easy, especially the metadata tables), or use ilasm.exe (included in .NET framework), or use Reflection.Emit
|
|
|
|
|
hi,
im a internet webpage programmer developing a website able to control a remote computer using the internet,this website capable of shutdown logoff print screen and monitoring a target pc...
at my website side progrmaming everything is fine, it works as what i want to control a client pc but, since as i keep on revising my software for my client side, using c#, i need a windows form that will go to
minimize or mazimize in such case that once i command logoff the client windows screen will be intirely covered to whole pc screen by my form without border...
what i only need is a source code that control a form property using visual c# 2008..
www.q12w3.com/pc/
ric
|
|
|
|
|
|
is there any open source project which will help me to generate form with control automatically. suppose i have table in my database and i will
just point that table through a application and after that application will create store procedure, data access layer and also form with (frontend) everything. so later if require i will just change the auto generated code. if this type of application exist then please give me url.
Thanks in advance
tbhattacharjee
|
|
|
|
|
You can use an Open Source code-generator like MyGeneration[^]. There's an example of a UI-template at the bottom of this[^] page.
Good luck
I are Troll
|
|
|
|
|
I want to write a program like osk(on-screen keybroad) of windows, but i don't know how to generate a key press like click on button1->you click on the A button on the keybroad!
|
|
|
|
|
This[^] article might help you.
DoanDucTai wrote: i don't know how to generate a key press
It depends on your requirements.
You could use SendKeys[^] class.
Another option is using direct PostMessage[^] calls with WM_KEYDOWN and WM_KEYUP messages.
I hope this helps.
[EDIT]
Giorgi Dalakishvili have suggested a very useful input simulator in the post bellow.
I'd use the suggested library instead of SendKeys class or raw Windows API calls (like SendInput or PostMessage ).
[/EDIT]
modified on Wednesday, February 3, 2010 6:58 AM
|
|
|
|
|
|
hi,
i have written a multithreaded application using bgworker in which i m doing some task in dowork method..it is running fine in debug mode but not producing desired output when i run the application.wat can be the problem?
|
|
|
|
|
So what exactly fails in release mode?
If you post the part of the code that fails, it's much easier to help
|
|
|
|
|
could be race conditions, caused by a lack of synchronization (insufficient locks).
I can't tell without much more information about your app, and what exactly is going wrong (and how often, how consistently).
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. [The QA section does it automatically now, I hope we soon get it on regular forums as well]
|
|
|
|
|
Dear All,
I am using Asp.Net with C# in windows application (VS 2005). I create one test.bat file, which is executed by my application. I am using "System.Diagnostics.Process.Start" to execute test.bat. How can I get the result, that the bat file has been executed and closed.
Because, test.bat file is taking few seconds to run and it creates a table with data and gets closed. My application is gets the data from the table, which is done by test.bat and proceed further. I can have good result, if I debug the application. I can not have a good result at run mode.
I want to proceed my application, after executed the test.bat file. How can I identify that test.bat file has been executed fully?. What I need to do?. I have to handle threading? Is there any other way? Thanks in adv.
Balasubramanian K.
|
|
|
|
|
I solved this problem. I used waitForExit.
Balasubramanian K.
|
|
|
|
|
if i have placed this post in wrong board then please feel free to move it.
so..can anyone tell me why gdiplus is more then twice as slow in encoding jpeg images on windows xp compared to windows 7?
i need a fast jpeg encoding and gdiplus is fine as long as i use windows 7 but on windows xp its to slow for what i need, so currently im using Blackfin Fast JPEG Encoding on windows xp but its still around 40% slower then gdi+ on windows 7.
Encoding 100 images of size 1980 x 1080 on my machine:
GDI+ windows 7: 3000 to 3500 millseconds (extremly fast!)
GDI+ windows XP: ~8000 millisecs (too slow)
Blackfin Fast JPEG: around 5000 ms on any OS
any suggestions how to improve the speed of gdi+ on XP?
|
|
|
|
|
i have been searching for a treeView which is similar to MSN messenger tree view
which contains an icon and brief description and some other data ..
for windows form app
does any one have an open source one ?
thnx alot ..
|
|
|
|
|
System.Windows.Forms.TreeView seems good enough for your need
Its TreeNode(s) have text, image and tag
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
|
Here's[^] a good looking tree view.
/ravi
|
|
|
|
|
Hi all, as runing this algorithm, that decrypt an encrypted array of bytes, allways returns null as a decrypted result...
the code is below:
public static void Decrypt(byte[] toEncryptArray, bool useHashing)
{
System.Configuration.AppSettingsReader settingsReader = new AppSettingsReader();
string key = (string)settingsReader.GetValue("SecurityKey", typeof(String));
if (useHashing)
{
MD5CryptoServiceProvider hashmd5 = new MD5CryptoServiceProvider();
D_keyArray = hashmd5.ComputeHash(UTF8Encoding.UTF8.GetBytes(key));
hashmd5.Clear();
}
else
D_keyArray = UTF8Encoding.UTF8.GetBytes(key);
TripleDESCryptoServiceProvider tdes = new TripleDESCryptoServiceProvider();
tdes.Key = D_keyArray;
tdes.Mode = CipherMode.ECB;
tdes.Padding = PaddingMode.PKCS7;
ICryptoTransform cTransform = tdes.CreateDecryptor();
byte[] D_resultArray = cTransform.TransformFinalBlock(toEncryptArray, 0, toEncryptArray.Length);
tdes.Clear();
}
Can any one help me ,,,,,,,,, i'll be very thanks..,
regards
|
|
|
|
|
Message Closed
modified 23-Nov-14 6:49am.
|
|
|
|
|
very thanks stancrm, but sorry, i really new at C# and don't
understand that........
can you make it more esey ...;
thanks..,
|
|
|
|
|
Here let me help Stan out....
Follow the link to the MSDN article
Read the article to understand what you are doing
Locate the c# sample in the article
Highlight the sample code
Copy it to the clipboard
Open you test application
Locate where you want to work with the sample
Paste the sample into your app
Wire up the events required to test the sample
Create the objects required by the sample (you should understand these needs from reading the article)
Put in a break point in your code
Run the app.
Step through the code and inspect the objects to understand in detail what you are doing.
Wheres the spoon icon!!!!!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
That's some good spoon feeding you've got going on there.
|
|
|
|
|
3bood.ghzawi wrote: can you make it more easy
You have been provided with basic cut & paste code to show you how to do it. How much easier do you want it? If you can't understand this example then you shouldn't even be attempting encryption.
I know the language. I've read a book. - _Madmatt
modified on Tuesday, February 2, 2010 6:54 PM
|
|
|
|