|
No, it's Javascript. If you would use ASP.NET to print anything, it would be printed on a printer connected to the server.
---
b { font-weight: normal; }
|
|
|
|
|
I am using Asyncallback in .net CF development. I added the callback in a button_click event, but as I run the program, it is fine to deploy the program, but as I click the button, error occured. The message is 'An unhandled exception of type 'System.NotSupportedException' occurred in System.Windows.Forms.dll', and it stopped at 'application.run(new form())' I used the begininvoke to start the callback, and endinvoke to get the result. Thanks for your help.
|
|
|
|
|
For size and performance reasons, the .NET Compact Framework supports only a subset of the .NET Framework. Control.BeginInvoke() and Control.EndInvoke() are two of those methods not supported by the .NET CF. You will need to use Control.Invoke() or some other asynchronous mechanism instead.
-Phil
|
|
|
|
|
Thanks for your reply. So you mean that in .net cf, BeginInvoke() and EndInvoke are not supported. But as I opened a new thread, I can use BeginInvoke() and EndInvoke(). Here comes the source code.
button_click(....)
{
...
Thread myThread = new Thread(new ThreadStart(myThreadMethod));
myThread.Start;
}
myThreadMethod()
{
this.BeginInvoke(delegate, object)
}
I posted the detail of my question with some source code below, and thanks for your help.
I am using Asyncallback in .net CF development in a button_click event. There is no problem when I deploy the program, but as I click the button, error occured. The message is 'An unhandled exception of type 'System.NotSupportedException' occurred in System.Windows.Forms.dll', and it stopped at 'application.run(new form())' I used the begininvoke to start the callback, and endinvoke to get the result. I used ppc 2003 emulator, and vs2005. Thanks for your help.
Here comes part of my code:
private delegate int CalcDelegate(int input1, int input2, ref string strResult);
CalcDelegate mDeleg;
private void button1_Click(object sender, System.EventArgs e)
{
mDeleg = new CalcDelegate(Calc);
int input1 = Convert.ToInt16(textBox1.Text);
int input2 = Convert.ToInt16(textBox2.Text);
string strResult = null; // dummy parameter
AsyncCallback cb = new AsyncCallback(CalcCallback);
IAsyncResult ar = mDeleg.BeginInvoke(input1, input2, ref strResult, cb, null);
Thread.Sleep(1000);
}
private void CalcCallback(IAsyncResult ar)
{
string result=null;
int output = mDeleg.EndInvoke(ref result, ar);
textBox3.Text = output.ToString();
}
if I could not use BeginInvoke() and EndInvoke(), how can I change this code? Thanks.
|
|
|
|
|
I think you're second block of code is ok. The BeginInvoke() and EndInvoke() methods of delegates are supported by the .NET Compact Framework, as far as I can tell. (I believe the BeginInvoke() and EndInvoke() methods are implicitly created by the compiler, for each type of delegate declared, and not really a part of the Delegate class API itself.) It is only Control.BeginInvoke() and Control.EndInvoke() which are not supported (as used in your first block of code).
-Phil
|
|
|
|
|
|
Hi,
Is it possible to integrate the module developed in c#.net in vc++.net?
If yes, then please let me know how it is done and using what?
Raj
|
|
|
|
|
Do you mean to say, going for C# to VC++ or the other way round?
The inteoperatability of .net for C++ is the IJW switch, this means visual studio .net will complile legacy C++ code, but the other way, how would an older version of visual studio know how to complile .net code?
you would only be able to upgrade code, not the other way round!
thanks
andy
|
|
|
|
|
Can anyone tell me how to make a .Net Control, that performs some or the other function when added in MS-Word, or Excel.
|
|
|
|
|
I don't expect that your question, as currently stated, will receive a helpful answer. You'll need to elaborate.
Josh
|
|
|
|
|
|
Error 1 Reference required to assembly 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes' containing the type 'System.Net.Sockets.Socket'. Add one to your project. C:\Documents and Settings\@myg@l\My Documents\Visual Studio 2005\Projects\Merchant\Merchant\Form2.vb 11 21 Merchant
Wat does this mean
regards
amygal
|
|
|
|
|
It means that you need to add a reference to the System.dll v2.0 assembly to your project, via the Solution Explorer window.
Josh
|
|
|
|
|
I had add a few references such as system, system.net.Irda, system.drawing.....a few more
Is that wat u meant bout the reference?
|
|
|
|
|
|
thanks for ur reply
but i had add most of the reference
Microsoft.Windows.CE.Froms
system
system.configuration
system..data
system.deployment
system.drawing
system.net.IrDA
system.windows.forms
system.xml
but still the error appering
why?
regard
amygal
|
|
|
|
|
Have you checked the versions? 2.0 is required.
-- modified at 2:44 Saturday 6th May, 2006
|
|
|
|
|
yes, the version is correct
|
|
|
|
|
A had a second look at your erefernces list. Might it be possible that you are mixing .Net CF (Compact Framework) and normal .Net references in your project?
|
|
|
|
|
wat's the difference of mixing or seperating them both?
how to seperate them. I'm a really beginer student that just started learning bout .NET programming language, may you explain to me
thankss
=)
|
|
|
|
|
Its rather simple: The .Net Compact Framework is aimed at devices like mobile phones and pockets pcs. It is smaller compared to the normal framework which is aimed at 'normal' computers. You cannot mix them. You have to decide what platform you are aiming at.
|
|
|
|
|
alright, as far as i known, there are infrared class library for .NET Compact Framework, but for normal .NET framework, I dun think it has, am I rite?
Actually I'm trying to design two application between Mobile Device and Desktop. I wish to use the Infrared to send data from one another between desktop and mobile device.
When I call the Infrared class as reference in mobile application, there is no prob, but when i move to normal desktop/pc application, i did the same way to call the infrared reference but i add the reference from the recent reference tab, i guess tat must be the prob occur rite?
basically how to call the infrared in normal windows application? Is it the same as in smart device application?
thanks for ur reply, =)
|
|
|
|
|
To be honest I don't have a clue on how to use infrared neither on smart devices nor on desktops . It might be that the CF probably has a better handling on this issue than the normal .Net framework but this is only a guess.
|
|
|
|
|
Hello everyone,
This is a hard question to place in a specific category, so I hope you don't mind that I post this question here.
I am working on a project where we are looking into combining several products to create a streamlined well performing administration system for the company I work for. The products involved are Jeeves (an ERP system), Sharepoint and Microsoft CRM. I managed to connect Jeeves to the sharepoint portal, but I didn't have the time yet to look into CRM yet.
At this point I linked Jeeves to the sharepoint portal using a webservice that encapsulates the functionality of the Jeeves system and some custom webparts for Sharepoint, it works great, but I get the feeling this way I get one big bunch of links between various parts of various systems. So I am also looking into using Biztalk to untie these links and create a better maintainable solution.
My question is: Has anyone ever tried linking Microsoft CRM 3.0 to a sharepoint portal and what was your experience with this matter?
WM.
What about weapons of mass-construction?
|
|
|
|
|
I'm having a problem with a program I'm working on, which uses plugins.
-The plugin is declared on one Assembly, as a class.
-Other plugin assemblies have classes that inherit from this plugin.
-The main application loads all assemblies in the root dir, and loads classes with the BaseType name of the plugins name.
Now when I try to load the plugins, they can't be converted to the plugin type! It seems that the base type and the plugin type are different, but I know they aren't. I even checked to see if the GUID is the same.
Anyone know what I'm doing wrong here? I'm pretty stuck, and can't go on with this project if I can't find a way out
All your source are belong to us!
|
|
|
|