|
STORE 0
STORE i have no idea
STORE i have no idea
STORE never
JUMP loop
loop:
DUP
JUMPNE exit
CALL answer
exit:
POP
EXIT
leppie::AllocCPArticle("Zee blog");
|
|
|
|
|
Today, almost never. Some common situations which still require ASM programming:
1. Kernel-level coding. You can be implementing a driver, a new kernel function (probably in Linux, otherwise you would be working at MS), or some low level functionality.
2. Compiler creation. Compilers (and sometimes linkers) output ASM code, so, normally you need to code the ASM generation part.
3. Self-modifying code. For high performance, virtual machines or even copy protection schemes.
4. MMX, 3DNow, SSE and SSE2 extensions: sometimes, compilers take years to catch up with processor advances. Some instructions, e.g., multimedia and game extensions were only available as ASM instructions for C++ programmers.
5. Embedded code. Today you have software on almost anything, from microwaves to your computer's video monitor. Obviously Visual C++ is not available for this kind of processor, which run on a very constrained environment, with low memory and CPU power conditions. Every byte increases the product's final cost.
6. High performance applications. Games, libraries, etc. Hand-made ASM code is still much more efficient than code generated by a compiler. But it doesn't scale well. So, often you get some tight loops or some small functions of a library (normally selected with a code profiler) and code it in ASM to increase performance.
You can do it on anything you choose - from .bat to .net - A customer
|
|
|
|
|
can you elaborate a little more on the following? i thought we do games using DirectX/OpenGL.. for the graphics (which are C/C++/COM libraries). Everything else in C/C++ and mostly WIN32 API?
Daniel Turini wrote:
multimedia and game extensions were only available as ASM instructions for C++ programmers
Daniel Turini wrote:
Games, libraries, etc. Hand-made ASM code is still much more efficient than code generated by a compiler. But it doesn't scale well. So, often you get some tight loops or some small functions of a library (normally selected with a code profiler) and code it in ASM to increase performance.
norm
|
|
|
|
|
Ladies 'n Gentlemen,
i try to change the DataSets programmatically to a Crystal Report. I set the source with the SetDataSource-method of the CrystalReportViewer.
First at all, i had made a blank report with CR 9 and implements it to my c# project.
My problem now is that the setting of the Dataset takes no effect. Only if I set the datasource in the c# report designer, i can display my chosen information from the table. But therefore I don't need to set any Dataset in my code. If I remove the Datasource in the designer and try to bind the report to a dataset, there is an error such as "no field in formula".
My Dataset is filled (i've tested it). And i don't work with crystal reports for VS .NET 2003 which came up with the VS 2003.
My steps:
1. a blank report (with CR 9) and a windows application project
2. implementing the report in the project
3. filling a dataset with a table from a MS SQL Server (for testing i#ve taken the "pubs" database)
4. load the report soure file to my ReportDocument-instance
5. set unbound fields in my report
6. SetDataSource-method to my loaded report document
7. Set ReportSource to the CrystalReportviewer in my code
That all works fine, but it seems that at runtime the report got no Datasource. Any suggestions? Would be very great.
CsharpThomas alias T. LaBenche
Tom La Benche
|
|
|
|
|
Got the answer. You neccessarily need a schema file, and bind it to the report in the report designer.
Then you have to fill the dataset.
|
|
|
|
|
Hi there,
I have to create my channels like this:
BinaryServerFormatterSinkProvider provider = new BinaryServerFormatterSinkProvider();
provider.TypeFilterLevel = TypeFilterLevel.Full;
IDictionary props = new Hashtable();
props["port"] = 8000;
chan = new TcpChannel(props, null, provider);
ChannelServices.RegisterChannel(chan);
RemotingConfiguration.RegisterWellKnownServiceType(typeof (BankDetailsClassLibrary), "RemoteClass", WellKnownObjectMode.Singleton);
in order to pass objects properly.
How can I create the same stuff for a TcpServerChannel
TcpServerChannel tcp = new TcpServerChannel(props, null, provider)
does not work.
Thanks a lot for your help
Chris
|
|
|
|
|
|
Is it possible, in C#, to code a string constant using more than one source line? Something like this:
output.Write("<table class=\"MenuTable\" width=\"{0}\" border=0"
"cellpadding=2 cellspacing=0>", width);
Thanks in advance.
Luca Leonardo Scorcia
http://zip.to/kojak (only in Italian)
|
|
|
|
|
Of course:
output.Write("<table class=\"MenuTable\" width=\"{0}\" border=0" +
"cellpadding=2 cellspacing=0>", width);
α.γεεκ Fortune passes everywhere. Duke Leto Atreides
|
|
|
|
|
|
Luca Leonardo Scorcia wrote:
output.Write("", width);
output.Write(
<big>@</big>"<table
class=""MenuTable""
width=""{0}""
border=""0""
cellpadding=2
cellspacing=0>"
, width);
leppie::AllocCPArticle("Zee blog");
|
|
|
|
|
leppie wrote:
output.Write(@"", width);
I always found this style particularly ugly, specially when you consider that the code in questions would have some identation.
You can do it on anything you choose - from .bat to .net - A customer
|
|
|
|
|
I have just finished a windows service app in C#.
To deploy, I have created an installer project in VS (2003). For the service registrations, I have added the assembly as a custom action for both the commit and uninstall phases.
The installer seemes to run correctly - until the very end. Then I get the following error message :
Could not find file "C:\Program Files\play47\SMTP Server\SMTPServer.InstallState
Now, this file DOESN'T exist - but I assume that it should be getting created by the service installer.
Any ideas? This is critical and I really need to deploy it today - if you have any idea it would be greatly appreciated!
Tatham Oddie (VB.NET/C#/ASP.NET/VB6/ASP/JavaScript)
tatham@e-oddie.com
+61 414 275 989
|
|
|
|
|
Tatham wrote:
if you have any idea it would be greatly appreciated
No idea sorry, but I'm sure you have learnt a valuable lesson, to plan these things in the design phase.
leppie::AllocCPArticle("Zee blog");
|
|
|
|
|
I ended up finding the problem. After removing the performance counter object from the installer it worked - of course the counter doesn't work but at least it deployed.
Does anyone have any ideas on why this would crash the installer - do i need to ship some form of basic install state file - if so what is the format?
BTW leppie - i did deploy it in time. 
|
|
|
|
|
Hi,
How can i get Encodingstyle of a file? And than i want to convert this file into Ascii or another.
Thanks...
|
|
|
|
|
Hello,
I am looking for the C# equiv of the VB ASC() function. I also believe some of my chars are extended chars above 127.
I tried i = Convert.ToInt32('???') but this doesnt seem to work on extended chars.
|
|
|
|
|
You can have access to every VB.Net function by just adding a referece to visulbasic.dll or visulbasicruntime(or some thing like this, I don't remember!) and using it in your code.
Don't forget, that's Persian Gulf not Arabian gulf!
|
|
|
|
|
You should just be able to do this:
<br />
char myCharacter = 'a';<br />
int myASC = (int)myCharacter;<br />
Tatham Oddie (VB.NET/C#/ASP.NET/VB6/ASP/JavaScript)
tatham@e-oddie.com
+61 414 275 989
|
|
|
|
|
No you can not. Only for basic characters.
Bo Hunter
<marquee behavior="alternate">Bo Hunter
|
|
|
|
|
Bo Hunter wrote:
No you can not
So how do you do it? I'm sure they wouldn't have excluded the capability from the C# libraries... 
|
|
|
|
|
you can do it. run it for yourself.
|
|
|
|
|
DataSet has has Tables propety which means it can hold more than one table. How can I add second table to dataset.In dataadapetr I can use a select commmand which get one table,how can i add two table so?
Mazy
No sig. available now.
|
|
|
|
|
Mazy, try something like this:
DataSet ds = new DataSet("myDataSet");
DataTable t1 = new DataTable("Table1");
DataTable t2 = new DataTable("Table2");
ds.Tables.Add(t1);
ds.Tables.Add(t2);
HTH
-Nick Parker
|
|
|
|
|
Thanks Nick,I should get table from database,.Should I use second dataadpater to fill the same dataset with second table or there is better way for it?
Mazy
No sig. available now.
|
|
|
|