|
Hi ,
I'm developing a web based system(ASP.NET with C#) ...where in I have to export the data in the database onto an excel sheet and mail using Lotus Notes ..
Can anyone help me with this ....... ?
Can I connect the .Net framework to Lotus Notes ?
Any inputs on this will be appreciated
Regards
Prashant
|
|
|
|
|
Need some help on caesar cipher.
I need to make a program that will read from a cipherd text and out put on a plaintext.
I am really a beginer type of programmer.
How can i start?
Where can i start?
Some help would be appriciated.
|
|
|
|
|
|
i'm getting XML files from my 'customer' that need a DTD to parse correctly (due to namespaces, etc), but the DTD is specified without a path: just the filename. this angers the XmlReader, since it can't find the DTD in the Windows/System32 folder (the file is elsewhere on my system, and i can't put it in the System32 folder in any case).
so, is there a way to tell XmlReader to look in a specific folder for the DTD ?
|
|
|
|
|
I need to find two types of files (xml and jpg) scattered over multiple subdirectories. Does anyone know how I can specify the wildcard in DirectoryInfo.GetFiles() to find all xmls and jpgs at the same time?
I've tried:
"*.xml;*.jpg"
"*.xml,*.jpg"
"*.xml *.jpg"
Nothing works.
"Acceptance without proof is the fundamental characteristic of Western religion, rejection without proof is the fundamental characteristic of Western science." - Gary Zukav
|
|
|
|
|
You can't do that. You have to call GetFiles for each filespec you have. You can't get them all at once using multiple filespecs in one call.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanks Dave.
It stinks that we can't do this, but I guess I'll have to live with it.
-- modified at 12:23 Tuesday 10th October, 2006
"Acceptance without proof is the fundamental characteristic of Western religion, rejection without proof is the fundamental characteristic of Western science." - Gary Zukav
|
|
|
|
|
how can i set class name of a desktop application in vb.net
i've tried to use CreateParams.Classname but error suggests
class name is not registered.
for that i've used
following apiz...
//start
Public Declare Function RegisterClass Lib "user32" Alias "RegisterClassA" (<marshalas(unmanagedtype.struct)> ByRef Class As WNDCLASS) As Integer
<structlayout(layoutkind.sequential)> Public Structure WNDCLASS
....
end structure
//end
mycls.lpszClassName = "myclass"
MsgBox(RegisterClass(mycls))
Dim Params As CreateParams = New CreateParams
Params.Caption = DOCSVAULT_IDENTITY_SMB
Params.ClassName = clsDVSMB.lpszClassName
Me.CreateHandle(Params)
still its givin error.. how to register class and set my applications class?
"You can do any thing you set to your mind" - theGhost_k8
|
|
|
|
|
Hi, I want to use a combo box to display some values, however i dont want the user to be able to input their own values. I thought there would of been a 'Read Only' property for the ComboBox class, but I can't seem to find any property like this at all.
So how do you prevent users from entering their own values into the combo box?
Thanks
|
|
|
|
|
Hi,
you are not the first with this problem: Clickety[^]
Robert
|
|
|
|
|
Is it possible, if so how, using Visual Studio 2005 and write code against v1.1 of the .NET framework?
I need to convert an MFC C++ project to C# but using v1.1 of the .NET framework. I would rather not have to re-install VS 2003, but if there is no other way then so be it...
|
|
|
|
|
Hi,
Andy H wrote: Is it possible, if so how, using Visual Studio 2005 and write code against v1.1 of the .NET framework?
No way!
Robert
|
|
|
|
|
Can anyone help me take a back up of sql express database to export to sql server 2000
regards
Hari
|
|
|
|
|
I am working with the new FlatAppearance class under the
System.Windows.Forms.Button control in 2.0 and am creating a flat button. I
set the button FlatStyle to Flat and the FlatAppearance.BorderSize to 1.
When I run the app the border is exactly 2 pixels and not 1.
Is there anolther property you are suppose to set on the control or is this
simply a bug?
Thanks,
Anton
|
|
|
|
|
Hi,
I need some basic low level details of what happens when you ngen a .NET assembly.
Lets take a c++ code which when compiled creates a binary executable. On executing this binary, the OS allocates memory for the process and executes it. No concept of runtime or CLR here. Everything is present in the binary.
I read the MSDN and understand that .NGEN creates a native image of the code and avoids JIT compilation while execution by the CLR. Hence, at the end, I understand that the ngen creates binary code for specific processor.
If the native code (binary) is ready then why cant the OS take care of executing it and why the .NET runtime has to do the execution?
What does the CLR do then for a ngended assembly ?
I seem to get confused with this concept.Please clarify.
Thanks,
Mani
|
|
|
|
|
When NGen compiles your IL into a native assembly is still uses the CLR and the .NET framework class libraries. Also there would be a problem with updates to the .NET framework. For example if there was a security hole in the console.writeline method and you installed a patch for it then all the apps that use that method would not be updated and would require re-Ngening.
Here are some pros and cons to NGening.
PROS:
Improved application startup time: Since there is no JIT compilation.
Reducing the apps working set: Best if the app is going to be loaded into mutliple AppDomain or processes at the same time. Although the working set will still be less if not being used in multiple appdomains/processes.
CONS:
NGen files can get out of sync: updates to the hardware or .NET Framework will cause this.
Load-time performance hit: NGen files have the memory address references statically calculated. If for some reason it cannot be loaded at its preferred base address then it will require rebasing (Windows will have to relocate the file and fix up memory address references.)
Slower runtime performance: Ngen cannot make as many assumptions about the hardware and OS as the JIT can. The JIT can perform many more optimizations than NGen
█▒▒▒▒▒██▒█▒██
█▒█████▒▒▒▒▒█
█▒██████▒█▒██
█▒█████▒▒▒▒▒█
█▒▒▒▒▒██▒█▒██
|
|
|
|
|
Hi,
Captain See SharpSlower runtime performance: Ngen cannot make as many assumptions about the hardware and OS as the JIT can. The JIT can perform many more optimizations than NGen
Is this always true, also when NGening the assemblies directly on the target machine?
Robert
|
|
|
|
|
So, if I have a stand alone .NET application in a system, Ngening those .NET assemblies is recommended or not.
Please clarify.
|
|
|
|
|
He is Cool wrote: So, if I have a stand alone .NET application in a system, Ngening those .NET assemblies is recommended or not.
You would definitly not NGen an assembly if it is a server application as the performace hit would only be on the first request. In general you should not NGen an assembly unless you have a very good reason to and in most cases there is no reason to. One reason to NGen an assembly would be to reduce the working set and improve startup performance but usually the overall runtime performance of your app would not be as good as if it were JITed.
█▒▒▒▒▒██▒█▒██
█▒█████▒▒▒▒▒█
█▒██████▒█▒██
█▒█████▒▒▒▒▒█
█▒▒▒▒▒██▒█▒██
|
|
|
|
|
Robert Rohde wrote: Is this always true, also when NGening the assemblies directly on the target machine?
Yes. NGened asemblies run about %5 slower than a JITed assembly.
█▒▒▒▒▒██▒█▒██
█▒█████▒▒▒▒▒█
█▒██████▒█▒██
█▒█████▒▒▒▒▒█
█▒▒▒▒▒██▒█▒██
|
|
|
|
|
Hi ...
I was wondering if there is a library that i can use from vb or c# .net in order to implement a custom internet gateway (with or without ICS).
I want to block/permit or limit connection bandwidth of a specific mac address etc.
thanks...
|
|
|
|
|
Hi all
I currently get the following error randomly in my software application - Native Exception Error: 0xc0000005.
This is a .NET Compact Framework 1.1 application for PocketPC 2002. I am using a Symbol PDT8037.
I am also using OpenNetCF 1.4.
It is all written in C#.
There are some calls to the Win32 library. E.g. setting the time on the PDA.
Also I use Symboll DLLs to access the inbuilt barcode scanner. Would these be Native code?
I am not using SQL CE.
My understanding of a Native Exception Error means that native code, e.g. C/C++ is using an address space and hasn't cleaned itself correctly. Then managed code, e.g. C#, is later accessing that same address space. Then CRASH!
Is this correct or am I totally on the wrong track?
Does anyone else get these errors?
This mainly happens 90% of the time in our Products screen which utilises the barcode scanner. I don't want to be quick in blaming Symbol though in case it is my own code.
I couldn't find too much information on the Internet. One strategy I implemented was to disable ALL native code (including the barcode scanner). However the crashes still occurred, albiet less frequently.
I'm at a loss. Can anyone help?
Mark C Eaton
|
|
|
|
|
0xc0000005 is an access violation, quite often caused by dereferencing a null pointer.
|
|
|
|
|
Hi Luc
Thanks for the reply.
Unfortunately in my case it may not be that simple?
As an example, for my Products screen, this can happen when they add a product or even save.
An end user can even close this screen and save successfully, go to another screen, then the dreaded Native Exception Error.
The above is all handled by managed code, C#. When disabling the unmanaged code I still get these Native Exception Errors, although they seem to be less common - so in this instance I'm not using any pointers.
These crashes are random and intermittent. There seems to be no pattern. I have about 35 end users working with this software and for some they don't get any of these Native Exception Errors. Others will get this error once a week. Still others will get it 3 times a day!
They all use the software as much as each other as I keep tabs on their usage.
Hope this makes sense.
Mark Eaton
|
|
|
|
|
Hi Marc,
if the problem occurs even when the application is running without using unmanaged code
at all, it is a mystery. If some unmanaged code is involved, a crash (even a delayed one)
is possible when a fundamental mistake is present such as:
- dereferencing a null pointer
- using incorrect calling conventions resulting in stack problems
[DllImport("kernel32.dll", CallingConvention=CallingConvention.StdCall)]
- not pinning the managed objects
- and, of course, all kinds of bugs in the unmanaged code itself.
I would suggest putting try-catch constructs around every PInvoke call, and
logging all exceptions in order to track down the problem(s).
Hope this is useful to you.
Luc Pattyn
|
|
|
|