TOPIC: After upgrade to 2.0, Error CS1595 System.TimeSpan is defined in
multiple places
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/9dd6566f1396dd7c?hl=en
==============================================================================
== 1 of 3 ==
Date: Sun, May 11 2008 12:02 am
From: Brent
On May 10, 1:53 pm, Marc Gravell <marc.grav...@gmail.com> wrote:
> Are you intentionally referencing both 1.1 and 2.0? What csc command
> are you using? Call me lazy, but I do like using tools like VS, which
> will sort out this type of issue for us...
>
> Marc
Thanks for the heads up, Marc. My CSC command looks like this (sans
line feeds):
C:\[PathToCSC]\csc.exe
/t:library
/out:C:\[PathToBin]\bin\toolbox.dll
C:\[PathToCSFile]\toolbox.cs
/r:c:\windows\Microsoft.NET\Framework\v1.1.4322\System.Web.dll
/r:c:\windows\Microsoft.NET\Framework\v1.1.4322\mscorlib.dll
/r:c:\windows\Microsoft.NET\Framework\v1.1.4322\System.Data.dll
/r:c:\windows\Microsoft.NET\Framework\v1.1.4322\system.dll
/r:c:\windows\Microsoft.NET\Framework\v1.1.4322\system.web.dll
/r:c:\windows\Microsoft.NET\Framework\v1.1.4322\system.xml.dll
Weird stuff...
== 2 of 3 ==
Date: Sun, May 11 2008 12:49 am
From: Marc Gravell
And just checking: are you using the 1.1 version of csc, or the 2.0
one?
Marc
== 3 of 3 ==
Date: Sun, May 11 2008 10:28 am
From: Brent
On May 11, 12:49 am, Marc Gravell <marc.grav...@gmail.com> wrote:
> And just checking: are you using the 1.1 version of csc, or the 2.0
> one?
>
> Marc
This is a good question. Actually, I'm using a csc.exe located in the
same folder as the .CS file. When I pointed to the CSC.exe file
located in c:\windows\Microsoft.NET\Framework\v1.1.4322\ , the
compiling works fine! Could it be that the absence of a csc.exe.config
in the local folder causes the csc to look all over the place for the
referenced namespaces, and come up with conflicts?
Whatever the case, I'm back on track.
Thanks, Marc.
--Brent
==============================================================================
TOPIC: VS2008 and Webservice
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/d08303ec909cf56e?hl=en
==============================================================================
== 1 of 1 ==
Date: Sun, May 11 2008 2:28 am
From: bob
On Sat, 10 May 2008 14:43:29 -0700 (PDT), Marc Gravell
<marc.gravell@gmail.com> wrote:
>> Ironic given that the Dot net movement started with the Web in mind.
>
>Well, it (a better ASP via ASP.NET) was certainly a consideration -
>but it was far from the only aim... another goal was to be a better
>COM/COM+, regardless of *what* it was doing...
>
>Note that "web deployment projects" almost certainly configure IIS
>like this.
Ahhhh Web deployment project. Now there's a thought. (Didn't even know
there was such a beast.) I really must get out more. :-)
May be my best option is to stay inside the IDE and leave outside
testing to deploying on another box. (Don't want to deploy anything on
my box, last time I de-installed an app I had deployed, it totalled
the IDE.)
Can you please elaborate on setting the directory as an application
directory.
I have been wandering around checking properties etc inside and
outside of IIS Manager
I think my problems are more deep seated though. Again possibly
related to not deploying properly.
The application log is filling up with errors known to the knowledge
base.
I am running my IDE on a Win2003 server. I have been through a couple
of the KB articles (315158, 811320.) which essentially indicate that
the ASPNET account doesn't have enough rights to access the working
and or system directories.
I have implemented the 'fixes' but still no go.
On a more general note I think you have answered my philisophical
critiicisms. The presence of a Web deployment project puts Web
development on the same footing as Application development. i.e
Deployment is specifically focussed on and catered for.
My lack of experience with web development had me thinking that
publishing was all there was.
Thanks for your time on this problem.
regards
Bob
==============================================================================
TOPIC: "Using" DirectX class libraries- newbie question
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/d4abdaf9e89d6a14?hl=en
==============================================================================
== 1 of 1 ==
Date: Sun, May 11 2008 2:47 am
From: "Rob Lancaster"
"Peter Webb" <webbfamily@DIESPAMDIEoptusnet.com.au> wrote in message
news:4826880c$0$30462$afc38c87@news.optusnet.com.au...
> Sorry, stupid newbie question.
>
> I have VS2008, and I downloaded and installed the DirectX SDK.
>
> I want to access the DirectX classes from C#, but I can't see how to make
> C# aware of them.
>
> using Microsoft.DirectX.Direct3DX;
>
> says the namespace doesn't exist.
>
> How do I link so a C# program has access?
>
> Thanks, Peter Webb
>
In addition to adding the references as Carl said, the above line should be
using Microsoft.DirectX.Direct3D; //No X at the end.
Rob
==============================================================================
TOPIC: user.config file question
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/559915b568b72088?hl=en
==============================================================================
== 1 of 1 ==
Date: Sun, May 11 2008 2:57 am
From: Jani
Hi Piotrekk
See http://www.codeproject.com/KB/dotnet/user_settings.aspx for more
informations about .NET user settings.
Reagrds
Jani
"Piotrekk" wrote:
> Hi
>
> I have a problem connected with user.config file. I am using default
> settings.settings . To settings.settings I am adding one user scope
> string and one application scope string. Thus app.config file is added
> to my project. When I build and run the project app.exe.config file is
> created and added to application base directory. This file contains
> two strings added previously.
>
> Q1: No user.config file is created in my documents and settings
> folder. Why? Is that because the application should be installed using
> msi installer rather than xcopy?
>
> I expected Visual Studio to separate user settings from app settings
> (at build time )and create user.config in user specific folder, and
> app.exe.config in application base folder.
>
> Best Regards
> PK
>
==============================================================================
TOPIC: acomplia belgique sur internet acomplia canada par email acheter votre
acomplia canada commander acomplia en France soft acomplia belgique Generique
Inde 1
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/7f9503dec262addf?hl=en
==============================================================================
== 1 of 1 ==
Date: Sun, May 11 2008 3:11 am
From: kbkbkbkbk@gmail.com
acomplia belgique sur internet
acomplia canada par email
acheter votre acomplia canada
commander acomplia en France soft
acomplia belgique Generique Inde
+++ PERTE DE POIDS +++ PERTE DE POIDS +++ PERTE DE POIDS +++
+
ACHETER ACOMPLIA BON MARCHE (ALL CARD ACCEPTED)
http://jhku.net/ACHETER-ACOMPLIA-BON-MARCHE/
ACHETER ACOMPLIA BON MARCHE (Western Union, Diners, AMEX)
http://WWW.ACHETER-ACOMPLIA.TK/
+
+
+
ACHETER XENICAL BON MARCHE (ALL CARD ACCEPTED)
http://jhku.net/ACHETER-XENICAL-BON-MARCHE/
ACHETER XENICAL BON MARCHE (Western Union, Diners, AMEX)
http://WWW.ACHETER-XENICAL.TK/
+
+
+
ACHETER MERIDIA BON MARCHE (Western Union, Diners, AMEX, VISA)
http://WWW.ACHETER-MERIDIA.TK/
+
+
+
ACHETER PHENTERMINE BON MARCHE (Western Union, Diners, AMEX, VISA)
http://WWW.ACHETER-PHENTERMINE.TK/
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
http://www.generic-pharmacy.net/generic-zocor.html?affid=6138
http://cheap.acomplia-24.info/
http://www.generic-pharmacy.net/generic-soma.html?affid=6138
http://www.directpharma.net/Carisoprodol.html?affid=6138
http://www.generic-pharmacy.net/generic-accutane.html?affid=6138
femme en termes de acomplia en France
acomplia canada soft bon marche
acomplia belgique par email
dans commande acomplia corpus
acomplia canada citrate de Rimonabant
Achetez Le acomplia
acomplia suisse generique bon marche
acomplia belgique par email
acomplia canada bon marche Sans Prescription
acomplia suisse le plus bon marche
acomplia soft bon marche
Achetez Le acomplia canada
acomplia a vendre
acomplia a vendre
acquerir acomplia us usa soft
acomplia suisse soft bon marche
acomplia canada generique bon marche
acomplia belgique soft sans prescription
on acomplia us usa a vendre
acheter du acomplia canada cinq
acomplia belgique generique bon marche
acomplia canada a vendre
commander comprime de acomplia en France
acomplia suisse bon marche
acomplia suisse le plus bon marche
acheter acomplia canada bon marche en linge
eurodrugs.org
acheter acomplia canada generique
acheter acomplia bon marche
PERTE DE POIDS en France
Acheter acomplia canada en ligne sur internet
acomplia suisse citrate de Rimonabant
eurodrugs.org
acomplia au rabais au Canada
generique pharmacie canada
Achat acomplia canada Simple
==============================================================================
TOPIC: Saving user settings in winforms C#
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/f82c062ea065b7f8?hl=en
==============================================================================
== 1 of 1 ==
Date: Sun, May 11 2008 3:19 am
From: Jani
Hi parez,
I agree with Jon, for this case are user settings the best solution.
The article http://www.codeproject.com/KB/dotnet/user_settings.aspx
describes the pros.
Jani
"parez" wrote:
> Whats the best way of storing user settings and application settings
> in a winforms application?
>
> Should i create my own xml files and save it in
> Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
> ?
>
> What about the Settings class.? There were examples in vb.net which
> lets a user save.
>
> If it is readonly then why is there a save method?
>
>
>
==============================================================================
TOPIC: dans commande acomplia en France corpus acomplia belgique bon marche
Sans Prescription dans commande acomplia us usa corpus achat acomplia canada
Achat acomplia canada france 1
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/a90d1fa2039e2fcb?hl=en
==============================================================================
== 1 of 1 ==
Date: Sun, May 11 2008 3:27 am
From: hugo_hurtig@hotmail.com
dans commande acomplia en France corpus
acomplia belgique bon marche Sans Prescription
dans commande acomplia us usa corpus
achat acomplia canada
Achat acomplia canada france
+++ PERTE DE POIDS +++ PERTE DE POIDS +++ PERTE DE POIDS +++
+
ACHETER ACOMPLIA BON MARCHE (ALL CARD ACCEPTED)
http://jhku.net/ACHETER-ACOMPLIA-BON-MARCHE/
ACHETER ACOMPLIA BON MARCHE (Western Union, Diners, AMEX)
http://WWW.ACHETER-ACOMPLIA.TK/
+
+
+
ACHETER XENICAL BON MARCHE (ALL CARD ACCEPTED)
http://jhku.net/ACHETER-XENICAL-BON-MARCHE/
ACHETER XENICAL BON MARCHE (Western Union, Diners, AMEX)
http://WWW.ACHETER-XENICAL.TK/
+
+
+
ACHETER MERIDIA BON MARCHE (Western Union, Diners, AMEX, VISA)
http://WWW.ACHETER-MERIDIA.TK/
+
+
+
ACHETER PHENTERMINE BON MARCHE (Western Union, Diners, AMEX, VISA)
http://WWW.ACHETER-PHENTERMINE.TK/
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
http://www.usonlinerx.net/order-levitra.html?affid=6138
http://www.buy-viagra-where.info/
http://www.topills.com/Generic-Viagra-ST.html?affid=6138
http://www.buy-albenza-generic.info
http://www.usonlinerx.net/order-viagra.html?affid=6138
acomplia suisse citrate de Rimonabant
acomplia aucune prescription
acomplia soft sans prescription
commander acomplia soft
Acheter acomplia canada en ligne sur internet
acheter acomplia bon marche en linge
Achetez acomplia canada
acomplia sur internet
acheter votre acomplia canada
acomplia suisse citrate de Rimonabant
acomplia belgique au rabais en ligne sans prescription
acheter acomplia en linge sans presription
PERTE DE POIDS
eurodrugs.org
acheter votre acomplia canada
acheter du acomplia
acomplia canada Generique Inde
eurodrugs.org
acomplia belgique sans ordonnance
acomplia Generique Inde
acomplia au rabais au Canada
acomplia belgique bon marche
un Achat de acomplia avec livraison
acomplia en France a vendre
Achat acomplia Simple
comprimes de acomplia bon marche
citrate de Rimonabant canada
acomplia canada bon marche
acomplia suisse au rabais au suisse
citrate de Rimonabant bon marche en France
dans commande acomplia canada corpus
acomplia canada bon marche Sans Prescription
Achat acomplia Pro
comprimes de acomplia canada
acomplia belgique citrate de Rimonabant
Achat acomplia Simple
==============================================================================
TOPIC: Texture.FromBitmap is slow runing from debugger
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/3fad64d6f02d470a?hl=en
==============================================================================
== 1 of 2 ==
Date: Sun, May 11 2008 3:45 am
From: "colin"
Hi,
Ive written a 3dmodel editor, and it works fairly well
it harldy uses any cpu exept when its loading a texture from bitmap
in the debugger, at all other times it hardly uses any cpu
but from the debugger even in release mode it takes a second or so
to load a 65k texture, with a 2ghz pc this is 10k instructions per pixel !
I cant understand what its doing here, can anyone shed any light on this ?
I have the d3d debug turned off although this makes zero difference.
yet it stil manages to actually draw the animated model meshes with <1% cpu.
in multi viewports, also load and decode the 20mb or so of files in under 1
second.
im using ..
Bitmap bitmap
Texture.FromBitmap(Draw3dDevice.device, bitmap, Usage.Dynamic,
Pool.Default);
bitmap is generated from memory. this may be somethign to do with it,
but i cant think what,
as I dont think it was slow when I was laoding bitmaps another way.
thanks
Colin =^.^=
== 2 of 2 ==
Date: Sun, May 11 2008 12:34 pm
From: "Peter Duniho"
On Sun, 11 May 2008 03:45:09 -0700, colin <colin.rowe1@ntworld.NOSPAM.com>
wrote:
> Hi,
> Ive written a 3dmodel editor, and it works fairly well
> it harldy uses any cpu exept when its loading a texture from bitmap
> in the debugger, at all other times it hardly uses any cpu
> but from the debugger even in release mode it takes a second or so
> to load a 65k texture, with a 2ghz pc this is 10k instructions per pixel
> !
Where is the data in the Bitmap located? If you are copying data that's
in video memory already, that can indeed be very slow, depending on the
video bus your hardware has.
Beyond that, this is just not the newsgroup for your question. Your
question has zero to do with C# or .NET, and if you want a _good_ answer,
you need to post it in a newsgroup where it's on-topic and people familiar
with the issues are reading. For example, a newsgroup specifically about
using DirectX and/or using DirectX in managed code.
Pete
==============================================================================
TOPIC: basic source code archiver
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/6453172ce135b3db?hl=en
==============================================================================
== 1 of 3 ==
Date: Sun, May 11 2008 3:57 am
From: "colin"
Hi,
I could do with a simple source code archiver
something that can save all source files,
and then save any changed source file,
but I dont realy want or need the
complexity of source code control.
at the moment I just zip the entire directory,
and save in numbered files, but theres a lot of large
files that arnt modified often such as 3d model objects.
thanks
Colin =^.^=
== 2 of 3 ==
Date: Sun, May 11 2008 9:20 am
From: "Arved Sandstrom"
"colin" <colin.rowe1@ntworld.NOSPAM.com> wrote in message
news:SjAVj.35539$815.3455@newsfe16.ams2...
> Hi,
>
> I could do with a simple source code archiver
> something that can save all source files,
> and then save any changed source file,
> but I dont realy want or need the
> complexity of source code control.
>
> at the moment I just zip the entire directory,
> and save in numbered files, but theres a lot of large
> files that arnt modified often such as 3d model objects.
>
> thanks
> Colin =^.^=
By the time you're done figuring out a personal system for saving only the
files that have changed, and then deciding that it's sort of gross to save
the complete copy of a file that you only changed 2 lines in, and
implementing a system to handle _that_ situation, you could already have
gone through the setup and relatively short learning curve for something
like Subversion on Windows:
http://blogs.vertigosoftware.com/teamsystem/archive/2006/01/16/Setting_up_a_Subversion_Server_under_Windows.aspx
It'll save you a lot of time, and give you a much more reliable revision
control system.
AHS
== 3 of 3 ==
Date: Sun, May 11 2008 10:51 am
From: Jon Skeet [C# MVP]
colin <colin.rowe1@ntworld.NOSPAM.com> wrote:
> I could do with a simple source code archiver
> something that can save all source files,
> and then save any changed source file,
> but I dont realy want or need the
> complexity of source code control.
>
> at the moment I just zip the entire directory,
> and save in numbered files, but theres a lot of large
> files that arnt modified often such as 3d model objects.
There's not really much difference between what you've described and
real source control. You don't *have* to use branching/merging etc.
--
Jon Skeet - <skeet@pobox.com>
Web site: http://www.pobox.com/~skeet
Blog: http://www.msmvps.com/jon.skeet
C# in Depth: http://csharpindepth.com
==============================================================================
TOPIC: das system kann sie nicht anmelden da die domaene kostenlose web
hosting linux an windows domaene anmelden com domain suchen internet domain
registrierung 1
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/9d15fb4bf9d8d7aa?hl=en
==============================================================================
== 1 of 1 ==
Date: Sun, May 11 2008 4:33 am
From: kbkbkbkbk@gmail.com
das system kann sie nicht anmelden da die domaene
kostenlose web hosting
linux an windows domaene anmelden
com domain suchen
internet domain registrierung
+
+
+
http://jhku.net/DOMAINS-KOSTENLOS/
http://jhku.net/DOMAINS-KOSTENLOS/
http://jhku.net/DOMAINS-KOSTENLOS/
http://jhku.net/DOMAINS-KOSTENLOS/
http://jhku.net/DOMAINS-KOSTENLOS/
http://jhku.net/DOMAINS-KOSTENLOS/
+
+
+
http://jhku.net/WEBSPACE-KOSTENLOS/
http://jhku.net/WEBSPACE-KOSTENLOS/
http://jhku.net/WEBSPACE-KOSTENLOS/
http://jhku.net/WEBSPACE-KOSTENLOS/
http://jhku.net/WEBSPACE-KOSTENLOS/
http://jhku.net/WEBSPACE-KOSTENLOS/
+
+
+
http://www.v-medical.com/Generic-Lipitor.html?affid=6138
http://www.generic-pharmacy.net/generic-cialis-st.html?affid=6138
http://www.online-medical.net/Finasteride.asp?affid=6138
http://www.topills.com/Order-Levitra.html?affid=6138
http://www.topills.com/Generic-Acomplia.html?affid=6138
com domain registrar
vista anmeldung domaene
domain weiterleitung
vista anmeldung domaene
eigene domain free
domainregistrierung eu
eu domain reservieren
camp de domain
kostenlose de domain ohne werbung
billige domains
free domain
us domain registrieren
samba domain controller
www meine domain de
domain de com
guenstigster domain anbieter
domains kaufen
domain hosting guenstig
www domains de
de domains
eigene domain machen
eigene domains
gratis homepage domain
email domain
cheap domain
an einer domaene anmelden
domains intergenia de
domain online de
anmeldung domaene nicht verfuegbar
kostenlose domains vu
euro domain registrierung
ru domain registrieren
nur domain registrieren
guenstigste de domain
kostenlose domain de vu
domain vergabe
==============================================================================
TOPIC: error message trying the microsoft console application example
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/213a59368c40d7fe?hl=en
==============================================================================
== 1 of 1 ==
Date: Sat, May 10 2008 3:12 pm
From: "Stephen Thomas"
Hi there
I wonder if any one has encountered this problem or can suggest what is
wrong. I am trying the a procedure from the msn site but get the following
message:
Error 1 The type or namespace name 'LiveSearch' does not exist in the
namespace 'ConsoleSampleWebSearch' (are you missing an assembly reference?)
C:\Documents and Settings\Compaq\Local Settings\Application Data\Temporary
Projects\ConsoleSampleWebSearch\Program.cs 13 30 ConsoleSampleWebSearch
I thought I had followed their instructions to the letter - but (as a
newcomer) maybe I am making a faux pas.
I tried editing in different variations on a theme for that line (a few
syntax tricks) to no avail.
below is the example as it appears on the msn site:
I would love to hear from anyone who has (or knows how to) overcome this -
hopefully when I get past these initial hurdles I would aspire to being able
to contribute to your newsgroup answers too (more of a "C"/"C++" person so
far!)
To set up the project in Microsoft Visual Studio .NET 2005 1.. Open
Microsoft Visual Studio .NET 2005 and, from the File menu, choose New |
Project. The New Project dialog box appears.
2.. In the Project types pane, choose Visual C# and then choose Windows.
3.. In the Templates pane, choose Console Application.
4.. Type the name of the project, ConsoleSampleWebSearch, in the Name text
box and click OK. Visual Studio creates a new project.
5.. In the Solution Explorer, right-click References and, from the pop-up
menu, select Add Web Reference.
6.. Type the following address in the URL text box:
http://soap.search.msn.com/webservices.asmx?wsdl.
7.. Click Go.
8.. In the Web reference name text box, type LiveSearch and click Add
Reference.
To add the source code to the project
1.. Replace the source code in the file Program.cs with the source code in
the Example section. To do this:
1.. Click Copy Code to place the code in the Windows Clipboard.
2.. Open Program.cs from the Solution Explorer, place your cursor
anywhere in the file, and press Ctrl + A.
3.. Press Ctrl + V to paste the code into the Visual Studio source file,
overwriting the template-generated code.
2.. Search for and replace the text YOUR_APP_ID_GOES_HERE with the AppID
you generated from the Developer Provisioning System.
3.. Press F5 to run the application in Debug mode.
Requirements
a.. Microsoft Visual Studio .NET 2005 or Microsoft Visual C# .NET 2005.
b.. Internet connection.
c.. Application ID. (See Getting Started with the Live Search API for more
information on obtaining an AppID for use with the Live Search Web Service.)
Demonstrates
A basic Web search using the keywords live search and default input
parameters.
Example
Copy Code
//THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
//ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED
//TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//PARTICULAR PURPOSE.
//
//Copyright (C) 2007 Microsoft Corporation. All rights reserved.
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.Services.Protocols;
using System.Net;
using ConsoleSampleWebSearch.LiveSearch;
namespace ConsoleSampleWebSearch
{
class Program
{
static void Main(string[] args)
{
/* TIP: To run any of the samples featured in the API Reference,
remove the code in the try...catch
* block and replace it with the code from the example topic you
want to run. */
try
{
MSNSearchService s = new MSNSearchService();
SearchRequest searchRequest = new SearchRequest();
int arraySize = 1;
SourceRequest[] sr = new SourceRequest[arraySize];
sr[0] = new SourceRequest();
sr[0].Source = SourceType.Web;
searchRequest.Query = "live search";
searchRequest.Requests = sr;
// Enter the Application ID, in double quotation marks,
supplied by the
// Developer Provisioning System, as the value of the AppID
on the SearchRequest.
searchRequest.AppID = "YOUR_APP_ID_GOES_HERE";
searchRequest.CultureInfo = "en-US";
SearchResponse searchResponse;
searchResponse = s.Search(searchRequest);
foreach (SourceResponse sourceResponse in
searchResponse.Responses)
{
Result[] sourceResults = sourceResponse.Results;
if (sourceResponse.Total > 0)
{
Console.WriteLine(sourceResponse.Source.ToString() +
" - Total Results: " + sourceResponse.Total.ToString());
Console.WriteLine();
}
foreach (Result sourceResult in sourceResults)
{
if ((sourceResult.Title != null) &&
(sourceResult.Title != String.Empty))
Console.WriteLine("Title: " +
sourceResult.Title);
if ((sourceResult.Description != null) &&
(sourceResult.Description != String.Empty))
Console.WriteLine("Description: " +
sourceResult.Description);
if ((sourceResult.Url != null) && (sourceResult.Url
!= String.Empty))
Console.WriteLine("URL: " + sourceResult.Url);
Console.WriteLine("*****************************************************");
}
}
Console.WriteLine("Press any key to exit.");
Console.ReadLine();
}
catch (SoapException fault)
{
Console.WriteLine(fault.Detail.InnerText.ToString());
Console.WriteLine("Press any key to exit.");
Console.ReadLine();
}
catch (WebException webx)
{
Console.WriteLine(webx.ToString());
}
/* This is the end of the try...catch block. */
}
}
}
==============================================================================
TOPIC: How to determine console or winform app?
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/d5f8ad3f3ebaa4e6?hl=en
==============================================================================
== 1 of 2 ==
Date: Sun, May 11 2008 6:43 am
From: "None"
Hello, my app is written in C#. Given an app file path (e.g. e:\abc.exe),
how can I determine if it's a winform app or a console one. (note: abc.exe
can be either a native exe or a .net one)
== 2 of 2 ==
Date: Sun, May 11 2008 10:00 am
From: kimiraikkonen
On May 11, 4:43 pm, "None" <n...@none.com> wrote:
> Hello, my app is written in C#. Given an app file path (e.g. e:\abc.exe),
> how can I determine if it's a winform app or a console one. (note: abc.exe
> can be either a native exe or a .net one)
Hi,
Try to run the application from command prompt (cmd.exe) then if it's
a winform application the application's main form is opened as window,
if not, the program is started and output is visible inside command
prompt as just a guess to verify, better ideas may exist.
Thanks,
Onur Güzel
==============================================================================
TOPIC: meridia aucune prescription meridia par email meridia belgique sur
internet citrate de SIBUTRAMINE soft en France meridia belgique 1
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/d2c2a8b576be4224?hl=en
==============================================================================
== 1 of 1 ==
Date: Sun, May 11 2008 8:59 am
From: kmwkawrt@yahoo.com
meridia aucune prescription
meridia par email
meridia belgique sur internet
citrate de SIBUTRAMINE soft en France
meridia belgique
+++ PERTE DE POIDS +++ PERTE DE POIDS +++ PERTE DE POIDS +++
+
ACHETER MERIDIA BON MARCHE (Western Union, Diners, AMEX, VISA)
http://WWW.ACHETER-MERIDIA.TK/
+
+
+
ACHETER ACOMPLIA BON MARCHE (ALL CARD ACCEPTED)
http://jhku.net/ACHETER-ACOMPLIA-BON-MARCHE/
ACHETER ACOMPLIA BON MARCHE (Western Union, Diners, AMEX)
http://WWW.ACHETER-ACOMPLIA.TK/
+
+
+
ACHETER XENICAL BON MARCHE (ALL CARD ACCEPTED)
http://jhku.net/ACHETER-XENICAL-BON-MARCHE/
ACHETER XENICAL BON MARCHE (Western Union, Diners, AMEX)
http://WWW.ACHETER-XENICAL.TK/
+
+
+
ACHETER PHENTERMINE BON MARCHE (Western Union, Diners, AMEX, VISA)
http://WWW.ACHETER-PHENTERMINE.TK/
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
http://www.topills.com/Order-Cialis.html?affid=6138
http://www.generic-pharmacy.net/generic-propecia.html?affid=6138
http://www.topills.com/Order-Levitra.html?affid=6138
http://www.directpharma.net/simvastatin.html?affid=6138
http://www.topills.com/Order-Levitra.html?affid=6138
femme en termes de meridia canada
meridia sur internet
on meridia a vendre
meridia belgique par email
meridia belgique commande en ligne
meridia belgique
meridia canada au rabais en ligne sans prescription
meridia belgique citrate de SIBUTRAMINE
meridia au rabais en ligne sans prescription
acheter meridia concernées par cette
acheter votre meridia
acheter meridia canada bon marche en linge
meridia belgique generique bon marche
citrate de SIBUTRAMINE bon marche canada
meridia suisse soft en ligne
commander meridia canada en ligne
meridia suisse pharmacie
pharmacie en ligne
meridia belgique sur internet
comprimes de meridia en France bon marche
meridia canada soft sans prescription
meridia belgique sans ordonnance
generique medicaments
commander meridia en ligne aucune prescription
meridia belgique
meridia belgique en ligne
meridia suisse generique bon marche
citrate de SIBUTRAMINE soft
commander meridia canada en ligne aucune prescription
generique medicaments
commander meridia canada en ligne aucune prescription
commander meridia canada en ligne aucune prescription
generique medicaments canada
meridia suisse Generique Inde
commander meridia canada en ligne
Acheter meridia canada en ligne sur internet
==============================================================================
TOPIC: meine sperma schlampe männer besamen sexgeschichten sperma bilder kuh
besamen freundin besamen 1
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/8641310233924246?hl=en
==============================================================================
== 1 of 1 ==
Date: Sun, May 11 2008 9:03 am
From: kmwkawrt@yahoo.com
meine sperma schlampe
männer besamen
sexgeschichten sperma bilder
kuh besamen
freundin besamen
+
+
+
http://jhku.net/sperm/
http://jhku.net/sperm/
http://jhku.net/sperm/
http://jhku.net/sperm/
http://jhku.net/sperm/
+
+
+
+
http://www.rollyo.com/sperm_video_and_pics/sperm_cocktail_party/sperm+cocktail+party
http://www.rollyo.com/sperm_video_and_pics/extrem_sperm_sluts/extrem+sperm+sluts
http://www.rollyo.com/sperm_video_and_pics/sperm_shower_sluts/sperm+shower+sluts
http://www.rollyo.com/sperm_video_and_pics/sperm_boobs_girls/sperm+boobs+girls
http://www.rollyo.com/sperm_video_and_pics/www.sperm-swap.com/www.sperm-swap.com
http://www.rollyo.com/sperm_video_and_pics/sperm_bukkake_girls/sperm+bukkake+girls
http://www.rollyo.com/sperm_video_and_pics/www.spermswap.com/www.spermswap.com
http://www.rollyo.com/sperm_video_and_pics/geile_sperma_spiele/geile+sperma+spiele
http://www.rollyo.com/sperm_video_and_pics/sperm_fuck_babes/sperm+fuck+babes
http://www.rollyo.com/sperm_video_and_pics/sperma_schlucken/sperma+schlucken
http://www.rollyo.com/sperm_video_and_pics/eating_sperm_sluts/eating+sperm+sluts
+
+
+
http://www.generic-pharmacy.net/generic-levitra.html?affid=6138
http://www.generic-pharmacy.net/generic-xenical.html?affid=6138
http://www.directpharma.net/atorvastatin.html?affid=6138
http://www.v-medical.com/Generic-Cialis-Viagra-Levitra.html?affid=6138
http://www.c-medical.net/prices.asp?affid=6138
hunde besamen
junge sperma bilder
dicke sperma schlampe
hengst besamen
oma besamen
sperma schlampe frau
sperma spiele
nasse sperma schlampe
stuten besamen
ao besamen
kühe besamen
arsch sperma schlampe
fkk sperma schlampe
hengst besamen
sie besamen
stute besamen
schwängern besamen
heisse sperma schlampe
besamen geschichten
meine sperma schlampe
junge sperma schlampe
lasse mich besamen
arsch sperma schlampe
dicke sperma schlampe
sperma schlampe geschichten
kostenlose sperma bilder
oma besamen
schuhe besamen
fremd besamen
kleine sperma schlampe
lasse mich besamen
ohne gummi besamen
dvd besamen
sperma schlampe bilder
schwester sperma schlampe
sperma spiele
==============================================================================
TOPIC: DataGridView: Need to make Enter key create newline in textbox
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/ed6aa115ab5b180a?hl=en
==============================================================================
== 1 of 2 ==
Date: Sun, May 11 2008 9:19 am
From: Steve K
I've got a full day invested in this now and I still can't make it work.
Hopefully someone here can offer some suggestions.
Here is the situation: I have a data entry application and am using a
DataGridView to enter order details. When it comes to the serial
numbers we will use a barcode reader which send a carriage return
character after each barcode is read. We can't change this behavior
(well, we can but it works great in the other 3-4 applications we use)
When a user is entering serial numbers into the serial number cell I
want each scanned serial number to be on it's own line, just like:
abc123
abc456
abc789
I'm able to get this behavior by pressing the SHIFT+ENTER combo but I
can't setup the barcode reader to send this combination.
The solution I've come up with (based on an article I found online
somewhere) is to create my own DGV Cell, Column and EditingControl.
Here is the code for those classes:
<code>
public class PMDDataGridViewTextBoxEditingControl :
DataGridViewTextBoxEditingControl
{
public override bool EditingControlWantsInputKey(Keys keyData, bool
dataGridViewWantsInputKey)
{
switch (keyData & Keys.KeyCode)
{
case Keys.Prior:
case Keys.Next:
case Keys.End:
case Keys.Home:
case Keys.Left:
case Keys.Up:
case Keys.Right:
case Keys.Down:
case Keys.Delete:
case Keys.Enter:
return true;
}
return base.EditingControlWantsInputKey(keyData,
dataGridViewWantsInputKey);
}
protected override void OnKeyDown(KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
this.Text += Environment.NewLine;
this.Select(this.Text.Length, 0);
}
base.OnKeyDown(e);
}
}
public class PMDMultilinDataGridViewCell : DataGridViewTextBoxCell
{
public override Type EditType
{
get
{
return typeof(PMDDataGridViewTextBoxEditingControl);
}
}
}
public class PMDMultilineDataGridViewColumn : DataGridViewColumn
{
public PMDMultilineDataGridViewColumn()
: base(new PMDMultilinDataGridViewCell())
{
this.DefaultCellStyle.WrapMode = DataGridViewTriState.True;
}
}
</code>
Note that in the EditingControl I am inserting a newline and moving the
cursor to this newline when an enter key is detected.
My question (finally!) is if this is a sound solution? It works, but
feels "hacky" to me and I suspect I may be missing a more elegant solution.
Anyone have any ideas?
== 2 of 2 ==
Date: Sun, May 11 2008 10:20 am
From: Steve K
to this newline when an enter key is detected.
>
> My question (finally!) is if this is a sound solution? It works, but
> feels "hacky" to me and I suspect I may be missing a more elegant solution.
>
> Anyone have any ideas?
Update: I tried adding this code:
<code>
public PMDDataGridViewTextBoxEditingControl()
:base()
{
this.Multiline = true;
}
</code>
This has no effect, I still need to insert the Environment.NewLine
characters.
It's strange, DataGridViewTextBoxEditingControl derives from TextBox,
I'm not clear where the different behavior is being introduced. In
other words, if I create a multiline TextBox control I can press enter
and get a newline, so why with this DGV control is the behavior different?
==============================================================================
TOPIC: Mime Type of a file
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/bfca774863fc2a2a?hl=en
==============================================================================
== 1 of 1 ==
Date: Sun, May 11 2008 9:41 am
From: tinman77
On May 8, 9:57 pm, tinman77 <r.rodemo...@gmail.com> wrote:
> Thanks in advance for everyone's help...
>
> My problem is that more often than I would like, I get attachments
> that for some reason or another do not include an extension. What I
> want to do is create a C# app that based on a file on my hard drive
> that I specify, will spit back to me the mime type. I can do the rest
> from there.
>
> I have looked, and looked and looked a little more for a way to
> determine the type of a file that does not rely on the extension. So
> far I have come up with next to nothing - a couple libraries that do
> this but that's not what I'm looking for. I don't want to use a whole
> extra just to find out what kind of file I have.
>
> To clarify what I'm looking for, PHP has similar functionality using
> the FileInfo class. Simple, easy and to the point. Does nothing like
> this exist in C#? I have looked at different class on MSDN and
> searched Google relentlessly but, I got nothing. I read something
> about the Attachment class but I was having problems following the
> documentation I found for it.
>
> I have provided a general outline for the code I am looking for. Feel
> free to correct me if my request is semi-outrageous.
>
> myFile = "C:\screw-the-extension"
> myFileObject = new File(myFile)
> print myFileObject.MimeType
>
> Any help is more than appreciated.
Well apparently nothing like this exists. However I found a class that
will return the mime type of a file. Source and source code below.
using System;
using System.IO;
using System.Runtime.InteropServices;
/// <summary>
/// Utility class contains static method checkType to determine Mime
Type
/// Found at http://blogs.msdn.com/bwaldron/archive/2005/01/04/346547.aspx
/// </summary>
public class MimeTypeUtil
{
[DllImport(@"urlmon.dll", CharSet = CharSet.Auto)]
private extern static System.UInt32 FindMimeFromData(
System.UInt32 pBC,
[MarshalAs(UnmanagedType.LPStr)] System.String pwzUrl,
[MarshalAs(UnmanagedType.LPArray)] byte[] pBuffer,
System.UInt32 cbSize,
[MarshalAs(UnmanagedType.LPStr)] System.String
pwzMimeProposed,
System.UInt32 dwMimeFlags,
out System.UInt32 ppwzMimeOut,
System.UInt32 dwReserved);
public static string CheckType(string filePath)
{
byte[] buffer = new byte[256];
// grab the first 256 bytes on the file
using (FileStream fileStream = new FileStream(filePath,
FileMode.Open))
{
if (fileStream.Length >= 256)
{
fileStream.Read(buffer, 0, 256);
}
else
{
fileStream.Read(buffer, 0, (int)fileStream.Length);
}
}
try
{
System.UInt32 mimeType;
System.UInt32 returnValue = FindMimeFromData(0, null,
buffer, 256, null, 0, out mimeType, 0);
System.IntPtr mimeTypePointer = new IntPtr(mimeType);
return Marshal.PtrToStringUni(mimeTypePointer);
}
catch (Exception ex)
{
return ex.Message;
}
}
}
==============================================================================
TOPIC: On-Screen keyboard: how is it done?
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/2c271c1b1558d911?hl=en
==============================================================================
== 1 of 1 ==
Date: Sun, May 11 2008 10:10 am
From: "clintonG"
Go look around http://www.codeproject.com/
"Polaris" <etpolaris@hotmail.com> wrote in message
news:OSU6wmssIHA.3716@TK2MSFTNGP04.phx.gbl...
> Hi Experts:
>
> I saw an PC without keyboard attached, it uses an on-screen keyboard
> software program. When user clicks on a "key" (a button) on the program,
> the program can find the currently active (focused) window application
> (for example, notepad.exe) and input "typed" key into that active program;
> but the keyboard program itself seems did not get activated while user
> click on a button on it.
>
> I could not figure out how it is accomplished? How does the keyboard
> program avoid getting focus (active) even when user click on a "key"
> button of the program? It must be able to do so in order to find the
> currently active Windows program that user is working with (etc, a
> notepad.exe).
>
> Thanks for your thoughts in advance.
> Polaris
>
>
>
==============================================================================
TOPIC: Stop XmlDocument.Load() from using cached data?
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/6f3892acd2eca71b?hl=en
==============================================================================
== 1 of 1 ==
Date: Sun, May 11 2008 12:06 pm
From: Mahmoud Al-Qudsi
> Assuming you don't have a conflicting setting in the application's config(s)
> then yes that should do it.
Thanks, it worked great.
No comments:
Post a Comment