|
make sure the user/pwd you use for connectoin authentication have privelages.
you might want to use a UDL (Universal Data Link) instead of UNC.
copy and save this to a .reg file then run, to install UDL in your shell
REGEDIT4
[HKEY_CLASSES_ROOT\.UDL]
@="MSDASC"
[HKEY_CLASSES_ROOT\.UDL\ShellNew]
@="MSDASC"
"Data"=hex:ff,fe,5b,00,6f,00,6c,00,65,00,64,00,62,00,5d,00,0d,00,0a,00,3b,00,\
20,00,45,00,76,00,65,00,72,00,79,00,74,00,68,00,69,00,6e,00,67,00,20,00,61,\
00,66,00,74,00,65,00,72,00,20,00,74,00,68,00,69,00,73,00,20,00,6c,00,69,00,\
6e,00,65,00,20,00,69,00,73,00,20,00,61,00,6e,00,20,00,4f,00,4c,00,45,00,20,\
00,44,00,42,00,20,00,69,00,6e,00,69,00,74,00,73,00,74,00,72,00,69,00,6e,00,\
67,00,0d,00,0a,00,50,00,52,00,4f,00,56,00,49,00,44,00,45,00,52,00,3d,00,6d,\
00,73,00,64,00,61,00,73,00,71,00,6c,00,3b,00,0d,00,0a,00
R.Bischoff | C++
.NET, Kommst du mit?
|
|
|
|
|
Hi All,
I am working on a C# based Windows application.Using the following code
to
create an Excel object.
Excel.Application ExcelObj = new Excel.Application();
Its workin fine for me, the problem is that i want to destroy this
object
when i exit form my method.
I am not able to delete this object.
Calling GC.Collect() Or MArshal.ReleaseComObject() waz not of any help.
Pls help.
Regards
Vitesh
|
|
|
|
|
Well, what is your need to destroy the object. CLR has garbage collection built-in, unless you have good reason you shouldn't explicitly try to delete/destroy. By calling dispose(), you can mark object for garbage collecting.
R.Bischoff | C++
.NET, Kommst du mit?
|
|
|
|
|
Excel is a funny beast.
When you say you cannot delete it, you mean the process does nto shut down.
You may find that if you set the Excel.Application to visible and someone clicked on it, its goes under 'usercontrol', in which case it starts behaving like a naughty com object.
Set the Usercontrol = false, Visible = false, and then try Application.Quit, and see if the process shuts down.
I think the property is usercontrol anyway. Been a while since I last looked at it.
Quote from a clever bloke :
"I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones." - Albert Einstein
|
|
|
|
|
Hi,
Does anyone know of a way of getting any scolling events from a ListView control ? I want to be able to fill a ListView control on demand (paging) as it can display very large amounts of data. So as the user scrolls down i access and load rows.
Can this be done with the standard .Net Control ? Or is there a 3rd party control that can do this ?
Thanks ... Andy
|
|
|
|
|
It sounds like you want the behaviour of a virtual ListView, where the data to draw each item, is asked for as items are scrolled into view. This is no problem in Win32/MFC, but the stock .Net ListView does not do this.
Even if you could monitor the scrolling events and try anticipating when certain items need full data, the LV's item collection would need to be filled with correct number of items first, else the scroll thumb and behaviour would be somewhat strange. My own experience suggests that adding items, even if they have blank data, is somewhat expensive in itself, unlike with a straight Win32 LV. The .Net LV tracks its own cache of at least certain data for each item, in its own collection.
There might be a 3rd party solution, but unfortunately I do not know of one. Implementing it would have to be largely from scratch, except for inheriting from Control, using delegates to retrieve data to be loaded into the rows. There are some articles on this site about custom drawing LVs, which might be of interest to you. Sorry I couldn't be more helpful.
Cheers
|
|
|
|
|
Is it possible to make submenus when you are adding designer verbs?
1001111111011101111100111100101011110011110100101110010011010010 Sonork | 100.21142 | TheEclypse
|
|
|
|
|
Hello CPians
I have a VS.NET project that creates an exe file.
I also have a Deployment project that creates an MSI for the exe.
What I need is to sign the exe before it goes into the MSI. how can that be done?
(I know how to sign it with signcode.exe, but when I build the deployment project it compiles the primary project and rewrite the exe)
thanks
Noam
Noam Ben Haim
Web Developer
Intel
noam.ben.chaim@intel.com
|
|
|
|
|
Hi,
I am developing a project in .NET (C#). I am trying to embed the email sending service in my project. I am able to send both plain and html formatted emails. But i m stuck in trying to get my style sheets and other flashy stuff appear in my html email. Can anyone tell me why my stylesheets and user controls just dont show up in the mail.
I would appreciate if anyone can come up with some suggestions,
Thanx.
Moinuddin
|
|
|
|
|
Am I blind, or did they leave out all the style and extended style flags so that you could set things like numeric only?
What, do I have to write an event handler?
Marc
Help! I'm an AI running around in someone's f*cked up universe simulator. Sensitivity and ethnic diversity means celebrating difference, not hiding from it. - Christian Graus Every line of code is a liability - Taka Muraoka
|
|
|
|
|
Guess they thought one would use NumericUpDown for numerics, so Case & PasswordChar were sufficient...
Some ideas are so stupid that only an intellectual could have thought of them - George Orwell
|
|
|
|
|
HI, i've been exploring the net framework classes for a while and i didn't find a email class to send mails (pop3) . I'm missing or .NET does not owns a class like that? i think, Python brigs one in its class library, the NET framework, very much bigger, should do too
Thanks in Advance
Marcos
|
|
|
|
|
You can send email with SMTP.
Take a look at System.Web.Mail[^]. Then take a look at this article[^] to see an example usage.
Jon Sagara
Hi! I'm Melanoma, Moley Russell's wart.
-- Uncle Buck
|
|
|
|
|
Hi Marcos,
Do you want to Send Mails or Recieve Mails.
When you send mails, you use SMTP. POP3 is used for recieving emails. This clears and solves your first sentence of your posting.
Regarding your doubt regarding .NET Framework classes to send mails, check out
System.Web.Mail
(It has an exhaustive collection of classes and methods to send mail)
Check out http://www.c-sharpcorner.com/ for some code snippets in checking mails using POP3.)
deepak
Deepak Kumar Vasudevan
http://deepak.portland.co.uk/
|
|
|
|
|
Hi all,
I have a C++ and C# application. The core C++ application runs three times faster than the C# application. If I run NGEN on the C# application, would it be on par with the C++ application?
Please advise...
Deepak Kumar Vasudevan
http://deepak.portland.co.uk/
|
|
|
|
|
Here's [^] an article from Jeffrey Richter entitled : "JIT Compilation and Performance: To NGen or Not to NGen? " that should help you out.
HTH
Cheers,
Simon
"The day I swan around in expensive suits is the day I hope someone puts a bullet in my head.", Chris Carter.
animation mechanics in SVG
|
|
|
|
|
You would probably need to run some benchmarks. In general NGEN is supposed enhance performance. I find alot of the overhead of .NET applications is on the first run, which has to load the CLR.
I would guess that C# app would never be faster than native C++ compiled code, but that's just an opinion.
I would be interested to know your results.
- Good Luck
R.Bischoff | C++
.NET, Kommst du mit?
|
|
|
|
|
Hi all,
I would like to know whether an assembly that has been passed through NGEN.EXE can be forwarded to a Windows CE .NET Runtime. Or since because it has already been NGENed into native image for WinXP (or the source) it is no longer valid.
I am having this doubt, since I have an NGEN image here and deployment need for Windows CE.
Thanks in advance,
Deepak Kumar Vasudevan
http://deepak.portland.co.uk/
|
|
|
|
|
What's up with this error? It seems to be everywhere with no real answer?!
|
|
|
|
|
"resolved" might be the key here. DNS resolution is failing. Make sure you use absolute network path to DB in your connection string. Also try to use IP instead of domain name
R.Bischoff | C++
.NET, Kommst du mit?
|
|
|
|
|
Dear All,
1- Is TAPI supported in .NET?
2- How can I access COM/USB Ports in .NET?
Regards,
Sassan Komeili Zadeh
|
|
|
|
|
Sassan Komeili Zadeh wrote:
- Is TAPI supported in .NET?
Sadly not yet. Your best bet is using COM interop with the TAPI 3 COM interfaces. I had a brief attempt at using TAPI 2 and Managed C++ but it was more trouble than it was worth. In the end I wrapped my TAPI 2 code in a COM object.
Michael
The avalanche has started, it's too late for the pebbles to vote.
|
|
|
|
|
Hello all.
I have VS.NET (Production) installed on my machine now. What is the "fall-out" of installing VS.NET 2003 Final Beta on the same machine?
TIA.
Don
|
|
|
|
|
|
I know this is properly the dummest question? But still I want to know, recently I am been assigned to devlope a program in Apple Mac OS (a program that has to interact with Excel - how do u do that? there isn't OBDC in Apple).
Anyway, I was wonder can program that written in C# or VB .NET work in Apple Mac. can it??
(Sorry for wasting space, time, in reading this real stupid question)
If there are three people walking with me, one of them can be my teacher.
[Andy]
|
|
|
|
|