CSLA.NET vs other software?
I have been looking into a good object/relational framework solutions for my
software application. Regardless CLSA is free, how does CSLA.NET framework
compare to other O/R solutions?
CSLA.NET
http://www.lhotka.net/
eXpress Persistent Objects (easy to use, but seems it's not robust enough,
e.g. doesn't even support nested transaction)
http://www.devexpress.com/?section=/Products/NET/XPO
DataObjects.Net (seems to be a solid product, tons of features, but the
company is very young, started in 2003 Russia)
http://www.x-tensive.com/Products/DataObjects.NET/
Any comments? Tag: Can i copy machine.config? Tag: 86041
Decrease Build Time
Is there a way to increase the build speed of a solution that has a lot of
projects (>100)? The only options I can think of is to remove the
dependencies in the soluton or break up the solution into multiple smaller
solutions.
--
Jorge Matos - Software Architect
Microsoft Solution Center
6050 Oak Tree Blvd. Suite 150
Cleveland, Ohio 44131
216.369.0140 ext. 117
www.bennettadelson.com Tag: Can i copy machine.config? Tag: 86040
Where's a good place to start with Pocket PC apps.
Things I want to know, does a pocket PC have a file structure similar to a
pc? Could I build a PPC app that uses an XML datafile residing on the PPC? Tag: Can i copy machine.config? Tag: 86039
Logging Application Block.
Hi,
I am getting started with microsoft Logging Application Block
and I wonder if any one can direct what is the best way to use this block
in such a way that I can have an application which read the log file
immediately as a new entry was added to the log,
I am thinking to format an "entry" as XML
note that I cannot raise event from my server to the application which read
the log since not all the time the application is running
Thanks. Tag: Can i copy machine.config? Tag: 86038
How to get dbgclr on client PC
I am trying to get a debugger on a client PC so I can troubleshoot a VB .NET
application that runs fine on most other PCs. I thought I could just copy
the GUIdebug folder from the SDK - wrong! Surely I will not have to install
the entire SDK just to be able to get some meaningful messages out of the
failed app???!!!
Is there a way to install JUST the stuff necessary for dbgclr?
Your suggestions will be appreciated.
--
Phil Tag: Can i copy machine.config? Tag: 86037
regarding MailMessage
Hey guys,
I want to know how to use MailMessage.UrlContentLocation property and
MailMessage.Headers property. i got struck at my project for this task. Can
any one help me in this...
thanks
sri Tag: Can i copy machine.config? Tag: 86036
Socket EndConnect problem
Hi All,
I'm having a strange Socket problem. I wrote a little FTP tool using
asynchronous sockets. While connecting to a certain FTP server
(actually a printer to which I print by FTP'ing a control file) I get a
weird error when I call EndConnect:
"No connection could be made because the target machine actively refused it"
But the strange thing is that if I don't call EndConnect at all, it
works and I can upload just fine. I guess I don't understand what
EndConnect really does. I have hunted all over the web and find lots of
documentation that says basically that it ends the connection that you
start with BeginConnect, but what does it really DO? And why would I
get an error when calling it but have the FTP server work anyway if I
just omit the call? Any ideas here? TIA.
Cheers,
Josh Tag: Can i copy machine.config? Tag: 86035
Article : Resource File Generator (Resgen.exe .Net FrameWork Tools Series)
This is a multi-part message in MIME format.
------=_NextPart_000_0008_01C4C13B.3BABE9D0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi All,
This is a resource file generation tool which converts an xml based =
resource formats to .net resource file i.e. (.resources) and vice-versa. =
Today we will see how we will generate
=3D=3D> .txt files from .resources or .resx files.=20
=3D=3D> .resources files from text or .resx files.=20
=3D=3D> .resx files from text or .resources files.=20
Let us start with converting a .txt file to resources or resx file=20
In order to convert from one type to another we must ensure that the =
data written in them is in the correct format.=20
Text files can only contain string resources as name=3Dvalue pairs. Name =
here is a string that describes the resource it needs to be=20
unique and the value is the resource string. All these name value pairs =
should start from a new line.=20
Lets create a text file containing 10 name=3Dvalue pairs;=20
1) Create a text file name MyText.txt.
2) Type the below name=3Dvalue pairs=20
name1=3Dvalue
name2=3Dvalue
name3=3Dvalue
name4=3Dvalue
name5=3Dvalue
name6=3Dvalue
name7=3Dvalue
name8=3Dvalue
name9=3Dvalue
name10=3Dvalue=20
3) Type the following command to generate MyResources.resx from =
MyText.txt.=20
4) If you duplicated any of the entires you will get the below error =
message.=20
error: Duplicate resource key!
Else your resources will be complied successfully with the following =
message.
Read in 10 resources from 'MyText.txt'
Writing resource file... Done.=20
5) To generate .resources file from .txt file use the following command =
resgen MyText.txt MyResources.resources=20
6) To genereate .txt from .resources file or .resx file use the =
following commands
resgen MyResources.resx MyTextFromRes.txt
resgen MyResources.resources MyTextFromResources.txt=20
7) To generate .txt file from resx file or .resource file use the =
following commands:=20
resgen MyResources.resx MyTextFromRes.txt
resgen MyResources.resources MyTextFromResources.txt=20
There are a certain advantages or disadvantages of these format over one =
another :=20
1) Text file format name=3Dvalue pair is very convient ,easy to use and =
create but can contain only text strings and hence you cannot embed any =
objects in these files.
2) Resx file format has the data in the xml format and hence you can =
embed objects. You will also be able to view the binary information =
about these objects e.g. embedding images in the resource files.=20
Thus
.Resources file is a binary file which is used by the assemblies
.Resx has the data in an xml format
.txt has the data in name=3Dvalue format .... gr8 so many ways to =
represent and use your data.=20
To use these resource files in your assembly( as a part of your =
assembly) you will need to embed or link it with main assembly using =
assembly linker or create satellite assembly.(We will look into detail =
about this in tommorrow's article).
-- Please post your queries and comments for my articles in the =
usergroup for the benefit of all. I hope this step from my end is =
helpful to all of us.=20
Regards,
Namratha (Nasha)
------=_NextPart_000_0008_01C4C13B.3BABE9D0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV>
<P><FONT face=3DArial size=3D2>Hi All,</FONT></P>
<P><FONT face=3DArial size=3D2>This is a resource file generation tool =
which=20
converts an xml based resource formats to .net resource file i.e. =
(.resources)=20
and vice-versa. </FONT></P>
<P><FONT face=3DArial size=3D2>Today we will see how we will =
generate</FONT></P>
<P><FONT face=3DArial size=3D2>=3D=3D> .txt files from .resources or =
.resx files.=20
</FONT></P>
<P><FONT face=3DArial size=3D2>=3D=3D> .resources files from text or =
.resx files.=20
</FONT></P>
<P><FONT face=3DArial size=3D2>=3D=3D> .resx files from text or =
.resources files.=20
</FONT></P>
<P><FONT face=3DArial size=3D2>Let us start with converting a .txt file =
to resources=20
or resx file </FONT></P>
<P><FONT face=3DArial size=3D2>In order to convert from one type to =
another we must=20
ensure that the data written in them is in the correct format. =
</FONT></P>
<P><FONT face=3DArial size=3D2>Text files can only contain string =
resources as=20
name=3Dvalue pairs. Name here is a string that describes the resource it =
needs to=20
be </FONT></P>
<P><FONT face=3DArial size=3D2>unique and the value is the resource =
string. All=20
these name value pairs should start from a new line. </FONT></P>
<P><FONT face=3DArial size=3D2>Lets create a text file containing 10 =
name=3Dvalue=20
pairs; </FONT></P>
<P><FONT face=3DArial size=3D2>1) Create a text file name =
MyText.txt.</FONT></P>
<P><BR><FONT face=3DArial size=3D2>2) Type the below name=3Dvalue pairs =
</FONT></P>
<P><FONT face=3DArial color=3D#0000ff=20
size=3D2>name1=3Dvalue<BR>name2=3Dvalue<BR>name3=3Dvalue<BR>name4=3Dvalue=
<BR>name5=3Dvalue<BR>name6=3Dvalue<BR>name7=3Dvalue<BR>name8=3Dvalue<BR>n=
ame9=3Dvalue<BR>name10=3Dvalue=20
</FONT></P>
<P><FONT face=3DArial size=3D2>3) Type the following command to generate =
MyResources.resx from MyText.txt. </FONT></P>
<P><FONT face=3DArial size=3D2>4) If you duplicated any of the entires =
you will get=20
the below error message. </FONT></P>
<P><FONT face=3DArial color=3D#ff0000 size=3D2>error: Duplicate resource =
key!</FONT></P>
<P><FONT face=3DArial size=3D2></FONT><BR><FONT face=3DArial =
size=3D2>Else your=20
resources will be complied successfully with the following =
message.</FONT></P>
<P><BR><FONT face=3DArial size=3D2><FONT color=3D#800000>Read in 10 =
resources from=20
'MyText.txt'<BR>Writing resource file... Done.</FONT> </FONT></P>
<P><FONT face=3DArial size=3D2>5) To generate .resources file from .txt =
file use the=20
following command resgen MyText.txt MyResources.resources </FONT></P>
<P><FONT face=3DArial size=3D2>6) To genereate .txt from .resources file =
or .resx=20
file use the following commands</FONT></P>
<P><FONT face=3DArial color=3D#0000ff size=3D2>resgen MyResources.resx=20
MyTextFromRes.txt<BR>resgen MyResources.resources =
MyTextFromResources.txt=20
</FONT></P>
<P><FONT face=3DArial size=3D2></FONT> </P>
<P><FONT face=3DArial size=3D2>7) To generate .txt file from resx file =
or .resource=20
file use the following commands: </FONT></P>
<P><FONT face=3DArial size=3D2><FONT color=3D#0000ff>resgen =
MyResources.resx=20
MyTextFromRes.txt<BR>resgen MyResources.resources =
MyTextFromResources.txt</FONT>=20
</FONT></P>
<P><FONT face=3DArial size=3D2>There are a certain advantages or =
disadvantages of=20
these format over one another : </FONT></P>
<P><FONT face=3DArial size=3D2>1) Text file format name=3Dvalue pair is =
very convient=20
,easy to use and create but can contain only text strings and hence you =
cannot=20
embed any objects in these files.</FONT></P>
<P><BR><FONT face=3DArial size=3D2>2) Resx file format has the data in =
the xml=20
format and hence you can embed objects. You will also be able to view =
the binary=20
information about these objects e.g. embedding images in the resource =
files.=20
</FONT></P>
<P><FONT face=3DArial size=3D2>Thus</FONT></P>
<P><FONT face=3DArial size=3D2>.Resources file is a binary file which is =
used by the=20
assemblies<BR>.Resx has the data in an xml format<BR>.txt has the data =
in=20
name=3Dvalue format .... gr8 so many ways to represent and use your =
data.=20
</FONT></P>
<P><FONT face=3DArial size=3D2>To use these resource files in your =
assembly( as a=20
part of your assembly) you will need to embed or link it with main =
assembly=20
using assembly linker or create satellite assembly.(We will look into =
detail=20
about this in tommorrow's article).</FONT></P>
<P><FONT face=3DArial color=3D#0000ff size=3D2><STRONG><EM>-- Please =
post your queries=20
and comments for my articles in the usergroup for the benefit of all. I =
hope=20
this step from my end is helpful to all of us. </EM></STRONG></FONT></P>
<P><FONT face=3DArial color=3D#0000ff=20
size=3D2><STRONG><EM>Regards,</EM></STRONG></FONT></P>
<P><FONT face=3DArial color=3D#0000ff size=3D2><STRONG><EM>Namratha=20
(Nasha)</EM></STRONG></FONT></P></DIV></BODY></HTML>
------=_NextPart_000_0008_01C4C13B.3BABE9D0-- Tag: Can i copy machine.config? Tag: 86034
Howto close child process on parent exit?
Hi,
I need to close all my child processes when the parent is terminated (the
parent is running as a service with srvany.exe)
I'm using this code to start child processes:
ProcessStartInfo pi = new ProcessStartInfo();
pi.FileName = Application.StartupPath + "\\bin\\mysqld-opt.exe";
pi.WindowStyle = ProcessWindowStyle.Hidden;
pi.UseShellExecute = false;
pi.RedirectStandardError = true;
pi.RedirectStandardOutput = true;
pi.CreateNoWindow = true;
p = Process.Start(pi);
Thanks guys.
Luca
--
Phatsoft Inc. Tag: Can i copy machine.config? Tag: 86032
Make a POST with WebClient.UploadFile?
Quick Question:
How do I make a POST (with variables) using the WebClient.UploadFile method?
Full Description of the question:
My goal:
1) Log into a website. This website has a login form like this:
<form ENCTYPE='multipart/form-data' action="thesite.asp" method="post">
<input type="text" name="UserName">
<input type="password" name="Password">
<input type="submit" value="Enter">
</form>
Notice that it sends the data as if it sent a file!
2) Maintain the web session and cookies.
3) Get a few pages.
My research so far:
a) I need to use the System.Net.WebClient object because of goal #2
b) I need to use the WebClient.UploadFile method to login.
The server is expecting a post like this:
Content-Length: 341
-----------------------------491299511942
Content-Disposition: form-data; name="UserName"
MyUserName
-----------------------------491299511942
Content-Disposition: form-data; name="Password"
MyPassword
The methods WebClient.UploadData and WebClient.UploadValues Post the data in
the form:
UserName=MyUserName&Password=MyPassword
I don't know what the server does internally but it doesn't recognize the
variables sent this way. My only guess is that it has to do with goal #1
My Question:
How do I post variables using the WebClient.UploadFile method? Tag: Can i copy machine.config? Tag: 86030
Emab question.
What is the best way to add a little bit of functionality to the
ExceptionManager.Publish(Exception) method? I just want to add a database
insert into the method, but I want everything else to do what it normally
does.
Thanks...sonny Tag: Can i copy machine.config? Tag: 86029
Displaying the "/// <summary></summary>" tool tip in other proje
Hi everybody,
How do i show the tool tip for methods or types of my own in projects
other than the project containing the methods/types/properties?
Is there any attribute or something i should add to them?
The tool tip is displayed only for .NET types or the types within
the same project, but for types in other projects it is not shown.
All that is shown is the fully qualified name of the type or method.
Can i make it to display all the time, regardless of the project they were
declared in?
Thanks alot guys. Tag: Can i copy machine.config? Tag: 86028
C# Windows service description
Can anyone point me in the right direction on how to set the windows
service description in a C# windows service? Or even better how to
set a localized description in the service?
Thanks Tag: Can i copy machine.config? Tag: 86025
Cannot get Excel process to end
I have searched the newsgroups and found numerous posts on this issue, and I
am joining the scores of people who can not get Excel to end while using it
through Com. I think I have tried everything that has been suggested all
over the place, and I have had no luck, there is always an Excel process
running after I finish this.
In the code, I know that the code within the catch's are not correct, but it
never makes it to any of the catches as a messagebox is never displayed, and
I have stepped through the code numerous times line by line.
I would love any help or suggestions anyone may have, as this is really
driving me crazy. Thanks a lot for any help,
Bob Dankert
The code is here:
private bool getDataFromExcelFile(string fileName)
{
Excel.Application app;
Excel.Workbook book;
Excel.Worksheet sheet;
Excel.Workbooks books;
Excel.Range cells;
object oMissing = System.Reflection.Missing.Value;
object False = (object) false;
object True = (object) true;
Array exlSheet;
partNumber = new ArrayList();
try
{
app = new Excel.ApplicationClass();
try
{
books = app.Workbooks;
book = books.Open(fileName, False, True, oMissing,
oMissing, oMissing, oMissing, oMissing,
oMissing, oMissing, oMissing, oMissing,
oMissing, oMissing, oMissing);
}
catch
{
sheet = null;
book = null;
app = null;
MessageBox.Show("This is not a valid Excel file. Please select a
different file for processing.", "File Error", MessageBoxButtons.OK,
MessageBoxIcon.Warning);
this.valid = false;
return false;
}
sheet = (Excel.Worksheet) book.ActiveSheet;
//column 12 is code, 1 is number, rows 4 - end
//we are looking for planner codes 15, 1, 4
Excel.Range rng = sheet.UsedRange;
cells = rng.Cells;
exlSheet = (Array) cells.Value2;
for(int a =4; a < exlSheet.GetLength(0) + 1; a++)
{
try
{
if(int.Parse(exlSheet.GetValue(a, 12).ToString()) == 1 ||
int.Parse(exlSheet.GetValue(a, 12).ToString()) == 4 ||
int.Parse(exlSheet.GetValue(a, 12).ToString()) == 15)
{
partNumber.Add((object)exlSheet.GetValue(a,1).ToString());
}
}
catch
{
MessageBox.Show("This is not a valid Bill of Materials. Please select
a new excel file.", "File Error", MessageBoxButtons.OK,
MessageBoxIcon.Warning);
this.valid = false;
return false;
}
}
book.Close(oMissing, oMissing, oMissing);
books.Close();
app.Quit();
NAR(sheet);
NAR(rng);
NAR(cells);
NAR(books);
NAR(book);
NAR(app);
oMissing = null;
GC.Collect();
GC.WaitForPendingFinalizers();
int aa=0;
}
catch(Exception e)
{
MessageBox.Show("There has been an error reading from the Excel file.
The specific error was:\n\n" + e.ToString());
this.valid = false;
return false;
}
return true;
}
private void NAR(object o)
{
try
{
while (System.Runtime.InteropServices.Marshal.ReleaseComObject(o) != 0)
{}
}
catch {}
finally
{
o = null;
}
} Tag: Can i copy machine.config? Tag: 86023
Application.ProductName doesn't return product name
When I call Application.ProductName I get back "Main" instead of my
application name.
What to do?
Kind regards,
Sebastiaan. Tag: Can i copy machine.config? Tag: 86018
Exception Management Biulding Block Problems
Hallo,
I have been implementing the execption management biulding block into my
VB.NET Windows App.
I downloaded the biulding block from:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/emab-rm.asp
I have been able to implement the default publisher (the event log) but I am
not able to write exceptions to txt and xml files don't work, instead I get
double entries in the event log.
Any ideas?
Nigel...
Here is my app.config file...
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section
name="exceptionManagement"type="Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManagerSectionHandler,Microsoft.ApplicationBlocks.ExceptionManagement" />
</configSections>
<exceptionManagement mode="on">
<publisher assembly="ExceptionManagementQuickStartSamples"
type="ExceptionManagementQuickStartSamples.ExceptionXMLPublisher" exclude="*"
include="+Microsoft.ApplicationBlocks.ExceptionManagement.BaseApplicationException,
Microsoft.ApplicationBlocks.ExceptionManagement" exceptionFormat="xml"
fileName="c:\Test.xml"/>
</exceptionManagement>
</configuration> Tag: Can i copy machine.config? Tag: 86014
Problem in generating Crystal Report from a different data source
Hi, i'm now trying to get CR to report from an XML file and the user will
determine which file to load. I created a dummy table for the report to
connect to. The program first read the XML file into a dataset and then use
SetDataSource to get CR to read from the dataset. the report runs fine when
i'm reporting off fields that the dummy table contains (fields with the same
name). however, when i want to report from fields that the dummy table
doesn't have, it returns an error message -
"Error in formula <Field1>.
'{table1.au_id}'
This field name is not known."
Did i do anything wrong is the process? is there a way to report from a
generic XML file? thank you very much for your advice. Tag: Can i copy machine.config? Tag: 86011
Count Memory Sizes for Object graph
Hi, I'm in a situation where I have a Web App that needs to load some xml
info in-memory, and keep it there throughout the lifetime of my application.
Since the Xml could get large (200K+) and I wouldn't ned to use any
xml-specific operations on it (modify it, or do XPaths, xslt or whatever) I
de-serialize the xml into an object graph.
My question is:
Can I find out exactly how much memory my object graph occupies ? I want to
make some comparisons between holding that into memory, and holding an
XmlDocument instead ( because of the Xml-related operations I could use in
case I held the XmlDocument, it might be worth the trade, but I can't judge
without first knowing the difference in memory consumption :? )
Thanks a lot guys,
Angel
O:] Tag: Can i copy machine.config? Tag: 86008
NUnit Testing
Has anyone had much experience with NUnit http://www.nunit.org , an open
source Unit Testing tool?
If so, has anyone had experience of how to test a method that returns VOID?
None of the ovedloaded Assert.IsNull or Assert.AreEqual methods seem
suitable!
(although I could argue that the methods to be tested should return true) Tag: Can i copy machine.config? Tag: 86007
Interoperatibility and deployment
Hello,
our application has to be called from another language, which is not able to
call .NET-assemblies directly, but is able to handle ActiveX-DLLs. So we
create an Type-Lib through RegAsm.exe. Now our question is, how can this
TLB-File be installed on our customer-machines? With RegTlib.exe i can
register the TLB-File, but this seems not to be enough, the automation can't
find the assembly.
Do i have to create the TLB-File seperatly on every client-machine with
RegAsm?
Thanks for your help.
Greetings,
Daniel Tag: Can i copy machine.config? Tag: 86006
MMC SnapIn using C#
Hello,
I am trying to develop an MMC SnapIn using C#. Through searches on the web,
I have found the MMCLibrary from ironringsoftware.com. I downloaded this and
have tried to run the test project, but have been unable to because of
errors that occur in VS 2003. I am running it on Win2000, which it should
run on, so I'm not sure what the problem is.
Any other ideas as to how I can develop a snapin using C# will be
appreciated.
Many thanks,
Marise Tag: Can i copy machine.config? Tag: 86004
Installation problem
Hi,
I had installed vs.net 2003 on my sytem at home. But the problem is
that I'm unable to debug the applications and also the web applications are
not running correctly. I'm ubale to trace out the problem.
Can anyone help me out..it's urgent...
Thanks n Regs
AVL Tag: Can i copy machine.config? Tag: 85999
Develop a Dot net Web App with something other than IIS?
Can one develop a Dot Net Web App with some type web server other than
Microsoft's IIS? I need to perform a few small development projects
on a laptop with XP Home (unable to install PRO due to driver issues.
)
Eg. How far can I push the development process on a machine with only
XP home?
Thanks Tag: Can i copy machine.config? Tag: 85989
Fetching URLs in Parallel
Hello,
How does an application like the Web Application Stress tool work? How does
it issue requests so fast without being blocked by slow executing ones?
What technique can I use to create an object that would fetch up to 10 URLs
in parallel and be able to timeout and terminate all the requests within 1.5
seconds?
This object would be used on the server side and would be called many times
per second.
Is there a component like this for sale?
Thanks,
Arsen Tag: Can i copy machine.config? Tag: 85988
Announcemnt: New .NET Developer Resource
Apologies if this announcement is off topic.
I have created a web site for .NET developers that I hope may be of use. It'
s called TheDotNetDirectory.com and can be found at
http://www.TheDotNetDirectory.com. It's a site that contains links to useful
.NET related web sites. If you have any suggestions that would make the site
more useful or would like to add a site then please do so via the web site. Tag: Can i copy machine.config? Tag: 85978
IAssemblyCache::InstallAssembly
I am trying to use this functionality to install a component into the
gac within code. I am getting an error code back of 1 but can find
nothing to show what the error codes mean. Does anyone know where
this info is located? Tag: Can i copy machine.config? Tag: 85974
HELP !!! Managed C++, WinForms and ATL !!!
Hi,
I have a simple ATL based windows class:
class CApplicationBarHost : public CWindowImpl<CApplicationBarHost>
{
public:
// construct host window
CApplicationBarHost(CExchExt* pExchExt);
virtual ~CApplicationBarHost();
CExchExt* GetExchExt()const { return m_pExchExt; }
HRESULT FinalConstruct();
BOOL CreateApplicationHostWindows();
DECLARE_WND_CLASS(APPLICATION_BAR_HOST_CLASS_NAME)
public:
BEGIN_MSG_MAP(CApplicationBarHost)
MESSAGE_HANDLER(WM_SIZE, OnSize)
MESSAGE_HANDLER(WM_DESTROY, OnDestroy)
END_MSG_MAP()
protected:
LRESULT OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
LRESULT OnDestroy(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL&
bHandled);
private:
CExchExt* m_pExchExt; // pointer to exchange extension
gcroot<SearchBarCtrl __gc*> m_pSearchBarCtrl;
};
As you can see, there is SearchBarCtrl member in this class which is
WinForms user control.
The CApplicationBarHost should create the search bar control and manage it
via Managed C++ (resize, repositioning, close, show), so this class will be
ATL based host for WinForm control.
Here is my problem! In order to create Search bar control I have to say that
this control will be child of the host window. I don't know how to set
Inform parent via managed C++ code :(((
Could you help me here? This should be a common scenario for some
application that still have ATL based UI (in my case this is Outlook
exchange extension) and would like to embed some modern .NET WinForms
controls.
Thanks a lot for your help ! Tag: Can i copy machine.config? Tag: 85973
Clent Name
How do I return a Client Name in my code (vb)?
I am in a Terminal Server environment and I need more than the
Connection.StationID. Tag: Can i copy machine.config? Tag: 85970
Creating Performance Counters
I know how to create a performance counter, but is there a way to
add/append another counter to an already created category or do you
have to remove and re-create the category and all counters in it in
order to create your new counter? Tag: Can i copy machine.config? Tag: 85968
Uninstall Framework 1.1
I tried to install SP1 for Framework 1.1, but the installation
did not complete due to error. I tried to uninstall Framework
1.1, but that gives an error, too. (I run WinXP Pro.) Any
ideas on what might help?
--->FBarths Tag: Can i copy machine.config? Tag: 85961
HELP! RightFax
Hi
Is there anyone out there who's using .NET to send faxes from RightFax?
I have tried several times, but can't get the fax sent to the destination.
I successfully create the document, use document.Print but no joy.
The default printer is set to RightFax Printer.
Your help is highly appreciated
Thank you
walterd Tag: Can i copy machine.config? Tag: 85960
Parallel Port
All,
I'm aware that there are no built-in methods in the Framework for accessing
the parallel port. So i'm just looking for the best method (which i'm
assuming will involve using Interop).
I'm trying to create a very simple application that will allow me to set
(and hold) certain pins on the parallel port to be high/low based on user
input. Nothing fancy here.
Whats the quickest/most reliable option here?
Thanks in advance,
-Tim Tag: Can i copy machine.config? Tag: 85959
Tell me this isnt a bug. (Databinding inside of a datagrid)
I created a user control that, had a datalist with checkboxes inside of the
item template. These checkboxes would not retain state. For instance, if I
set them to checked inside of the load event of the UserControl, they would
appear false(the default value) when inside the top level datagrid.
Here's the walkthrough (tried to make it as quick as possible):
Start a new ASP.NET Web Application project.
1. Create a usercontrol. (UserControl1)
2. Add a datalist to it. (DataList1)
3. To the item template, add a checkbox (Checkbox1)
4. Add this code to the Page_Load event of ** UserControl1 **
----------------------------------------------------------------------------
'Put user code to initialize the page here
datalist1.DataSource = New String() {"Item1", "Item2", "Item3"}
datalist1.DataBind()
For Each I As DataListItem In datalist1.Items
Dim chk As CheckBox = I.FindControl("CheckBox1")
chk.Checked = True
Next
-----------------------------------------------------------------------------
(The text "CheckBox1" should be the name of the checkbox you added in step
3, if you left it at the default, then you dont have to change anything)
5. The first part is done. Go to the default web form that was created (most
likely WebForm1.aspx)
6. Drop a datagrid onto that form(Datagrid1), and open the property builder.
7. Uncheck "automatically generate columns" & add the following 2 columns:
-The standard edit/update/cancel button column
-one template column.
8. Close property pages and go to the Edit Template for the Template column:
- Drop an instance of the usercontrol (UserControl1) you created in step 1.
9. Close the template editor, and paste the following code for the
datagrid1_EditCommand event:
-----------------------------------------------------------------------------------------
Datagrid1.DataSource = New String() {"Main Item 1", "Main Item 2", "Main
Item 3"}
Datagrid1.EditItemIndex = e.Item.ItemIndex
Datagrid1.DataBind(
------------------------------------------------------------------------------------------
10. Finally, paste the following code in the Page_Load event of WebForm1
-------------------------------------------------------------------------------
Datagrid1.DataSource = New String() {"Main Item 1", "Main Item 2", "Main
Item 3"}
Datagrid1.DataBind(
-------------------------------------------------------------------------------
Execute the project:
Observe the checkboxes are checked in each instance of the usercontrol
inside the rows of the datagrid.
Now click one of the edit buttons.
Notices all the checkboxes are now false.
I struggled for a few days with this, any replies greatly appreciated. Tag: Can i copy machine.config? Tag: 85958
Concerns on Drawing2D.Matrix.Rotate and Math function mixing...
Hi,
I'm implementing some algebra algorithms in C#, so I think to use the Matrix
class in some operations. But I was struck by two factors:
-The Matrix.Rotate() functions (and in general, all angle operations in
System.Drawing.Drawing2D) are in decimal gradus, but basic angle functions
in Math package are un radians. It is a problem, I should convert my angles
all the time betweem these two systems if I want to use the Matrix class
functions with my own functions.
-The angle used by Matrix.Rotate() increases clockwise. But as long as I
understand in "normal" mathematics the angle increases the reverse. The Math
functions like Math.Sin understand angles increasing non-clockwise. So if I
want to use Matrix.Rotate I should also convert my angles to this "reversed"
coordinate system.
These are my concerns. Am I right? System.Drawing.Drawing2D and Math
packages doesn't mix? Which is the reccommended practice in this situation?
To use another "right" Matrix package? Which one do you reccomend?
Thanks in advance
Faustino Tag: Can i copy machine.config? Tag: 85953
Versioning
Is there a way to version projects in a solution other than to go into each
project's AssemblyInfo.cs file and change it manually? Actually, the end
result I'm looking for is to have all projects in the solution set to the
exact same specified version.
Thanx,
Todd Tag: Can i copy machine.config? Tag: 85951
Outlook 2003 VBA problem
Hi,
I'm having troubles accessing outlook 2003 from my .NET
windows application VB.NET form.
this is the code I'm using:
Imports Microsoft.Office.Interop
private sub ....
Dim olApp As Outlook.Application
Dim objSearch As Outlook.Search
Dim folInbox As Outlook.MAPIFolder
Try
olApp = New Outlook.Application
folInbox = olApp.GetNamespace
("MAPI").GetDefaultFolder("olFolderInbox")
Catch ex As Exception
MsgBox(ex.Message)
End Try
End sub
the exception is:
"QueryInterface for interface
Microsoft.Office.Interop.Outlook._Application failed."
my reference is to the outlook.dll (Microsoft Outlook
11.0 Object Library)
anybody has a clue as for what am I doing wrong? Tag: Can i copy machine.config? Tag: 85950
how can my app access files even when run from web?
shi all
my app is available to be run
directly from the web.
however, it needs to access files.
when a file access is attempted,
the user gets a message box from the security policy.
'the operation required the SecurityException'.
is there any way that the user
can allow the application access to the file?
assaf Tag: Can i copy machine.config? Tag: 85945
Drawing dynamic arrows in visual basic.net
Hi,
Thanks to all those who helped me last time with the static arrows!
I have a new problem at hand.
I would like to draw dynamic arrows on the Window form. It goes like this.
There is a textbox in the form. When a user types a negative decimal value
into a textbox, the arrow will change into a bold arrow.When the user types a
positive value into the textbox, the arrow will change into a thinner arrow.
Can you guys help me in this?
Thanks
Stephen Tag: Can i copy machine.config? Tag: 85943
c# and PRINTER_INFO_2
how can i use PRINTER_INFO_2 with c# and get Status of printer(especially
PRINTER_STATUS_PAPER_JAM Paper is jammed in the printer
PRINTER_STATUS_PAPER_OUT The printer is out of paper.
PRINTER_STATUS_PAPER_PROBLEM The printer has a paper problem
) Tag: Can i copy machine.config? Tag: 85929
Logging and exceptions, is it so hard?
Hi,
So my server is complete,I have all the code and libraries which I need
but now I want to add exception management and logging capabilities
I would like you to suggest a good book about logging and exceptions
handling for multiple threads server
Some question I have in mind are
1.Where is the best place in the component hierarchy to put logging?
(inside the lowest component or the highest one?)
2.Where is the best place in the component hierarchy to put logging of an
exception?
(since I always pass the inner exception,my rule of thumb is to log it
in the highest component in the hierarchy
without crossing thread boundaries)
3.When multiple thread writing to the same log file,performance can be
degraded,how to avoid this?
4.assuming the server write to a log file,I would like the admin program to
display it as it changes
what is a good way(I don't want to throw events to the user interface
when loging )
I know of course i can use mutex,events and MMF like visual studio and
dbmon do
and many more...
Thanks in adavnce.
----------------------------------------------------------------------------
-----------------------------------
I am writing in C# and using NSpring library for logging Tag: Can i copy machine.config? Tag: 85928
Unhandled Exception
On running an app from the IDE I get the following dialog appear just
after the form appears on screen:
*******
An unhandled exception of type 'System.NullReferenceException' occurred
in unknown module.
Additional Information: Object reference not set to an instance of an
object.
*******
If I press 'Break' I get the message 'There is no source code for the
current location' - and there is no line highlighted in my code.
If I press 'Continue' the app runs fine.
The last line in the debug output window is:
JExplorer.exe loaded 'r7he2kdw' No Symbols Loaded
All the other output windows are blank.
I have tried stepping through my code without being able to track this
down.
What do I need to do to to try and pin down where this is happening?
Does the 'r7he2kdw' in the output window give any clues?
I would appreciate any guidance.
--
Jeff Gaines Damerham Hampshire UK Tag: Can i copy machine.config? Tag: 85927
Binary comatibilty
Is there a utility out there that allows you to take two versions of the
same assembly and check their compatibility?
In the days of vb6 you could set binary compatibility and reference the dll
you want to be compatible with and good old vb6 would tell you at compile
time if you have broken compatibility.
I know I could write a utility myself to check for new members etc. I just
wondered if anyone had already done it. Tag: Can i copy machine.config? Tag: 85922
framework: 4 Millions Domains data with Category
Successfull Internet and Direct Marketing products on
www.promotionsite.net
* NEW * DOMUS Domains Toolkit Fall 2004 - Unique on the Net
4 Millions "Whois" Domains data with Expiration Date and Category*.
Ultimate Version (October 2004) - Our best rate starts from US *$149*.
A wonderful tool for Internet and Direct Marketing.
Available in Basic, Advanced and Full Editions.
It contains a domain database with 4 millions *FRESH* October 2004
New records .com, .net, .org.
4 Gigabytes MS Excel data zipped on CD-Roms/Dvd. Compression 3:1.
MS Excel or Text tab delimited data files Available!
Each record include the full "whois" fields info and homepage info:
Domain Name,
Registrant Company, Contact, Address, City, Tel, Fax, Email,
Administrative Company, Contact, Address, City, Tel, Fax, Email,
Technical Company, Contact, Address, City, Tel, Fax, Email,
Billing Company, Contact, Address, City, Tel, Fax, Email,
Zone Company, Contact, Address, City, Tel, Fax, Email,
Name Servers until 6 name servers with IP addresses
Record Created on Date, Record Updated on Date, Record *Expires* on Date
Domain Title, Domain Description, Domain Keywords (*Category*),
First 300 Words in the Domain Website Homepage.
Download Free Demo, Screenshot, see Products Details or Order On-Line
at www.promotionsite.net.
Available On-Line many other Promotion Products.
Instant Shipment or Download On-Line Registered Versions available!
Best Regards,
www.promotionsite.net
The Best place where to find Internet Marketing Resources on the Net.
---
This is a one-time only information.
The enrolled (final) text of S. 877 as it was passed by the Senate on
November 25, 2003, and agreed to by the House of Representatives on
December 8, 2003, allows e-marketers to send UCE as long as the message
contains an opt-out mechanism, a functioning return e-mail address and
the legitimate physical address of the mailer. The bill was signed by
the President on December 16, 2003, and takes effect on January 1, 2004.
Your address isn't in any of our archives, however for Can Spam Act 2003
Compliance, you can remove at http://www.promotionsite.net/remove.html Tag: Can i copy machine.config? Tag: 85921
Does "ClickOnce" download the entire application every time...
Dear developers!
I read this on windowsforms site:
http://www.windowsforms.net/FAQs/default.aspx?
PageID=2&ItemID=37&CategoryID=24&tabindex=2
Q. Does "ClickOnce" download the entire application every-
time I update it?
A: No. "ClickOnce" only downloads the files and
assemblies that have changed.
Does anyone know how to achive that?
PS:I've done various of tests but i can't figure it out.
Thanks in advance! Tag: Can i copy machine.config? Tag: 85919
aspnet_wp.exe (PID: 500) was recycled because memory consumption e
Hi ,
We are develoed the .net application(asp.net, vb.net and sql server ). Till
yesterday there was no problem with the application. Is was working fine.
In our application we have one Lock and Unlock Button. When you click on
Lock button, the page will turn into ReadOnly mode. When you click on Unlock
the page will turn into Edit Mode.
Now When I press the Lock or Unlock Button after 2 to 3 minutes in the
Browser iam getting the below error message.
--------
Server Application Unavailable
The web application you are attempting to access on this web server is
currently unavailable. Please hit the "Refresh" button in your web browser to
retry your request.
Administrator Note: An error message detailing the cause of this specific
request failure can be found in the application event log of the web server.
Please review this log entry to discover what caused this error to occur.
--------
In the Event Logs the error description is:
Event ID: 1001
aspnet_wp.exe (PID: 500) was recycled because memory consumption exceeded
the 305 MB (60 percent of available RAM).
We are using .Net framework version1.1. Iam not able to figure it out this
problem.
Can anyone please help on this issue.
You help is much appriciated.
Regards,
Bhaskar. Tag: Can i copy machine.config? Tag: 85906
iso-8859-1 in webservice-responses
Hi,
I have a webservice in c#.net.
I want to send all the responses of the webservice encoded in "iso-8859-1", so that german special characters will be displayed correctly.
I put this line in both files, machine.config and web.config:
<globalization requestEncoding="iso-8859-1" responseEncoding="iso-8859-1"/>
Still every response starts like that:
<?xml version="1.0" encoding="utf-8"?>
UTF-8 (!!) and all the special characters are questionmarks ???
any help would be great
thanks
bernie
--------------------------------
From: bernhard gruber
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>WLFzPjoZZUe8BQvJsinEaA==</Id> Tag: Can i copy machine.config? Tag: 85898
Hi,
Is there any side efect of copying the machine.config file from one server
to another? Is there any unique ID in each file?