.net

c# generated csv file sent via email embedded to bottom of email in lotus note

I am having this weired issue that CSV attachment sent via email using .NET SmtpClient appeared at the bottom of the email rather than attachment in Lotus Note. I just don’t know how to figure it out and I have no access to client computer makes debugging very hard. What are the possible steps I can take and possible gotchas I need to be...

How to read a image by IDataReader

I work on window C# vs05. i want to read a image by IDataReader....in oledb....how can i do it suppose i want to read int value from database column name student id then i write code in bellow way private IDataReader _reader; public int GetInt32(String sFieldName) { return (_reader[sFieldName]==DBNull.Value)? (Int32) 0 :Conv...

Calculate Block Check Character (BCC) for serial communication

Hi There, I am communicating with a device via serial via the SerialPort class of .NET and based on third-party device specification requirements I need to calculate a "block check character". The only information I am told is that it is an exclusive OR operation (XOR) and it must be performed over all characters. So if I have the st...

Service for feed converting (version problem).

Hello there, I have made an application (for my self) for feeds reading, using SyndicationFeed, and the problem is that it supports just Atom 1.0 and RSS 2.0. I have bunch of feeds which are RSS 0.92 version and so... So my question is: Is there any service which I can use for converting RSS 0.92 to RSS 2.0 or Atom 1.0. Someone told...

Choice of DSL framework

I am working on a project that requires me to define a DSL. Since coming up with the right DSL is critical for my project, I decided to evaluate existing frameworks that help in defining DSLs,parsing it and code generation(which has to be in a .NET based language) The frameworks I considered are : Boo language that has a customizable c...

Grid View vs List View

What are the advantages of using listview over gridview? I need pagination, editing rows, inserting and deleting rows in my view. Which is the best control for that? Seems like Data pager is not supported on gridview... I would like to know what all I would miss if I migrate my gridviews to listviews. ...

How to add code beside to ASP.NET MVC view in Visual Studio?

I want to use code beside files for my views in my ASP.NET MVC project. Is there any simple way in Visual Studion 2008 how to add a code beside file to the view? Note: I know that code besides files are no preferred in ASP.NET MVC but my reason is that I want to give .aspx files to designer and don't want to confuse him nonHTML code as ...

Whats a good .net sql server ecommerce store that I can integrate existing logins into the customer databse, and import some 3000 products with realtive ease (from an Erol store)

I need a quick list of stores and why you think they are the best. ...

Forcing my app to use a specific version of a dll

Hi, I have application which needs to use a dll (also written by me) which has be independently verified by a government agency. We plan to modify the dll very rarely due to the re-verification which would be required. I want to prevent inadvertent modifications to this dll being picked up by my application. Is there a way to create a h...

Closing a Windows Mobile Console Application

What is the best and cleanest way to close a console application on windows mobile? The application by default is invisible and you cannot see it in the running programs, which is great for running a background process, but sometimes the user might need to close it.. ...

NET code to "listen" to an office application (get the events raised by the user)

I am on the verge of remaking an application for e-learning. But now I want to take this new version to a new level. So this the scenario: a user opens up my app. He/she then chooses to be trained in one of the most common MS Office applications (Word,Excel,Outlook, etc). My app will give the user instructions on what to do: create a n...

dotnet:is there any way out to directly get reference of value collection in dictionary?

i want to sort dictionary based upon value of each dictioanry item.but if i use sorted dictionary search time complexity will increase from constant to log2(n).so i want to directly assign reference of value list in dictionary to a list.then i can sort this list and get results.i dont want to iterate to each element of dictionary to add ...

Difference in Sharepoint and .Net development?

What is difference in developing applications using .Net Framework, Asp.net and developing application in Sharepoint (MOSS or WSS)? ...

Creating Delta Diff Patches of large Binary Files in C#

I looking for a way to create Delta Diff Patches of Large Binary Files (VMWare Virtual Disk Files). Is there an implementation in C# or any useful methods in the the .NET Framework. Any help is appreciated. Thanks. rAyt ...

On having more than one "application" accessible within a single basic form

I have two essentially separate applications for configuring two pieces of hardware sold by this company. I've been asked to put the two applications together so that they can be accessed from within the same program in such a way that both are accessible. An analogy to the idea would be opening a program, selecting a file to open, then...

Clarification regarding public key token of .NET Assembly

Quote from Wikipedia : "A public key token. This is a 64-bit hash of the public key which corresponds to the private key used to sign[1] the assembly. A signed assembly is said to have a strong name." [Source : http://en.wikipedia.org/wiki/.NET_assemblies] Is this correct? I feel this is not consistent with the explanation that follows...

cannot convert from 'WCHAR' to 'WCHAR [260]'

Hi, I am trying to modify the amcap, an application from Windows SDK's example to capture video from UVC webcam having resolution 1600x1200px. I am trying to hardcode some variables here like filename, default resolution, type of format etc. WCHAR wszCaptureFile[260]; gcap.wszCaptureFile = (WCHAR)"Capture.avi\0" //modified gettn...

I am missing something about the usefulness of hashes

So, hashes are useful because they change password/login name/salt value combinations to a code that cannot be reversed. The client sends this hash to the server. The server compares the hash to a list of stored hashes to see if the client's user may be granted access. But how do I prevent a malicious user from intercepting the hashed pa...

Parenting a .NET form to an HWND.

I'm developing a plugin (C++/CLI DLL) that runs inside of an certain applications, about which I only know the HWND. My plugin shows various .NET forms that I'd like to behave as children of the main application (e.g. centered to the main window, etc). Here's what I've tried: // MyDialog.h public ref class MyDialog : public System::Wi...

Can I write the code based on .NET Framework 4.0 without vs 2010?

I downloaded and installed the .net framework 4.0, but I didn't install VS 2010, because VS 2010 require the high-performance computer hardware. I have no but I expect to taste the C# 4.0 feature. ...